Decoding and Diversity in Machine Translation

Nicholas Roberts, Davis Liang, Graham Neubig, Zachary C. LiptonarXiv 2020

Abstract

Neural Machine Translation (NMT) systems typically optimize for the BLEU score, often utilizing beam search to find the most probable output sequence. However, this focus on deterministic modes comes at a significant cost to linguistic diversity. This paper demonstrates that beam search systematically strips away the natural variability of human language and, more critically, amplifies societal biases. By comparing beam search with sampling-based decoding, the authors reveal that the pursuit of higher BLEU scores leads to the erasure of minority gender pronouns and a degradation in the handling of rare vocabulary.

Introduction: The BLEU Trap

In Machine Translation, the BLEU score serves as the primary metric for evaluating model performance against human references. To maximize this score, researchers employ beam search, a heuristic that identifies the most likely word sequences. While effective at boosting scores, this approach creates a "mirage" of human-level performance. Human translation is inherently diverse; beam search is rigid. This lack of diversity results in systemic errors, such as the systematic replacement of female pronouns with male ones to favor statistically dominant patterns in the training data.

Decoding Strategies: Beam Search vs. Sampling

The study compares two fundamental text generation methods:

  1. Beam Search: A deterministic search for the single most probable translation.
  2. Sampling: A stochastic approach that selects words based on the model's predicted probability distribution, often modulated by a temperature parameter.

To isolate the impact of the decoding algorithm, the researchers calibrated a sampling-based model and a partially trained beam search model to achieve identical BLEU scores, allowing for a direct comparison of their distributional properties.

Quantifying Diversity: Methods and Metrics

The authors introduced a comprehensive suite of "diversity diagnostics" to measure deviations from human language distributions. These include L1 distance of n-grams, analysis of punctuation and sentence length, and discriminative evaluation using models like BERT to distinguish machine-generated text from human translations.

Performance metrics across word frequency and sentence length.

The analysis revealed that beam search outputs are statistically distinct from human text, often characterized by lower vocabulary variety and a higher rate of "copying" chunks from the source language.

Results: The Erasure of Minority Classes and Rare Words

The most striking finding is the amplification of gender bias. When controlled for the same BLEU score, sampling maintained a recall of approximately 0.35 for "she" and 0.33 for "her." In contrast, beam search recall plummeted to 0.04 and 0.02, respectively.

Recall and misgendering rates for English gender pronouns.

Beam search frequently "misgenders" by replacing female pronouns with male ones, a phenomenon that rarely occurs in the opposite direction. Furthermore, beam search consistently underperforms in the recall of rare words (low-frequency tokens), effectively "smoothing over" the nuanced vocabulary found in natural language.

Conclusion: Beyond BLEU

While sampling produces more natural and less biased translations, it currently yields lower BLEU scores, posing a challenge for adoption in systems evaluated solely on that metric. The paper advocates for a paradigm shift in NMT evaluation. Rather than chasing the highest BLEU score in isolation, the field should prioritize techniques that achieve high accuracy while maintaining distributional similarity to human language. Future research should explore constrained decoding and training objectives that explicitly reward diversity and fairness.

Summary updated

BibTeX
@misc{roberts2020decoding,
  author = {Nicholas Roberts and Davis Liang and Graham Neubig and Zachary C. Lipton},
  title = {{Decoding and Diversity in Machine Translation}},
  year = {2020},
  eprint = {2011.13477},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2011.13477},
}
Figure