Continual Incremental Language Learning for Neural Machine Translation

Michele Resta, Davide Bacciu

Abstract

Neural Machine Translation (NMT) models often suffer from "Catastrophic Forgetting" when trained on new languages sequentially. This study introduces the Continual Incremental Language Learning (CILL) framework to address this challenge. By utilizing a small replay buffer—specifically one prioritized by common word frequencies ($Zipf_{mc}$)—models can retain over 90% of the performance of a fully joint-trained model. This approach offers a computationally efficient alternative to retraining from scratch, significantly reducing training time while maintaining high translation quality across multiple language pairs.

Introduction: The Challenge of Catastrophic Forgetting

In an ideal scenario, NMT models are trained on all available language pairs simultaneously. However, real-world data often arrives incrementally. Retraining a massive model from scratch every time a new language is added is computationally prohibitive. The primary obstacle to sequential training is Catastrophic Forgetting (CF): as a model is fine-tuned on a new language pair (e.g., English to French), it "overwrites" the weights optimized for previous pairs (e.g., English to German), leading to a drastic decline in performance on older tasks.

Methodology: Continual Incremental Language Learning (CILL)

The authors formalize the CILL setting, where model architecture, parameters, and vocabulary remain fixed, focusing instead on the training strategy. They evaluate three primary approaches:

  1. Pure Incremental: Sequential training on new language pairs without any memory of previous data.
  2. Random Replay: Maintaining a small buffer (1% or 5% of total data) of random samples from previous tasks, mixed into current training.
  3. Zipf-based Prioritized Replay: Leveraging Zipf’s Law to select "important" sentences for the buffer.
  4. $Zipf_{lc}$ (Less Common): Prioritizes sentences with rare words (high information content).
  5. $Zipf_{mc}$ (Most Common): Prioritizes sentences with frequent words to preserve the linguistic "core."

A scoring function with "boosting factors" ($\alpha$) was used to filter noise, such as extreme sentence lengths or excessive symbols.

Experimental Setup

The study utilized the Europarl dataset, covering four languages (English, French, German, and Spanish) and 12 translation directions. The training set comprised approximately 23 million sentences (2 million per pair). Evaluation was conducted using WMT newstest2012 for validation and newstest2013 for testing, with a shared 32k token BPE vocabulary.

Key Results and Analysis

The experimental results highlight the severity of CF and the effectiveness of replay strategies.

Comparative performance of Joint Training, Pure Incremental, and various Replay strategies across 12 translation directions.

Performance Recovery

In the "Pure Incremental" setup, the average BLEU score plummeted by nearly 20 points compared to joint training. However, implementing a 5% buffer with either Random Replay or $Zipf_{mc}$ recovered most of this loss, achieving an average BLEU of ~24.5 (compared to the 26.85 Joint Training baseline).

The $Zipf_{mc}$ Advantage

Interestingly, prioritizing common words ($Zipf_{mc}$) generally outperformed the rare-word strategy ($Zipf_{lc}$). This suggests that maintaining the foundational structure and common vocabulary is more critical for preventing forgetting in NMT than preserving rare edge cases. The $Zipf_{mc}$ strategy with a 5% buffer also yielded the best Backward Transfer (BWT) of -2.22, indicating superior protection of older knowledge.

Efficiency Gains

A major finding is the trade-off between performance and compute. While joint training required 378 hours, the 5% replay strategy achieved 91% of its performance in only 150-157 hours. This represents a significant reduction in resource requirements, supporting "green AI" initiatives.

Discussion and Future Work

The study also observed the emergence of zero-shot translation capabilities (e.g., translating between Spanish and French despite never being explicitly paired) when using replay strategies.

Future research directions include:

  • Task Ordering: Investigating if the sequence of languages (e.g., linguistically similar vs. distant) affects the severity of forgetting.
  • Alternative Strategies: Exploring "pseudo-rehearsal" (synthetic data generation) or architectural constraints like Elastic Weight Consolidation (EWC) or adapters.
  • Scaling: Testing these strategies on a larger scale with dozens of linguistically diverse languages.

Summary updated

BibTeX
@inproceedings{resta2022continual,
  author = {Michele Resta and Davide Bacciu},
  title = {{Continual Incremental Language Learning for Neural Machine Translation}},
  booktitle = {ESANN},
  year = {2022},
  doi = {10.14428/esann/2022.es2022-80},
}
Figure