MAD-G: Multilingual Adapter Generation for Efficient Cross-Lingual Transfer

Alan Ansell, Edoardo Maria Ponti, Jonas Pfeiffer, Sebastian Ruder, Goran Glavas, Ivan Vulic, Anna Korhonen

Modern Natural Language Processing relies heavily on Massively Multilingual Transformers (MMTs) like mBERT and XLM-R. However, these models face the "curse of multilinguality," where fixed model capacity is stretched across many languages, leading to performance degradation. While language-specific adapters (e.g., MAD-X) offer a solution, they typically require millions of sentences of monolingual data—a luxury not available for the vast majority of the world's 7,000+ languages.

This paper introduces MAD-G (Multilingual ADapter Generation), a framework that shifts the paradigm from learning language adapters to generating them using typological features. This approach is 50x more training-efficient and enables zero-shot transfer to thousands of low-resource languages.

Architecture and Methodology

The core innovation of MAD-G is the Conditional Parameter Generator (CPG), a hyper-network that contextually generates adapter weights based on a language's linguistic properties.

Architecture of the MAD-G framework showing the Conditional Parameter Generator (CPG) and its integration into a Transformer layer.

Key Components:

  1. The Generator: A linear projection layer trained to output the weights for bottleneck adapters. By learning a single shared generator instead of independent weights for every language, MAD-G achieves massive parameter efficiency.
  2. Typological Conditioning: The generator takes input from the URIEL database, which encodes 289 binary features (e.g., syntactic structure, phonology). This allows the model to generalize knowledge across related languages; for instance, learning from one Subject-Object-Verb (SOV) language helps the generator produce effective adapters for other unseen SOV languages.
  3. Layer-Specific Variant (MAD-G-LS): To further optimize, the authors developed a variant where the generator is conditioned on the Transformer layer index, reducing the generator's parameter count by nearly 20x while maintaining performance.
  4. Multi-source Transfer: The framework leverages task-specific adapters trained on multiple source languages simultaneously, fostering a more language-agnostic task representation.

Experimental Setup

The authors pretrained the generator using a Masked Language Modeling (MLM) objective on Wikipedia data for 95 typologically diverse languages. Evaluation was conducted across three primary benchmarks:

  • Universal Dependencies (UD) 2.7: For Part-of-Speech (POS) tagging and Dependency Parsing (DP).
  • MasakhaNER: For Named Entity Recognition in 10 low-resource African languages (e.g., Yoruba, Wolof).

Performance was tracked across three categories: languages seen by the base MMT (mBERT), languages seen only by the MAD-G generator, and completely unseen languages.

Results and Analysis

MAD-G proved highly competitive with standard adapter methods like MAD-X while being significantly faster to train. A key finding was the impact of multi-source training on task adapters.

Performance gains in POS tagging and dependency parsing as more source languages are added incrementally to the task adapter.

As shown in the results, training the task adapter on a diverse set of 20 languages rather than just English provided a substantial performance boost across all language categories. In low-resource settings, such as the MasakhaNER task, MAD-G significantly outperformed standard mBERT fine-tuning, demonstrating its utility for languages with minimal digital footprints.

Discussion and Insights

  • Efficiency as an Enabler: MAD-G's 50x training speedup per language makes it a viable path for scaling NLP to thousands of languages.
  • Better Initializations: Even when some monolingual data is available, initializing an adapter with MAD-G before fine-tuning yields superior results compared to random initialization.
  • The Role of Genus: Zero-shot performance is strongest when the target language belongs to a language family subgroup (genus) represented during the generator's training, highlighting the importance of typological diversity in pretraining.

Limitations

Despite its successes, MAD-G remains dependent on the accuracy of the URIEL database. Furthermore, while typology bridges many gaps, performance still declines for languages whose broader families were entirely absent from the training set. Future research may explore applying MAD-G to larger models like XLM-R or investigating alternative pretraining objectives for the generator beyond MLM.

Summary updated

BibTeX
@inproceedings{ansell2021mad,
  author = {Alan Ansell and Edoardo Maria Ponti and Jonas Pfeiffer and Sebastian Ruder and Goran Glavas and Ivan Vulic and Anna Korhonen},
  title = {{MAD-G: Multilingual Adapter Generation for Efficient Cross-Lingual Transfer}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.findings-emnlp.410},
}
Figure