InteMATs: Integrating Granularity-Specific Multilingual Adapters for Cross-Lingual Transfer

Meizhen Liu, Xu Guo, Jiakai He, Jianye Chen, Fengyu Zhou, Siu Cheung HuiEMNLP 2023

Introduction

Multilingual Large Language Models (MLLMs) like mBERT and XLM-R have significantly advanced natural language processing by providing a shared representation space for dozens of languages. However, a persistent "cross-lingual gap" remains. Even when a model is proficient in multiple languages, its internal vector space may not perfectly align semantically equivalent concepts across those languages. This misalignment is particularly evident in zero-shot transfer scenarios, where a model fine-tuned on a high-resource language (e.g., English) fails to generalize effectively to low-resource languages.

Traditional solutions often rely on full-model fine-tuning, which is computationally expensive and prone to "catastrophic forgetting"—the loss of general knowledge during specialized training. Moreover, existing alignment techniques typically focus on short, sentence-level contexts, leaving models ill-equipped for document-level tasks that require understanding global structure and context.

The InteMATs Framework

To address these challenges, we introduce InteMATs (Integrating Granularity-specific Multilingual Adapters), a parameter-efficient framework designed to enhance the cross-lingual capabilities of MLLMs. InteMATs employs a two-stage approach: granularity-specific pre-training followed by dynamic knowledge integration.

Granularity-Specific Pre-training

Rather than updating the entire backbone, InteMATs inserts small, trainable adapter modules into each layer of a frozen MLLM. We train two distinct types of adapters to capture different levels of linguistic information:

  • MATs-ST (Sentence-level): These adapters are trained on entity-aligned parallel sentences to capture local semantic relationships.
  • MATs-DT (Document-level): These are trained on longer parallel text blocks to capture broader global context and document structure.

The training process utilizes Contrastive Learning (CL) with the InfoNCE loss. Unlike standard Masked Language Modeling (MLM), which focuses on local word prediction, CL forces the model to align the global representations of parallel translations while distancing unrelated text segments.

Architecture of the Transformer layer with InteMATs and the training process for MATs-ST.

Knowledge Integration via AdapterFusion

To effectively combine the strengths of both adapter types for specific downstream tasks, we employ an AdapterFusion layer. This component uses an attention mechanism to dynamically weight the contributions of MATs-ST and MATs-DT based on the input. For instance, in tasks involving long paragraphs, the fusion layer learns to prioritize the document-level adapter's output.

Experimental Setup

We curated a massive multilingual parallel dataset from Wikipedia, spanning 42 languages and comprising 2.1GB of text. This data was processed into sentence-level ($D_{ST}$) and document-level ($D_{DT}$) corpora for pre-training.

Evaluation was conducted using the comprehensive XTREME benchmark, covering:

  • Retrieval: BUCC and Tatoeba.
  • Classification: RELX (Relation Extraction) and PAWS-X (Paraphrase detection).
  • Syntactic Analysis: Part-of-Speech (POS) tagging.
  • Question Answering: XQuAD and TydiQA (which emphasizes long-context understanding).

Key Results and Insights

InteMATs demonstrates superior performance across various cross-lingual tasks while remaining highly parameter-efficient. For example, using XLM-R large as a backbone, InteMATs requires training only approximately 13 million parameters—a fraction of the 550 million parameters in the full model.

State-of-the-Art Performance

InteMATs outperformed established baselines such as mSimCSE and VECO on multiple benchmarks. Notably, it achieved a 4% gain on the BUCC retrieval task and a 7% gain on Tatoeba compared to previous best-in-class methods.

Performance comparison on BUCC-4 and Tatoeba retrieval benchmarks.

Gains in Low-Resource and Long-Context Settings

The framework proved exceptionally beneficial for low-resource languages, showing a 30% improvement over the base MLLM on the Tatoeba dataset. In the TydiQA task, which involves complex, long-context question answering, InteMATs surpassed the strongest baseline by 3.2%.

Strategic Insights

  • Contrastive Learning vs. MLM: Our findings indicate that CL is significantly more effective for adapter training than MLM, as it focuses on the global representation patterns essential for cross-lingual mapping.
  • Granularity Importance: While sentence-level adapters excel at local semantics, document-level adapters are crucial for the "big picture" required in complex reasoning tasks.
  • Layer-wise Evolution: Analysis reveals that cross-lingual alignment is primarily refined in the later layers of the transformer, where adapters have the most significant impact on high-level features.

Limitations and Future Work

Despite its successes, InteMATs showed limited improvement in Part-of-Speech (POS) tagging. This suggests that syntactic structures, which are often highly language-specific, are more difficult to align cross-lingually than semantic concepts. Furthermore, the current dominance of sentence-level tasks in benchmarks may not fully reflect the model's document-level capabilities. Future research should focus on developing more robust document-level multilingual benchmarks and exploring knowledge sharing within specific language families to further optimize efficiency.

Summary updated

BibTeX
@inproceedings{liu2023intemats,
  author = {Meizhen Liu and Xu Guo and Jiakai He and Jianye Chen and Fengyu Zhou and Siu Cheung Hui},
  title = {{InteMATs: Integrating Granularity-Specific Multilingual Adapters for Cross-Lingual Transfer}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.findings-emnlp.335},
}
Figure