Minimum Risk Training for Neural Machine Translation

Shiqi Shen, Yong Cheng, Zhongjun He, Wei He, Hua Wu, Maosong Sun, Yang Liu

Introduction

Neural Machine Translation (NMT) has traditionally relied on Maximum Likelihood Estimation (MLE) for training. In this paradigm, models are optimized to predict the next word in a sequence given a ground-truth prefix. However, this approach introduces two significant challenges: exposure bias and loss-metric mismatch. Exposure bias occurs because the model never encounters its own errors during training, leading to error accumulation at inference time. Furthermore, MLE optimizes for word-level cross-entropy, which does not perfectly correlate with sentence-level evaluation metrics like BLEU or TER.

The Minimum Risk Training Framework

To overcome these limitations, this research introduces Minimum Risk Training (MRT). Unlike MLE, which focuses on a single "correct" path, MRT optimizes the model to minimize the expected loss (or "risk") across a distribution of potential candidate translations.

The core of MRT involves defining a risk objective based on a non-differentiable evaluation metric. Since the space of all possible translations is too vast to compute directly, the authors utilize a sampling-based approach. By generating a set of $k$ candidate translations for each source sentence, the model can approximate the gradient of the risk. A hyperparameter $\alpha$ is introduced to control the sharpness of the probability distribution, allowing the model to better differentiate between candidates of varying quality.

Experimental Results

The effectiveness of MRT was evaluated on Chinese-English, English-French, and English-German datasets. The results indicate that MRT consistently and significantly outperforms MLE baselines. In Chinese-English tasks, MRT achieved an average improvement of +7.20 BLEU points.

Performance comparison between MRT and MLE over training time. MRT demonstrates a substantial and stable improvement in BLEU score over the MLE baseline.

As shown in the training curves, MRT acts as a powerful fine-tuning mechanism. Starting from a pre-trained MLE model, MRT continues to drive up translation quality, whereas standard MLE may plateau or even degrade due to the aforementioned biases.

Analysis of Sentence Length and Model Behavior

A persistent challenge in NMT is maintaining quality as sentence length increases. While MRT provides a lift across most lengths, it does not entirely solve the "long sentence problem" inherent in many sequence-to-sequence architectures.

BLEU score as a function of input sentence length. While MRT maintains a lead over MLE across most lengths, both NMT methods see performance drops on very long sentences compared to traditional systems like Moses.

As illustrated in the length analysis, MRT's performance is most robust for sentences under 50 words. Beyond this point, the complexity of the search space and the limitations of the underlying architecture lead to a decrease in BLEU scores, though MRT generally remains superior to the MLE baseline.

Conclusion

Minimum Risk Training represents a significant step toward aligning NMT training objectives with human-centric evaluation metrics. By directly optimizing for metrics like BLEU through a sampled risk objective, MRT effectively mitigates exposure bias and improves overall translation consistency. While the computational cost of sampling makes it more demanding than MLE, its role as a fine-tuning stage offers a practical path to state-of-the-art translation performance.

Summary updated

BibTeX
@inproceedings{shen2016minimum,
  author = {Shiqi Shen and Yong Cheng and Zhongjun He and Wei He and Hua Wu and Maosong Sun and Yang Liu},
  title = {{Minimum Risk Training for Neural Machine Translation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2016},
  doi = {10.18653/v1/p16-1159},
}
Figure