Towards Continual Learning for Multilingual Machine Translation via Vocabulary Substitution

Xavier Garcia, Noah Constant, Ankur P. Parikh, Orhan Firat

Abstract

We propose a straightforward vocabulary adaptation scheme to extend the language capacity of multilingual machine translation models, paving the way towards efficient continual learning for multilingual machine translation. Our approach is suitable for large-scale datasets, applies to distant languages with unseen scripts, incurs only minor degradation on the translation performance for the original language pairs and provides competitive performance even in the case where we only possess monolingual data for the new languages.

Introduction

Multilingual Machine Translation (MMT) aims to create a single "universal" model capable of translating between many language pairs. However, current MMT models face two major hurdles when it comes to continual learning—the process of adding new languages over time:

  1. The Vocabulary Bottleneck: Standard tokenizers like Byte-Pair Encoding (BPE) or SentencePiece require all training data upfront to define a fixed vocabulary. Adding a language with a new script (e.g., Bengali) to a model trained on Latin scripts often results in the tokenizer failing and producing useless unknown tokens.
  2. Catastrophic Forgetting: Fine-tuning a neural network on new data often "overwrites" weights used for original tasks. In translation, this can lead to a model learning a new language like Kazakh while losing its ability to translate previously learned languages like French.

Methodology: Vocabulary Substitution

To address these challenges, we propose a pipeline called Vocabulary Substitution. This method allows a model to adapt to new languages in a fraction of the original training time (approximately 3-6%).

The pipeline consists of three main steps:

  • Vocabulary Reconstruction: When a new language is introduced, the BPE vocabulary is rebuilt using a combination of the original languages' data and the new language's data.
  • Embedding Reuse: The old vocabulary is replaced with the new one. Research indicates that for models already supporting many languages, the new vocabulary is often ~90% identical to the old one. Embeddings for shared tokens are mapped to their new indices, while new tokens are initialized.
  • Rapid Adaptation and Sampling: The model undergoes a short training period (15k–30k steps). To prevent catastrophic forgetting, a temperature-based sampling scheme is employed to upsample the new language's data while maintaining sufficient exposure to the original languages.

The training objectives include standard cross-entropy for parallel data and the Masked Sequence-to-Sequence (MASS) objective for monolingual data.

Experimental Setup

The base model was trained on 24 languages using large-scale datasets including Newscrawl, Wikipedia, WMT, and Paracrawl. Four languages were selected for adaptation to test various scenarios:

  • Kazakh (kk): Shared script with some base languages but linguistically distinct.
  • Bengali (bn): Distinct script, related to Hindi.
  • Polish (pl): Related to Slavic base languages, shared Latin script.
  • Pashto (ps): Distinct script, not closely related to the base set.

Key Results and Discussion

Performance Parity and Forgetting

Models adapted via Vocabulary Substitution achieved BLEU scores nearly identical to "Oracle" models trained on all languages from the start. For instance, on Kazakh-English, the adapted model reached 20.2 BLEU, compared to the Oracle's 20.5.

Crucially, the "BLEU degradation" on the original 24 languages was kept to a minimum. As shown in Figure 1, the drop for individual language additions is typically less than 1 BLEU point, demonstrating that the sampling strategy effectively mitigates catastrophic forgetting.

BLEU degradation on original language pairs when adding one or four new languages.

Vocabulary Stability and Data Requirements

A key insight is that vocabularies become stable as more languages are added. The high overlap (>90%) allows the substitution trick to work without destroying internal representations. When tokens are lost, they are primarily infrequent ones from the "tail" of the distribution, leaving core grammatical and semantic subwords intact.

Furthermore, the method is effective even when only monolingual data is available for the new language, utilizing back-translation or MASS. Figure 2 illustrates the impact of different data types on the degradation of original language pairs.

Comparison of BLEU degradation on original languages using different data types (monolingual vs. parallel) for new languages.

Conclusion

Vocabulary Substitution provides an efficient path toward continual learning in MMT. While it successfully handles diverse scripts and low-resource scenarios, some limitations remain. The method still requires access to a representative sample of original training data to prevent forgetting. Future work will explore "data-free" continual learning and investigate the scaling limits of model capacity as more languages are added sequentially.

Summary updated

BibTeX
@inproceedings{garcia2021towards,
  author = {Xavier Garcia and Noah Constant and Ankur P. Parikh and Orhan Firat},
  title = {{Towards Continual Learning for Multilingual Machine Translation via Vocabulary Substitution}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2021},
  url = {https://openreview.net/forum?id=WZOFwJi35hO},
}
Figure