Multilingual LLMs keep language identity across all layers
Where Are Language-Specific Features Represented in Multilingual LLMs? Everywhere
Summary
This paper looks at where language-specific features show up inside multilingual large language models (LLMs). Earlier studies suggested that languages are mostly identified in the very first and last layers of the model, with the middle layers being language-neutral. The authors tested this idea on a model called Llama 3.2 1B using several experiments with Portuguese and Spanish and one covering over 200 languages. They found that language identity is actually present throughout all the layers and not just at the beginning and end. They also noticed the model has a bias toward classifying ambiguous language samples as Spanish rather than Portuguese, which is different from how humans would decide.
What this means in practice
- •For ai system builders: Improve language detection components by using embeddings from all model layers, not just the first or last ones.
- •For multilingual service teams: Adjust language classification algorithms to account for biases between similar languages revealed by the model’s behavior.