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

Mateusz Klimaszewski, Piotr Andruszkiewicz, Alexandra Birch · OpenReview

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. Inspired by 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 in the most challenging cases of zero-shot and low-resource applications.

Introduction

Multilingual Pre-trained Language Models (MLLMs) like XLM-R are powerful, but they face the "curse of multilinguality": as more languages are added, the model's capacity per language decreases, leading to "negative interference." To mitigate this, researchers often employ Modular Deep Learning (MDL), specifically using adapters. These are small, trainable layers inserted into a frozen base model to learn specific languages or tasks.

While adapters prevent negative interference by isolating language-specific knowledge, they often hinder "positive transfer"—the ability for a model to leverage knowledge from a related language (e.g., using Spanish to assist with Italian). Furthermore, training high-quality adapters requires significant data and compute. In zero-shot or low-resource scenarios, practitioners are often forced to choose between a generic English adapter or a single "proxy" related language, neither of which is optimal.

Methodology

The proposed Language Arithmetic (LA) framework extends the concept of "task arithmetic" to the multilingual domain. It operates on the principle that language knowledge in adapters is structured additively.

  1. Language Vectors: A language vector ($\tau$) is defined as the element-wise difference between a trained language adapter's weights and the base model's weights.
  2. Arithmetic Operations: Instead of training a new adapter for a target language, a new one is created by interpolating existing vectors. For example, a refined Spanish adapter ($\theta_{LA}$) can be constructed by combining English ($\tau_{en}$) and Spanish ($\tau_{es}$) vectors using a scaling factor ($\lambda$): $$\theta_{LA} = \theta_{pre} + \lambda\tau_{en} + (1 - \lambda)\tau_{es}$$
  3. Integration: This method serves as a training-free post-processing step within the MAD-X framework, which typically stacks a language adapter and a task adapter.
Overview of the MAD-X framework and the proposed Language Arithmetic for zero-shot inference.

Experimental Setup

The method was evaluated across three major NLP benchmarks covering 13 diverse languages:

  • WikiANN: For Named Entity Recognition (NER).
  • XNLI: For Natural Language Inference (NLI).
  • XQuAD: For Question Answering (QA).
  • IndicXNLI (Assamese subset): A "true" low-resource scenario where the base model had no prior exposure to the language during pre-training.
  • Wikipedia Corpora: Used for training the initial pool of language adapters.

Results and Discussion

Language Arithmetic demonstrates that state-of-the-art improvements can be achieved simply by averaging weights, suggesting that language vectors are less orthogonal and more compatible for arithmetic than task vectors.

Key Findings

  • Zero-Shot Improvements: In scenarios lacking a target language adapter, LA outperformed the best single "proxy" language by up to 3.15 F1 points in NER and 1.13 F1 in QA on average for XLM-R.
  • The λ Sweet Spot: Interpolation analysis revealed that a $\lambda$ value of 0.5 (a simple 50/50 split) is often near-optimal, making the method easy to deploy without extensive hyperparameter tuning.
  • Rescuing Low-Resource Languages: For languages like Assamese, combining a weak, low-data adapter with a robust English adapter yielded significant performance jumps, effectively transferring reasoning capabilities to the new language.
Performance comparison across NER, NLI, and QA tasks, demonstrating consistent gains from Language Arithmetic over English and related language proxies.

Conclusion

Language Arithmetic provides a computationally efficient, training-free way to enhance multilingual models. While currently English-centric, future work could explore multi-source arithmetic (e.g., combining multiple related languages) and more sophisticated linguistic mapping. The success of this approach on bottleneck adapters suggests potential for expansion to other Parameter-Efficient Fine-Tuning (PEFT) methods like LoRA.

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