DeMuX: Data-efficient Multilingual Learning

Simran Khanuja, Srinivas Gowriraj, Lucio M. Dery, Graham Neubig

Introduction

Building Natural Language Processing (NLP) tools for the world’s 7,000+ languages presents a significant logistical challenge. Traditional "pipelined" approaches are often brittle, requiring explicit language identification (LangID) and the manual selection of a "transfer" language based on linguistic metadata. This process is frequently unviable for the 98% of languages unsupported by commercial LangID systems or those lacking comprehensive linguistic documentation. DeMuX addresses this "data selection" bottleneck by identifying the most informative instances from massive, unlabeled multilingual pools to maximize performance under a fixed annotation budget.

The DeMuX Framework

DeMuX is an end-to-end, language-agnostic framework rooted in Active Learning (AL). Unlike traditional pipelines that rely on external metadata, DeMuX leverages the internal representation space of pre-trained Multilingual Language Models (MultiLMs).

Comparison of traditional pipelined approaches versus the unified DeMuX framework.

By selecting data at the instance level, DeMuX bypasses the need for LangID and transfer language selection. This allows the framework to naturally handle complex scenarios like code-mixed text or noisy web-crawled data that typically disrupt standard pipelines.

Data Selection Strategies

The framework proposes three primary strategies for selecting source data to benefit a specific target set:

  1. AVERAGE-DIST (Representation-based): Selects source points that are semantically "prototypical" of the target data by minimizing average distance in the embedding space.
  2. UNCERTAINTY (Information-based): Employs margin sampling to identify examples where the model is most uncertain (i.e., the smallest difference between the top two predicted class probabilities).
  3. KNN-UNCERTAINTY (Hybrid): First identifies the "neighborhood" of the target data in the embedding space and then selects the most uncertain points within that vicinity. This ensures selected data is both challenging for the model and highly relevant to the target.

Experimental Results

The authors evaluated DeMuX across four tasks: Part-of-Speech (POS) tagging, Named Entity Recognition (NER), Natural Language Inference (NLI), and Question Answering (QA). Testing involved models like XLM-R, InfoXLM, and RemBERT across various resource-constrained language configurations.

Performance comparison of DeMuX strategies against baselines across multiple tasks and languages.

DeMuX outperformed strong baselines, such as random sampling, in 84% of test cases. The framework is particularly effective in "ultra-low-budget" settings (5–100 examples), where it achieved gains of up to 11 F1 points for token-level tasks. Interestingly, in some NLI experiments, DeMuX-selected source data yielded better performance than fine-tuning on the target language's own "Gold" training data.

Key Insights and Limitations

A notable finding is that script similarity often outweighs grammatical proximity for tasks like NER; when targeting Urdu, DeMuX prioritized Farsi and Arabic (shared script) over the linguistically closer Hindi.

While powerful, DeMuX involves computational overhead due to the need to run inference over the entire unlabeled source pool. Additionally, the selected data is model-specific, meaning a change in architecture may require re-running the selection process. Future work aims to refine hybrid strategies for complex tasks like QA, potentially by pruning globally uncertain points based on target similarity.

Summary updated

BibTeX
@inproceedings{khanuja2024demux,
  author = {Simran Khanuja and Srinivas Gowriraj and Lucio M. Dery and Graham Neubig},
  title = {{DeMuX: Data-efficient Multilingual Learning}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.naacl-long.412},
}
Figure