The Problem With Single-Sample Decisions
When you make one API call and use the result, you are sampling once from a probability distribution. The output might be excellent. It might be one of the model's worst possibilities. You have no way to know.
For low-stakes tasks (draft blog posts, boilerplate code, initial brainstorming), single-sample is fine. For high-stakes tasks (medical classification, legal analysis, critical code paths, financial decisions), single-sample is inadequate.
Self-consistency and ensemble techniques make high-stakes AI decisions more reliable.
---
Technique 1: Self-Consistency Sampling
Generate the same prompt N times (at non-zero temperature) and aggregate the results.
This works because: if the model produces the same answer across 9 out of 10 samples, that answer is more likely to be correct than one produced in a single sample. Variance across samples reveals uncertainty. Consistency across samples indicates confidence.
When to use self-consistency:
- Classification tasks where you need confidence, not just a label
- Numeric estimation where outlier resistance matters
- Any task where a wrong answer has significant consequences
- When you need a measure of the model's uncertainty
Get advanced blueprint resources
Enter your email to receive technical blueprints, checklists, and visual configurations accompanying this chapter.
No spam. Unsubscribe any time.
Cost: N API calls instead of 1. For high-stakes decisions, this is almost always worth it.
---
Technique 2: Multi-Model Ensemble
Use multiple different models and aggregate their outputs. This is more reliable than multiple samples from one model because different models have different error modes β they are unlikely to be wrong in the same way simultaneously.
---
Technique 3: Chain-of-Thought + Self-Consistency
The most powerful combination for complex reasoning:
- Use chain-of-thought prompting to get explicit reasoning in each sample
- Generate N samples with CoT
- Aggregate final answers by majority vote
- Use the reasoning chains to understand why answers differ
---
When Ensemble Is Worth the Cost
| Task | Recommended Approach | Why |
|---|---|---|
| Casual text generation | Single sample | Low stakes, creativity valued |
| Document classification | Self-consistency (5 samples) | Need confidence, moderate stakes |
| Medical triage | Multi-model ensemble | High stakes, different model strengths |
| Financial analysis | CoT + self-consistency | Complex reasoning, high stakes |
| Code for critical paths | Multi-model + human review | Highest stakes |
| Creative brainstorming | Single sample (high temp) | Diversity preferred over accuracy |
The rule: Stakes x Complexity = Sampling investment required.