Abstract
As Large Language Models (LLMs) become increasingly multilingual, understanding their internal mechanisms for language separation is critical. This study utilizes Sparse Autoencoders (SAEs) to identify interpretable, language-specific features within the latent space of LLMs. We introduce a novel monolinguality metric to isolate these features and demonstrate their utility in surgical ablation and precise language steering. Our findings reveal that these features respond to linguistic context rather than mere vocabulary, providing a more robust framework for multilingual model interpretability and control.
The Challenge of Multilingual Interpretability
Understanding how LLMs process multiple languages is complicated by "superposition," where individual neurons represent multiple unrelated concepts. Traditional methods like the "logit lens" are often unreliable due to varying activation distributions across layers. This paper addresses these challenges by decomposing dense activations into sparse, human-interpretable features using Sparse Autoencoders (SAEs).
Methodology: Sparse Autoencoders and the Monolinguality Metric
The authors apply SAEs to the residual stream of a model to extract sparse features. To identify which features are specific to a particular language, they introduce the Monolinguality Metric ($\nu$). This metric quantifies the difference in a feature's mean activation for a target language compared to a set of other languages.
By identifying features with high $\nu$ values, researchers can pinpoint the exact locations in the model where specific languages are represented.
Experimental Setup
The study utilizes two primary datasets:
- Flores-10: A subset of the Flores-200 parallel corpus covering 10 diverse languages (English, Spanish, French, Japanese, Korean, Portuguese, Thai, Vietnamese, Chinese, and Arabic).
- Code-Switching Dataset: A custom dataset where sentences begin in one language and end with a noun from another, used to probe whether features track vocabulary or broader linguistic context.
Key Insights: Contextual Adaptation and Surgical Control
A major finding is that language-specific features are driven by linguistic context rather than just specific tokens. In code-switching experiments, a Spanish prefix can trigger a Spanish-specific feature even when the subsequent token is a French noun.
Furthermore, the authors demonstrate Surgical Ablation. By zeroing out the top language-specific features, they can effectively disable the model's ability to process a specific language (increasing cross-entropy loss significantly) while leaving other languages unaffected. They also found that these features act synergistically; ablating multiple top features together produces a much larger impact than the sum of individual ablations.
Results and Performance
The identified features were used to create SAE-Enhanced Steering Vectors. Unlike standard steering vectors that can degrade performance when applied globally, these vectors are gated by the activation of language-specific features.
In a cross-lingual continuation task using Gemma 2 2B, this SAE-gated approach (applied across multiple layers) outperformed single-layer steering. For instance, when steering the model toward Spanish, the success rate reached 95.8%, while simultaneously reducing the cross-entropy loss penalty on non-target languages compared to traditional methods.
Conclusion
This research provides a powerful toolkit for interpreting and controlling multilingual LLMs. By moving beyond neuron-level analysis to sparse feature decomposition, the authors enable more precise interventions. Future work will explore these techniques in low-resource language settings and investigate using these features as signals to improve the training of multilingual models.
Summary updated