Flashcard: what is self-consistency prompting and what does it produce as a final answer?
Self-consistency samples N chain-of-thought reasoning chains at temperature > 0 from the same prompt, then majority-votes across the final answers; the most common answer wins.
Imagine asking 20 students to solve a tricky math problem and show their work. Each student takes a slightly different route to the answer because their thinking varies. Some get the wrong answer, but the wrong answers tend to be different from each other (one student forgot to carry the one, another misread the question). The correct answer shows up in many students' work because there are many valid routes to truth. If you count up the final answers and pick the most popular one, you usually pick the right one. Self-consistency does this with an LLM: it runs the same chain-of-thought prompt 20 times with some randomness, then picks the answer that came up most often. It is the wisdom of the crowd applied to one model.
Detailed answer & concept explanation~7 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.
6 min: define self-consistency as sample and vote on CoT, explain the many paths to right answers intuition, name temperature requirement, walk through cost trade, name when it does not apply, explain why production deployment is rare.
Real products, models, and research that use this idea.
- Wang et al.'s 2022 self-consistency paper showed PaLM jumping from 56 percent to 74 percent on GSM8K math word problems by sampling 40 reasoning chains and majority-voting.
- OpenAI's o1 and o3 reasoning models internally use sampling and voting style techniques in their hidden reasoning loop, though the exact mechanism is not public.
- Many research benchmark pipelines (MATH, AIME, GPQA) report self-consistency scores at N=8 or N=32 as a standard reporting metric for comparing models.
- Production teams rarely deploy self-consistency directly; the N times cost overhead usually loses to a frontier reasoning model or to fine-tuning on the target task.
What an interviewer would ask next. Try answering before peeking at the approach.
QHow does temperature setting affect the accuracy gain from self-consistency?
QWhat is the difference between self-consistency and best-of-N with a reward model?
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.
Using self-consistency on open-ended generation tasks; majority voting only works when answers are short and discrete enough to compare.
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.