Abstract
While instruction fine-tuned LLMs are effective text generators, sensitivity to prompt construction makes performance unstable and sub-optimal in practice. Relying on a single ‘best’ prompt cannot capture all differing approaches to a generation problem. Using this observation, we propose multi-prompt decoding, where many candidate generations are decoded from a prompt bank at inference-time. To ensemble candidates, we use Minimum Bayes Risk (MBR) decoding, which selects a final output using a trained value metric. We show multi-prompt improves MBR across a comprehensive set of conditional generation tasks, and show this is a result of estimating a more diverse and higher quality candidate space than that of a single prompt. Our experiments confirm multi-prompt improves generation across tasks, models and metrics.
Introduction
Instruction-tuned Large Language Models (LLMs) are notoriously sensitive to prompt phrasing; a slight change in instruction can lead to wildly different outputs. Traditionally, practitioners spend hours on "prompt engineering" to find a single optimal instruction. However, no single prompt can capture the full complexity of a task for every possible input.
Furthermore, standard decoding methods like greedy search or high-temperature sampling have limits. Greedy search often misses high-quality sequences, while high-temperature sampling—used to create a diverse set of candidates for ensembling—eventually introduces too much noise, degrading the quality of the "candidate pool." This paper addresses the challenge of generating a candidate set that is both highly diverse and consistently high-quality.
Methods
The researchers introduce Multi-Prompt MBR Decoding, a framework that shifts from finding the "best" prompt to leveraging a diverse set of them.
As illustrated in Figure 4, the process works in three main stages:
- Prompt Bank Construction: Instead of one prompt, a "bank" of prompts is created. For text simplification and code, human-written seeds are paraphrased by GPT-4. For translation, different sets of in-context examples are used.
- Candidate Generation: Multiple outputs are sampled from the LLM using different prompts from the bank. This explores different "modes" of the model's output distribution—essentially looking at the problem from multiple angles.
- Minimum Bayes Risk (MBR) Selection: To pick the final winner from the candidate pool, MBR decoding is employed. This involves comparing every candidate against every other candidate using a "utility metric" (like LENS for simplification or COMET for translation). The candidate with the highest average similarity to all others is selected as the final output, following the intuition that the best output is the one most consistent with other high-quality hypotheses.
Key Insights and Results
The method was evaluated on three distinct tasks: Code Generation (HumanEval), Text Simplification (SIMPEVAL 2022), and Machine Translation (WMT ’22 EN-CS).
As shown in Figure 1, multi-prompt MBR consistently outperforms single-prompt baselines across all tasks. Key takeaways include:
- Structured Diversity: Unlike standard MBR which relies on high temperature for diversity (often introducing noise), multi-prompting provides "structured diversity." Each prompt guides the model toward a coherent, relevant, but different region of the output space.
- The "No Free Lunch" of Prompts: No single prompt is best for every input. A prompt that fails on 90% of a dataset might produce the absolute best output for the remaining 10%. Multi-prompting captures these "niche" successes.
- Model Scaling: One of the most striking findings was that a smaller model (e.g., 13B parameters) using multi-prompt MBR can outperform a 70B parameter model using standard single-prompt decoding.
- Metric Universality: Improvements are "universal"—the method tends to improve scores across various metrics (like SARI or BERTScore), suggesting a genuine increase in generation quality rather than just optimization for a specific MBR utility metric.
Limitations and Future Work
The primary drawback of this approach is inference cost. Generating and scoring 100+ candidates is significantly slower and more expensive than a single greedy decode. While generation can be parallelized, the pairwise metric calculation for MBR is $O(n^2)$. Future work may focus on more efficient MBR variants, such as using reference-free "rerankers" to prune the candidate set before performing expensive pairwise comparisons. Additionally, the method relies on the quality and diversity of the initial prompt bank; if the seed prompts are poor, the benefits diminish.
Summary updated