skip to content

In a prompt ensemble, when does weighting beat a plain majority on labels, and what stands in for a vote on free-text answers?

level: seniorimportance: should knowfreq 20%

answer

  1. equal votes, assumed independent
  2. near-duplicates count twice
  3. with three voters, weights rarely flip
  4. free text has nothing to count
  5. fields, source spans, aggregator prompt

basics

~20 s

Weights can help when prompts differ widely in accuracy or duplicate each other, though published results are mixed, so plain majority is a sound start. Free text needs reducing to countable fields or source spans, or an aggregator prompt.

solid answer

~50 s

Plain majority gives every prompt one vote and treats them as independent. Weights can help when accuracies differ widely or two prompts are near-duplicates, but results are mixed. In Arora et al. (2022), weights from 1,000 labeled examples beat majority on one benchmark, 71.4 to 66.0, and lost on another, 81.8 to 87.9. Their unsupervised weak supervision reached up to 8.7 points over majority, and fell at most 1.0 below on 4 of 20 tasks. With three voters, weights only matter if one exceeds the other two combined, or in a three-way split. Free text has no exact matches to count, so reduce answers to something comparable: typed fields, source spans compared by overlap, or classes. An aggregator prompt that reads all answers also works, but it is another call and can introduce claims. Keep disagreement as a review signal.

code

json · 11 lines
json
{
  "field": "noticeDays",
  "answers": [
    {"prompt": "A", "value": 30, "quote": "terminate on thirty (30) days' written notice", "foundInContract": true},
    {"prompt": "B", "value": 30, "quote": "thirty (30) days' written notice", "foundInContract": true},
    {"prompt": "C", "value": 60, "quote": "sixty (60) days before the renewal date", "foundInContract": true}
  ],
  "votes": {"30": 2, "60": 1},
  "result": 30,
  "sendToReview": true
}

go deeper

for a junior

Recall that a majority gives each prompt one vote and needs answers that can be counted. Free text usually cannot be counted directly, because the same answer can be worded many ways.

for a middle

Do the weight arithmetic for three voters and show when a two-against-one split can flip. List ways to make free text countable, such as typed fields and source quotes.

for a senior

Choose a combine step from evidence: what data the weights need, whether prompts are dependent, how a field vote behaves when an answer is ambiguous. Treat a split as a review signal, not only something to resolve.

for a principal

Prefer the simplest combine step that holds up on held-out data, since every fitted weight and aggregator prompt is another artifact to version and re-evaluate after a model change.

## What plain majority assumes A **plain majority** gives each prompt in the ensemble one vote. Arora et al. (2022) point out that it weights all prompts equally and treats them as independent. On their prompts, the gap between best and worst member was 12.1 points when varying demonstrations and 9.6 when varying the template, and error sets overlapped heavily, so both assumptions failed. That is the case for weights. It is not proof that weights will win. ## Options on labels | Scheme | What it needs | What was reported | |---|---|---| | Plain majority | Nothing | The baseline in these comparisons | | Accuracy weights | A labeled set | Arora et al., 1,000 examples: 71.4 against 66.0 on one benchmark, 81.8 against 87.9 on another | | Pick the best prompt | A labeled set | Arora et al.: 68.3 against 65.9 on one benchmark, 62.0 against 66.0 on another | | Weak supervision | Unlabeled outputs of all prompts | Arora et al.: up to 8.7 points over majority, at most 1.0 below on 4 of 20 tasks | | Input-similarity weights | Embeddings and probabilities | Khalifa et al. (2023): helped in every setting they ran | | Boosting-style weights | Labeled error rates | Pitis et al. (2023): under a point, in both directions | **Weak supervision** fits a statistical model of prompt accuracies and dependencies from their outputs alone. All these figures come from one model per study, in 2022 and 2023, so read them as directions. ## When weights can matter Arithmetic limits weights more than most people expect. With three voters, a two-against-one split can only flip if one weight exceeds the other two combined. In the ticket scenario, accuracy weights of 0.905, 0.895 and 0.889 cannot flip one: 0.895 + 0.889 = 1.784, which beats 0.905. They only break three-way ties. More voters or sharper weights leave more room, such as the exponential of the error Arora et al. used with a tuned temperature. Weights therefore tend to earn their keep in these cases: - **Near-duplicates.** Two almost identical prompts count one idea twice. A weak-supervision aggregator that models dependence can discount this, and Arora et al. recovered dependencies on 9 tasks, gaining an average of 2.2 and up to 9.6 points. - **Widely spread accuracy.** A much better member is worth more votes, though then ask whether the other members are needed at all. - **Label-specific strengths.** Arora et al. also saw accuracy vary by class, so a single weight per prompt can miss this. Fit any weights on data separate from your evaluation set, or the score flatters them. ## Why free text breaks the vote A vote counts identical answers. Three prompts extracting a contract's notice clause can give three correct but differently worded strings, so an exact count finds no agreement. Arora et al. themselves report plain majority on their open-ended tasks, since weak supervision is complex with an open output space. ## What stands in for the vote The first three follow from the mechanism and are common practice rather than measured results. 1. **Reduce to typed fields.** Ask each prompt for structured output, such as `noticeDays`, and vote per field. 2. **Anchor to the source.** Have each answer quote the document, drop quotes that are not found, and treat overlapping spans as agreement. 3. **Cluster by meaning.** Group by embedding similarity and take the largest group. Beware that "30 days" and "60 days" can sit close together, so this suits prose better than facts. 4. **Map to classes.** Arora et al. inserted a step that maps an open answer to a valid category. Combined with their format changes, this gave 33.3% and 11.1% lift over few-shot baselines on two classification tasks. 5. **Use an aggregator prompt.** Hand all answers to another prompt that selects or writes the final one. The Prompt Report describes methods of this shape for reasoning outputs. It costs one more call, and a writing aggregator can state something no input said. ## The contract case Suppose three prompts read a contract that holds a termination clause and a separate non-renewal clause. Two quote the first, with 30 days. One quotes the second, with 60 days. All three quotes exist in the document, so the source check passes them. The field vote gives 30, but the split is itself the most useful output: it shows the question could mean two clauses. Route such splits to a reviewer, and refine the prompt to say which clause is wanted.

  • Would you start with weak supervision on a new label ensemble?
    Usually not. Start with plain majority and a tie rule, because it has no fitting step to maintain and the published comparison is mixed. Move to a learned aggregator once held-out data shows unequal accuracies or dependent prompts. Arora et al. report that modelling dependencies added up to 9.6 points, on some tasks.
  • When is an aggregator prompt better than voting on fields?
    When the output is prose whose quality does not reduce to fields, such as a summary. It can select one candidate or merge several. Selecting is safer, since merging can add claims no candidate made. Check the result against the source, and evaluate it with the same held-out set as the alternatives, because it is one more prompt that can fail.

  • Weighting by accuracy is always better than a plain majority.
  • Near-duplicate prompts are harmless because their votes agree anyway.
  • With three prompts, a slightly better prompt's weight can overturn the other two.
  • Exact-string matching works fine for voting on free-text answers.
  • An aggregator prompt cannot add anything the candidate answers did not say.