Abstract
Recent studies have revealed a number of pathologies of neural machine translation (NMT) systems. Hypotheses explaining these mostly suggest there is something fundamentally wrong with NMT as a model or its training algorithm, maximum likelihood estimation (MLE). Most of this evidence was gathered using maximum a posteriori (MAP) decoding, a decision rule aimed at identifying the highest-scoring translation, i.e. the mode. We argue that the evidence corroborates the inadequacy of MAP decoding more than casts doubt on the model and its training algorithm. In this work, we show that translation distributions do reproduce various statistics of the data well, but that beam search strays from such statistics. We show that some of the known pathologies and biases of NMT are due to MAP decoding and not to NMT's statistical assumptions nor MLE. In particular, we show that the most likely translations under the model accumulate so little probability mass that the mode can be considered essentially arbitrary. We therefore advocate for the use of decision rules that take into account the translation distribution holistically. We show that an approximation to minimum Bayes risk decoding gives competitive results confirming that NMT models do capture important aspects of translation well in expectation.
Introduction: The Problem with the Mode
Neural Machine Translation (NMT) has long been plagued by "pathologies" such as length bias—where translations are shorter than they should be—and the "beam search curse," where increasing the search breadth actually degrades translation quality. Traditionally, these issues were attributed to the Transformer architecture or the Maximum Likelihood Estimation (MLE) training objective.
However, this research suggests a different culprit: Maximum A Posteriori (MAP) decoding. MAP decoding attempts to find the single most likely sentence (the mode) in a high-dimensional probability space. In language modeling, this mode is often a rare, arbitrary outlier that does not represent the bulk of the model's probability mass. The model may "know" what a good translation looks like, but our standard method of extracting it leads us astray.
Methods and Data
The authors evaluate NMT models by comparing three types of outputs across high-resource (German-English) and low-resource (Sinhala-English, Nepali-English) language pairs:
- Gold-standard references: Human-generated translations.
- Beam search outputs: The standard approximation for the MAP mode.
- Ancestral samples: Unbiased samples drawn directly from the model's distribution.
By using hierarchical Bayesian models to analyze statistics like sequence length and n-gram frequencies, they assess how well the model's internal distribution matches the training data.
Key Insights: Why MAP Fails
The core finding is that the NMT probability distribution is incredibly "flat." Even after 1,000 samples, only a tiny fraction of the total probability mass is typically explored. In such a spread-out space, the single most likely sentence is essentially a statistical fluke.
While a single random sample might be lower quality than a beam search result, the aggregate statistics of samples (average length, word choice) match human references much more closely than beam search does. As shown in the distributions above, beam search consistently produces outputs that are too short and lexically biased, whereas ancestral samples capture these statistics with high fidelity.
Minimum Bayes Risk (MBR) Decoding
To leverage the model's holistic knowledge, the authors propose Minimum Bayes Risk (MBR) decoding. Instead of searching for the peak of the distribution, MBR identifies the hypothesis that maximizes "expected utility" (e.g., METEOR score) across a set of samples. They approximate this by drawing 30 samples and selecting the one most similar to the others.
Key Results
- Performance Gains: The MBR approximation significantly outperformed single samples and remained competitive with beam search. In low-resource and out-of-domain scenarios, MBR consistently outperformed beam search, suggesting it is more robust when model uncertainty is high.
- Oracle Potential: The study found that picking the best sample out of just 30 (an "Oracle" selection) would vastly outperform beam search by up to 14 METEOR points. This confirms that high-quality translations exist within the model's distribution; we simply need better decision rules to find them.
- The Empty String Myth: While previous work suggested the empty string is often the theoretical mode, this study shows it is an infrequent event during sampling. Its status as the mode is a byproduct of the mathematical structure of local normalization, not a preference of the model.
Conclusion and Future Work
The "pathologies" of NMT are largely artifacts of MAP decoding. By moving toward holistic decision rules like MBR, we can recover the true predictive power of NMT models. While MBR is currently more computationally expensive than beam search—requiring quadratic comparisons relative to the number of samples—future work into more efficient sampling and learned utility functions could make it a standard tool for robust translation.
Summary updated