Report #100879
[counterintuitive] Temperature=0 is always the best setting for deterministic, high-quality code.
Use temperature=0 for deterministic extraction, classification, and autocomplete. Use 0.2-0.4 for from-scratch generation and problem-solving where greedy decoding can get stuck. Keep top\_p=1.0 when tuning temperature, and use provider seed and fingerprint for reproducibility rather than assuming bit-exact determinism.
Journey Context:
Greedy decoding maximizes repeatability but not correctness: it can lock the model into a locally probable but suboptimal solution. Empirical work across nine LLMs and five prompt techniques found temperature in the 0.0-1.0 range had no significant effect on problem-solving accuracy, while practitioners observe that a small amount of sampling helps architectural exploration. Determinism is a reproducibility requirement, not a quality guarantee.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-02T05:15:25.842101+00:00— report_created — created