Why does self-consistency require temperature > 0 and what specifically happens if you set T = 0?
Self-consistency votes across N distinct reasoning paths. At T = 0 the model is deterministic, all N samples are identical, and the vote collapses to a single sample.
Imagine asking ten people the same hard riddle and going with whichever answer the most people gave. That works because each person reasons differently and you get a real majority. Now imagine ten clones of the same person, all thinking in exactly the same way. They will give the same answer every time. There is no real vote, just one opinion repeated. Self-consistency is the first situation, and it needs the model to think a little differently each run. Temperature equals zero turns it into the second situation, with ten identical clones.
Detailed answer & concept explanation~5 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
4 min: softmax with temperature + why greedy is deterministic + how voting collapses + production bug pattern + when N > 1 implies T > 0.
Real products, models, and research that use this idea.
- LangChain's SelfConsistencyChain and DSPy's BootstrapFewShot both expose temperature as a required knob and warn against N > 1 at T = 0.
- Anthropic's Claude Opus 4.7 and OpenAI's GPT-5.5 both expose temperature per request, so a self-consistency wrapper around either model has to pin T explicitly.
- Promptfoo and Braintrust eval harnesses surface T as part of the prompt config so self-consistency runs in eval match prod sampling behavior.
What an interviewer would ask next. Try answering before peeking at the approach.
QWhat is a good rule for picking T in a self-consistency setup?
QWhen does self-consistency stop helping even at T > 0?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Wiring self-consistency on top of an existing T = 0 prompt and never noticing that the vote is across N identical samples, so the pattern is paying N times the cost for one effective sample.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.