Ask AI the same question multiple times. The answer that shows up most often is usually the right one.
When you ask AI a hard question, it might reason its way to the right answer — or it might take a wrong turn somewhere. The thing is, wrong turns are usually random. Ask it again, and it'll probably take a different path.
Self-Consistency exploits this. Ask the same question five or ten times, let AI reason through it independently each time, then see which final answer comes up most often. Random mistakes cancel out. The correct answer tends to survive.
This composition runs multiple instances of:
Think Step by StepEach attempt uses step-by-step reasoning (Chain-of-Thought). Self-Consistency adds the layer of doing it multiple times and voting on the result.
A baker makes 45 muffins. Sells 12 in the morning, gets a return of 3, then sells 8 more in the afternoon. A new batch of 20 comes out of the oven. How many muffins are there now?
Path 3 made an arithmetic mistake (36 − 8 = 27 instead of 28). But it didn't matter — the other four paths got it right, and the majority vote caught the error automatically.
Hard problems can be solved multiple ways. When AI reasons through a problem, it might add numbers in a different order, group things differently, or take any of several valid paths to the answer. Most paths lead to the right answer. The occasional wrong path makes a random error.
Since errors are random — one attempt might slip on subtraction, another might misread a step — they don't all make the same mistake. The correct answer keeps showing up, while wrong answers scatter. Majority voting filters out the noise.
It's the same principle behind asking five friends for directions. If four say turn left and one says turn right, you turn left.
Run the same question through step-by-step reasoning multiple times. Take a majority vote on the final answers. Random errors get outvoted. The correct answer survives.
Five attempts gives a solid boost. Ten is better. But the gains shrink after that — going from 10 to 20 helps much less than going from 1 to 5.
Five attempts costs five times as much. Use this when accuracy matters enough to justify the extra cost, not for casual questions AI already handles well.
Self-Consistency builds directly on Think Step by Step. Where that technique asks AI to reason once, Self-Consistency asks it to reason many times and uses the crowd wisdom of its own attempts.
It pairs well with Show by Example — you can give AI examples of step-by-step reasoning and then run multiple attempts with voting for even better results. It's also a foundation for more advanced compositions like Active Prompting, which uses Self-Consistency to find the questions AI struggles with most.