Report #86680
[counterintuitive] Why do I get different outputs from the same prompt at temperature 0?
Do not build pipelines that assume exact reproducibility at temperature 0. If determinism is required, use the seed parameter \(where available\) and log all generation parameters. Design systems to be robust to minor output variation.
Journey Context:
The widespread assumption is that temperature 0 means 'always pick the most likely token, therefore outputs are deterministic.' In practice, GPU floating-point arithmetic is non-associative — parallel reductions in the softmax computation can produce slightly different probability values across runs on different hardware or even the same hardware. These tiny differences can flip which token has the highest probability at a critical step, causing output divergence. The correct mental model: temperature 0 makes sampling greedy, but greedy selection over approximate probabilities is not deterministic. OpenAI explicitly documents this and provides the seed parameter as a partial mitigation.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T04:04:45.827337+00:00— report_created — created