mmT5: Modular Multilingual Pre-Training Solves Source Language Hallucinations

Jonas Pfeiffer, Francesco Piccinno, Massimo Nicosia, Xinyi Wang, Machel Reid, Sebastian Ruder

Abstract

Multilingual sequence-to-sequence models perform poorly with increased language coverage and fail to consistently generate text in the correct target language in few-shot settings. To address these challenges, we propose mmT5, a modular multilingual sequence-to-sequence model. mmT5 utilizes language-specific modules during pre-training, which disentangle language-specific information from language-agnostic information. We identify representation drift during fine-tuning as a key limitation of modular generative models and develop strategies that enable effective zero-shot transfer. Our model outperforms mT5 at the same parameter sizes by a large margin on representative natural language understanding and generation tasks in 40+ languages. Compared to mT5, mmT5 raises the rate of generating text in the correct language under zero-shot settings from 7% to 99%, thereby greatly alleviating the source language hallucination problem.

Introduction

Multilingual models like mT5 are impressive, but they suffer from two major challenges. First, the "Curse of Multilinguality" dictates that as more languages are added to a model with fixed parameters, performance on individual languages drops due to capacity competition. Second, these models frequently suffer from "source language hallucinations" in zero-shot settings—where a model understands a prompt in one language but incorrectly generates the response in the language it was fine-tuned on.

We introduce mmT5 (Modular Multilingual T5) to address these bottlenecks. By employing language-specific modules and a novel freezing strategy during fine-tuning, mmT5 scales efficiently and achieves near-perfect language consistency in generation tasks.

Methods

The mmT5 architecture incorporates language-specific "bottleneck adapters" into the standard Transformer framework. These small sets of parameters are placed after the feed-forward component in every layer of the encoder and decoder.

The mmT5 architecture featuring language-specific bottleneck modules in both the encoder and decoder blocks.

Fixed Routing and Representation Drift

During a forward pass, the model uses a language ID to route tokens through the corresponding language-specific module, while the rest of the Transformer weights are shared. A key contribution of this work is identifying "representation drift": during fine-tuning, shared parameters often drift away from the frozen modular ones, causing the model to lose its language-specific grounding. To solve this, we freeze the decoder's feed-forward parameters during fine-tuning, anchoring the model to the modular representations learned during pre-training.

Key Results and Insights

Training Efficiency

Modularity acts as a powerful inductive bias. mmT5 reaches the same level of language modeling perplexity as the standard dense mT5 model in just 1/4 of the training steps. This efficiency holds across both "Small" and "Base" model scales.

Comparison of training efficiency (perplexity vs. steps) between mmT5 and mT5 across different model sizes.

Solving Hallucinations

In zero-shot summarization (XL-Sum), the standard mT5 model generated the correct language only 7% of the time. By contrast, mmT5 with the decoder freezing strategy achieved 99% language consistency, effectively solving the source language hallucination problem.

Superior Performance

mmT5 outperformed mT5 across nearly all benchmarks at equivalent parameter scales. On the MASSIVE semantic parsing task, it achieved a gain of 6.1 Exact Match points. Furthermore, the size of the bottleneck modules was found to be relatively flexible; even small modules provided sufficient capacity to prevent inter-language interference.

Limitations and Future Work

Current routing relies on provided language IDs; future work could explore learned routing where the model automatically selects the appropriate module. Additionally, while the model covers 100 languages, extending this modular approach to the thousands of truly low-resource languages remains a significant frontier for multilingual research.

Summary updated

BibTeX
@inproceedings{pfeiffer2023mmt,
  author = {Jonas Pfeiffer and Francesco Piccinno and Massimo Nicosia and Xinyi Wang and Machel Reid and Sebastian Ruder},
  title = {{mmT5: Modular Multilingual Pre-Training Solves Source Language Hallucinations}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  url = {https://openreview.net/forum?id=u9Fvsy8Brx},
}
Figure