Sample N reasoning paths at temperature > 0, take the majority vote on the final answer; without temperature there is no diversity and voting collapses.
Imagine you have a friend who is mostly right but sometimes makes silly mistakes. If you ask them the same hard question once, you might catch them on a bad guess. If you ask them five times in slightly different ways and they say the same answer four out of five times, you trust the four. Self-consistency does that with a language model. It asks the model to solve the same problem several times, lets the reasoning wander a little each run, and takes the answer that shows up most often. The trick that makes the runs differ is temperature. At temperature zero the model always says exactly the same thing, so all your runs collapse into one and the voting does nothing.
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: vote over samples mechanism, temperature prerequisite, the N curve, task-fit boundary, and how reasoning models absorb the pattern.
Real products, models, and research that use this idea.
- Math-tutoring routes in production LLM 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 some of the self-consistency mechanism at the model layer via sampling within the reasoning trace.
- Eval pipelines for multi-step QA benchmarks use self-consistency as a strong baseline before reporting any single-pass numbers.
What an interviewer would ask next. Try answering before peeking at the approach.
QWhy does the marginal accuracy gain flatten past roughly N=10?
QHow would you adapt self-consistency for free-form generation tasks?
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.
Running self-consistency at temperature zero for reproducibility; the deterministic sampling kills diversity and the N samples collapse to one with zero voting signal.
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.