Condensing Multilingual Knowledge with Lightweight Language-Specific Modules

Haoran Xu, Weiting Tan, Shuyue Stella Li, Yunmo Chen, Benjamin Van Durme, Philipp Koehn, Kenton Murray

Introduction

Multilingual AI models often suffer from "language interference," where different languages compete for the same neural parameters, leading to degraded performance compared to specialized single-language models. While Language-Specific (LS) modules and Mixture-of-Experts (MoE) architectures can mitigate this, they typically lead to a "parameter explosion," making models difficult to deploy on standard hardware. Researchers at Johns Hopkins University have introduced Language-specific Matrix Synthesis (LMS) and Fuse Distillation (FD) to address this scaling challenge, achieving superior translation performance with significantly fewer parameters.

Language-specific Matrix Synthesis (LMS)

The core innovation, LMS, avoids the memory overhead of full-rank weight matrices for every language. Instead, it approximates these weights using low-rank matrix decompositions.

Overview of Language-specific Matrix Synthesis (LMS) showing pair-wise and language-wise synthesis.

LMS utilizes two primary synthesis strategies:

  • Language-Wise Synthesis: Assigns a low-rank matrix to each language.
  • Pair-Wise Synthesis: Specifically for translation, this method combines a "vertical" matrix from the source language with a "flat" matrix from the target language. This captures the unique nuances of specific language pairs (e.g., French to English) efficiently without requiring a unique matrix for every possible pair ($N^2$ complexity).

Fuse Distillation (FD)

To further optimize deployment, the authors propose Fuse Distillation (FD). This training strategy "squashes" the specialized knowledge of multiple experts back into a single shared module. During training, the model performs two forward passes: one through specialized LS modules and another through a shared module. A distillation loss (KL-divergence) encourages the shared module to mimic the experts' behavior. At inference, the specialized experts can be discarded, leaving a lightweight, high-performance shared model.

Experimental Setup and Datasets

The methods were evaluated across three diverse multilingual tasks to prove generalization:

  • Machine Translation (MMT): Tested on IWSLT’14 (8 languages) and the massive OPUS-100 (94 languages).
  • Named Entity Recognition (MNER): Evaluated on Wikiann across 24 diverse languages.
  • Question Answering (MQA): Focused on 6 typologically diverse languages using TyDiQA-Gold Passage.

Key Insights

The success of these methods rests on two theoretical pillars. First, the Intrinsic Rank Hypothesis suggests that language-specific features reside in a lower-dimensional subspace, meaning a low-rank approximation (e.g., rank 32 or 64) is sufficient to capture linguistic uniqueness. Second, the authors found that Relational Knowledge—the interaction between source and target languages—is more critical for translation than individual language modeling alone.

Results and Efficiency

LMS demonstrates a significant improvement in parameter efficiency. On the OPUS-100 translation task, LMS outperformed the Switch Transformer by +1.73 BLEU while maintaining a much smaller footprint.

Comparison of BLEU score gains versus the number of parameters for LMS and Switch Transformer.

Specifically, an LMS model with a rank of 52 achieved performance comparable to a 16-expert Switch Transformer but used 3.7x fewer additional parameters (51M vs 189M). Furthermore, Fuse Distillation allowed the model to retain 65% of the performance gains of a massive MoE model while adding only 1% more parameters during inference.

Limitations and Future Work

Despite its advantages, LMS requires "homogeneous batches" during training, where all sentences in a batch belong to the same language pair, which may complicate some production pipelines. Additionally, while it saves memory, LMS introduces a minor computational step ($U \times V$ multiplication) in every layer, though the authors describe this overhead as negligible for most applications. Future work may explore scaling FD to see if 100% of expert knowledge can be condensed into shared modules without performance loss.

Summary updated

BibTeX
@inproceedings{xu2023condensing,
  author = {Haoran Xu and Weiting Tan and Shuyue Stella Li and Yunmo Chen and Benjamin Van Durme and Philipp Koehn and Kenton Murray},
  title = {{Condensing Multilingual Knowledge with Lightweight Language-Specific Modules}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.emnlp-main.97},
}
Figure