MAD-X: An Adapter-Based Framework for Multi-Task Cross-Lingual Transfer
Jonas Pfeiffer, Ivan Vulić, Iryna Gurevych, Sebastian Ruder
TL;DR
MAD-X presents a modular, adapter-based framework to overcome capacity limits in pretrained multilingual models by learning language adapters, task adapters, and invertible adapters, enabling efficient cross-lingual transfer to languages unseen during pretraining. By training language adapters with MLM on unlabelled data and keeping the base model frozen, MAD-X supports zero-shot transfer via adapter swapping, while task adapters capture task-specific knowledge. Invertible adapters address vocabulary misalignment between languages without expanding the token embeddings budget. Across NER, CCR, and QA, MAD-X yields substantial improvements over strong baselines, particularly for low-resource and unseen languages, while remaining parameter-efficient and model-agnostic, with code and adapters available on AdapterHub.ml.
Abstract
The main goal behind state-of-the-art pre-trained multilingual models such as multilingual BERT and XLM-R is enabling and bootstrapping NLP applications in low-resource languages through zero-shot or few-shot cross-lingual transfer. However, due to limited model capacity, their transfer performance is the weakest exactly on such low-resource languages and languages unseen during pre-training. We propose MAD-X, an adapter-based framework that enables high portability and parameter-efficient transfer to arbitrary tasks and languages by learning modular language and task representations. In addition, we introduce a novel invertible adapter architecture and a strong baseline method for adapting a pre-trained multilingual model to a new language. MAD-X outperforms the state of the art in cross-lingual transfer across a representative set of typologically diverse languages on named entity recognition and causal commonsense reasoning, and achieves competitive results on question answering. Our code and adapters are available at AdapterHub.ml
