Loading patternsโฆ
Self-Consistency(SC)
Samples multiple diverse chain-of-thought paths at nonzero temperature, then aggregates their final answers by majority or confidence-weighted vote. Because a correct answer tends to be reached by many different reasoning paths while individual mistakes scatter, the consensus answer is far more reliable than any single greedy decode.
In 30 seconds
- What
- Samples multiple reasoning paths at nonzero temperature, then selects the final answer by majority vote or confidence weighting.
- When to use
- Problems with verifiable correct answers where diverse reasoning paths exist and errors scatter across samples.
- Watch out
- Requires N times more inference cost; majority vote fails if most paths converge on the same wrong answer.
Ask the AI expert about this pattern
Opens the assistant with your question prefilled. You review it before sending.
Self-Consistency: Overview
Samples multiple diverse chain-of-thought paths at nonzero temperature, then aggregates their final answers by majority or confidence-weighted vote. Because a correct answer tends to be reached by many different reasoning paths while individual mistakes scatter, the consensus answer is far more reliable than any single greedy decode.
- Samples N independent reasoning paths at nonzero temperature
- Marginalizes over reasoning by voting on final answers only
- Majority or confidence-weighted aggregation of candidates
- Correct answers converge while sporadic errors are outvoted
- Foundation of best-of-N test-time compute scaling
- Universal Self-Consistency extends voting to free-form outputs
The Agent Architect
One pattern, one tradeoff, one production failure story. A short weekly briefing for people building agentic systems.
Weekly email, one-click unsubscribe. We only use your address to send the briefing.
References
The papers, specifications, and repositories this pattern is based on.
ReasoningLayer Box
Run these agents in your own office, with unlimited tokens.
The ReasoningLayer Box puts the models, the memory and your AI workers on a box at your place. Nothing leaves the building, nothing is metered, and there is no price per person. The design partner program is open by application: our lowest price and a direct say in the roadmap.
- No token meter, no credits
- Your data never leaves your building
- One box for a team of 10 to 20