Introduction
In Large Language Model (LLM) development, the "decoding" strategy—how text is extracted from a model's probability distributions—is as critical as the model architecture itself. Current practitioners face a persistent trade-off: deterministic methods like Greedy or Beam Search often produce safe but repetitive or "boring" text, while stochastic methods like Nucleus or Temperature Sampling offer diversity at the risk of hallucinations and low-quality outliers. This paper proposes a "middle way" using Minimum Bayes Risk Decoding (MBRD), a strategy that bridges the gap between the safety of search and the creativity of sampling by leveraging the "wisdom of the crowd."
The MBRD Framework
The core intuition behind MBRD is that while a model's errors are often random, its correct or high-quality ideas tend to cluster. Instead of searching for the single most likely sequence, MBRD treats a pool of sampled candidates as an approximation of the true human-generated distribution.
The process follows three distinct stages:
- Generate: A standard sampling method (e.g., temperature sampling) creates a pool of $k$ candidates.
- Compare: A "utility function" measures semantic similarity between every pair of candidates. Unlike traditional MBRD which relied on exact string matching, this approach utilizes modern neural metrics like BERTScore or BLEURT.
- Select: The system selects the candidate with the highest average similarity to all others, effectively acting as a "soft" majority vote.
Scaling and Efficiency
A key finding is that MBRD is a mathematical generalization of majority voting. While simple majority voting is effective for closed-ended tasks (like math), MBRD extends this logic to open-ended creative text by using semantic similarity.
Crucially, the "crowd" does not need to be massive to be effective. The researchers observed that performance gains are substantial even with a relatively small pool of 16 candidates. As the pool size increases, metrics across the board continue to improve, demonstrating a clear scaling law for decoding quality.
Experimental Results
The authors evaluated MBRD across a diverse array of benchmarks, including abstractive summarization (XSUM, CNN/DM), machine translation (WMT’16), and multimodal tasks like image captioning (COCO).
- Significant Improvements: On the XSUM dataset, MBRD yielded 3-7 point improvements in ROUGE and BLEU scores over standard sampling.
- State-of-the-Art Performance: The method achieved new SOTA results on WebNLG and WMT’16.
- Model Agnostic Gains: Smaller models using MBRD, such as Codex, were able to outperform significantly larger models like PaLM 540B on specific summarization and translation tasks.
- Multimodal Success: For image captioning, MBRD with BERTScore significantly improved CIDEr scores compared to traditional beam search.
Limitations and Considerations
Despite its effectiveness, MBRD introduces specific challenges:
- Computational Complexity: The comparison step has $O(k^2)$ complexity. As the pool size $k$ grows, the cost of running neural metrics like BLEURT for every pair becomes significant.
- Base Model Quality: MBRD relies on the underlying model being "decent." If the model's entire output distribution is poor, selecting the "consensus" will not yield high-quality results.
- Latency: Because it requires multiple samples and a comparison matrix, MBRD is inherently slower than greedy decoding, making it less suitable for real-time applications.
Conclusion
MBRD offers a powerful, model-agnostic "drop-in" replacement for standard decoding strategies. By focusing on semantic consensus rather than raw probability, it allows researchers to extract higher-quality, more reliable text from existing LLMs without the need for additional fine-tuning.
Summary updated