Machine Translation Decoding beyond Beam Search

Rémi Leblond, Jean-Baptiste Alayrac, Laurent Sifre, Miruna Pislar, Jean-Baptiste Lespiau, Ioannis Antonoglou, Karen Simonyan, Oriol Vinyals

Abstract

This paper investigates whether the standard beam search used in machine translation can be replaced by more sophisticated, metric-driven search algorithms like Monte Carlo Tree Search (MCTS). The authors find that while beam search remains surprisingly robust for traditional metrics like BLEU, MCTS and value-based decoding significantly outperform it when optimizing for "reference-less" metrics that do not require a ground-truth translation. This work provides a blueprint for scaling search in NLP using value functions and MCTS.

Most machine translation (MT) models are trained using Maximum Likelihood Estimation (MLE), teaching the model to predict the next token in a sequence. At inference, beam search is the standard tool used to find the most likely sentence. However, MT suffers from a fundamental paradox: the most "likely" sentence according to the model is often not the highest-quality translation. Furthermore, beam search is metric-agnostic; it optimizes for likelihood rather than the evaluation metrics (like BLEU or BERTScore) used to judge success. Finally, the "beam curse" suggests that searching more thoroughly by increasing beam size often leads to worse translations. This paper explores whether search algorithms that directly optimize for evaluation metrics can resolve these issues.

Methods: Beyond Likelihood

The researchers compared several decoding strategies across three primary categories: likelihood-based, value-based, and reranking-based. Value-based methods, such as Value-Guided Beam Search (VGBS) and Value-Guided MCTS (V-MCTS), utilize a neural network trained to predict the final score of a sentence given its current prefix.

Comparison of decoding strategies based on their use of value functions or direct scores.

A key innovation in this work is the hybrid architecture used to train these value functions. Predicting reference-based metrics like BLEU is difficult because the model must guess the hidden reference. To address this, the authors used a "cheating" encoder during training that sees the ground-truth target to provide a strong training signal, which is then distilled into a standard encoder that only sees the source sentence.

Experimental Results

The study utilized standard benchmarks from WMT’14: English to German (ENDE) and English to French (ENFR). Evaluation included traditional reference-based metrics (BLEU, BERTScore) and a proposed reference-less metric, Multilingual BERTScore (MLBERTScore), which compares the source and translation directly using multilingual embeddings.

Comprehensive performance comparison across metrics and datasets.

Key Findings

  • Metric-Dependent Performance: Beam search remains the champion for BLEU (27.75 on ENDE). However, for reference-less metrics, MCTS and VGBS significantly outperform it. On the ENFR dataset, V-MCTS achieved an MLBERTScore of 86.31, compared to 84.48 for Beam Search.
  • Scaling and Compute: Unlike beam search, which plateaus or degrades with more compute, MCTS and Sampling+Reranking (S+R) show consistent performance gains as the number of inferences per token increases. When the search budget was increased to 300 inferences per token, the utility of beam search vanished while MCTS continued to improve.
  • Value Function Bottleneck: The primary limiting factor for value-based decoding is not the search algorithm itself, but the difficulty of training a value function that accurately predicts the quality of an unfinished sentence.

Conclusion and Future Directions

While beam search is robust, this research demonstrates that MCTS and value-guided search are superior for optimizing reference-less quality metrics. The authors provide a batched, efficient implementation of MCTS for modern Transformer models, paving the way for future work in reinforcement learning (similar to the AlphaZero loop) and training value functions directly on human judgments rather than automated proxies.

Summary updated

BibTeX
@inproceedings{leblond2021machine,
  author = {Rémi Leblond and Jean-Baptiste Alayrac and Laurent Sifre and Miruna Pislar and Jean-Baptiste Lespiau and Ioannis Antonoglou and Karen Simonyan and Oriol Vinyals},
  title = {{Machine Translation Decoding beyond Beam Search}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.emnlp-main.662},
}
Figure