No Train but Gain: Language Arithmetic for training-free Language Adapters enhancement

Mateusz Klimaszewski, Piotr Andruszkiewicz, Alexandra Birch

Abstract

Modular deep learning is the state-of-the-art solution for lifting the curse of multilinguality, preventing the impact of negative interference and enabling cross-lingual performance in Multilingual Pre-trained Language Models. However, a trade-off of this approach is the reduction in positive transfer learning from closely related languages. In response, we introduce a novel method called language arithmetic, which enables training-free post-processing to address this limitation. Extending the task arithmetic framework, we apply learning via addition to the language adapters, transitioning the framework from a multi-task to a multilingual setup. The effectiveness of the proposed solution is demonstrated on three downstream tasks in a MAD-X-based set of cross-lingual schemes, acting as a post-processing procedure. Language arithmetic consistently improves the baselines with significant gains, especially in the most challenging case of zero-shot application.

Introduction

Multilingual Pre-trained Language Models (MLLMs), such as mBERT and XLM-R, often encounter the "curse of multilinguality." As the number of supported languages increases, the model's capacity per language decreases, leading to negative interference where parameters compete across different linguistic structures.

Modular Deep Learning (MDL) addresses this by using adapters—small, trainable bottleneck layers inserted into a frozen base model. While this isolation prevents negative interference, it also hinders "positive transfer," the beneficial sharing of knowledge between typologically related languages (e.g., Spanish and Italian). This research introduces Language Arithmetic (LA), a training-free post-processing technique designed to regain this shared knowledge without the computational overhead of retraining.

Methodology

Language Arithmetic extends the concept of "Task Arithmetic" to the multilingual domain. The method defines a "language vector" ($\tau$) as the difference between the weights of a language-specific adapter and the frozen base model. An enhanced adapter ($\theta_{LA}$) is then created through a simple weighted interpolation:

$$\theta_{LA} = \theta_{pre} + \lambda\tau_{lang1} + (1 - \lambda)\tau_{lang2}$$

In this framework, $\tau_{lang1}$ typically represents the "task language" (often English), while $\tau_{lang2}$ is a related language adapter. This allows researchers to blend the task-specific knowledge of one adapter with the linguistic proximity of another.

Overview of the MAD-X framework and the integration of Language Arithmetic for zero-shot inference.

Experimental Setup

The effectiveness of Language Arithmetic was evaluated across 13 diverse languages using three major downstream tasks:

  • Named Entity Recognition (NER): Evaluated on the WikiANN dataset.
  • Natural Language Inference (NLI): Evaluated on XNLI and IndicXNLI.
  • Question Answering (QA): Evaluated on XQuAD and SQuAD 1.1.

The study placed a particular focus on low-resource and zero-shot scenarios, including languages like Assamese and Swahili, which present significant challenges for standard MLLMs.

Results and Discussion

Language Arithmetic consistently outperformed standard MAD-X baselines across all tasks and models (mBERT and XLM-R). In zero-shot settings, the method achieved gains of up to 3.1 F1 points in NER and 1.1 F1 points in QA.

Experimental results for NER, NLI, and QA tasks, demonstrating that Language Arithmetic (yellow) consistently outperforms English and related language proxies.

A key insight from the study is that language vectors exhibit a higher cosine similarity (~0.2) than task vectors, suggesting they share a significant structural "blueprint." Because of this overlap, simple addition is more effective than advanced merging techniques like "Ties-Merging," which prunes parameters and can inadvertently remove shared linguistic knowledge.

Conclusion

Language Arithmetic offers a robust, training-free solution to enhance cross-lingual transfer in modular MLLMs. By simply interpolating existing adapters, it restores positive transfer between related languages, providing significant performance boosts in low-resource and zero-shot scenarios. Future research will explore multi-source merging and the application of this arithmetic to generative tasks.

Summary updated

BibTeX
@inproceedings{klimaszewski2025no,
  author = {Mateusz Klimaszewski and Piotr Andruszkiewicz and Alexandra Birch},
  title = {{No Train but Gain: Language Arithmetic for training-free Language Adapters enhancement}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2025},
  url = {https://openreview.net/forum?id=tJQTKUrn0i},
}
Figure