skip to content

How does a boosted prompt ensemble pick each new prompt's demonstrations, and when does it fail to beat simpler baselines?

level: seniorimportance: nice to knowfreq 12%

answer

  1. stagewise, like classical boosting
  2. solved only sometimes
  3. at least one correct chain
  4. train-time labels, test-time agreement
  5. weak model, poor self-generated prompts

basics

~20 s

A boosted prompt ensemble grows stagewise: each new prompt is built from problems the current prompts solve only sometimes, with a correct reasoning chain attached. In Pitis et al. (2023) it did not appear to help on the weakest model tested.

solid answer

~50 s

Boosted prompting (Pitis et al., 2023) starts from one prompt and a small labeled set. Each round samples several reasoning chains per problem, keeps problems where at least one chain reached the right answer, takes those with the fewest correct chains, and turns them into a new few-shot prompt. At inference it runs every prompt, samples from each and takes a majority vote. With 100 generations on one large model it beat random bagging on four datasets, for example 63.4 against 61.3 on one algebra benchmark. It is not a universal win. On the weakest model tested it did not appear to help, which the authors attribute to needing a minimum accuracy to self-generate prompts. A test-time version using only the model's own agreement fell below the single-prompt baseline in some rows of the paper's table, and a poor initial prompt lowers everything built from it.

code

pseudocode · 12 lines
pseudocode
function build_boosted_set(initial_prompt, labeled_set, target_size, samples_per_prompt):
    prompts = [initial_prompt]
    chains = empty map from problem to list of sampled chains
    while size of prompts < target_size:
        newest = last item of prompts
        for each problem in labeled_set:
            append samples_per_prompt chains from newest to chains[problem]
        candidates = problems with at least one chain reaching the gold answer
        hard = the 8 candidates with the fewest chains reaching the gold answer
        new_prompt = for each problem in hard, one correct chain, longer preferred
        append new_prompt to prompts
    return prompts

go deeper

for a junior

Recall the one-line idea: each new prompt is built from examples the current set finds hard, and the final answer is a vote across all prompts.

for a middle

Explain what counts as hard: at least one chain correct, but few of them. Say why a problem nobody solves is excluded, and how inference runs every prompt and votes.

for a senior

Name the failures with their mechanisms: a weak model cannot self-generate good prompts, low agreement thresholds admit wrong examples, and hard-example selection can surface bad gold labels. Read past the paper's summary line to its table.

for a principal

Weigh building and refreshing this set against simpler options. It needs labeled data and a rebuild whenever traffic shifts, and published gains over random bagging reach about two points on reasoning benchmarks.

## What it is A **boosted prompt ensemble** (Pitis et al., 2023) is a set of few-shot prompts built one at a time, so that each new prompt covers problems the existing set handles poorly. The idea is adapted from classical boosting, which adds learners stagewise to focus on difficult cases. In contrast, **bagging** here means choosing several few-shot prompts at random. ## How a new prompt is chosen The train-time algorithm needs a small labeled set and an initial prompt. 1. **Sample.** Using the newest prompt, generate several reasoning chains for every problem in the labeled set, and add them to the chains already collected. 2. **Filter.** Keep problems where at least one chain reached the correct answer. A problem no chain ever solves cannot supply a correct chain. 3. **Rank by difficulty.** Prefer problems of intermediate difficulty, where few chains are correct. A problem every chain solves teaches little. 4. **Build the prompt.** For each chosen problem, take one chain that reached the correct answer, and prefer a longer chain by sentence count. The paper's algorithm selects 8 problems per prompt. 5. **Repeat** until the set holds the planned number of prompts. At inference, every prompt generates several chains and a **majority vote** runs over all of them, so this method also uses sampling. The prompt variety is what it adds. The reasoning is that a prompt that does not cover a problem tends to fail in scattered ways, while one that covers it tends to converge on the right answer. ## Train-time and test-time versions | | Train-time | Test-time | |---|---|---| | Needs | A small labeled set (50 to 300 samples in the paper) | No labels | | Correct means | Matches the gold answer | Enough samples agree, above a threshold | | Output | A set of prompts for later use | Prompts plus test predictions | | Weakness | Labeled set may not match live data | Selected problems skew easier | The threshold creates a real tension. High agreement means an answer is likelier correct, but such problems are ones the model already solves. The paper shows that setting it too low greatly cuts performance. Its main runs used 0.8 for multiple-choice and 0.7 for open-ended datasets. ## What was measured Table 1 used 100 generations (10 samples from each of 10 prompts) on one large pretrained model, averaged over 3 seeds. These are the small-training-set results. | Dataset | One prompt, 100 samples | Random bagging | Boosted | |---|---:|---:|---:| | AQUA | 57.0 | 61.3 | 63.4 | | GSM8K | 81.0 | 83.2 | 85.2 | | MMLU570 | 70.2 | 70.4 | 71.2 | | CMATH420 | 36.8 | 36.5 | 38.7 | Splitting the same budget differently (10x10, 20x5, 33x3, 50x2) moved AQUA only between 62.6 and 63.4, and weights on members moved results by under a point in both directions. These are 2023 results on reasoning benchmarks, so they do not transfer automatically to a newer model or a classification task. ## Where it fails - **A weak base model.** On the weakest model tested, boosted prompting scored 14.2 against bagging's 18.5 on AQUA and about level on GSM8K. The authors hypothesise that a minimum accuracy is needed to self-generate useful prompts. - **Too little annotation.** The paper's summary says boosting improves at every annotation level, but its own table shows the test-time version at 68.1 against 70.2 for the single-prompt baseline on MMLU570, and at 29.8 against 30.2 on CMATH420 with no annotation. - **A bad starting prompt.** Worse initial prompts lead to worse results, since later chains are self-generated and the initial prompt stays in the set. - **Distribution shift.** CMATH420's labeled set had only 71 easy problems and differed from its test set, and there the test-time version beat train-time. Two further risks follow from the mechanism and are not paper findings. Ranking by difficulty can favour mislabeled examples, so audit the gold answers of selected problems. A set built on last quarter's tickets also encodes last quarter's hard cases. ## Not the same as PromptBoosting **PromptBoosting** (Hou et al., 2022) has a similar name but a different target. It uses a small pool of unoptimized prompts, pairs each with different mappings from output tokens to classes, and combines those weak learners with AdaBoost. Pitis et al. note that it does classification through single tokens, while their method targets answers that follow a reasoning chain.

  • How would you judge a boosted set on a ticket classifier with no reasoning chains?
    The published algorithm targets chains, so treat this as an adaptation and test it. Difficulty can come from how many samples or prompts get the gold label on a labeled set. Compare the result on held-out tickets against random demonstration sets at equal calls, because random bagging is the baseline it has to beat.
  • Why does the test-time version tend to do worse than the train-time version?
    Without labels, it treats high-agreement answers as correct. Agreement is also its signal for difficulty, so the problems it can trust are the ones the model already solves, and it selects easier examples. Pitis et al. note this tension and generally find train-time ahead, though it can help when test data differs from training data.

  • Boosted prompting picks problems that no sampled chain ever solves.
  • Classical boosting weights are what give boosted prompt ensembles their gain.
  • Boosted prompts beat random bagging regardless of how weak the base model is.
  • Boosted prompting needs no sampling, since prompt variety replaces it.
  • Boosted prompting and PromptBoosting are two names for one algorithm.