NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

LinguaMap: Which Layers of LLMs Speak Your Language and How to Tune Them?

J. Ben Tamo, Daniel Carlander-Reuterfelt, Jonathan Rubin, Oleg Poliannikov, Dezhi Hong, Mingxian Wang

Overview

LinguaMap reveals that multilingual Large Language Models (LLMs) follow a "three-phase" internal logic: they align different languages into a shared concept space in early layers, reason in a language-agnostic (often English-biased) middle zone, and only decide which language to "speak" in the final layers. By fine-tuning just these last few layers—representing only 3–5% of total parameters—researchers achieved over 98% language consistency without sacrificing the model's reasoning capabilities.

The Language Control Problem

Despite being trained on dozens of languages, multilingual LLMs frequently suffer from "language control" failures. The authors identify two specific bottlenecks:

  1. Multilingual Transfer Bottleneck: The model responds in the correct language but gives the wrong answer.
  2. Language Consistency Bottleneck: The model solves the task correctly but responds in the wrong language (usually English).

Current fixes often involve "full-scope" fine-tuning, which is computationally expensive and can inadvertently damage the model's core reasoning abilities. The authors set out to find exactly where language identity is managed within a model's architecture to enable more surgical, efficient adaptations.

Methods: Peeking Inside the Layers

The researchers employed a mix of behavioral evaluation and mechanistic interpretability to track how models process language internally. They tested models using Monolingual, Code-Switched (mixed languages), Bilingual Answer, and English Distractor prompts to stress-test language adherence.

To understand internal behavior, they used Logit Lens Analysis, a technique that "peeks" at intermediate layers by projecting their hidden states onto the final output vocabulary. This allowed the team to track how language probability shifts layer-by-layer.

Cross-Language Probabilities via Logit Lens

Additionally, they measured Hidden State Similarity using cosine similarity between the internal representations of semantically identical prompts in different languages (e.g., the English vs. Spanish version of the same question). Based on these findings, they proposed Selective Fine-Tuning (SFT): tuning only the final $k$ layers (the "output language control" zone) while freezing the rest of the model.

Key Insights: The Three-Phase Architecture

The most significant finding is that LLMs do not process language uniformly throughout their depth. Instead, they follow a distinct pipeline:

The Three-Phase Architecture of Multilingual LLMs
  • Phase 1: Semantic Alignment (Layers 1–i): Early layers map inputs from various languages into a shared semantic space.
  • Phase 2: Task Reasoning (Layers i–j): Middle layers perform the actual "thinking." Interestingly, this space is heavily biased toward English. Even when asked a question in Hindi, the model's internal reasoning space looks remarkably like its English representation.
  • Phase 3: Output Language Control (Layers j–L): The final layers handle the translation of the reasoned answer into the target script.

Language consistency is almost entirely governed by this final 5% of the model. Tuning the middle "reasoning" layers is not only unnecessary but often catastrophic, breaking the model's ability to solve tasks. Furthermore, different models exhibit different internal dynamics: BLOOM is "unstable" (mixing languages in middle layers), while Qwen is "biased" (stubbornly sticking to English until the very last moment).

Key Results and Efficiency

By applying Selective SFT to just the final layers, the researchers achieved results nearly identical to full-model fine-tuning while updating only 3–5% of parameters.

  • Consistency Boost: On Qwen-3-32B, language consistency in difficult code-switched scenarios jumped from under 10% to over 98%.
  • Performance Preservation: Unlike random layer tuning, which causes task accuracy to collapse, selective tuning of the final layers preserved (and in some cases improved) the model's scores on benchmarks like MGSM (multi-step math) and XQuAD (reading comprehension).
  • Optimal Depth: The ideal tuning depth varies by model size. For Bloom-7.1B, tuning just the last layer was optimal; for Qwen-3-32B, the last two layers provided the best balance.

Limitations and Future Work

While the method fixes what language the model speaks, it doesn't necessarily fix the "Multilingual Transfer Bottleneck" (where the model is simply smarter in English than in other languages). The models also still showed some vulnerability to "English Distractor" prompts, suggesting that while the output is controlled, the reasoning phase remains susceptible to English-centric interference. Future work will explore more explicit reasoning-level disambiguation strategies to bridge the gap between language control and cross-lingual task competence.

Summary updated

BibTeX
@inproceedings{tamo2026linguamap,
  author = {J. Ben Tamo and Daniel Carlander-Reuterfelt and Jonathan Rubin and Oleg Poliannikov and Dezhi Hong and Mingxian Wang},
  title = {{LinguaMap: Which Layers of LLMs Speak Your Language and How to Tune Them?}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=r00UxTl8El},
}
Figure