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

  1. The model answers the same question several times with a chain-of-thought prompt at a temperature above zero.
  2. The final result, such as a number or option, is extracted from each answer.
  3. The most frequent result is chosen; a shared result across different paths is treated as reliable.
  4. 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

TermHow it differs
Tree of thoughtsTree 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 ensemblingModel 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.

ON-PREMISES EXAMPLE

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.

Sources

In the glossary: Glossary, R to Z

What does this term mean for your infrastructure?

We can work out together in a technical assessment how it maps onto your data, hardware and security requirements.

Request a technical assessment →

This site sets no cookies. Visitor numbers are counted in aggregate using a cookieless method that does not identify anyone. See the Privacy Policy for details.