The Same But Different: Structural Similarities and Differences in Multilingual Language Modeling

Ruochen Zhang, Qinan Yu, Matianyu Zang, Carsten Eickhoff, Ellie Pavlick · DOI

Abstract

This research investigates the internal neural mechanisms of Large Language Models (LLMs) to determine how they represent multiple languages. Using mechanistic interpretability, the authors demonstrate that LLMs develop nearly identical internal "circuits" to solve identical linguistic tasks across different languages, even when trained independently. While logical tasks share a core algorithmic structure, the models utilize language-specific "plug-ins"—specifically Feed-Forward Networks (FFNs)—to handle unique grammatical requirements, such as English verb tense markers. This suggests that LLMs converge on a "shared core" strategy that balances computational efficiency with linguistic precision.

Introduction

As Large Language Models (LLMs) become foundational to global technology, a critical question arises: do these models learn a "universal grammar" or do they treat each language as a siloed set of patterns? Previous research has offered conflicting evidence, with some studies highlighting language-specific representations and others pointing to cross-lingual transfer as proof of shared structures. This paper seeks to resolve this by identifying the specific "circuits"—coordinated groups of attention heads and neurons—that perform grammatical tasks, comparing their structure across English and Chinese.

Methodology

The researchers employed mechanistic interpretability to reverse-engineer the models' internal logic. Key techniques included:

  • Path Patching: A causal analysis swapping activations between "clean" and "corrupted" inputs to isolate functional components.
  • Information Flow Routes: Mapping data movement through the model's residual stream to identify critical layers.
  • Logit Attribution: Projecting internal activations into vocabulary space to identify the specific tokens a head promotes.
  • Ablation Studies: Systematically deactivating heads or layers to confirm their functional necessity.

Experimental Setup

The study focused on two primary linguistic tasks:

  1. Indirect Object Identification (IOI): A logic-based task (e.g., "Susan and Mary went to the bar. Susan gave a drink to [Mary]"). The researchers utilized 15 templates, manually verified for both English and Chinese.
  2. Past Tense Generation: A morphological task (e.g., visit → visited). This used 62 English verb instances from the Big-bench dataset and their Chinese equivalents.

Models analyzed included multilingual variants (BLOOM-560M, Qwen2-0.5B) and monolingual baselines (GPT2-small, CPM-Generate-distill).

Key Insights: Algorithmic Convergence and Shared Cores

A striking finding is that English-only and Chinese-only models converge on the same internal algorithm to solve the IOI task. This suggests an "optimal" transformer configuration for specific logical problems. In multilingual models, the "logic" of identifying which name to repeat is handled by a shared circuit of attention heads regardless of the input language.

Figure 1: Comparison of attention head similarity for the IOI task between English/Chinese and an English control.

As shown in Figure 1, the correlation between head activations for English and Chinese IOI tasks was remarkably high (ρ = 0.72), significantly exceeding the correlation found in control tasks (ρ = 0.48). This quantitative overlap confirms that the model utilizes a consistent set of "Universal Heads" (e.g., Duplicate Token Heads and Name Mover Heads) across languages.

Language-Specific Subroutines

While the core logic is shared, languages often have unique requirements. For instance, English requires morphological markers like the "-ed" suffix for past tense, which Chinese lacks. The model handles this by using the shared circuit for the primary task logic but activating specific Feed-Forward Networks (FFNs) in later layers to handle language-specific morphology.

Figure 4: Analysis of the Past Tense task, showing head overlap and the role of FFNs in English-specific tense marking.

In the past tense task (Figure 4), ablating late-layer FFNs caused English accuracy to drop from 97.44% to 47.44%, while having almost no effect on Chinese performance. This proves that these FFNs act as language-specific "plug-ins" that are only engaged when the specific grammar of a language demands it.

Conclusion and Future Work

The study demonstrates that LLMs effectively balance efficiency (sharing circuits for similar logic) with precision (using specialized components for unique grammar). While limited to two languages and two tasks, these findings open doors for improving cross-lingual transfer. Future work may explore more morphologically complex languages like Turkish or Finnish to see if this "shared core" strategy holds across more diverse linguistic structures.

Summary updated

BibTeX
@inproceedings{zhang2025same,
  author = {Ruochen Zhang and Qinan Yu and Matianyu Zang and Carsten Eickhoff and Ellie Pavlick},
  title = {{The Same But Different: Structural Similarities and Differences in Multilingual Language Modeling}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=NCrFA7dq8T},
}
Figure