Module 3 · Turning scores into text

Why temperature zero still gives you different answers

In this lesson

  • 8 min read
  • 5 reading sections
  • Knowledge check
  • Lesson 9 of 10 in this chapter

This chapter’s goalChoose and justify a decoding strategy for a given task, read raw log-probabilities to get a usable confidence signal, force structurally valid output without prompt-begging, and explain why identical requests at temperature zero can still differ.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 6Free · no account needed
Lesson steps

The complaint

Set temperature to 0. Set a seed. Send the same prompt twice. Get two different answers. This is reported constantly as a bug, and it is a genuine property of how these systems run, worth understanding because it changes what you can promise about a product.

Where the randomness is not

First, eliminate the obvious explanations, because they are usually wrong.

Temperature 0 does remove sampling randomness: the implementation takes the highest logit rather than drawing from a distribution. A seed does control any pseudo-random number generator. Neither is the source.

The source is that the logits themselves are not bit-identical between runs.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the AI, Actually Explained exam.

Stuck on something?Ask Anjali, your AI tutor

How to cite: Addaly (2026) ‘Why temperature zero still gives you different answers’, in How a Language Model Actually Works. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/how-llms-work/temperature-zero-is-not-deterministic (Accessed: 29 November 2026).