Unveiling Language-Specific Features in Large Language Models via Sparse Autoencoders
Boyi Deng, Yu Wan, Yidan Zhang, Baosong Yang, Fuli Feng
TL;DR
This work tackles the challenge of understanding multilingual capabilities in large language models by moving beyond neuron-based and pure activation analyses to a Sparse Autoencoder (SAE) framework that decomposes layer activations into sparse, interpretable features. It introduces a monolinguality metric $\nu^L_s$ to quantify language-specificity of SAE features, identifies language-specific features that influence targeted languages, and shows that ablating these features yields language-specific performance drops while preserving other languages. The study also demonstrates synergistic interactions among language features and leverages SAE-derived signals to improve steering vectors, enabling more reliable language control in generation and cross-lingual tasks. Collectively, these findings provide a practical, interpretable lens on multilinguality and a pathway to more robust, language-aware steering in LLMs.
Abstract
The mechanisms behind multilingual capabilities in Large Language Models (LLMs) have been examined using neuron-based or internal-activation-based methods. However, these methods often face challenges such as superposition and layer-wise activation variance, which limit their reliability. Sparse Autoencoders (SAEs) offer a more nuanced analysis by decomposing the activations of LLMs into a sparse linear combination of SAE features. We introduce a novel metric to assess the monolinguality of features obtained from SAEs, discovering that some features are strongly related to specific languages. Additionally, we show that ablating these SAE features only significantly reduces abilities in one language of LLMs, leaving others almost unaffected. Interestingly, we find some languages have multiple synergistic SAE features, and ablating them together yields greater improvement than ablating individually. Moreover, we leverage these SAE-derived language-specific features to enhance steering vectors, achieving control over the language generated by LLMs. The code is publicly available at https://github.com/Aatrox103/multilingual-llm-features.
