Lune

EMNLP Findings2024

On the Similarity of Circuits across Languages: a Case Study on the Subject-verb Agreement Task

Javier Ferrando, Marta R. Costa-jussà

摘要

Several algorithms implemented by language models have recently been successfully reversed-engineered. However, these findings have been concentrated on specific tasks and models, leaving it unclear how universal circuits are across different settings. In this paper, we study the circuits implemented by Gemma 2B for solving the subject-verb agreement task across two different languages, English and Spanish. We discover that both circuits are highly consistent, being mainly driven by a particular attention head writing a 'subject number' signal to the last residual stream, which is read by a small set of neurons in the final MLPs. Notably, this subject number signal is represented as a direction in the residual stream space, and is language-independent. Finally, we demonstrate this direction has a causal effect on the model predictions, effectively flipping the Spanish predicted verb number by intervening with the direction found in English. 1

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 8 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Different types of syntactic agreement recruit the same units within large language models 引用了 Paths Not Taken: Understanding and Mending the Multilingual Factual Recall Pipeline
  • Inference-Time Intervention: Eliciting Truthful Answers from a Language Model 引用了 Locating and Editing Factual Associations in GPT
  • Exploring the Translation Mechanism of Large Language Models 引用了 Locating and Editing Factual Associations in GPT
  • On the Emergence and Test-Time Use of Structural Information in Large Language Models 引用了 Probing for the Usage of Grammatical Number
  • Paths Not Taken: Understanding and Mending the Multilingual Factual Recall Pipeline 引用了 Locating and Editing Factual Associations in GPT
  • Paths Not Taken: Understanding and Mending the Multilingual Factual Recall Pipeline 引用了 Inference-Time Intervention: Eliciting Truthful Answers from a Language Model
  • How does GPT-2 compute greater-than?: Interpreting mathematical abilities in a pre-trained language model 引用了 Locating and Editing Factual Associations in GPT
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper8

  1. Paths Not Taken: Understanding and Mending the Multilingual Factual Recall PipelineMeng Lu, Ruochen Zhang, Carsten Eickhoff, Ellie PavlickEMNLP 2025 · 15 次引用
  2. Exploring the Translation Mechanism of Large Language ModelsHongbin Zhang, Kehai Chen, Xuefeng Bai, Xiucheng Li 等NeurIPS 2025 · 4 次引用
  3. Different types of syntactic agreement recruit the same units within large language modelsDaria Kryvosheieva, Andrea Gregor de Varda, Evelina Fedorenko, Greta TuckuteACL 2026 · 3 次引用
  4. On the Emergence and Test-Time Use of Structural Information in Large Language ModelsMichelle Chao Chen, Moritz Miller, Bernhard Schölkopf, Siyuan GuoACL 2026 · 1 次引用
  5. Understanding or Memorizing? A Case Study of German Definite Articles in Language ModelsJonathan Drechsel, Erisa Bytyqi, Steffen HerboldACL 2026 · 1 次引用

它引用的 Paper10

  1. Locating and Editing Factual Associations in GPTKevin Meng, David Bau, Alex Andonian, Yonatan BelinkovNeurIPS 2022 · 3,415 次引用
  2. Inference-Time Intervention: Eliciting Truthful Answers from a Language ModelKenneth Li, Oam Patel, Fernanda B. Viégas, Hanspeter Pfister 等NeurIPS 2023 · 1,549 次引用
  3. An empirical analysis of compute-optimal large language model trainingJordan Hoffmann, Sebastian Borgeaud, Arthur Mensch, Elena Buchatskaya 等NeurIPS 2022 · 566 次引用
  4. How does GPT-2 compute greater-than?: Interpreting mathematical abilities in a pre-trained language modelMichael Hanna, Ollie Liu, Alexandre VariengienNeurIPS 2023 · 251 次引用
  5. Probing for the Usage of Grammatical NumberKarim Lasri, Tiago Pimentel, Alessandro Lenci, Thierry Poibeau 等ACL 2022 · 72 次引用

相关 Paper

  1. Influence Paths for Characterizing Subject-Verb Number Agreement in LSTM Language ModelsKaiji Lu, Piotr Mardziel, Klas Leino, Matt Fredrikson 等ACL 2020 · 8 次引用
  2. Towards Interpretable Sequence Continuation: Analyzing Shared Circuits in Large Language ModelsMichael Lan, Philip Torr, Fazl BarezEMNLP 2024 · 1 次引用
  3. Verb Conjugation in Transformers Is Determined by Linear Encodings of Subject NumberSophie Hao, Tal LinzenEMNLP Findings 2023 · 4 次引用
  4. Does BERT really agree ? Fine-grained Analysis of Lexical Dependence on a Syntactic TaskKarim Lasri, Alessandro Lenci, Thierry PoibeauACL Findings 2022 · 11 次引用
  5. Circuit Component Reuse Across Tasks in Transformer Language ModelsJack Merullo, Carsten Eickhoff, Ellie PavlickICLR 2024 · 108 次引用
黄昏的海面,两侧是细线勾勒的悬崖