Boltzmann Brains in an LLM: Heat Garbles Answers, It Rarely Swaps Facts A developer measured how temperature affects factual accuracy in language models, running 100 closed questions at eight temperatures from 0.3 to 3.0 across two models (gemma4:12b and a smaller model) for 5,100 total answers via Ollama. The results showed that high temperature mostly garbles the text surrounding a fact rather than swapping it for a plausible wrong one; the weaker model showed a narrow window of fluent falsehood just before collapse, while the stronger model produced none in 2,400 answers. A Boltzmann brain is a physicist's joke with a serious point: wait long enough in a universe that fluctuates at random, and the cheapest thing to appear out of the noise is not a galaxy but a single mind, complete with memories of a past that never happened. It is fluent and self-consistent, and it is wrong about everything. Language models run on the same family of mathematics, and the setting that controls it is called temperature. So the question is tempting: if you turn the temperature up, do you get Boltzmann brains, sentences that are well formed and confidently false? I measured it on two models and 5,100 answers. The short answer is no, not in any way that should worry you . When heat damages an answer, it mostly garbles the text around the fact instead of swapping the fact for a plausible wrong one. A weak model shows a small, narrow window of fluent falsehood just before it collapses; the stronger one produced none in 2,400 answers. In the mid-1890s Ludwig Boltzmann, crediting his assistant Ignaz Schütz, proposed that our low-entropy universe might be a very rare thermal fluctuation in a universe that otherwise sits in equilibrium. The objection, which the English Wikipedia article dates to 1931 and credits to the astronomer Arthur Eddington, is that a large fluctuation is exponentially less probable than a small one, so observers inside a whole fluctuating universe would be vastly outnumbered by observers in smaller fluctuations. Follow that to its end and the smallest fluctuation that can think is a lone brain with false memories. The same article says that Richard Feynman made a similar argument in his Lectures on Physics , and it ties the idea's revival, around 2002, to a paper by Dyson, Kleban and Susskind on the implications of a cosmological constant. Physicists use it as a reductio ad absurdum: if the reasoning were right, we would almost certainly be such brains, so something in the premises has to give. I read the English Wikipedia article https://en.wikipedia.org/wiki/Boltzmann brain?ref=wolinski.com , which has the history and the references, and not the original papers, so treat the dates and attributions as its account. The year of Boltzmann's own paper is the one I could not pin down, which is why I say mid-1890s. The link to language models is the formula. In physics a state with energy E at temperature T has probability proportional to exp -E / kT . A language model turns its scores z into the probability of the next token in the same shape, proportional to exp z / T ; I wrote about how that works in What is temperature in AI https://wolinski.com/blog/what-is-temperature-in-ai.html , a beginner article that measures the effect on a coffee-shop prompt. Low temperature makes the top token take almost everything. High temperature gives the long tail of the vocabulary a real chance. Eddington's point is about size: small deviations beat large ones. In an answer, a small deviation is one wrong fact in an otherwise perfect sentence "The capital of Kenya is Ottawa." . A large deviation is a sentence that has fallen apart. If the analogy holds, then as temperature rises there should be a range where fluent falsehoods are more common than garbage, and they should grow with temperature before garbage takes over. That is a claim the data can reject, so I measured it. I wrote 100 closed questions with one unambiguous answer each: capitals, chemical symbols, arithmetic, authors, dates, geography "What is the capital of Kenya?", "What is 7 times 8?" . Each was asked in the same way, "Answer in one complete English sentence." plus the question, at eight temperatures from 0.3 to 3.0 the small model also at 1.8 , three samples each, so 300 answers per temperature. Two models ran on a CPU server through Ollama 0.40.17: | Model | Ollama ID | Quantisation | Vocabulary | Answers | |---|---|---|---|---| | gemma4:12b | 6114515d63c1 | Q4 K M | 262,144 tokens | 2,400 8 temperatures | | llama3.2:1b | baf6a787fdff | Q8 0 | 128,256 tokens | 2,700 9 temperatures | Sampling was the pure Boltzmann kind: top-k, top-p and min-p were switched off, so temperature was the only thing between the scores and the dice. python def call question, T, seed : body = {"model": MODEL, "stream": False, "think": False, "messages": {"role": "user", "content": PROMPT + question} , "options": {"temperature": T, "top k": 0, "top p": 1.0, "min p": 0.0, "repeat penalty": 1.0, "num predict": 60, "seed": seed, "num thread": int os.environ.get "THREADS", "0" or None}} body "options" = {k: v for k, v in body "options" .items if v is not None} Every answer got two independent labels. Correct means the gold answer appears in the text. Fluent means two checks pass: a cheap filter no script drift, a proper ending, most words known and a judge, the same gemma4:12b at temperature 0 with a prompt about grammar and sense that explicitly ignores truth: JUDGE PROMPT = "Is the following text a grammatical, meaningful English sentence? " "Ignore whether it is factually true. Answer YES or NO.\n\nText: " def judge says fluent text, model="gemma4:12b", url="http://localhost:11434/api/chat" : body = {"model": model, "stream": False, "think": False, "messages": {"role": "user", "content": JUDGE PROMPT + text} , "options": {"temperature": 0, "num predict": 3, "seed": 0}} req = urllib.request.Request url, json.dumps body .encode , {"Content-Type": "application/json"} with urllib.request.urlopen req, timeout=120 as r: return json.load r "message" "content" .strip .upper .startswith "YES" Crossing the two labels gives four classes: correct and fluent ; fluent but wrong the Boltzmann brain ; right fact, garbled text ; and garbage . Before I trusted the labels I tested them on cases with a known answer. A perfect sentence per question was labelled correct and fluent in 99 of 100 cases. A fluent sentence with a false fact was labelled fluent but wrong in 99 of 100. Twelve random dictionary words with a full stop, which is the hardest garbage for a word-list filter, were labelled garbage in 94 of 100: the judge lets about 6 in 100 such strings through. The real garbage in the runs is mostly different, with other alphabets and code fragments, which the filter removes before the judge sees it. Two models, 5,100 answers and four classes: first the cliff, then the fluent falsehoods, then what breaks instead. Correct answers by temperature, 300 per point. The larger model holds until about 1.6 and then drops within a few tenths; the small one starts to lose answers at 1.0. The larger model does not degrade, it switches. Up to temperature 1.0 all 300 answers at each step are correct; at 1.6, 290 of 300 are; at 2.0, 152 are; at 2.5 one is, and at 3.0 none. The exact numbers, with 95% intervals: | Temperature | Correct and fluent | Fluent but wrong | Right fact, garbled text | Garbage | |---|---|---|---|---| | 0.3 | 300 100.0% | 0 0.0% , 95% 0.0–1.3% | 0 0.0% | 0 0.0% | | 0.7 | 300 100.0% | 0 0.0% , 95% 0.0–1.3% | 0 0.0% | 0 0.0% | | 1.0 | 300 100.0% | 0 0.0% , 95% 0.0–1.3% | 0 0.0% | 0 0.0% | | 1.3 | 299 99.7% | 0 0.0% , 95% 0.0–1.3% | 1 0.3% | 0 0.0% | | 1.6 | 290 96.7% | 0 0.0% , 95% 0.0–1.3% | 7 2.3% | 3 1.0% | | 2.0 | 152 50.7% | 0 0.0% , 95% 0.0–1.3% | 67 22.3% | 81 27.0% | | 2.5 | 1 0.3% | 0 0.0% , 95% 0.0–1.3% | 74 24.7% | 225 75.0% | | 3.0 | 0 0.0% | 0 0.0% , 95% 0.0–1.3% | 35 11.7% | 265 88.3% | The small model falls earlier and more gently, and it is the only one with fluent falsehoods: | Temperature | Correct and fluent | Fluent but wrong | Right fact, garbled text | Garbage | |---|---|---|---|---| | 0.3 | 294 98.0% | 3 1.0% , 95% 0.3–2.9% | 3 1.0% | 0 0.0% | | 0.7 | 291 97.0% | 5 1.7% , 95% 0.7–3.8% | 4 1.3% | 0 0.0% | | 1.0 | 281 93.7% | 11 3.7% , 95% 2.1–6.4% | 6 2.0% | 2 0.7% | | 1.3 | 236 78.7% | 18 6.0% , 95% 3.8–9.3% | 25 8.3% | 21 7.0% | | 1.6 | 136 45.3% | 9 3.0% , 95% 1.6–5.6% | 43 14.3% | 112 37.3% | | 1.8 | 65 21.7% | 5 1.7% , 95% 0.7–3.8% | 28 9.3% | 202 67.3% | | 2.0 | 21 7.0% | 3 1.0% , 95% 0.3–2.9% | 25 8.3% | 251 83.7% | | 2.5 | 1 0.3% | 0 0.0% , 95% 0.0–1.3% | 2 0.7% | 297 99.0% | | 3.0 | 0 0.0% | 0 0.0% , 95% 0.0–1.3% | 3 1.0% | 297 99.0% | The intervals treat the 300 answers as independent, which they are not see the limits , so read them as optimistic. At 0.3 and 0.7 every "right fact, garbled text" answer of this model is in fact a clean sentence that the judge rejected see the limits . The same question shows what the classes look like. This is the capital of Kenya, first sample, both models, verbatim: | Temperature | gemma4:12b | llama3.2:1b | |---|---|---| | 0.3 | The capital of Kenya is Nairobi. | The capital of Kenya is Nairobi. | | 0.7 | The capital of Kenya is Nairobi. | The capital of Kenya is Nairobi. | | 1.0 | The capital of Kenya is Nairobi. | The capital of Kenya is Nairobi. | | 1.3 | The capital of Kenya is Nairobi. | The capital of Kenya is Nurundi. | | 1.6 | The capital of Kenya is Nairobi. | The capital of Kenya is.widget Nd predova ;ließystalsFr يع下 alsoCómo USED dc India⇥form le… | | 1.8 | not measured | The capital of Kenya is New⇥HashMap report Act înt PropertyValueー�蒂isms करMillerPreparefi… | | 2.0 | The capital of Kenya is Nairobi. | The capital of Kenya is caseÑmirailing CL commissioners.AddFieldtotряд Storageler آب percu… | | 2.5 | circ 친backgroundImage Normalized पढ़ना है रोमन सामाजिकissors नामtranslated是我们名字我Completes… |