In LLM inference, temperature controls the trade-off between reliability and creativity. Low temperatures keep the model predictable, while high temperatures encourage exploration.
Naturally, different questions require different approaches. Some demand careful, step-by-step reasoning, while others require creative leaps between concepts. So, when attempting to solve the same unknown problem multiple times (as in pass@K), it seems natural to vary the temperature across attempts.
Yet in practice, almost everyone uses a single temperature. Why?
In our new paper with @orishemur and Prof. Yaron Oz, "One Temperature to Rule Them All?", which we will present at NeurIPS 2026, we investigate this gap, showing how multiple temperatures can be used, and why, most of the time, they shouldn't.
๐น The Hidden Cost of Diversity: While optimal multi-temperature schemes can improve performance, splitting the sampling budget across suboptimal temperatures incurs an exponential penalty, whereas sticking to a single well-tuned "compromise" temperature incurs only a linear cost.
๐น The Goldilocks Effect: At a given sampling budget K, performance is largely driven by questions whose difficulty matches the scale of K. Harder or easier questions have little effect on the choice of the ideal temperature. This means you don't need to know a question's exact difficulty to choose a good temperature; you mainly need to tune it to your compute budget K.
๐น A Practical Optimization Framework: In some cases, the diversity of questions is so great that using multiple temperatures does provide a meaningful benefit. For these cases, we show how to discretize the problem and reduce it to a fast, tractable convex optimization task.
All of our results extend beyond temperature to other sampling hyperparameters.
Paper: https://t.co/Bb7eFoIFL2
Remember Dangerous Dave from when we were kids?
Remember when we got stuck around level 7, and for every attempt to figure it out, we had to run through levels 1โ6, just to die on level 7 again, without ever figuring it out?
Well, we remade it, and now you can choose the level!
We also made the game run smoother and added a modern-resolution option that preserves the original look and feel, just with sharper graphics!
Come check it out at https://t.co/NT1Oq0LTJP
@andrewgwils@VrabelJakub and I are currently working on a project that demonstrates how flatness can be a measure that correlates well with generalization, but not a mechanism that produces generalization, precisely because it does not capture the true underlying principle.
@andrewgwils I think that, therefore, it is likely that flatness is a useful tool for describing generalization in generic neural networks, but that it emerges from a more fundamental, parameterization-independent structure.
@DKokotajlo@slatestarcodex@eli_lifland@thlarsen It would be really unfair if there were just one year where AI is smart enough to submit grants and edit LinkedIn for us, but not quite smart enough for it to no longer matter anymore
@Kurz_Gesagt Was this video made in 2010? Don't you see that ML is going to change everything, and this entire speculation is meaningless?
I am sure that today's standard of living could at the very least be maintained by 2060.
And who knows how society and medicine will look by then.