Lune

NeurIPS2024顶会

Knowledge Circuits in Pretrained Transformers

Yunzhi Yao, Ningyu Zhang, Zekun Xi, Mengru Wang, Ziwen Xu, Shumin Deng, Huajun Chen

摘要

The remarkable capabilities of modern large language models are rooted in their vast repositories of knowledge encoded within their parameters, enabling them to perceive the world and engage in reasoning. The inner workings of how these models store knowledge have long been a subject of intense interest and investigation among researchers. To date, most studies have concentrated on isolated components within these models, such as the Multilayer Perceptrons and attention head. In this paper, we delve into the computation graph of the language model to uncover the knowledge circuits that are instrumental in articulating specific knowledge. The experiments, conducted with GPT2 and TinyLLAMA, have allowed us to observe how certain information heads, relation heads, and Multilayer Perceptrons collaboratively encode knowledge within the model. Moreover, we evaluate the impact of current knowledge editing techniques on these knowledge circuits, providing deeper insights into the functioning and constraints of these editing methodologies. Finally, we utilize knowledge circuits to analyze and interpret language model behaviors such as hallucinations and in-context learning. We believe the knowledge circuits hold potential for advancing our understanding of Transformers and guiding the improved design of knowledge editing. Code and data are available in https://github.com/zjunlp/KnowledgeCircuits.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • Sparse Autoencoders Find Highly Interpretable Features in Language Models 引用了 Towards Automated Circuit Discovery for Mechanistic Interpretability
  • Sparse Autoencoders Find Highly Interpretable Features in Language Models 引用了 Investigating Gender Bias in Language Models Using Causal Mediation Analysis
  • Towards Automated Circuit Discovery for Mechanistic Interpretability 引用了 Locating and Editing Factual Associations in GPT
  • Locating and Editing Factual Associations in GPT 引用了 Investigating Gender Bias in Language Models Using Causal Mediation Analysis
  • Formal Mechanistic Interpretability: Automated Circuit Discovery with Provable Guarantees 引用了 Towards Automated Circuit Discovery for Mechanistic Interpretability
  • Rethinking Circuit Completeness in Language Models: AND, OR, and ADDER Gates 引用了 Towards Automated Circuit Discovery for Mechanistic Interpretability
  • Rethinking Circuit Completeness in Language Models: AND, OR, and ADDER Gates 引用了 Locating and Editing Factual Associations in GPT
  • Rethinking Circuit Completeness in Language Models: AND, OR, and ADDER Gates 引用了 Investigating Gender Bias in Language Models Using Causal Mediation Analysis
  • Inference-Time Intervention: Eliciting Truthful Answers from a Language Model 引用了 Locating and Editing Factual Associations in GPT
  • Landscape of Thoughts: Visualizing the Reasoning Process of Large Language Models 引用了 Inference-Time Intervention: Eliciting Truthful Answers from a Language Model
  • 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 引用了 Investigating Gender Bias in Language Models Using Causal Mediation Analysis
  • Paths Not Taken: Understanding and Mending the Multilingual Factual Recall Pipeline 引用了 Inference-Time Intervention: Eliciting Truthful Answers from a Language Model
  • A Implies B: Circuit Analysis in LLMs for Propositional Logical Reasoning 引用了 Locating and Editing Factual Associations in GPT
  • A Implies B: Circuit Analysis in LLMs for Propositional Logical Reasoning 引用了 Investigating Gender Bias in Language Models Using Causal Mediation Analysis
  • A Implies B: Circuit Analysis in LLMs for Propositional Logical Reasoning 引用了 Paths Not Taken: Understanding and Mending the Multilingual Factual Recall Pipeline
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper40

  1. Landscape of Thoughts: Visualizing the Reasoning Process of Large Language ModelsZhanke Zhou, Zhaocheng Zhu, Xuan Li, Mikhail Galkin 等ICLR 2026 · 28 次引用
  2. A Implies B: Circuit Analysis in LLMs for Propositional Logical ReasoningGuanzhe Hong, Nishanth Dikkala, Enming Luo, Cyrus Rashtchian 等NeurIPS 2025 · 17 次引用
  3. Paths Not Taken: Understanding and Mending the Multilingual Factual Recall PipelineMeng Lu, Ruochen Zhang, Carsten Eickhoff, Ellie PavlickEMNLP 2025 · 15 次引用
  4. Rethinking Circuit Completeness in Language Models: AND, OR, and ADDER GatesHang Chen, Jiaying Zhu, Xinyu Yang, Wenya WangNeurIPS 2025 · 11 次引用
  5. Formal Mechanistic Interpretability: Automated Circuit Discovery with Provable GuaranteesItamar Hadad, Guy Katz, Shahaf BassanICLR 2026 · 10 次引用

它引用的 Paper37

  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. Sparse Autoencoders Find Highly Interpretable Features in Language ModelsRobert Huben, Hoagy Cunningham, Logan Riggs Smith, Aidan Ewart 等ICLR 2024 · 1,072 次引用
  4. Towards Automated Circuit Discovery for Mechanistic InterpretabilityArthur Conmy, Augustine N. Mavor-Parker, Aengus Lynch, Stefan Heimersheim 等NeurIPS 2023 · 861 次引用
  5. Investigating Gender Bias in Language Models Using Causal Mediation AnalysisJesse Vig, Sebastian Gehrmann, Yonatan Belinkov, Sharon Qian 等NeurIPS 2020 · 851 次引用

相关 Paper

  1. How Do LLMs Acquire New Knowledge? A Knowledge Circuits Perspective on Continual Pre-TrainingYixin Ou, Yunzhi Yao, Ningyu Zhang, Hui Jin 等ACL Findings 2025 · 3 次引用
  2. HeadMap: Locating and Enhancing Knowledge Circuits in LLMsXuehao Wang, Liyuan Wang, Binghuai Lin, Yu ZhangICLR 2025
  3. Knowledge Graph Enhanced Large Language Model EditingMengqi Zhang, Xiaotian Ye, Qiang Liu, Pengjie Ren 等EMNLP 2024 · 5 次引用
  4. Hypothesis Testing the Circuit Hypothesis in LLMsClaudia Shi, Nicolas Beltran-Velez, Achille Nazaret, Carolina Zheng 等NeurIPS 2024 · 36 次引用
  5. Finding and Editing Multi-Modal Neurons in Pre-Trained TransformersHaowen Pan, Yixin Cao, Xiaozhi Wang, Xun Yang 等ACL Findings 2024 · 8 次引用
黄昏的海面,两侧是细线勾勒的悬崖