# Self-Consistency (Prompting)

> Ask the same question many times. Keep the answer most runs agree on.

**Field:** Artificial Intelligence  
**Category:** Working with AI  
**Also known as:** Self-Consistency Decoding, Majority Vote Prompting

## Think of it like

It is like asking five friends the same sum. You trust the answer most of them give.

## Definition

Self-consistency is a way to get better answers on hard questions. You ask the model the same question many times. Each time it works the steps out in its own way. Then you count the final answers and keep the one that shows up most. A wrong path tends to land on a different answer each time. A right path tends to land on the same one.

## Example

The 2022 paper that named it tested school math problems. Taking a vote over many answers lifted the score by 17.9 points over a single answer.

## Why it matters

It turns a model's randomness into a strength. It works best when there is one right answer to check.

## Common mistake

Using it for open writing, like a poem. There is no single answer to vote on there.

## Three principles

- **Many runs.** The same question, asked again and again.
- **Count the answers.** The most common one wins.
- **Costs more.** Ten runs cost ten times the tokens.

## Related terms

- [Chain-of-Thought Prompting](https://learn.benibix.com/term/ai/chain-of-thought-prompting)
- [Tree of Thoughts (ToT)](https://learn.benibix.com/term/ai/tree-of-thoughts)
- [LLM Temperature](https://learn.benibix.com/term/ai/temperature)
- [LLM Sampling](https://learn.benibix.com/term/ai/sampling)
- [Reasoning Model](https://learn.benibix.com/term/ai/reasoning-model)

## Taught in

- [Chain-of-Thought Prompting](https://learn.benibix.com/learn/ai-working-with-ai/chain-of-thought-prompting): Prompt Engineering, 7/16

![Three panels. Chain of thought: one line of steps from the question to one answer. Self-consistency: five lines from the question, landing on 8, 8, 6, 8 and 9, with a vote picking 8. Tree of thoughts: a question branching into three steps, two crossed out, the third branching again to reach the answer.](https://learn.benibix.com/diagrams/ai3-reasoning-paths.svg)

---

Source: https://learn.benibix.com/term/ai/self-consistency
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-18
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
