Course contents
Prompt Ensembling & Voting
Ask several ways and let the answers vote: prompt variants, format mixes and cross-model panels that catch what any single prompt misses, and the blind spots they can't.
Self-consistency varies the sample: same prompt, several runs. Ensembling varies something else, so that the mistakes one setup makes are less likely to repeat in the others. Before the details, sort out which technique varies what.
Match each technique to what it varies.
Pick one on the left, then its partner on the right.
Why varying the prompt helps
Every prompt has quirks: a word that nudges borderline cases, an example that teaches a slightly wrong lesson, a format that invites drift. Those quirks are partly independent across phrasings, so a mistake one phrasing induces often doesn't survive the vote. You're diversifying away prompt-specific risk, the way a portfolio diversifies away single-stock risk. Even three hand-written phrasings with a plain majority vote can steady a flaky classifier.
The research line known as DiVeRSe pushed this further in two directions (Li and colleagues, 2022). First, multiply diversity: several distinct prompts times several samples each. Second, weight the vote: a verifier scores each reasoning path, and trustworthy paths count for more. In production, the verifier can be a second model, a schema check or a test.
Format mixing and cross-model panels
Output format itself biases answers, so asking once for a JSON verdict, once for a prose judgment and once for a table hedges that bias. Cross-model panels go further: pose the question to flagships from different labs, such as Claude Opus 5.5, GPT-6 Astra, Gemini 4 Carbon and Grok 4.7, and compare. The vote is useful; the disagreement is often more useful. Unanimous answers are a cheap confidence signal, and splits flag exactly the cases worth human review.
The moderation panel
You moderate 50,000 posts a day with one classifier. Your budget covers a three-model panel on about 10% of them.
Which 10% get the panel?
The limit: shared blind spots
Votes cancel errors that differ between voters. A blind spot that every variant shares, or that every frontier model shares because they learned from overlapping data, votes unanimously and wrongly. The voting widget in the Self-Consistency lesson assumes independent errors for exactly this reason. An ensemble removes variance, not bias; pair it with the grounding and testing practices around it in this module.
Why can't an ensemble fix a mistake that every one of its members makes?
When it's worth the cost
N variants cost N times as much, so ensembling belongs where the stakes justify it: offline batch classification, labeling eval data, high-impact decisions. It also needs voteable outputs, the same rule as self-consistency. For long-form output, generate a few candidates and let a judge with a rubric pick, which is best-of-N; the next lesson covers how to keep that judge honest.
Plain-English definitions from the AI Coding Dictionary.