Abstract
Massively Multilingual Transformers (MMTs) often struggle with low-resource languages due to the "curse of multilinguality," where fixed parameters are stretched across over 100 languages. While modular approaches like MAD-X utilize monolingual adapters to mitigate this, they fail to model the specific interaction between source and target languages during transfer. This paper introduces BAD-X (Bilingual ADapters), a framework that trains a single adapter on a mixture of source and target language data. By creating a shared representational space, BAD-X significantly improves zero-shot cross-lingual transfer performance across tasks such as dependency parsing and natural language inference for low-resource languages.
Introduction
State-of-the-art multilingual models like mBERT and XLM-R face capacity bottlenecks when dealing with diverse, low-resource languages. The MAD-X framework addressed this by using language-specific adapters. However, MAD-X relies on swapping separate source and target adapters at inference time, which ignores the potential benefits of joint bilingual modeling. The authors of BAD-X argue that this modularity comes at the cost of specialized performance in specific transfer directions.
Methodology
BAD-X proposes a shift from monolingual to bilingual specialization. The core components of the method include:
- Bilingual Training: Instead of separate modules, a single Bilingual Adapter (BA) is trained using Masked Language Modeling (MLM) on a mixture of unlabeled text from both the source language ($L_s$) and the target language ($L_t$).
- Data Sampling Ratios: The training process explores different ratios (e.g., 1:1, 1:2, 5:1) to balance the influence of the high-resource source and low-resource target data.
- Task Adaptation: A Task Adapter (TA) is trained on top of the fixed BA using labeled data from the source language.
- Direct Inference: The BA's inherent knowledge of both languages allows for direct application to the target language without component swapping.
Experimental Setup
The framework was evaluated on 20 low-resource languages across three primary benchmarks:
- Universal Dependencies (UD) 2.7: For Part-of-Speech (POS) tagging and Dependency Parsing (DP) across 10 diverse languages (e.g., Wolof, Erzya).
- AmericasNLI: For Natural Language Inference (NLI) covering 10 indigenous languages of the Americas (e.g., Quechua, Guarani).
- Wikipedia: Serving as the source for unlabeled text for bilingual adapter pre-training.
Key Results and Insights
BAD-X consistently outperformed the MAD-X baseline across all evaluated tasks. In Dependency Parsing, the model achieved an average gain of 2.62% in UAS and 2.38% in LAS. For NLI, accuracy improved by an average of 2.4%, with a notable 6.67% jump for Wixarika.
The Role of Sampling Ratios
The research highlights that the optimal data mixture is task-dependent. Dependency Parsing, a structurally complex task, benefited from higher source-data ratios (5:1), whereas NLI performed better with more target-language data (1:2). This suggests that the source language acts as a vital anchor or regularizer for extremely low-resource targets like Wolof, where the model saw a massive ~9% improvement.
Conclusion and Future Work
While BAD-X offers superior performance for specific language pairs, it introduces a trade-off in modularity. Covering every transfer direction for $N$ languages would require $N^2$ adapters, compared to $N$ in the MAD-X framework. Future research will focus on more efficient ways to generate these bilingual modules, such as contextual parameter generation, and scaling the approach to a broader array of complex NLP tasks.
Summary updated