Self-Consistency
Self-consistency is a decoding strategy that raises reasoning accuracy: it samples several different reasoning paths for one question and takes a majority vote on final answers. It sits at the method layer of inference and is among the most classic, simple and effective enhancements after Chain-of-Thought.
Core Principles
It rests on an observation: complex problems have several paths to the correct answer, while wrong answers scatter. With greedy decoding, one bad step ruins everything; sampling several chains at higher temperature makes correct derivations converge on one answer while errors point elsewhere, so the most consistent answer is likely correct.
The process has three steps. First, build a prompt with reasoning examples, a CoT prompt of "question, reasoning, answer" exemplars. Second, sample N times independently at temperature 0.5 to 1.0 and top-p around 0.95, sharing no context (N is usually 5, 10, 20 or 40), each giving a full chain and an answer. Third, aggregate: extract each answer into a uniform number, option or entity, take a majority vote, and treat the vote share as confidence.
It needs no training, labels or weight changes, turning one reasoning pass into several plus voting, so it fits any model and is a typical test-time scaling idea: more compute for more reliability.
Key Points
First, the problem must have a unique answer: math, logic, multiple choice and factual QA fit, while open writing, subjective review and diversity-seeking tasks do not, lacking a discrete answer to vote on. Second, CoT must come first; direct answers are highly correlated across samples, so voting wastes compute.
Third, sampling parameters set the gain: too low a temperature makes chains identical, too high degrades reasoning; start around 0.7. Fourth, cost is linear: N=20 means 20 times the overhead, so production uses confidence-based early stopping, ending once an answer passes half the votes or leads clearly, and for checkable tasks such as math, groups by intermediate step and resamples only close groups.
Fifth, voting granularity must be reasonable: normalize answers ("3/4" and "0.75," "A" and "option A") or format differences split votes; advanced options include weighted voting by log probability or self-score, and chain-of-verification checking each chain.
Sixth, not every model benefits: gains narrow on strong reasoning models and are largest on small, weak ones, so it often compensates for using a cheap model, where N runs may still cost less than one strong run; when one call already answers correctly, the gain is mainly reliability and confidence.
Common Misconceptions
Misconception one: more sampling alone helps, without CoT. Misconception two: majority voting on open generation, yielding the most mediocre answer and flattening diversity. Misconception three: inconsistent formats breaking the vote. Misconception four: repeating a greedy call and calling it sampling, when the results are identical. Misconception five: N too small, where two wrong chains beat one right chain at N=3, or N large with temperature near 0, where dozens of runs buy one deterministic answer.
Application Scenarios
Math solving, logic evaluation, multiple-choice QA, fact verification, code output checks, table value extraction, medical and financial decision support, capability benchmarks, complex rule determination, multi-step reconciliation, exam evaluation, and cross-table numerical checks.