Explain why self-consistency requires temperature > 0 and quantify the gain it produces over single-pass CoT on math benchmarks.
A teammate is implementing self-consistency: 'I'll sample N=10 CoT reasoning paths and vote on the final answer. I'm running temperature=0 for reproducibility.' Walk them through why this doesn't work, what temperature to use instead, and the empirical gain they should expect on GSM8K-style math benchmarks. Be specific about the mechanism and the numbers.
Temperature zero produces identical samples, so the vote does nothing; switch to T around 0.7 with N=5 to 10 and expect 10 to 20 points on GSM8K-class benchmarks.
Imagine you ask the same friend to solve a hard puzzle ten times, but you tell them to give the exact same answer every time. You will get ten identical answers. Voting on ten identical answers tells you nothing new. That is what temperature zero does to a language model. Now tell the friend to think about the puzzle freshly each time, allowing their reasoning to wander a little. You will get a mix of answers, with the correct one usually winning the count. Self-consistency only works in the second mode. Forcing it into the first mode by running at temperature zero gives you all the cost of ten attempts with the answer quality of one.
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.
3 min: deterministic decoding kills voting, temperature 0.7 with N=5 to 10 captures most of the lift, GSM8K gain anchors at 10 to 20 points, reproducibility and amplification are two different routes.
Real products, models, and research that use this idea.
- Math-tutoring routes in production agentic apps run N=5 to N=10 self-consistency at temperature 0.7 to catch arithmetic slips that single-pass CoT misses.
- Anthropic Claude Opus 4.7 with extended thinking and OpenAI o-series models internalize part of the self-consistency mechanism via sampling inside the reasoning trace.
- Eval pipelines for GSM8K and MATH-class benchmarks use self-consistency at N=10 as a strong baseline before reporting any single-pass numbers.
What an interviewer would ask next. Try answering before peeking at the approach.
QHow would you adapt self-consistency for tasks without a clean discrete answer?
QHow does seeded sampling change the reproducibility picture?
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.
Setting temperature=0 for reproducibility and then wondering why N=10 self-consistency gives identical accuracy to N=1 at ten times the cost.
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.