How a Bilingual LM Becomes Bilingual: Tracing Internal Representations with Sparse Autoencoders
Tatsuro Inaba, Go Kamoda, Kentaro Inui, Masaru Isonuma, Yusuke Miyao, Yohei Oseki, Benjamin Heinzerling, Yu Takagi
TL;DR
This work analyzes how bilingual representations emerge during pretraining by applying TopK-Sparse Autoencoders (TopK-SAE) to decompose hidden states into English-specific, Japanese-specific, and bilingual components. Using $K=32$ and hidden dimension $n=32{,}768$, the authors track representation formation across training steps, layers, and model sizes, revealing that languages are learned independently early on and bilingual alignment forms primarily in mid-layers of larger models. An intervention demonstrates causality: injecting bilingual representations from a fully trained model into a mid-training model yields notable performance gains, indicating that bilingual knowledge is crucial for final performance beyond monolingual signals. The findings suggest training schedules that emphasize bilingual alignment in later stages and demonstrate the versatility of SAEs for both analysis and targeted representation manipulation in multilingual LLMs.
Abstract
This study explores how bilingual language models develop complex internal representations. We employ sparse autoencoders to analyze internal representations of bilingual language models with a focus on the effects of training steps, layers, and model sizes. Our analysis shows that language models first learn languages separately, and then gradually form bilingual alignments, particularly in the mid layers. We also found that this bilingual tendency is stronger in larger models. Building on these findings, we demonstrate the critical role of bilingual representations in model performance by employing a novel method that integrates decomposed representations from a fully trained model into a mid-training model. Our results provide insights into how language models acquire bilingual capabilities.
