Scheduled Sampling Based on Decoding Steps for Neural Machine Translation

Yijin Liu, Fandong Meng, Yufeng Chen, Jinan Xu, Jie Zhou

Introduction: The Problem of Exposure Bias

Neural Machine Translation (NMT) models typically rely on Teacher Forcing during training. In this paradigm, the model predicts the next token in a sequence given the ground-truth ("golden") previous tokens. While efficient, this creates a discrepancy during inference, where the model must rely on its own potentially erroneous previous predictions. This phenomenon, known as exposure bias, leads to error accumulation: a single mistake early in a sentence can derail the entire generation process.

Standard Scheduled Sampling attempts to mitigate this by occasionally replacing ground-truth tokens with model predictions during training. However, these methods often treat all positions in a sequence equally, ignoring the fact that the probability of error increases as the sequence length grows.

Figure 1: Translation precision decreases significantly as the decoding step increases, illustrating the "error snowball" effect.

As shown in Figure 1, there is a clear gap between training precision (using golden tokens) and generation precision (using model predictions), which widens as the decoding step progresses. This "error snowball" suggests that training difficulty should be scheduled not just by training iterations, but by the specific position within the sequence.

Proposed Methodology: Decoding-Step Scheduling

To address the limitations of vanilla scheduled sampling, this work introduces Scheduled Sampling Based on Decoding Steps. The core idea is to adjust the sampling probability based on the current decoding index $t$.

Decoding Step Decay

The authors propose several decay functions—Linear, Exponential, and Sigmoid—to determine the probability $g(t)$ of selecting a ground-truth token at step $t$. By decreasing $g(t)$ as $t$ increases, the model is forced to learn recovery strategies in the high-error environments typical of late-stage decoding.

Composite Strategy

The most robust approach is the Composite Strategy, which combines training progress (iteration $i$) with decoding position ($t$). Early in training, the model primarily sees ground-truth data to learn basic linguistic structures. As training matures, the model is increasingly exposed to its own predictions, particularly at later decoding steps.

Figure 6: The Composite Strategy adjusts sampling probability based on both training progress and the current decoding step.

This two-dimensional curriculum, visualized in Figure 6, ensures a smooth transition from teacher-led learning to autonomous generation, specifically targeting the most vulnerable parts of the sequence.

Experimental Results

The proposed methods were evaluated on large-scale benchmarks, including WMT14 (EN-DE, EN-FR), WMT19 (ZH-EN), and text summarization tasks (CNN/DailyMail, Gigaword).

Performance Gains

The approach demonstrated consistent improvements over the standard Transformer baseline and vanilla scheduled sampling:

  • WMT19 ZH-EN: The composite strategy improved the baseline by 1.27 BLEU points and outperformed standard scheduled sampling by 0.55 BLEU points.
  • Summarization: On the Gigaword benchmark, the method achieved a state-of-the-art-level ROUGE-L score of 37.24.
  • Long Sentence Robustness: The method proved exceptionally effective for long sequences (80–100 tokens), where gains exceeded 1.0 BLEU point, confirming its ability to handle severe exposure bias.

Conclusion

By aligning the training curriculum with the natural error distribution of autoregressive models, decoding-step scheduled sampling provides a more realistic and effective training signal. The composite strategy, balancing model competence with sequence difficulty, offers a significant boost to NMT performance, particularly for long-form generation where traditional methods struggle. Future work may explore more sophisticated error estimation metrics beyond unigram matching to further refine the sampling schedule.

Summary updated

BibTeX
@inproceedings{liu2021scheduled,
  author = {Yijin Liu and Fandong Meng and Yufeng Chen and Jinan Xu and Jie Zhou},
  title = {{Scheduled Sampling Based on Decoding Steps for Neural Machine Translation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.emnlp-main.264},
}
Figure