Abstract
Researchers used Sparse Autoencoders (SAEs) to investigate the internal mechanics of bilingual language models during training. They discovered that models initially learn languages independently before aligning them into shared semantic concepts. This bilingual alignment is most prominent in the middle layers and scales with model size, suggesting that larger models are superior at cross-lingual conceptual mapping.
Introduction
While Large Language Models (LLMs) excel at switching between languages, the internal processes driving this ability remain largely opaque. A key question is whether models develop separate linguistic "brains" or a universal set of concepts mapped to different vocabularies. Understanding this evolution is crucial for scaling models and optimizing training efficiency.
Methods
The study employed Sparse Autoencoders (SAEs) to decompose the dense hidden representations of the LLM-jp model family (150M to 3.7B parameters) into thousands of interpretable features. To quantify these features, the researchers developed three metrics:
- Token Entropy: Measures the variety of tokens activating a feature.
- Semantic Entropy: Determines if activating tokens share a common meaning via embedding clustering.
- Monosemanticity: A ratio indicating if a feature represents a single, clear concept.
The models were trained on the 1.7-trillion-token LLM-jp Corpus v3, with SAE analysis performed on English and Japanese Wikipedia subsets.
Evolution of Internal Representations
The research identifies a distinct three-stage evolution in how LLMs process bilingual data:
- Early Stage: Features are "mixed" but messy, activating randomly across languages without clear semantic grounding.
- Middle Stage: The model becomes "monolingual," with features specializing in either English or Japanese to organize language-specific grammar and vocabulary.
- Late Stage: Bilingual alignment emerges, where features respond to semantically similar concepts across both languages (e.g., a single feature for both "assigned" and "割り当て").
Key Insights
- The "Goldilocks" Mid-Layers: Bilingual alignment is concentrated in the middle layers. Lower layers focus on broad vocabulary (often showing polysemanticity), while upper layers handle multi-token spans and long-range context.
- Scaling for Synergy: Larger models exhibit a much stronger tendency to form bilingual alignments. Smaller models often remain stuck in the monolingual phase for longer periods.
- Functional Proof: Interventional experiments demonstrated that injecting bilingual features from a fully trained model into a mid-training model significantly improved translation quality (COMET-22) and reduced perplexity.
Conclusion and Future Work
This study provides a mechanistic view of how LLMs bridge linguistic gaps through a process of specialization followed by alignment. Future research will explore these patterns in more diverse language pairs and investigate whether "curriculum training"—guiding models through these stages—can further enhance performance.
Summary updated