Skip to content

AI Glossary · Concepts

What is Self-Consistency?

Self-Consistency

Self-consistency is a technique that asks a language model the same question several times, lets it reason differently each time, and keeps the final answer that comes up most often, instead of trusting a single response.

Also known as: self-consistency decoding, self-consistency prompting

· Chain of Thought

Model Architecture

  • 1 explainer
  • 1 source

Suppose you ask a model a word problem five times, with some randomness switched on. It works through the problem differently each time and answers 42, 42, 40, 42 and 38. Self-consistency picks 42, the majority. The idea is that a hard problem usually has several valid ways to reach the right answer, while mistakes tend to scatter across different wrong answers (Wang et al.).

Wang and colleagues introduced it as a replacement for taking the single most likely chain of thought. On arithmetic and commonsense benchmarks it improved accuracy, including 17.9 points on the GSM8K math set in their experiments (Wang et al.). The variety comes from sampling: temperature or top-p sampling must allow different outputs, or every run will say the same thing.

It works best when answers are short and easy to compare, such as a number, a multiple-choice letter or a category label. For an essay or a block of code there is no simple majority, so teams use a judge or tests to pick among candidates instead; pass@k measures a related idea for code. The cost scales with the number of samples, which makes it one of the plainest forms of test-time compute. Agreement is also not proof: if a model is consistently wrong, the vote is confidently wrong, so check self-consistency against labeled examples before relying on it.

Sources

Go deeper