PromptForge
AI Glossary

Prompting techniques

Self-consistency

Also known as: majority voting

Definition

Self-consistency runs the same reasoning prompt several times at non-zero temperature and takes the most common answer. It trades cost for accuracy on problems with a single verifiable result.

The insight is that incorrect reasoning tends to fail in varied ways while correct reasoning converges. Sample five chains of thought for an arithmetic problem and the right answer will often appear more frequently than any individual wrong one, even when a single run is unreliable.

It only applies where answers can be compared for equality — numerical results, classifications, extracted fields. It does not work for open-ended generation, where five good essays are simply five different essays.

Cost scales linearly with sample count, so this is a technique for high-stakes, low-volume decisions rather than bulk processing.

Related terms

Put this into practice

Understanding the term is step one. Our free courses and tools let you actually use it.