Abstract
Minimum Bayes Risk (MBR) decoding has emerged as a superior alternative to Maximum-a-Posteriori (MAP) decoding for high-quality text generation in Large Language Models (LLMs). Despite its empirical success, theoretical foundations for its performance have been lacking. This paper provides the first theoretical guarantees for MBR decoding, establishing a convergence rate of $O(n^{-1/2})$ relative to the number of samples $n$. We derive upper bounds for regret and demonstrate that MBR often outperforms MAP in sample efficiency, particularly as the number of samples increases.
Introduction
In natural language processing, "decoding" is the process of selecting a specific sequence of words from a model's probability distribution. The traditional approach is Maximum-a-Posteriori (MAP) decoding, which seeks the single most likely sequence (the mode). However, MAP often leads to generic or repetitive text.
Minimum Bayes Risk (MBR) decoding takes a different path: it selects the output that maximizes the expected utility (quality) according to a metric like BLEU or BERTScore, calculated against a set of sampled "reference" hypotheses. While MBR consistently wins competitions like WMT, its mathematical convergence properties—how many samples are required to reach an optimal output—have remained unproven until now.
Methodology
The authors establish a formal framework to analyze Regret, defined as the difference in utility between the true optimal output and the one chosen by the decoding strategy. They decompose this regret into four components involving approximation errors from the model distribution and the Monte Carlo sampling process.
To ensure mathematical tractability, the analysis assumes that utility functions can be represented as inner products of embeddings, behave like positive-definite kernels, and are Lipschitz smooth. Using tools from statistical learning theory—including Hoeffding’s Inequality, Rademacher complexity, and Wasserstein distance—they derive upper bounds on the regret for both MBR and MAP decoding.
Key Theoretical Insights
The $O(n^{-1/2})$ Convergence Rule
The most significant finding is that MBR approaches the optimal solution at a rate of $O(n^{-1/2})$. This implies that reducing error by half requires quadrupling the sample size $n$. Crucially, this convergence rate depends on the number of samples rather than the total size of the language space $|Y|$, explaining why MBR is effective despite the astronomical number of possible sentences.
As illustrated in Figure 1, while MAP bounds may initially be lower for very small sample sizes, MBR bounds (solid lines) decay more rapidly. For a fixed training dataset size (e.g., $|D|=500$), MBR eventually provides tighter guarantees as the number of samples $n$ increases.
MBR vs. MAP Sample Efficiency
The paper demonstrates that MBR is often more sample-efficient than MAP. While MAP attempts to find the exact peak of a distribution, MBR identifies a "consensus" high-utility area. This is theoretically easier to achieve when the underlying model distribution is slightly imperfect due to finite training data.
Figure 2 depicts the trade-off between training dataset size $|D|$ and sample size $n$. For any given model quality (determined by $|D|$), there exists a threshold for $n$ beyond which MBR regret is superior to MAP regret. This provides a formal justification for why MBR often produces better results than beam search (a common MAP approximation) in practical applications.
Limitations and Future Work
While providing a rigorous foundation, the current theory relies on utility functions being linear or kernel-based. Modern neural metrics like COMET or Metric-X may deviate from these assumptions. Furthermore, the analysis focuses on random and temperature sampling, leaving the theoretical characterization of strategies like epsilon sampling or beam search for future research. Finally, while this work provides upper bounds, deriving lower bounds will be necessary to prove the absolute tightness of these guarantees.
Conclusion
This work provides the first theoretical proof for the success of Minimum Bayes Risk decoding. By establishing an $O(n^{-1/2})$ convergence rate and formalizing the conditions under which MBR outperforms MAP, the authors provide a robust mathematical framework for understanding and improving modern text generation strategies.
Summary updated