Multilingual Machine Translation with Hyper-Adapters

Christos Baziotis, Mikel Artetxe, James Cross, Shruti Bhosale

Abstract

Multilingual Machine Translation (MNMT) aims to consolidate translation capabilities for numerous language pairs into a single model. However, increasing the number of languages often leads to "negative interference," where fixed model capacity is overextended, degrading performance. While standard adapters mitigate this by adding language-specific layers, they scale poorly and isolate language-specific knowledge. We present Hyper-Adapters, a framework that utilizes a hyper-network to generate adapter weights dynamically. This method achieves higher translation quality with significantly fewer parameters (up to 12x reduction) and facilitates knowledge transfer between linguistically related languages.

Introduction: The Challenge of Scaling MNMT

The goal of MNMT is to leverage high-resource language data to improve low-resource translation. Traditional dense models struggle with capacity bottlenecks as more languages are added. Adapters—small modules inserted into a frozen pre-trained model—provide a parameter-efficient alternative. Yet, standard adapters face two primary limitations:

  1. Linear Scaling: Total parameters grow linearly with the number of languages, becoming unsustainable for hundreds of languages.
  2. Knowledge Isolation: Adapters for related languages (e.g., Hindi and Nepali) are trained independently, preventing beneficial cross-lingual transfer.

Methodology: The Hyper-Adapter Framework

Hyper-Adapters address these issues by replacing static adapter weights with a Hyper-Network. Instead of storing unique weights for every language pair, the system stores a single hyper-network that "predicts" the necessary adapter weights on the fly.

The Hyper-Adapter architecture uses a central Hyper-Network to generate weights for adapters within the Transformer Encoder and Decoder based on source, target, and layer embeddings.

The hyper-network takes three primary inputs: a source language embedding, a target language embedding, and a layer ID. This allows the model to generate context-specific weights for every layer in the Transformer stack. To ensure training stability when scaling the hyper-network, the authors introduced a rescaling fix: dividing generated weights by $\sqrt{d_h}$ (where $d_h$ is the hidden dimension). This simple normalization prevents variance explosion and enables the use of larger, more expressive hyper-networks.

Experimental Results and Efficiency

Evaluations on the ML50 dataset (50 languages, 230M sentences) demonstrate that Hyper-Adapters are remarkably efficient. They achieve performance parity with standard adapters while utilizing 12x fewer parameters. Furthermore, when allocated an equivalent parameter budget, Hyper-Adapters consistently outperform standard adapters across high, medium, and low-resource language groups.

Beyond raw performance, Hyper-Adapters exhibit faster convergence, reaching peak standard-adapter performance in approximately half the training steps. This efficiency allows smaller "Transformer-Base" models with Hyper-Adapters to compete with or exceed the performance of much larger "Transformer-Big" architectures.

Implicit Language Topology and Knowledge Sharing

A key advantage of the Hyper-Adapter approach is its ability to learn language relationships without explicit supervision. Because all adapters are generated from the same shared hyper-network, the model naturally clusters similar languages together in its embedding space.

UMAP visualization of language embeddings generated by the hyper-network, showing clear clustering by linguistic family (e.g., Romance, Germanic, Indo-Aryan).

As shown in the UMAP visualization, the hyper-network automatically discovers linguistic families. This shared representation allows low-resource languages to effectively "borrow" capacity and knowledge from their high-resource relatives, leading to significant gains in translation quality for underrepresented languages.

Conclusion and Future Directions

Hyper-Adapters represent a significant step toward truly scalable and collaborative multilingual translation. By moving from static to generated weights, the system breaks the linear relationship between language count and parameter count while fostering cross-lingual transfer. While the approach introduces some training complexity and a trade-off between supervised and zero-shot performance, its efficiency and scaling properties make it a compelling choice for massive-scale MNMT. Future research may extend this "hyper-generation" concept to other multi-task domains and modalities.

Summary updated

BibTeX
@inproceedings{baziotis2022multilingual,
  author = {Christos Baziotis and Mikel Artetxe and James Cross and Shruti Bhosale},
  title = {{Multilingual Machine Translation with Hyper-Adapters}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.emnlp-main.77},
}
Figure