LinguaMap: Which Layers of LLMs Speak Your Language and How to Tune Them?
J. Ben Tamo, Daniel Carlander-Reuterfelt, Jonathan Rubin, Dezhi Hong, Mingxian Wang, Oleg Poliannikov
TL;DR
LinguaMap addresses persistent language-control failures in multilingual LLMs by integrating a four-prompt diagnostic framework with layer-wise interpretability (logit lens and hidden-state similarity). It uncovers a three-phase internal structure—semantic grounding in early layers, reasoning in the middle, and language-specific generation in the late layers—and demonstrates that selectively finetuning only the final layers yields high language consistency with minimal parameter updates, closely matching full fine-tuning performance. The findings reveal a trade-off where models excel in multilingual task performance but vary in language control, and they offer a scalable approach to multilingual adaptation with clear implications for deployment in diverse linguistic contexts.
Abstract
Despite multilingual pretraining, large language models often struggle with non-English tasks, particularly in language control, the ability to respond in the intended language. We identify and characterize two key failure modes: the multilingual transfer bottleneck (correct language, incorrect task response) and the language consistency bottleneck (correct task response, wrong language). To systematically surface these issues, we design a four-scenario evaluation protocol spanning MMLU, MGSM, and XQuAD benchmarks. To probe these issues with interpretability, we extend logit lens analysis to track language probabilities layer by layer and compute cross-lingual semantic similarity of hidden states. The results reveal a three-phase internal structure: early layers align inputs into a shared semantic space, middle layers perform task reasoning, and late layers drive language-specific generation. Guided by these insights, we introduce selective fine-tuning of only the final layers responsible for language control. On Qwen-3-32B and Bloom-7.1B, this method achieves over 98 percent language consistency across six languages while fine-tuning only 3-5 percent of parameters, without sacrificing task accuracy. Importantly, this result is nearly identical to that of full-scope fine-tuning (for example, above 98 percent language consistency for both methods across all prompt scenarios) but uses a fraction of the computational resources. To the best of our knowledge, this is the first approach to leverage layer-localization of language control for efficient multilingual adaptation.
