Abstract
Neural Machine Translation (NMT) models often suffer from catastrophic forgetting when fine-tuned on new domains. This paper introduces a robust framework for Continual Learning (CL) in NMT, combining Dynamic Knowledge Distillation (DKD) to preserve multi-stage knowledge and a Bias-Correction (BiC) module to prevent over-favoring newly learned vocabulary. The proposed method achieves state-of-the-art performance across domain-shifting and time-shifting translation tasks.
Introduction: The Challenge of Catastrophic Forgetting
NMT models are notoriously "forgetful." In standard production pipelines, a model trained on a massive general corpus is fine-tuned on specific domains (e.g., legal or medical). However, this often causes performance on the original general text to plummet—a phenomenon known as catastrophic forgetting. While previous research focused on two-stage adaptation, real-world data arrives continuously. This work addresses multi-stage continual learning, where a model must learn from a sequence of datasets without losing the "private knowledge" (grammar, core semantics) acquired earlier.
Proposed Methods
The authors introduce two primary innovations to the standard Transformer-based NMT architecture:
1. Dynamic Knowledge Distillation (DKD)
Standard distillation uses a fixed weight to balance the "teacher" (old model) and "student" (current model). The authors argue that as training progresses through multiple stages, the importance of old knowledge should be balanced dynamically. They derive a recursive formulation where the distillation weight increases over time, preventing the model from overfitting to the most recent data at the expense of prior learning.
2. Bias-Correction (BiC) Module
A key discovery in this work is that during fine-tuning, weights in the output embedding layer become heavily biased. The norm (magnitude) of weights for new words grows significantly larger than for old words, causing the model to "shout" new words even when old ones are more appropriate.
To mitigate this, the authors implement Weight Normalization to scale all word weights to a uniform magnitude, alongside a learnable scaling scalar to maintain the output distribution's characteristics.
Experimental Setup
The method was evaluated across three scenarios:
- In-domain Incremental: IWSLT2013 and WMT14 (de-en), split into five sequential stages.
- Domain-Incremental: A general WMT16 model fine-tuned sequentially on the OPUS multi-domain dataset (IT, Koran, Law, Medical, Subtitles).
- Time-Incremental: Using WMT News-Commentary data (2015–2019) to simulate evolution alongside real-world trends.
Key Results and Insights
The proposed method consistently outperformed competitive baselines like Elastic Weight Consolidation (EWC) and standard Knowledge Distillation across all scenarios.
Key Findings:
- Superior Generalization: In domain-incremental settings, the method outperformed standard fine-tuning by 3–4 BLEU points on the general domain test set.
- The "New Word" Bias: Identifying weight magnitude as a proxy for bias was a critical "aha moment." Optimizer dynamics naturally push new word norms higher, drowning out older vocabulary.
- Efficiency: Unlike EWC, which requires storing importance gradients for millions of parameters, DKD is computationally lighter and more scalable.
- Ablation Success: Removing the BiC module led to a drop of 0.9–2.1 BLEU points, confirming that fixing output layer favoritism is vital for balanced translation.
Limitations and Future Work
While effective, the method utilizes a "rehearsal" strategy with a 50,000-sample memory buffer; performance under extreme memory restrictions remains an open question. Additionally, the work focuses on preventing forgetting rather than "forward transfer"—where new domains might improve performance on old ones. Future research could extend these bias-correction and dynamic distillation techniques to other NLP tasks like summarization or dialogue generation.
Summary updated