Are two identical calls to an LLM guaranteed to return the same output? Why does this matter?
Quick-fire answer from the Awesome Generative AI Guide (MIT)
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
No. At temperature 0 the sampling is greedy and largely deterministic, but you still get run-to-run variation from floating-point non-associativity across batched GPU kernels, from mixture-of-experts routing that depends on what else is in the batch, and from silent provider-side model updates. This matters because it breaks naive caching and testing, and because a feature that "worked yesterday" can drift with no code change on your side. You manage it by pinning model versions where the provider allows, keeping a regression eval, and designing so small output variation does not break downstream parsing (validate structured output, do not string-match).
Full worked answer
No. At temperature 0 the sampling is greedy and largely deterministic, but you still get run-to-run variation from floating-point non-associativity across batched GPU kernels, from mixture-of-experts routing that depends on what else is in the batch, and from silent provider-side model updates. This matters because it breaks naive caching and testing, and because a feature that "worked yesterday" can drift with no code change on your side. You manage it by pinning model versions where the provider allows, keeping a regression eval, and designing so small output variation does not break downstream parsing (validate structured output, do not string-match).
Learn more: Production topic
What a good answer covers
- At temperature 0 the sampling is greedy and largely deterministic, but you still get run-to-run…
- This matters because it breaks naive caching and testing, and because a feature that "worked yesterday"…
- You manage it by pinning model versions where the provider allows, keeping a regression eval, and…
Key terms: Learn more
In the glossary: Temperature · Drift · Structured output
Quick-fire answer from the Awesome Generative AI Guide (MIT) · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep