Introduction
Minimum Bayes Risk (MBR) decoding has emerged as a premier strategy for high-quality Neural Machine Translation (NMT). Unlike traditional Maximum A Posteriori (MAP) decoding methods, such as beam search, which focus on finding the single most probable sequence, MBR decoding identifies the translation that maximizes expected utility across a distribution of potential candidates. By selecting the hypothesis with the highest average similarity to a set of "pseudo-references," MBR consistently outperforms MAP in human evaluation and neural metric scores.
However, the computational cost of MBR is significant. For a set of $N$ candidate translations, standard MBR requires $O(N^2)$ comparisons. When utilizing modern neural metrics like COMET—which require expensive GPU-based inference for every comparison—this quadratic complexity becomes a prohibitive bottleneck. As researchers scale $N$ to 1,000 or more to capture better translation quality, the latency makes real-time application impossible. This paper introduces Centroid-Based MBR (CBMBR), a method that reduces the complexity of the scoring phase to $O(Nk)$ by leveraging feature-space clustering.
Methodology
CBMBR optimizes the MBR process by grouping similar translation hypotheses and comparing candidates against cluster representatives rather than every individual reference. The process follows four primary steps:
- Encoding: All $N$ translation candidates are transformed into high-dimensional vectors using the internal encoder of a neural metric (e.g., the XLM-RoBERTa component of COMET).
- Clustering: The vectors are grouped into $k$ clusters using the $k$-means++ algorithm. Here, $k$ is a small constant (e.g., 64) significantly smaller than $N$.
- Centroid Calculation: For each cluster, a "centroid" vector is calculated, representing the average semantic embedding of all sentences within that group.
- Efficient Scoring: The expected utility of a hypothesis is calculated by comparing its vector only to the $k$ centroids, rather than the original $N$ references.
This approach rests on a "linearity assumption": that the score of an average vector is a reliable proxy for the average of individual scores. The authors validated this by testing the COMET encoder on semantic similarity benchmarks (STS-B), confirming that the feature space is sufficiently structured for centroid-based approximation.
Experimental Setup
The researchers evaluated CBMBR using the WMT general tasks from 2021, 2022, and 2023, covering language pairs including English to/from Japanese, German, and Chinese. Two primary scenarios were tested:
- Diverse Candidates: 1,024 translations generated from a single model via epsilon sampling.
- Multi-system: 900 translations pooled from nine different translation models to simulate an ensemble selection scenario.
Key Results and Insights
Speed and Efficiency
CBMBR achieved a 5.7x speedup in the expected utility calculation phase compared to vanilla MBR. When accounting for the entire pipeline—including the initial encoding of sentences—the method remained 1.8x faster overall. The authors identified $k=64$ as the optimal balance between computational efficiency and translation quality, though $k=16$ still remained competitive with the baseline.
Translation Quality and De-biasing
Surprisingly, CBMBR did not just match vanilla MBR; in multi-system settings, it improved quality by up to 0.5 COMET points. This is attributed to a de-biasing effect. Vanilla MBR is "democratic," meaning if one model produces many minor variations of a mediocre translation, those variations can collectively "outvote" a superior translation from a different model. By clustering similar ideas first, CBMBR treats groups of similar hypotheses as single units, making the selection process more robust to distributional imbalances.
Parallelism
Unlike iterative pruning methods that discard hypotheses in stages—making them difficult to parallelize—CBMBR’s clustering and centroid scoring can be easily offloaded to GPU kernels. This makes the approach highly compatible with modern hardware acceleration.
Limitations
Despite its advantages, CBMBR faces several challenges:
- The Encoding Bottleneck: While the $O(N^2)$ comparison is solved, the initial $O(N)$ encoding step remains. For extremely large values of $N$, the time taken by the XLM-R encoder to process every sentence becomes the primary bottleneck.
- Metric Specificity: The current implementation is optimized for COMET. While theoretically applicable to other neural metrics like BLEURT, it is not yet adapted for non-neural metrics (e.g., BLEU or ChrF) that do not rely on continuous vector embeddings.
- Hardware Dependency: Performance gains were benchmarked on NVIDIA A100 GPUs; speedups may vary based on specific hardware architectures and batch size configurations.
Conclusion
Centroid-Based MBR offers a scalable path forward for high-quality NMT decoding. By shifting the complexity from quadratic to linear through semantic clustering, CBMBR enables the use of large candidate pools and sophisticated neural metrics without the prohibitive time cost, while simultaneously improving robustness against model bias.
Summary updated