LLM Decoding and Reranking#
LLM decoding methods fall into two families [1]:
- Design a function that acts on the per-step token distribution , and pick tokens one at a time according to . Greedy decoding, beam search, and top-/top- sampling all belong to this family.
- Design a function that acts on the complete output , e.g. , where . This is a two-step process: first let the LLM generate many candidates, then use to select the best one. For this reason, this kind of decoding is often called reranking.
Application to Machine Translation#
In machine translation, we denote the source sentence by , the model translation by , the reference translation by , and the translation quality metric by .
Reranking in machine translation rests on a simple intuition: if we generate several candidates instead of just one, we can always pick a better one. We denote the candidate set by . The two most widely used reranking methods in machine translation are MBR decoding and QE reranking.
In the WMT General Machine Translation Shared Task, both reranking methods have repeatedly been adopted by winning systems [2].
MBR Decoding#
This method is based on Bayesian decision theory: it selects the candidate that “agrees most, on average” with the other candidates. The function that measures this agreement is called the utility, written , which scores how good is when is treated as the reference. The decision rule is:
The true reference is not available at decoding time, so the other candidates are used as pseudo-references. The utility is therefore usually a reference-based metric (e.g. COMET, BLEURT, chrF++): we simply replace the reference in with a pseudo-reference, . The average in the formula is the expected utility of ; choosing the candidate with the highest expected utility caters to the preferences of the metric and yields a better output.
In the rest of this post, whenever MBR is involved, “utility” refers to this reference-based metric, and a “utility call” means one call to that metric.
QE Reranking#
This method directly scores each candidate with a reference-free model (e.g. CometKiwi) and selects:
Computational Cost#
From an end-to-end perspective, the computation required for each source is:
- Candidate generation: LLM generations
- With MBR decoding: utility (reference-based metric) calls
- With QE reranking: QE model (reference-free metric) calls
Why Does Acceleration Matter?#
Take : translating a single sentence means generating 256 candidates, and MBR then needs utility calls. On top of that, today’s utilities are usually neural models, so calling them this many times costs a lot of compute. The quality gains of reranking are well established, but at this cost it fits competitions and offline evaluation far better than real systems with latency and compute budgets.
I care less about squeezing out another fraction of a point on a leaderboard than about whether a method can actually be used. Reranking already works well; what holds it back is mostly cost, so this post collects several ways to bring that cost down.
There are two directions for acceleration: reduce the number of candidate generations, or reduce the number of utility / QE model calls.
Acceleration Methods#
| Method | Applies to | Computation reduced | Key idea |
|---|---|---|---|
| Quit [3] | MBR / QE | Candidate generation + scoring | Generate incrementally; stop early once the best score stabilizes |
| PMBR [4] | MBR | Utility calls | Compute only part of the score matrix; recover the rest via low-rank matrix completion |
| PruneMBR [5] | MBR | Utility calls | Turn “pick the highest score” into “estimate each candidate’s probability of winning”; estimate it with bootstrap and prune |
| CBMBR [6] | MBR | Utility calls | Cluster the pseudo-references and use cluster centroids instead of all of them; equally weighted centroids also reduce multimodal bias |
| BayesOpt [7] | QE | QE model calls | Model scores with a Gaussian process; only score candidates worth scoring |
A Unified Method: Quit#
Most existing acceleration methods target only the scoring stage of MBR and QE, leaving candidate generation itself largely untouched. Yet in today’s LLM-based translation systems, candidate generation is often more expensive than reranking. Quit (Quantifying Uncertainty for Incremental Termination) [3] reduces the cost of both candidate generation and reranking by treating the whole “generate-then-rerank” pipeline as a sequence of decisions.
Incremental generation. At each step, generate new candidates ( in the paper); after step the candidate set is with (for MBR, the pseudo-reference set grows along with it). Let be the output selected by the reranker at step and its score, i.e. the current best score; the full budget corresponds to steps.
Ideal objective: the early-stopping risk. Stopping at step costs the true quality gap between its output and the full-budget output:
The smaller , the less quality is lost by stopping early. But at inference time neither the reference nor the full-budget output is available, so it cannot be computed.
Approximation 1: replace true quality with the reranker score. This removes the dependence on the reference:
But is only known once the full budget is used, so this is still not computable.
Approximation 2: replace the gap to the end with recent fluctuation. Partition the steps into non-overlapping windows of size and look only at the range of the best score within a window:
A large means the best score is still improving noticeably; a small one means it has locally stabilized and further generation has limited benefit. The paper verifies with PRR that it correlates with the true risk .
Stopping rule. Stop once the fluctuation falls below a threshold ( in the paper):
Across 3 NMT models and 19 language pairs, Quit achieves end-to-end speedups of 1.47–2.66× for MBR and 3.43–4.12× for QE reranking while preserving translation quality.
MBR Decoding: Reducing Utility Calls#
The bottleneck of MBR is computing a score matrix with . The three methods below reduce this cost from three angles: computing fewer matrix entries, evaluating fewer candidates, and using fewer pseudo-references.
PMBR#
PMBR [4] observes, and verifies experimentally, that the score matrix has a low-rank structure, so MBR can be cast as a matrix completion problem:
- Compute only a random subset of the entries of ;
- Use Alternating Least Squares (ALS) to factorize and fill in the missing entries;
- Average each row of the completed matrix and select the MBR output.
On WMT22 (en↔de, en↔ru), it matches the COMET22 score of vanilla MBR with only of the utility computations, and outperforms other approximation baselines.
PruneMBR#
The core idea of PruneMBR [5] (EMNLP 2023 Best Short Paper): we don’t need each candidate’s exact expected utility, only whether it can still win.
Write the candidate set as and the expected utility as . The true MBR objective is ; standard MBR approximates with pseudo-references , costing utility calls. PruneMBR replaces “pick the highest score” with estimating each candidate’s probability of being the true winner:
Approximation 1: bootstrap. Since is unknown, resample the current pseudo-references with replacement and approximate it by “winning on a bootstrap sample”:
Approximation 2: compare only with the current winner. When is large this has high variance, so compare only with the current winner :
Beating everyone implies beating , so this is an upper bound of the previous quantity and independent of . If it falls below , is pruned. Bootstrap only recombines utilities already computed, so it needs no extra calls.
Algorithm. The number of pseudo-references doubles according to a schedule (from 8 for COMET, up to 256). Each step adds pseudo-references, computes new utilities only for the surviving candidates, and prunes via bootstrap; it stops when one candidate remains or the last step is reached. Too few initial pseudo-references bias the bootstrap and risk pruning the winner, so sets the speed–accuracy trade-off.
Results: statistically indistinguishable from standard MBR, with at least 7× fewer utility calls for chrF++ and 15× for COMET.
CBMBR#
CBMBR [6] rests on an elegant idea: pseudo-references are just vectors in feature space, so nearby ones can be merged into a single representative point.
COMET encodes the source, candidate, and reference separately with an encoder , then scores them with an output layer : . Encoding takes only passes; the bottleneck is the evaluations of . The method relies on two assumptions:
- Semantically similar sentences have nearby vectors. On STS-B, COMET’s sentence vectors reach a Pearson correlation of 73.6 with human similarity, even above LaBSE (72.7).
- is approximately linear. Within a cluster , “score, then average” can then be swapped for “average, then score”:
Concretely, the pseudo-reference vectors are clustered into clusters with kmeans++ and k-means ( in the paper), and
reducing the complexity from to .
Why can it beat standard MBR? The formula averages the centroids with equal weights. Standard MBR treats every pseudo-reference equally, so when candidates are multimodal (e.g. from several systems), the translation with the most samples dominates. CBMBR gives each cluster one vote and is more robust to this bias. An ablation supports this: CBMBR, which weights centroids by cluster size and thus approximates standard MBR more closely, scores almost the same as standard MBR (86.6 vs 86.7) and below CBMBR (87.0).
Results. With diverse candidates, it stays within 0.1 COMET of standard MBR while speeding up the expected-utility computation 5.7× (1.8× end to end). With multi-system candidates, it beats standard MBR by up to 0.5 COMET. Its limitation is that it only applies to metrics that encode each sentence independently.
QE Reranking: Reducing QE Model Calls#
BayesOpt#
QE reranking needs only calls, but QE models (e.g. CometKiwi) are themselves expensive. Cheng et al. [7] cast reranking as a Bayesian optimization problem: the goal is to find without scoring every candidate.
- Model the scores of unscored candidates with a Gaussian process, using an RBF kernel over candidate sentence vectors (mean-pooled representations obtained as a by-product of generation, at almost no extra cost);
- At each step, use an acquisition function (Expected Improvement) to balance exploration (candidates that differ from those already scored) and exploitation (candidates similar to high-scoring ones), and pick the next candidate to score;
- When the scoring budget is exhausted, return the highest-scoring candidate among those scored.
With 200 candidates, it needs only about 70 CometKiwi calls on average to match the result of scoring a random subset of 180 candidates. The paper also proposes a multi-fidelity variant that uses a cheaper, smaller QE model as a proxy to further improve efficiency.
References#
- CMU Advanced NLP Spring 2025 (7): Decoding Algorithms. YouTube
- Tom Kocmi, Ekaterina Artemova, Eleftherios Avramidis, et al. Findings of the WMT25 General Machine Translation Shared Task: Time to Stop Evaluating on Easy Test Sets. WMT 2025. ACL Anthology
- Guangyu Chen, Boxuan Lyu, Hidetaka Kamigaito, Kotaro Funakoshi, Manabu Okumura. Quit While You’re Ahead: Quit for Efficient Candidate Generation in Machine Translation Reranking. arXiv:2609.00588, 2026. arXiv
- Firas Trabelsi, David Vilar, Mara Finkelstein, Markus Freitag. Efficient Minimum Bayes Risk Decoding using Low-Rank Matrix Completion Algorithms. arXiv:2406.02832, 2024. arXiv
- Julius Cheng, Andreas Vlachos. Faster Minimum Bayes Risk Decoding with Confidence-based Pruning. EMNLP 2023. ACL Anthology
- Hiroyuki Deguchi, Yusuke Sakai, Hidetaka Kamigaito, Taro Watanabe, Hideki Tanaka, Masao Utiyama. Centroid-Based Efficient Minimum Bayes Risk Decoding. Findings of ACL 2024. ACL Anthology
- Julius Cheng, Maike Züfle, Vilém Zouhar, Andreas Vlachos. A Bayesian Optimization Approach to Machine Translation Reranking. NAACL 2025. ACL Anthology