Flashcard: what is self-consistency prompting and what does it produce as a final answer?
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
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.
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.
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.
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.