Erasing a Bit Warms the Room A developer built a tiny language model with 50 words of vocabulary and 1,600 parameters to show that the loss number reported during training is a physical quantity measured in bits, not just a score. The model's perplexity dropped from 63 to 8.2 after 300 training steps, illustrating that erasing a bit of uncertainty releases heat, connecting machine learning loss to thermodynamics. ← The Gradient /the-gradient Erasing a bit warms the room The number falling down my screen while a very small model trained is measured in bits. The same quantity, arrived at a century earlier from steam engines, says that destroying one of those bits must release heat. To find out what the words in the machine learning papers actually point at, I built a language model small enough to watch. Fifty words of vocabulary. Ten dimensions per word. One self-attention layer with the usual query, key and value matrices, causally masked, then a feed-forward block, with the output weights tied back to the same embedding table. Sixteen hundred numbers in total, which is not a figure of speech: I can print all of them. It trains in a browser tab, one sentence per click, on a corpus of fifty sentences about animals sitting on things. What I could not stop watching was the loss, reprinted at every step, falling fast and then slowly and then, as we will see, not at all. It took me embarrassingly long to notice that this number is not a score. It is a physical quantity, it has units, and the units are bits. The number is a count of questions Here is what the model is asked to do, stripped of everything else. Look at the sentence so far and put a probability on every word that could come next. Not a guess, a distribution: this much on dog , this much on ran , a sliver on quietly . Then the true next word arrives and the model is charged the logarithm of the probability it had assigned to that one, negated so the charge is positive. Confident and right is nearly free. Confident and wrong is ruinous. Spreading belief thinly over everything is a steady mediocre tax you pay forever.