Reproduce “The Same But Different: Structural Similarities and Differences in Multilingual Language Modeling” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

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

Researchers investigated how large language models process shared and language-specific linguistic structures, revealing that models employ common internal circuitry for structurally similar tasks like indirect object identification across English and Chinese, while utilizing distinct attention heads and feed-forward networks in later layers for language-specific morphological processes such as English past tense. The study used mechanistic interpretability to show this balance between generalization and specialization within multilingual models.

Key insights

  • For structurally common tasks like IOI, multilingual LLMs develop shared internal circuitry across languages, demonstrating a high overlap (Pearson Correlation Coefficient of 0.72) in activated attention heads between English and Chinese.
  • Even independently trained monolingual models (GPT2-small for English and CPM-distilled for Chinese) converged on largely similar circuits for the IOI task, suggesting consistent algorithmic solutions for such linguistic processes.
  • For language-specific tasks like English past tense, multilingual LLMs utilize distinct components, with late-layer attention heads (e.g., 19.4, 19.5 in Qwen) and Feed-Forward Networks playing a specific, causal role in processing morphology, a role largely inactive or unnecessary for the Chinese equivalent.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.