Improving Scheduled Sampling with Elastic Weight Consolidation for Neural Machine Translation

Michalis Korakakis, Andreas VlachosEMNLP 2022

Abstract

Neural Machine Translation (NMT) models often suffer from exposure bias, where errors made early in a sentence lead to a cascade of further mistakes. While Scheduled Sampling (SS) is a common technique to mitigate this by exposing the model to its own predictions during training, it can inadvertently cause the model to "forget" how to utilize correct prefixes. This paper introduces a novel approach using Elastic Weight Consolidation (EWC) to regularize Scheduled Sampling, enabling models to learn error recovery without sacrificing fundamental translation performance.

The Challenge of Exposure Bias

Standard NMT training typically employs Teacher Forcing, where the model is provided with ground-truth previous tokens to predict the next word. At inference, however, the model must rely on its own previous—and potentially erroneous—predictions. This mismatch, known as exposure bias, often results in a "downward spiral" of errors.

Scheduled Sampling (SS) attempts to bridge this gap by occasionally feeding the model its own predictions during training. Despite its popularity, SS is controversial; some argue it encourages the model to ignore the prefix entirely, leading to inconsistent objectives. This research investigates the underlying mechanics of SS and proposes a method to stabilize its benefits.

Analyzing Model Behavior via LRP

To understand why SS sometimes degrades performance, the authors utilized Layerwise Relevance Propagation (LRP) to quantify the model's reliance on the source sentence versus the generated prefix. Their analysis confirmed that SS models indeed rely more heavily on the source text and less on the prefix compared to models trained with standard Maximum Likelihood Estimation (MLE).

Source contribution analysis using LRP for DE-EN and VI-EN tasks, comparing Scheduled Sampling (SS) and Maximum Likelihood Estimation (MLE).

As shown in the figure above, the source contribution is consistently higher for SS-trained models across different token positions. While this makes the model more robust to prefix errors, it leads to catastrophic forgetting: the model loses the ability to effectively use a 100% correct prefix, resulting in lower BLEU scores when tested on ground-truth data.

Mitigation via Elastic Weight Consolidation (EWC)

The authors propose treating Scheduled Sampling as a fine-tuning task. To prevent the model from forgetting the core translation skills learned during teacher forcing, they apply Elastic Weight Consolidation (EWC). EWC is a regularization technique from continual learning that penalizes changes to weights deemed critical for the original task (translating with perfect prefixes). This allows the model to learn to handle errors (the SS objective) while retaining its high-quality generation capabilities.

Experimental Results

The researchers evaluated the EWC-regularized SS approach on several benchmarks, including IWSLT’14 (DE-EN, VI-EN) and WMT’14 (EN-DE, EN-FR). The method consistently outperformed both standard MLE and vanilla SS.

  • Performance Gains: On IWSLT’14 DE-EN, the EWC approach improved the LSTM baseline by +0.62 BLEU and the Transformer baseline by +0.54 BLEU over vanilla SS.
  • Robustness: The EWC-regularized models proved significantly less sensitive to hyperparameter tuning, such as the annealing schedule for transitioning from ground-truth to model-generated prefixes.
BLEU score heatmaps for LSTM and Transformer models across different hyperparameter configurations (λ and k), demonstrating the robustness of the EWC-regularized approach.

Human evaluations further supported these findings, with the EWC-trained models receiving higher marks for both adequacy (meaning preservation) and fluency.

Conclusion

By combining Scheduled Sampling with Elastic Weight Consolidation, this work provides a robust solution to exposure bias in NMT. The approach effectively balances the need for error recovery with the preservation of core translation skills. While calculating the Fisher Information Matrix for EWC adds some computational overhead, the resulting gains in performance and stability make it a compelling technique for training high-quality translation models.

Summary updated

BibTeX
@inproceedings{korakakis2022improving,
  author = {Michalis Korakakis and Andreas Vlachos},
  title = {{Improving Scheduled Sampling with Elastic Weight Consolidation for Neural Machine Translation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.findings-emnlp.536},
}
Figure