A Bayesian Optimization Approach to Machine Translation Reranking

Julius Cheng, Maike Züfle, Vilém Zouhar, Andreas Vlachos

Introduction

Modern Machine Translation (MT) systems often utilize a two-stage pipeline: a generator (such as NLLB) produces a diverse list of potential translations, and a high-fidelity evaluator (a "reranker" like CometKiwi) scores these candidates to select the best output. While effective, this process faces a significant computational bottleneck. High-quality evaluators are massive neural networks, and scoring an entire list of 200+ candidates per sentence is often prohibitively expensive in production environments.

This paper introduces a Bayesian Optimization (BayesOpt) approach that treats reranking as an efficient search problem. By modeling the score distribution across the candidate space, the system can identify the "needle in the haystack"—the best translation—while scoring only a fraction of the total candidates.

Methodology

The core innovation lies in framing reranking as a search over a "smooth" embedding space. The authors posit that if two translation candidates are semantically similar, their quality scores are likely to be similar as well.

The Gaussian Process Surrogate

To predict the scores of unscored candidates, the algorithm employs a Gaussian Process (GP). The GP uses a similarity kernel based on the internal embeddings from the MT generator's final layer. Because these embeddings are produced during the initial translation step, they serve as a computationally "free" and rich feature set for the GP.

The system uses an Expected Improvement (EI) acquisition function to iteratively select which candidate to score next. This function balances exploration (investigating candidates in regions with high uncertainty) and exploitation (focusing on candidates similar to the current best-known translation).

The Bayesian Optimization process at steps t and t+1. Observing a true score (Bb) reduces uncertainty and updates the best guess for nearby candidates (Aa) in the embedding space.

Additionally, the authors propose a multi-fidelity extension (BayesOpt+GP+P). This version uses cheap, distilled "proxy" models to provide a noisy initial estimate of candidate quality, which the BayesOpt then refines using the expensive, high-fidelity evaluator.

Experimental Results

The approach was evaluated on the WMT23 Metrics Shared Task dataset across seven language pairs, using NLLB for generation and CometKiwi-22 as the gold-standard evaluator.

Efficiency and Accuracy

The BayesOpt method demonstrates superior efficiency compared to common baselines like Hill Climbing or Log-probability sorting. On a list of 200 candidates, BayesOpt+GP reached the maximum possible CometKiwi score using only 70 evaluations on average. In contrast, a random subset required 180 evaluations to achieve the same quality level.

Performance comparison showing that BayesOpt+GP reaches higher candidate scores faster and has a much higher probability of identifying the top candidate within a limited number of evaluator runs.

Computational Speedup

In end-to-end runtime tests, the BayesOpt approach reduced total reranking time from approximately 985 seconds to 874 seconds per 350 instances. This represents a meaningful wall-clock speedup while maintaining nearly identical translation quality to exhaustive scoring.

Discussion and Future Work

While BayesOpt significantly improves reranking efficiency, some limitations remain. The $O(N^3)$ computational complexity of Gaussian Processes may become a bottleneck for extremely large candidate lists. Furthermore, the iterative nature of BayesOpt is more difficult to parallelize across GPUs than simple batch scoring.

Future research directions include integrating this Bayesian search directly into the decoding process (search-during-generation) rather than applying it as a post-hoc reranking step, potentially further reducing the overhead of high-quality machine translation.

Summary updated

BibTeX
@inproceedings{cheng2025bayesian,
  author = {Julius Cheng and Maike Züfle and Vilém Zouhar and Andreas Vlachos},
  title = {{A Bayesian Optimization Approach to Machine Translation Reranking}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
  doi = {10.18653/v1/2025.naacl-long.145},
}
Figure