Data-Efficient Cross-Lingual Transfer with Language-Specific Subnetworks

Rochelle Choenni, Dan Garrette, Ekaterina ShutovaarXiv 2022

TL;DR

Large multilingual models often suffer from "negative interference," where parameter updates for one language inadvertently degrade performance in another. This paper introduces language-specific attention-head subnetworks—both static and dynamically updated—combined with meta-learning to selectively share parameters. This approach significantly improves cross-lingual transfer to low-resource languages while drastically reducing training data and compute requirements.

What Problem Does This Paper Address?

Multilingual language models (like mBERT) are highly effective because they share parameters across dozens of languages, enabling cross-lingual transfer. However, this massive sharing is a double-edged sword. When a model updates its parameters to improve on one language, it can conflict with the linguistic structures of another—a phenomenon known as negative interference.

This clash heavily penalizes low-resource languages. Without enough native training data, these languages rely on positive transfer from high-resource languages. In practice, standard fine-tuning often causes the model to forget or overwrite features crucial for low-resource performance. The authors tackle this by trying to control exactly what parameters get shared and when during the fine-tuning process.

Methods

The authors focus on dependency parsing using an mBERT backbone. Instead of allowing all languages to update all parameters uniformly, they introduce language-specific subnetworks at the structured attention-head level. They evaluate two main masking strategies:

  1. Static Subnetworks ($SN_{static}$): They use importance pruning to identify which attention heads are crucial for a specific language during an initial run, creating a binary mask that remains fixed during final fine-tuning.
  2. Dynamic Subnetworks ($SN_{dyna}$): A novel approach where the subnetwork masks are treated as trainable weights and updated jointly with the model parameters using a straight-through estimator. This allows the pattern of parameter sharing to dynamically evolve across different learning stages.

They integrate these subnetworks into both standard non-episodic fine-tuning and a Model-Agnostic Meta-Learning (MAML) framework. At test time, for a new low-resource language, they perform few-shot adaptation (just 20 examples) using the subnetwork mask of the typologically closest high-resource language (determined via the URIEL database).

Datasets

The models are evaluated on the Universal Dependencies (UD) v2.9 benchmark, spanning 86 datasets across 74 unique, typologically diverse languages (58 of which are classified as truly low-resource). The models are fine-tuned on 8 high-resource languages: English, Arabic, Czech, Estonian, Hindi, Italian, Norwegian, and Russian.

Key Insights and Ideas

  • The Sharing Trade-off: Static and dynamic subnetworks exhibit completely opposite, yet complementary, behaviors. Static subnetworks offer massive performance spikes for typologically similar languages but can degrade performance on distant ones. Dynamic subnetworks act as a "safe bet," offering modest, widespread gains and minimizing performance drops.
  • Mitigating Gradient Conflicts: By analyzing the gradients during training, the authors proved that their subnetwork masking directly reduces "gradient conflicts" (where gradients from different languages point in opposite directions) while increasing overall gradient similarity.
  • Meta-Learning + Dynamic Subnetworks = Power Couple: While meta-learning alone doesn't reduce gradient conflicts, pairing it with dynamic subnetworks ($META-SN_{dyna}$) yields the best performance for data-scarce, typologically distant, and completely unseen languages during pre-training.

Key Results

  • As shown in the summary table below, subnetwork-based methods consistently outperform full-model baselines:
Summary of results on UD Parsing
  • In the non-episodic setup, $SN_{static}$ achieved the highest average Labeled Attachment Score (LAS) of 40.4 (a +2.8% absolute improvement over the baseline).
  • In the meta-learning setup, $META-SN_{dyna}$ performed best on 28% of all test languages, proving highly robust.
  • The distribution of these performance changes can be clearly seen in the KDE plot, illustrating the high-gain/high-risk nature of static networks versus the stable, positive shift of dynamic networks:
Figure 1: Kernel density estimation (KDE) plot over the relative performance changes of each model for all test languages when comparing to its corresponding full model training baseline.
  • Crucially, these gains were achieved with remarkable data efficiency: training took less than a day using only 8 treebanks, compared to ~20 days for previous state-of-the-art models like UDify.

Limitations and Future Work

Despite clear improvements, absolute performance on truly low-resource languages remains low, highlighting that parameter routing alone cannot fully compensate for extreme data scarcity. Additionally, because test-time masks rely on typological similarity mapping, the choice of the source mask is critical; a suboptimal mask choice can still introduce negative interference.

The authors note that a promising future direction is finding a way to unify the distinct strengths of $NONEP-SN_{static}$ (which excels on typologically similar languages) and $META-SN_{dyna}$ (which excels on distant/unseen languages) into a single, cohesive architecture.

Summary updated

BibTeX
@misc{choenni2022data,
  author = {Rochelle Choenni and Dan Garrette and Ekaterina Shutova},
  title = {{Data-Efficient Cross-Lingual Transfer with Language-Specific Subnetworks}},
  year = {2022},
  eprint = {2211.00106},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.00106},
}
Figure