Multilingual Machine Translation with Hyper-Adapters

Christos Baziotis, Mikel Artetxe, James Cross, Shruti Bhosale · DOI

TL;DR

This paper introduces "hyper-adapters," a novel approach to multilingual machine translation (MNMT) that significantly improves parameter efficiency and performance by generating language-specific adapter modules from a hyper-network. By learning to encode language relatedness, hyper-adapters enable positive transfer across languages and outperform traditional adapters, even with substantially fewer parameters.

What Problem Does This Paper Address?

Multilingual machine translation (MNMT) aims to build a single model that can translate between many languages, offering cost savings and enabling positive transfer from high-resource to low-resource languages. However, a key challenge is the "transfer-interference trade-off": as more languages are added, performance can degrade in high-resource languages due to interference. A common solution is to use language-specific modules, like adapters, to relax parameter sharing. While effective, these adapters can become prohibitively expensive in massively multilingual settings due to the sheer number of parameters required. Furthermore, traditional adapters don't inherently share information between related languages, missing opportunities for positive transfer.

Methods

The core innovation is the hyper-adapter, which uses a hyper-network to generate adapter weights. Instead of having separate, fixed adapter modules for each language (or language pair), the hyper-network takes language and layer embeddings as input and dynamically produces the adapter weights. This allows for:

  • Parameter Efficiency: The number of hyper-network parameters is independent of the number of languages, leading to significant savings compared to traditional adapters.
  • Language Relatedness Encoding: The hyper-network can learn to encode similarities between languages, enabling positive transfer. For example, it can learn that Nepali and Hindi are related and leverage this knowledge.
  • Optimization Fix: The authors address optimization challenges that previously hindered scaling hyper-networks. They propose a "rescaling fix" that improves convergence and allows for training larger hyper-networks.

Datasets

The primary dataset used is ML50, a large multilingual translation dataset with 230 million sentences across 50 typologically diverse languages. They also create an artificial ML15 dataset by splitting existing languages into smaller parts to simulate scenarios with more related languages, allowing them to study the impact of data redundancy.

Key Insights and Ideas

  • Hyper-adapters learn language relatedness: Unlike regular adapters, hyper-adapters show evidence of understanding and leveraging similarities between languages, leading to better performance when related languages are present.
  • Parameter efficiency is a major win: The ability to achieve comparable or better performance with significantly fewer parameters is crucial for scaling MNMT to hundreds or thousands of languages.
  • Optimization is key to unlocking hyper-networks: Prior work struggled to scale hyper-networks effectively. The proposed rescaling fix is critical for enabling larger, more capable hyper-adapter models.
  • Data redundancy fuels hyper-adapter gains: The benefits of hyper-adapters are amplified in datasets with more related languages, suggesting they are particularly well-suited for scenarios with linguistic similarities.

Key Results

  • Performance: Hyper-adapters consistently outperform regular adapters with the same parameter count. They can also match the performance of much larger regular adapters (up to 12x more parameters) with significantly fewer parameters. For instance, in the En→X direction, hyper-adapters-base outperform lang-adapters by 0.9 BLEU and pair-adapters by 0.7 BLEU.
  • Efficiency: Hyper-adapters are more parameter-efficient, with smaller variants achieving competitive results. They also converge faster than other approaches.
  • Scalability: Hyper-adapters scale better than regular dense networks, with smaller dense networks equipped with hyper-adapters yielding results comparable to larger dense networks.
  • Language Relatedness: Experiments with probes show that hyper-adapters encode language relatedness, while regular adapters do not.
  • Zero-Shot Translation: Manipulating the hyper-network input reveals a trade-off between supervised and zero-shot translation capabilities, with specific configurations improving one at the expense of the other.

Limitations and Future Work

  • Training Overhead: Hyper-adapters introduce a small computational overhead during training due to the hyper-network pass. However, this is negligible in practice as it's run once per batch and can be cached.
  • Dataset Size: The experiments were conducted on ML50, which is large but still a fraction of the scale of real-world multilingual data. The authors suggest that performance gains might be even more pronounced on larger, more diverse datasets.
  • Zero-Shot Trade-off: The paper identifies a trade-off in zero-shot translation performance based on hyper-network input configurations, suggesting room for further research to optimize this aspect.
  • Dropout in Hyper-network: Exploring the use of dropout within the hyper-network layers showed mixed results, indicating potential for future work to better integrate this technique.

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