Separating Tongue from Thought: Activation Patching Reveals Language-Agnostic Concept Representations in Transformers

Clément Dumas, Chris Wendler, Veniamin Veselovsky, Giovanni Monea, Robert West
11/13/2024
74 citations
cs.CLcs.AI
transformer-attention

Official code: Butanium/llm-lang-agnostic (14 stars, Jupyter Notebook, last commit 2025-09-25).

Abstract

A central question in multilingual language modeling is whether large language models (LLMs) develop a universal concept representation, disentangled from specific languages. In this paper, we address this question by analyzing latent representations (latents) during a word-translation task in transformer-based LLMs.

Show full abstract

We strategically extract latents from a source translation prompt and insert them into the forward pass on a target translation prompt. By doing so, we find that the output language is encoded in the latent at an earlier layer than the concept to be translated. Building on this insight, we conduct two key experiments. First, we demonstrate that we can change the concept without changing the language and vice versa through activation patching alone. Second, we show that patching with the mean representation of a concept across different languages does not affect the models' ability to translate it, but instead improves it. Finally, we generalize to multi-token generation and demonstrate that the model can generate natural language description of those mean representations. Our results provide evidence for the existence of language-agnostic concept representations within the investigated models.

View on arXivView PDF

Code Implementations(1)

minimal code to reproduce results from Separating Tongue from Thought: Activation Patching Reveals Language-Agnostic Concept Representations in Transformers

145Jupyter Notebook, PythonAug 9, 20241 years ago
llmmechanistic-interpretabilityresearch

Similar Papers

Cite this paper

@article{dumas2024separating,
  title  = {Separating Tongue from Thought: Activation Patching Reveals Language-Agnostic Concept Representations in Transformers},
  author = {Clément Dumas and Chris Wendler and Veniamin Veselovsky and Giovanni Monea and Robert West},
  year   = {2024},
  eprint = {2411.08745},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.08745v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2411.08745.svg)](https://codeofpaper.com/paper/2411.08745)

Discussion