Skip to main content
QUICK REVIEW

[Paper Review] Bridging the Gap between Training and Inference for Neural Machine Translation

Wen Zhang, Yang Feng|arXiv (Cornell University)|Jun 6, 2019
Natural Language Processing TechniquesComputer Science17 references30 citations
TL;DR

This paper proposes Overcorrection Recovery (OR-NMT), a training scheme that bridges the gap between training and inference in neural machine translation by sampling context words from both ground truth and model-predicted sequences. By using sentence-level oracle selection and gradual curriculum learning, the method reduces exposure bias and overcorrection, achieving +2.18 BLEU on Zh→En and +1.31 BLEU on En→De tasks over strong baselines.

ABSTRACT

Neural Machine Translation (NMT) generates target words sequentially in the way of predicting the next word conditioned on the context words. At training time, it predicts with the ground truth words as context while at inference it has to generate the entire sequence from scratch. This discrepancy of the fed context leads to error accumulation among the way. Furthermore, word-level training requires strict matching between the generated sequence and the ground truth sequence which leads to overcorrection over different but reasonable translations. In this paper, we address these issues by sampling context words not only from the ground truth sequence but also from the predicted sequence by the model during training, where the predicted sequence is selected with a sentence-level optimum. Experiment results on Chinese->English and WMT'14 English->German translation tasks demonstrate that our approach can achieve significant improvements on multiple datasets.

Motivation & Objective

  • To address the discrepancy between training (using gold-standard context) and inference (using model-generated context) in neural machine translation.
  • To mitigate error accumulation caused by exposure bias, where model predictions diverge due to mismatched context distributions.
  • To improve overcorrection recovery, enabling models to handle alternative but valid translations without being forced back to the reference sequence.
  • To enhance model robustness on long and complex sentences by reducing reliance on strict word-level alignment.
  • To demonstrate effectiveness across diverse architectures, including RNN-based and Transformer models.

Proposed method

  • The model samples context words from both the ground truth sequence and the predicted sequence during training, using a curriculum learning schedule that gradually increases reliance on predicted words.
  • Oracle words are selected via sentence-level optimization (e.g., BLEU) rather than word-level greedy search, enabling better recovery from overcorrection.
  • A decayed sampling strategy starts with high probability on gold words and shifts toward predicted words as training progresses, simulating inference conditions.
  • Gumbel-Softmax noise is applied during oracle selection to prevent overfitting and improve generalization during training.
  • The method is applied to both RNNsearch and Transformer models, with consistent improvements across tasks.
  • The training objective combines cross-entropy loss with a dynamic context sampling mechanism that balances supervision and self-consistency.

Experimental results

Research questions

  • RQ1Can sampling context from both ground truth and predicted sequences during training reduce the distributional shift between training and inference?
  • RQ2Does sentence-level oracle selection improve overcorrection recovery compared to word-level selection?
  • RQ3To what extent does the proposed method reduce exposure bias and improve performance on long and complex sentences?
  • RQ4How does the method perform across different NMT architectures, such as RNN-based and Transformer models?
  • RQ5Can the method achieve consistent gains on diverse language pairs, including low-resource and long-sequence translation tasks?

Key findings

  • The proposed OR-NMT method improves the RNNsearch model by +2.18 BLEU points on the Zh→En MT03 test set, demonstrating strong mitigation of exposure bias.
  • On the WMT’14 En→De translation task, OR-NMT improves the RNNsearch baseline by +1.59 BLEU and the Transformer base model by +1.31 BLEU, with statistically significant gains (p<0.01).
  • The method achieves the largest improvements on long sentences, particularly in source length bins (10,20], (40,50], and (70,80], where overcorrection is most problematic.
  • Sentence-level oracle selection outperforms word-level oracle selection, showing that higher-level evaluation enables better recovery from alternative translations.
  • The use of Gumbel noise during oracle sampling prevents overfitting and improves convergence, with the best performance achieved at τ=0.5.
  • 18,391 out of 28,266 reference words had higher predicted probabilities in the proposed model than in the baseline, indicating improved alignment with gold references and reduced exposure bias.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.