Sequential Continual Pre-Training for Neural Machine Translation

Niko Dalla Noce, Michele Resta, Davide Bacciu

Introduction

The standard paradigm for Neural Machine Translation (NMT) involves a "pre-train then fine-tune" workflow. While effective, this process is computationally intensive, especially when adding new languages to an existing multilingual model. Typically, researchers must restart pre-training from scratch on the combined set of old and new languages to avoid Catastrophic Forgetting (CF)—a phenomenon where a model loses previously acquired knowledge when updated on new data. This study investigates "Sequential Continual Pre-training" as a more efficient alternative.

Methodology

The researchers evaluated three primary training regimes to understand how models adapt to new languages over time:

  1. Purely Incremental Pre-training (PIPT): The model is updated sequentially on new languages without any access to previous data.
  2. Pre-training with Replay: To mitigate forgetting, a small "replay buffer" (5% of the total data) containing random samples from previously learned languages is included during the update phase.
  3. Joint Pre-training: The model is trained on all languages simultaneously, serving as the performance upper bound.
Figure 5: Schema of the sequential continual pre-training process, illustrating the use of replay buffers and the evaluation via control tasks.

The study utilized two prominent pre-training objectives: mBART (denoising autoencoding) and mT5 (span corruption). To quantify forgetting, the authors employed a Control Task where the final model is fine-tuned on the initial language pair it encountered (e.g., English-French).

Experimental Setup

  • Data: Pre-training was conducted on the CC100 dataset (40 million sentences per language). Fine-tuning used CCMatrix for parallel translation data.
  • Languages: The study focused on four European languages: English (En), French (Fr), German (De), and Spanish (Es).
  • Evaluation: Translation quality was measured using BLEU scores on standard benchmarks like newstest2013 and newstest2014.

Results and Discussion

The experiments revealed several critical insights into the stability of multilingual representations:

Natural Resilience to Forgetting

Surprisingly, models exhibited significant natural resilience to CF even in the PIPT setting. For mBART, the performance drop on the initial language pair was a mere 0.31 BLEU points after learning two additional languages. mT5 showed a slightly higher but still manageable drop of 1.02 BLEU points.

The Efficacy of Replay

The introduction of a 5% replay buffer almost entirely eliminated forgetting. As shown in the results table, models using replay often matched or even slightly exceeded the performance of the joint training "gold standard." This suggests that sequential learning might reduce "language interference"—the confusion that occurs when a model tries to learn many disparate languages simultaneously.

Figure 6: BLEU score results for mBART and mT5 across different training regimes. Note the minimal performance degradation in the replay (R) and joint (J) settings compared to the reference (REF).

mBART vs. mT5

mBART consistently proved more robust than mT5 in continual learning scenarios. The authors attribute this to mBART's sentence-level reconstruction objective and its use of language-specific tokens, which may help the model better compartmentalize multilingual knowledge.

Conclusion

Sequential Continual Pre-training offers a viable, energy-efficient path for expanding NMT models. By utilizing simple techniques like small replay buffers, researchers can add new languages with minimal performance loss and a significantly reduced carbon footprint. This "Green AI" approach paves the way for more sustainable development of large-scale multilingual models.

Summary updated

BibTeX
@inproceedings{noce2024sequential,
  author = {Niko Dalla Noce and Michele Resta and Davide Bacciu},
  title = {{Sequential Continual Pre-Training for Neural Machine Translation}},
  booktitle = {ESANN},
  year = {2024},
  doi = {10.14428/esann/2024.es2024-165},
}
Figure