NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

MAD-X: An Adapter-Based Framework for Multi-Task Cross-Lingual Transfer

Jonas Pfeiffer, Ivan Vulic, Iryna Gurevych, Sebastian Ruder

Introduction: The Curse of Multilinguality

State-of-the-art multilingual models like mBERT and XLM-R face a "capacity bottleneck." As more languages are added to a fixed-parameter model, performance for individual languages often degrades—a phenomenon known as the curse of multilinguality. This is particularly problematic for low-resource or "unseen" languages not included in the original pretraining. Fine-tuning these massive models for every new language-task pair is computationally expensive and risks "catastrophic forgetting," where the model loses its general multilingual capabilities while learning a specific task.

The MAD-X Framework

The authors introduce MAD-X (Multiple ADapters for Cross-lingual transfer), a modular framework that adapts a frozen pretrained Transformer using small, trainable bottleneck layers. Instead of updating the entire model, MAD-X treats language and task knowledge as separate, interchangeable modules.

The MAD-X architecture showing the stack of layers and the internal structure of a transformer block with language and task adapters.

Modular Components

MAD-X utilizes three types of adapters inserted into the frozen base model:

  1. Language Adapters: These are small bottleneck layers trained via Masked Language Modeling (MLM) on unlabelled target language data to capture language-specific features.
  2. Task Adapters: Stacked on top of language adapters, these are trained on specific tasks (e.g., NER) using labelled data from a source language (typically English).
  3. Invertible Adapters: Placed at the embedding layers, these bridge the gap between the model's fixed vocabulary and a new language's token distribution. Because they are invertible, they can adapt both input embeddings and output predictions using the same parameters.
Detailed view of the Invertible Adapter showing the forward (left) and inverse (right) operations.

The "plug-and-play" nature of MAD-X allows zero-shot transfer by training a task adapter on an English language adapter and then simply swapping the English adapter for a target language adapter (e.g., Quechua) at inference time.

Evaluation and Results

The framework was evaluated on three diverse tasks: Named Entity Recognition (WikiANN), Causal Commonsense Reasoning (XCOPA), and Question Answering (XQuAD).

  • Performance Gains: MAD-X outperformed state-of-the-art baselines by over 5 F1 points on average for NER across 16 diverse languages.
  • Unseen Language Success: For languages like Quechua and Guarani, which were not seen during XLM-R pretraining, MAD-X showed massive gains over standard fine-tuning, proving the effectiveness of modular adaptation for out-of-distribution data.
  • Efficiency: The framework adds only ~3% more parameters (approx. 8.25M per language) while keeping the base model frozen. Language adapters are also sample-efficient, reaching strong performance with as few as 20k training iterations.

Conclusion

MAD-X demonstrates that modularity is key to scaling multilingual models. By separating language and task knowledge, it provides an efficient path for supporting low-resource and unseen languages without the overhead of full model fine-tuning. Future work may explore combining multiple adapters (AdapterFusion) or leveraging linguistic similarities to further improve transfer to zero-resource languages.

Summary updated

BibTeX
@inproceedings{pfeiffer2020mad,
  author = {Jonas Pfeiffer and Ivan Vulic and Iryna Gurevych and Sebastian Ruder},
  title = {{MAD-X: An Adapter-Based Framework for Multi-Task Cross-Lingual Transfer}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  doi = {10.18653/v1/2020.emnlp-main.617},
}
Figure