nmT5 -- Is parallel data still relevant for pre-training massively multilingual language models?

Mihir Kale, Aditya Siddhant, Noah Constant, Melvin Johnson, Rami Al-Rfou, Linting Xue

TL;DR

This paper introduces nmT5, an enhancement to the massively multilingual mT5 model that incorporates parallel translation data during pre-training. The researchers demonstrate that while adding parallel data significantly boosts performance—particularly in low-resource and few-shot scenarios—the relative benefits diminish as model capacity increases, suggesting that larger models are better at learning cross-lingual alignments from monolingual text alone.

What Problem Does This Paper Address?

Massively multilingual models like mT5 are typically pre-trained on enormous amounts of monolingual web text (like the mC4 corpus). While this approach scales well, it ignores a potentially rich source of information: parallel data (text that has been translated between languages).

Previous encoder-only models like XLM-R benefited from parallel data, but it wasn't clear if these benefits persisted for the newer, larger "text-to-text" encoder-decoder architectures. The authors set out to answer two main questions:

  1. Does parallel data still improve performance for state-of-the-art multilingual models?
  2. How does the impact of parallel data change as we scale the model from "Large" (1.3B parameters) to "XL" (3.7B parameters)?

Methods

The authors didn't train a model from scratch. Instead, they took existing mT5-Large and mT5-XL checkpoints and performed a "second stage" of pre-training for 100,000 steps. During this stage, they mixed monolingual data with parallel data at a 90/10 ratio.

They experimented with four different objectives to incorporate the parallel data into the model's text-to-text format:

  • TLM (Translation Language Modeling): A masked language modeling task performed on concatenated translation pairs.
  • NMT (Neural Machine Translation): Standard translation (e.g., "translate to English: [German Text]").
  • Denoised-NMT: Translation where the source sentence has random spans masked out.
  • Denoised-NMT+LM: Similar to Denoised-NMT, but the model must reconstruct both the translation and the original source sentence.
Figure 1: Example source and targets for different text-to-text style pre-training objectives incorporating parallel data. All objectives except TLM specify target language in the source sentence.

Surprisingly, the simplest objective—standard NMT—performed the best, outperforming the more complex TLM objective traditionally used in the literature.

Datasets

  • Pre-training: The authors used mC4 for monolingual data (101 languages) and OPUS-100 for parallel data (55 million translations across 100 languages).
  • Evaluation: The models were tested on four diverse downstream tasks:
  • TyDi QA: Extractive question answering.
  • MTOP: Multilingual task-oriented parsing.
  • WikiAnn NER: Named entity recognition.
  • WikiLingua: Cross-lingual summarization.
Statistics of datasets used in the paper

Key Insights and Ideas

  • The "Efficiency Hack": One of the most striking findings is that nmT5-Large (1.3B parameters) covers roughly 70% of the performance gap between the standard mT5-Large and the much larger mT5-XL (3.7B parameters). This suggests that parallel data is a highly efficient way to boost the performance of smaller models that are cheaper to deploy.
  • Diminishing Returns with Scale: While parallel data helped the XL model, the gains were much smaller than for the Large model. This hints that as models grow in capacity, they become more adept at "discovering" the relationships between languages using only monolingual data.
  • Few-Shot Powerhouse: Parallel data is most effective when labeled downstream data is scarce. In a "few-shot" setting with only 100 training examples, nmT5-Large outperformed the standard mT5-Large by a massive 15 points on question answering.
  • Better Zero-Shot Transfer: The model showed improved performance even on languages it had never seen during pre-training, indicating that parallel data helps the model build a more robust, language-agnostic internal representation.

Key Results

The inclusion of parallel data (the NMT objective) led to consistent improvements across all tasks.

  • Average Performance: nmT5-Large achieved an average score of 53.5, compared to 46.3 for the baseline mT5-Large.
  • Baseline Comparison: Even when compared to a baseline that was simply pre-trained for 100k extra steps on monolingual data (+MLM), nmT5 still showed a significant 4-point lead.
  • Scaling Comparison: As shown in the table below, the delta ($\Delta$) provided by parallel data is significantly higher for the Large model than for the XL model.
Impact of model size on nmT5's performance

Limitations and Future Work

The authors note that while parallel data is beneficial, high-quality translation pairs are difficult to obtain for truly low-resource languages. Furthermore, the diminishing returns at scale suggest that for the next generation of trillion-parameter models, the effort of collecting parallel data might not be justified by the marginal gains.

Future work suggested by the authors includes investigating whether parallel data can be used to improve "student" models during model distillation, potentially creating even more efficient, high-performing small models.

Summary updated

BibTeX
@inproceedings{kale2021nmt,
  author = {Mihir Kale and Aditya Siddhant and Noah Constant and Melvin Johnson and Rami Al-Rfou and Linting Xue},
  title = {{nmT5 -- Is parallel data still relevant for pre-training massively multilingual language models?}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.acl-short.87},
}
Figure