Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
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.
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.
What an interviewer would ask next. Try answering before peeking at the approach.
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.