What is self-consistency?
Self-consistency is a decoding method sampling several different chain-of-thought reasoning paths from a language model for the same question and choosing the most frequent final answer among them; it rests on the intuition that a complex problem can reach the same correct answer by different routes.
Unlike best-of-N sampling, which scores candidates with a reward model or verifier, self-consistency takes a majority vote over answers without an extra model. Chain of thought produces one reasoning path; self-consistency multiplies it.
- Topic
- Prompts, context, reasoning and generation
- Also known as
- Self-consistency decoding, majority voting
- Origin
- Wang et al., 2022
How self-consistency works
- The model answers the same question several times with a chain-of-thought prompt at a temperature above zero.
- The final result, such as a number or option, is extracted from each answer.
- The most frequent result is chosen; a shared result across different paths is treated as reliable.
- Agreement rate among answers can also signal the model's confidence.
In more detail
Universal self-consistency for free-form text
Standard self-consistency requires extracting canonical final answers (such as numbers or multiple-choice labels), which fails on free-form generation. Universal Self-Consistency (USC) solves this by feeding all sampled candidates into an LLM prompt that identifies the response most consistent with the majority of other candidates.
Weighted voting and adaptive early stopping
Instead of unweighted majority voting, weighted self-consistency weights each reasoning path by log-probabilities, step-level Process Reward Model (PRM) scores or length or format checks. Furthermore, adaptive self-consistency (early-stopping sampling once a clear lead emerges) can cut average token cost substantially with little loss of accuracy.
Correlated failure: consensus is not correctness
Majority agreement measures model consistency, not ground-truth correctness. If a model lacks domain knowledge or falls for a misleading prompt premise, multiple sampled paths can converge confidently on the exact same hallucination or calculation error (correlated failure).
Parallel self-consistency and reasoning models
In reasoning-native models (such as o1 and o3, DeepSeek-R1 and Qwen3 thinking modes), sequential internal reflection replaces part of naive parallel sampling. Nevertheless, parallel majority voting (consensus@k) over multiple thinking trajectories remains a standard lever in high-stakes verification and benchmark evaluation.
Commonly confused terms
| Term | How it differs |
|---|---|
| Tree of thoughts | Tree of Thoughts (ToT) explores and prunes intermediate reasoning branches dynamically via search (BFS/DFS) and state evaluation, whereas self-consistency independently samples full reasoning paths in parallel and only aggregates their final answers. |
| Model ensembling | Model ensembling aggregates predictions across different model families or checkpoints, whereas self-consistency aggregates multiple stochastic samples drawn from the same model. |
Why self-consistency matters for on-premises AI
Self-consistency improves reasoning by spending more compute at inference without retraining. The 2022 paper proposing it reported gains over chain-of-thought prompting of 17.9 percentage points on maths word problems and 3.9 to 12.2 points on other arithmetic and commonsense benchmarks. The cost is that each question needs several full answers, multiplying token use; latency grows too unless answers run in parallel. It works best where answers are short and comparable; for free text a majority is hard to define.
An insurer's assistant checking policy coverage calculations samples several reasoning paths per question; if most paths do not agree on the same amount, the question goes to a specialist rather than being answered automatically.
Common questions
Does self-consistency require retraining?
No. Several answers are sampled at inference and a majority vote taken.
Does self-consistency work for every task?
It works best where answers are comparable, such as numbers or options. For free text a majority is hard to define.
Related terms
Sources
- Wang et al., Self-Consistency Improves Chain of Thought Reasoning in Language Models, 2022
- Wei et al., Chain-of-Thought Prompting Elicits Reasoning in Large Language Models, 2022
In the glossary: Glossary, R to Z