Prompt Ensembles: Combining Multiple Instructions to Improve Stability
A prompt ensemble applies several differently worded instructions to the same input, then compares or combines their results into one output. It uses the fact that instruction wording can lead a model to consider different aspects of a task. However, it adds calls and decision steps, and the results may share the same bias. It is therefore a design choice to test against a single prompt, not a rule that generating more answers makes a system more accurate.
Prompt Ensembles: Combining Multiple Instructions to Improve Stability
A prompt ensemble applies several differently worded instructions to the same input, then compares or combines their results into one output. It uses the fact that instruction wording can lead a model to consider different aspects of a task. However, it adds calls and decision steps, and the results may share the same bias. It is therefore a design choice to test against a single prompt, not a rule that generating more answers makes a system more accurate.
What changes when you use several prompts?
A language model may answer the same question differently depending on the instruction, examples, or requested output format. For example, for a refund inquiry, one prompt might ask whether the policy permits a refund. Another might ask the model to extract the purchase date and item condition before checking the same refund criteria. Both use the same label set, but they may draw attention to different clues or elicit different reasoning paths.
An ensemble tries to account for this variation instead of relying on a single answer. But different outputs do not automatically provide more information. Prompts that differ only slightly can still share the same model bias, source material, and evaluation error. A majority of outputs can therefore repeat the same mistake. Design prompt diversity for the task, and choose a combination method that fits the output type.
How is an ensemble different from similar methods?
| Method | What is varied or repeated? | How the results are used |
|---|---|---|
| Prompt ensemble | Different task instructions or perspectives are applied to the same input | Results from multiple prompts are combined |
| Self-consistency | Usually, one prompt is sampled multiple times with varied stochastic decoding | Normalized final answers may be combined by majority vote |
| A/B prompt experiment | Different prompts are compared | Evaluation results are used to choose one version to deploy |
| Model ensemble | Results from multiple models are combined | Model outputs are combined by voting, weighting, or a verifier |
As covered in the separate Self-Consistency article, self-consistency samples multiple paths from one instruction. A prompt ensemble changes the instructions themselves. The two can be combined, but costs can rise quickly because prompt count and sample count multiply. An A/B experiment evaluates which prompt is better; it is not an operating method that combines multiple answers on each request.
What forms can a prompt ensemble take?
The simplest form is post-generation aggregation. Each prompt returns an answer independently. For classification, you can normalize the labels and use majority voting or a validated weighted vote. For free-form text, simply concatenating answers or voting by surface similarity can introduce contradictions, repetition, and unsupported claims. Use an explicit selection criterion or a separate verification step instead.
A more specialized approach, token-probability aggregation, combines the next-token probability distributions assigned by multiple prompts before generating the next token. This usually requires access to token probabilities or logits and an implementation that supports batched inference. If an API returns only final text, this approach may not be available. Do not confuse it with combining completed responses.
Other variants apply diverse instructions to the same model in parallel, estimate prompt-specific weights from validation data, or use different models. They require different data and API access. The label “ensemble” does not imply that all these methods share the same implementation.
How can you design one for a small classification task?
Consider this hypothetical example: classify a customer inquiry as refund eligible, refund ineligible, or insufficient information. Actual decisions must follow the service’s own policy.
**Fix the decision rules.** Define each label and specify what to do when required evidence is missing. For example, if the purchase date is absent, do not guess; return `insufficient information`.
**Create prompts with distinct roles.** One prompt focuses on applying policy conditions. Another extracts the purchase date, item condition, and exception grounds before mapping the same inquiry to the same labels. Give each prompt the same source text, policy version, and label definitions.
**Use a comparable output format.** You might request JSON fields such as `label`, `supporting_facts`, and `missing_facts`. Do not count malformed outputs as valid votes. Route them to a defined retry, review, or hold path.
**Set the aggregation rule in advance.** For a simple classification, use majority vote among valid labels. If the vote is tied or required facts conflict, use a conservative rule such as `insufficient information` or human review.
**Compare with a single-prompt baseline on the same evaluation set.** Measure not only labels but also costly errors, such as an incorrect refund approval, handling of missing information, format errors, latency, token use, and call cost. Check whether the difference matters for the operational goal.
This example illustrates a design, not a test result for a particular policy or model.
How should prompt diversity and aggregation be evaluated?
If you write prompts and keep only the best examples from the same evaluation set, you may overfit to that set. Keep separate data for prompt development, weight adjustment, and final comparison. Include cases that represent production inputs and important edge cases. Record the exact model version, system instructions, examples, and generation settings so you can reproduce the evaluation.
For classification, look beyond accuracy. Review per-class precision and recall, the confusion matrix, and the cost of each error type. Also measure whether insufficient information becomes so common that the system loses usefulness. If the model returns probabilities or confidence scores, evaluate their calibration separately. Agreement among prompts is not, by itself, a calibrated probability.
For free-form answers, it may be safer to score each candidate against explicit criteria and select one, or compare claims with their supporting sources, than to combine the texts into one response. A selector should check the original evidence and required conditions. The selector can also make mistakes, so separately evaluate the final answer’s factuality, completeness, and format.
What are the costs and failure risks?
If each request runs k prompts, model calls and input processing in a simple parallel-response design grow roughly with k. Actual latency depends on concurrency, provider batching, and rate limits; parallel execution is not always cheaper or faster. Include any additional call used to select or verify the final result in the cost calculation.
Voting offers little benefit when results are highly correlated. Asking the same model nearly identical questions, or giving every prompt the same biased examples, can produce a majority of identical errors. Prompts that differ too much may apply inconsistent criteria, making a vote unfair. Useful diversity means directing attention to different relevant clues under the same task rules, not merely changing wording for its own sake.
Avoid or limit an ensemble in these cases:
If a single prompt already rarely fails and additional calls are expensive, first evaluate whether an ensemble is needed.
For decisions with serious consequences, such as safety, legal, medical, or financial outcomes, do not treat a vote as a safety control. Add qualified review and rule-based checks.
Sending sensitive input through several processing paths can increase the amount of data handled. Review each provider’s processing terms and your logging policy.
If prompts use different label definitions or policy versions, align the criteria before combining results.
If users could mistake agreement for certainty, distinguish agreement rate from actual uncertainty in the interface.
How should you decide whether to adopt one?
Start by collecting the single-prompt failure modes. Prompt ensembles cannot fix missing knowledge, stale information, or bad retrieval results just by rephrasing the same request. They may be worth a controlled evaluation when the main problem is sensitivity to wording or clues missed from one perspective.
Build a single-prompt baseline on identical inputs. Start with a small number of prompts, fix the aggregation rule, and compare both errors and operating costs on held-out data. Deploy only if quality gains hold across repeated evaluation and meet call-budget, latency, and privacy constraints. If results are similar or introduce riskier errors, improve the base prompt, retrieval, input validation, or human review instead.
Do research results provide a general guarantee?
A 2024 BayesPE study used validation-data-based weights for semantically similar task instructions to estimate uncertainty in black-box models. The authors reported better calibration than comparison methods across the classification tasks they studied. This is a result under those experimental conditions, not an operational guarantee for arbitrary work. Original paper
A 2025 DIPPER study proposed a training-free method that uses diverse prompts in parallel to vary mathematical reasoning paths. On a specific MATH evaluation, the authors compared an ensemble of three Qwen2-MATH-1.5B instances with a larger single model. The M-Ped study evaluated a different method that combines token distributions across prompts on code generation, text simplification, and machine translation. Both papers concern specific models, tasks, and baselines; neither guarantees improved accuracy or lower cost on general service traffic. DIPPER original paper, M-Ped original paper
References
Tonolini et al., “[Bayesian Prompt Ensembles: Model Uncertainty Estimation for Black-Box Large Language Models](https://aclanthology.org/2024.findings-acl.728/)”, Findings of ACL 2024.
Hu et al., “[Dipper: Diversity in Prompts for Producing Large Language Model Ensembles in Reasoning Tasks](https://aclanthology.org/2025.emnlp-main.1801/)”, EMNLP 2025.
Guo et al., “[M-Ped: Multi-Prompt Ensemble Decoding for Large Language Models](https://aclanthology.org/2025.findings-emnlp.906/)”, Findings of EMNLP 2025.
Wang et al., “[Self-Consistency Improves Chain of Thought Reasoning in Language Models](https://aclanthology.org/2023.acl-long.569/)”, ACL 2023.
References
- Bayesian Prompt Ensembles: Model Uncertainty Estimation for Black-Box Large Language Models
- Dipper: Diversity in Prompts for Producing Large Language Model Ensembles in Reasoning Tasks
- M-Ped: Multi-Prompt Ensemble Decoding for Large Language Models
- Self-Consistency Improves Chain of Thought Reasoning in Language Models