05 · Ensembling

Try many times, pick the best

05Ensembling

Group 05 · 7 techniques

Ensembling

Try many times. Pick the best. Ask many times, take the most common answer.

Each slide shows one technique: the plain prompt, the same prompt with the technique applied, and what changed. Use the arrows, the keys ← →, or pick a technique on the left.

Self-Consistency

Sample multiple CoT paths at non-zero temperature and take the majority-vote final answer.

Before

Solve with one greedy chain of thought.

After · new words marked

Solve the same problem 40 times with different reasoning paths, then take the most common final answer.

What happened

PaLM-540B on GSM8K: 56.5% to 74.4% (+17.9 points); SVAMP +11.0%, AQuA +12.2%, StrategyQA +6.4%, ARC-challenge +3.9%.

Demonstration Ensembling (DENSE)

Multiple few-shot prompts, each with a distinct exemplar subset; aggregate the outputs.

Before

One few-shot prompt with one exemplar set.

After · new words marked

Run the same question with several different exemplar sets and aggregate the answers.

What happened

Reduces variance across exemplar choices (Khalifa et al. 2023).

Mixture of Reasoning Experts (MoRE)

Diverse 'experts' via specialised prompts per reasoning type; best answer chosen by agreement score.

Before

One reasoning style for everything.

After · new words marked

Use retrieval-augmented prompts for factual parts, CoT for multi-hop/math, generated-knowledge for commonsense, then pick the answer with the highest agreement.

What happened

Handles mixed reasoning types in a single task (Si et al. 2023).

Universal Self-Consistency

Like Self-Consistency, but the majority answer is selected by prompting the LLM with all outputs, not by programmatic counting.

Before

Count identical answers and take the majority.

After · new words marked

Here are several candidate answers: [list]. Which answer is most consistent across them?

What happened

Helps free-form generation where exact-match voting fails (Chen et al. 2023).

DiVeRSe

Multiple prompts per problem, Self-Consistency per prompt, score reasoning paths step-by-step, select the final response.

Before

Vote on final answers only.

After · new words marked

Generate diverse prompts, sample paths per prompt, score each reasoning step, then select the best final response.

What happened

Step-level scoring of reasoning paths (Li et al. 2023).

Consistency-based Self-adaptive Prompting (COSP)

Run Zero-Shot-CoT + Self-Consistency on examples, pick high-agreement outputs as few-shot CoT exemplars, then run Self-Consistency again.

Before

Hand-write CoT exemplars.

After · new words marked

Use the model's own high-agreement outputs as exemplars, then answer with self-consistency.

What happened

Builds few-shot CoT prompts without labels (Wan et al. 2023).

Prompt Paraphrasing

Reword a prompt preserving meaning - data augmentation to generate ensemble prompts.

Before

Use the same prompt 5 times.

After · new words marked

Rephrase the prompt 5 ways, preserving meaning, run each, and aggregate.

What happened

Diverse prompts for ensembling (Jiang et al. 2020).