NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Hyper-X: A Unified Hypernetwork for Multi-Task Multilingual Transfer

Ahmet Üstün, Arianna Bisazza, Gosse Bouma, Gertjan van Noord, Sebastian Ruder

Abstract

Massively Multilingual Transformers (MMTs) often encounter the "curse of multilinguality," where interference between languages degrades performance. While modular adapters mitigate this, they typically require specific training data for every task-language pair. We introduce Hyper-X, a unified hypernetwork that generates adapter weights on-the-fly by conditioning on task, language, and layer embeddings. This decoupling allows Hyper-X to perform zero-shot transfer in "mixed-language" scenarios—where training data for different tasks comes from different languages. Our results show that Hyper-X significantly outperforms traditional adapter frameworks in heterogeneous supervision settings while offering superior training efficiency.

Introduction

The scaling of MMTs like mBERT has enabled cross-lingual transfer, but these models often suffer from catastrophic forgetting or interference. Current solutions utilize small, modular layers called adapters. However, standard frameworks like MAD-X are siloed; performing Named Entity Recognition (NER) in a new language typically requires a specific language adapter and a task adapter trained on that language. This becomes a bottleneck in "heterogeneous supervision" scenarios where data for different tasks is available only in disjoint sets of languages.

Figure 1: Comparison of training scenarios: (1) Single-Task, (2) Multi-Task, and (3) the proposed Mixed-Language Multi-Task setting.

The Hyper-X Architecture

Hyper-X replaces static, pre-trained adapters with a dynamic hypernetwork. Instead of storing $N$ adapters for $N$ languages, Hyper-X maintains a single hypernetwork and a library of low-dimensional embeddings.

Figure 2: The Hyper-X architecture. (1) The hypernetwork takes task, language, and layer embeddings to generate (2) weights for bottleneck adapters within (3) a Transformer layer.

The hypernetwork takes three inputs: a Task embedding ($s^{task}$), a Language embedding ($s^{lang}$), and a Layer embedding ($s^{layer}$). It then generates the down-projection and up-projection matrices for bottleneck adapters at every layer of the transformer. This allows the model to "hallucinate" adapter weights for task-language pairs never seen during training by simply combining the relevant embeddings.

Methods and Auxiliary MLM

To handle languages not present in the MMT's original pre-training, Hyper-X incorporates Masked Language Modeling (MLM) as an auxiliary task during fine-tuning. This enables the model to learn language-specific embeddings from raw monolingual text (e.g., Wikipedia), which can then be paired with task embeddings for zero-shot inference. This auxiliary task is a primary driver for performance on unseen languages, contributing a +6.2 F1 boost for NER.

Key Results

We evaluated Hyper-X on Part-of-Speech (POS) tagging and NER across 16 diverse languages.

  • Superiority in Mixed Scenarios: In the Mixed-Language Multi-Task setting, Hyper-X outperformed mBERT by 9.0 F1 points in NER and 4.3% accuracy in POS.
  • Training Efficiency: Hyper-X is significantly faster to train than modular baselines. Training the Hyper-X Base model took approximately 18 hours, compared to 116 hours for the equivalent suite of individual adapters in the MAD-X framework.
  • Few-Shot Versatility: Hyper-X adapts rapidly to new data distributions, matching or beating strong baselines with as few as 5–50 examples in a new language.

Conclusion

Hyper-X provides a parameter-efficient and flexible framework for multilingual transfer. By decoupling task and language representations through a hypernetwork, it enables robust performance in realistic, data-constrained scenarios where supervision is heterogeneous across languages. Future work will explore the scalability of this approach to complex generative tasks and zero-resource transfer.

Summary updated

BibTeX
@inproceedings{ustun2022hyper,
  author = {Ahmet Üstün and Arianna Bisazza and Gosse Bouma and Gertjan van Noord and Sebastian Ruder},
  title = {{Hyper-X: A Unified Hypernetwork for Multi-Task Multilingual Transfer}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.emnlp-main.541},
}
Figure