Lune

EMNLP Findings2023

VISIT: Visualizing and Interpreting the Semantic Information Flow of Transformers

Shahar Katz, Yonatan Belinkov

摘要

Recent advances in interpretability suggest we can project weights and hidden states of transformer-based language models (LMs) to their vocabulary, a transformation that makes them more human interpretable. In this paper, we investigate LM attention heads and memory values, the vectors the models dynamically create and recall while processing a given input. By analyzing the tokens they represent through this projection, we identify patterns in the information flow inside the attention mechanism. Based on our discoveries, we create a tool to visualize a forward pass of Generative Pre-trained Transformers (GPTs) as an interactive flow graph, with nodes representing neurons or hidden states and edges representing the interactions between them. Our visualization simplifies huge amounts of data into easy-toread plots that can reflect the models' internal processing, uncovering the contribution of each component to the models' final prediction. Our visualization also unveils new insights about the role of layer norms as semantic filters that influence the models' output, and about neurons that are always activated during forward passes and act as regularization vectors. 1

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • Finding Transformer Circuits With Edge Pruning 引用了 Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 Small
  • Locating and Editing Factual Associations in GPT 引用了 Mass-Editing Memory in a Transformer
  • Mass-Editing Memory in a Transformer 引用了 Locating and Editing Factual Associations in GPT
  • Mass-Editing Memory in a Transformer 引用了 Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Space
  • Optimal ablation for interpretability 引用了 Finding Transformer Circuits With Edge Pruning
  • Optimal ablation for interpretability 引用了 Locating and Editing Factual Associations in GPT
  • Optimal ablation for interpretability 引用了 Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Space
  • Optimal ablation for interpretability 引用了 Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 Small
  • InversionView: A General-Purpose Method for Reading Information from Neural Activations 引用了 Locating and Editing Factual Associations in GPT
  • InversionView: A General-Purpose Method for Reading Information from Neural Activations 引用了 Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Space
  • InversionView: A General-Purpose Method for Reading Information from Neural Activations 引用了 Knowledge Circuits in Pretrained Transformers
  • InversionView: A General-Purpose Method for Reading Information from Neural Activations 引用了 Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 Small
  • Confidence Regulation Neurons in Language Models 引用了 Locating and Editing Factual Associations in GPT
  • Confidence Regulation Neurons in Language Models 引用了 Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Space
  • Confidence Regulation Neurons in Language Models 引用了 Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 Small
  • Knowledge Circuits in Pretrained Transformers 引用了 Finding Transformer Circuits With Edge Pruning
  • Knowledge Circuits in Pretrained Transformers 引用了 Locating and Editing Factual Associations in GPT
  • Knowledge Circuits in Pretrained Transformers 引用了 Mass-Editing Memory in a Transformer
  • Knowledge Circuits in Pretrained Transformers 引用了 Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Space
  • Knowledge Circuits in Pretrained Transformers 引用了 Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 Small
  • Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 Small 引用了 Locating and Editing Factual Associations in GPT
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper14

  1. Finding Transformer Circuits With Edge PruningAdithya Bhaskar, Alexander Wettig, Dan Friedman, Danqi ChenNeurIPS 2024 · 72 次引用
  2. Knowledge Circuits in Pretrained TransformersYunzhi Yao, Ningyu Zhang, Zekun Xi, Mengru Wang 等NeurIPS 2024 · 71 次引用
  3. Confidence Regulation Neurons in Language ModelsAlessandro Stolfo, Ben Wu, Wes Gurnee, Yonatan Belinkov 等NeurIPS 2024 · 68 次引用
  4. Optimal ablation for interpretabilityMaximilian Li, Lucas JansonNeurIPS 2024 · 32 次引用
  5. InversionView: A General-Purpose Method for Reading Information from Neural ActivationsXinting Huang, Madhur Panwar, Navin Goyal, Michael HahnNeurIPS 2024 · 10 次引用

它引用的 Paper9

  1. Locating and Editing Factual Associations in GPTKevin Meng, David Bau, Alex Andonian, Yonatan BelinkovNeurIPS 2022 · 3,415 次引用
  2. Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary SpaceMor Geva, Avi Caciularu, Kevin Ro Wang, Yoav GoldbergEMNLP 2022 · 92 次引用
  3. All Bark and No Bite: Rogue Dimensions in Transformer Language Models Obscure Representational QualityWilliam Timkey, Marten van SchijndelEMNLP 2021 · 59 次引用
  4. Mass-Editing Memory in a TransformerKevin Meng, Arnab Sen Sharma, Alex J. Andonian, Yonatan Belinkov 等ICLR 2023 · 52 次引用
  5. Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 SmallKevin Ro Wang, Alexandre Variengien, Arthur Conmy, Buck Shlegeris 等ICLR 2023 · 50 次引用

相关 Paper

  1. Backward Lens: Projecting Language Model Gradients into the Vocabulary SpaceShahar Katz, Yonatan Belinkov, Mor Geva, Lior WolfEMNLP 2024 · 2 次引用
  2. FlowPrune: Accelerating Attention Flow Calculation by Pruning Flow NetworkShuo Xu, Yu Chen, Shuxia Lin, Xin Geng 等NeurIPS 2025 · 1 次引用
  3. VL-InterpreT: An Interactive Visualization Tool for Interpreting Vision-Language TransformersEstelle Aflalo, Meng Du, Shao-Yen Tseng, Yongfei Liu 等CVPR 2022 · 34 次引用
  4. Head Pursuit: Probing Attention Specialization in Multimodal TransformersLorenzo Basile, Valentino Maiorca, Diego Doimo, Francesco Locatello 等NeurIPS 2025 · 21 次引用
  5. Incorporating Residual and Normalization Layers into Analysis of Masked Language ModelsGoro Kobayashi, Tatsuki Kuribayashi, Sho Yokoi, Kentaro InuiEMNLP 2021 · 28 次引用
黄昏的海面,两侧是细线勾勒的悬崖