Language Arithmetics: Towards Systematic Language Neuron Identification and Manipulation

Daniil Gurgurov, Katharina Trinley, Yusser Al Ghussin, Tanja Baeumel, Josef van Genabith, Simon OstermannarXiv 2025 · DOI

Introduction

Modern Large Language Models (LLMs) like Llama-3 and Mistral exhibit remarkable multilingual capabilities, yet the internal mechanisms governing how they process and distinguish between different languages remain largely opaque. A central question in AI interpretability is whether these models possess dedicated "language sectors" or if linguistic information is represented in a distributed, cross-lingual fashion. This research introduces Language Arithmetics, a systematic framework for identifying and manipulating "language neurons" across 21 typologically diverse languages. By steering these specific units, the authors demonstrate the ability to force language switching and enhance multilingual performance without traditional fine-tuning.

Methodology

The researchers employ a three-stage approach to map and control the model's internal language representations:

  1. Identification (LAPE): Using Language Activation Probability Entropy (LAPE), neurons are identified that fire consistently for a specific language while remaining inactive for others. Low entropy indicates high specialization.
  2. Analysis (Logit Lens): The "Logit Lens" technique is used to inspect internal predictions at each layer, revealing that language identity primarily emerges in the final third of the model's architecture.
  3. Manipulation (Language Arithmetics): The core contribution is an additive intervention method. Instead of hard-coding neuron values, the authors calculate a "boost" value (the average activation for a target language) and add it to the hidden states during inference. Conversely, languages can be suppressed by multiplying associated neurons by zero or negative values.

The Geography of Language Neurons

Analysis reveals that language-specific neurons are not randomly distributed but are heavily clustered in the deeper layers of the model (specifically layers 17–28 in 8B/12B architectures). This suggests a hierarchical processing flow where the model first handles semantic content in a language-agnostic manner before determining the output language in the final stages.

Neuron count per layer across various languages, showing a significant concentration in the deeper layers (17-28).

Furthermore, the study finds that linguistic proximity is reflected in the model's internal structure. Related languages, such as those within the Romance or Germanic families, share a higher percentage of specialized neurons. In contrast, languages with non-Latin scripts (e.g., Tibetan, Chinese, Hindi) exhibit significantly more isolated specialization and less overlap with other language groups.

Matrix of neuron overlap count between different languages and language families, illustrating higher overlap within related linguistic groups.

Experimental Results

The effectiveness of Language Arithmetics was evaluated across several benchmarks, including FLORES-200 for translation and XQuAD for question answering. Key findings include:

  • Effective Steering: In a custom "Language Forcing" task, the additive arithmetic method achieved success rates exceeding 55% for Llama-3.1-8B, outperforming previous replacement-based methods.
  • Performance Gains: Activating the correct language neurons improved performance on downstream tasks like Natural Language Inference (NLI) and translation by 5% to 15% without any additional training.
  • Cross-Lingual Transfer: Activating neurons for one language (e.g., Italian) often yielded performance improvements for related languages (e.g., Spanish), confirming that these neurons capture broad family-wide features.
  • Internal Fallbacks: Deactivating neurons for a primary language like English does not result in gibberish; instead, the model defaults to the next most probable language in its internal hierarchy, such as French or Spanish.

Conclusion and Future Work

While this work provides a systematic map of individual language neurons, the authors acknowledge that language representation is likely distributed across more complex circuits. Future research will focus on "circuit-level" interventions, exploring how these neurons interact with attention heads. Additionally, while steering is effective, maintaining consistent fluency in lower-resource languages remains a challenge. Language Arithmetics represents a significant step toward precise, training-free control of multilingual LLMs.

Summary updated

BibTeX
@misc{gurgurov2025language,
  author = {Daniil Gurgurov and Katharina Trinley and Yusser Al Ghussin and Tanja Baeumel and Josef van Genabith and Simon Ostermann},
  title = {{Language Arithmetics: Towards Systematic Language Neuron Identification and Manipulation}},
  year = {2025},
  eprint = {2507.22608},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.22608},
}
Figure