Backward Lens: Projecting Language Model Gradients into the Vocabulary Space
Shahar Katz, Yonatan Belinkov, Mor Geva, Lior Wolf
Abstract
Understanding how Transformer-based Language Models (LMs) learn and recall information is a key goal of the deep learning community. Recent interpretability methods project weights and hidden states obtained from the forward pass to the models' vocabularies, helping to uncover how information flows within LMs. In this work, we extend this methodology to LMs' backward pass and gradients. We first prove that a gradient matrix can be cast as a low-rank linear combination of its forward and backward passes' inputs. We then develop methods to project these gradients into vocabulary items and explore the mechanics of how new information is stored in the LMs' neurons. Our code is available at: https: //github.com/shacharKZ/BackwardLens .
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
12 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- LoRA: Low-Rank Adaptation of Large Language Models cites Language Models are Few-Shot Learners
- Locating and Editing Factual Associations in GPT cites Fast Model Editing at Scale
- Locating and Editing Factual Associations in GPT cites Language Models are Few-Shot Learners
- Attributing Response to Context: A Jensen–Shannon Divergence Driven Mechanistic Study of Context Attribution in Retrieval-Augmented Generation cites Locating and Editing Factual Associations in GPT
- LoKI: Low-Damage Knowledge Implanting of Large Language Models cites LoRA: Low-Rank Adaptation of Large Language Models
- LoKI: Low-Damage Knowledge Implanting of Large Language Models cites Locating and Editing Factual Associations in GPT
- LoKI: Low-Damage Knowledge Implanting of Large Language Models cites Language Models are Few-Shot Learners
- Fast Model Editing at Scale cites LoRA: Low-Rank Adaptation of Large Language Models
- Fast Model Editing at Scale cites Language Models are Few-Shot Learners
- Fine-Grained Activation Steering: Steering Less, Achieving More cites Language Models are Few-Shot Learners
- Understanding Parametric and Contextual Knowledge Reconciliation within Large Language Models cites LoRA: Low-Rank Adaptation of Large Language Models
- Understanding Parametric and Contextual Knowledge Reconciliation within Large Language Models cites Locating and Editing Factual Associations in GPT
- LLM Braces: Straightening Out LLM Predictions with Relevant Sub-Updates cites LoRA: Low-Rank Adaptation of Large Language Models
- LLM Braces: Straightening Out LLM Predictions with Relevant Sub-Updates cites Locating and Editing Factual Associations in GPT
- LLM Braces: Straightening Out LLM Predictions with Relevant Sub-Updates cites Language Models are Few-Shot Learners
Cited by top-tier papers12
- Attributing Response to Context: A Jensen–Shannon Divergence Driven Mechanistic Study of Context Attribution in Retrieval-Augmented GenerationRuizhe Li, Chen Chen, Yuchen Hu, Yanjun Gao et al.ICLR 2026 · 11 citations
- Understanding Parametric and Contextual Knowledge Reconciliation within Large Language ModelsJun Zhao, Yongzhuo Yang, Xiang Hu, Jingqi Tong et al.NeurIPS 2025 · 10 citations
- Fine-Grained Activation Steering: Steering Less, Achieving MoreZijian Feng, Tianjiao Li, Zixiao Zhu, Hanzhang Zhou et al.ICLR 2026 · 6 citations
- LoKI: Low-Damage Knowledge Implanting of Large Language ModelsRunyu Wang, Peng Ping, Zhengyu Guo, Xiaoye Zhang et al.AAAI 2026 · 3 citations
- LLM Braces: Straightening Out LLM Predictions with Relevant Sub-UpdatesYing Shen, Lifu HuangACL 2025 · 3 citations
Builds on22
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- LoRA: Low-Rank Adaptation of Large Language ModelsEdward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu et al.ICLR 2022 · 18,833 citations
- Locating and Editing Factual Associations in GPTKevin Meng, David Bau, Alex Andonian, Yonatan BelinkovNeurIPS 2022 · 3,415 citations
- Sparse Autoencoders Find Highly Interpretable Features in Language ModelsRobert Huben, Hoagy Cunningham, Logan Riggs Smith, Aidan Ewart et al.ICLR 2024 · 1,072 citations
- Fast Model Editing at ScaleEric Mitchell, Charles Lin, Antoine Bosselut, Chelsea Finn et al.ICLR 2022 · 527 citations
Related papers
- VISIT: Visualizing and Interpreting the Semantic Information Flow of TransformersShahar Katz, Yonatan BelinkovEMNLP Findings 2023 · 12 citations
- XAI for Transformers: Better Explanations through Conservative PropagationAmeen Ali, Thomas Schnake, Oliver Eberle, Grégoire Montavon et al.ICML 2022 · 144 citations
- LatentLens: Revealing Highly Interpretable Visual Tokens in LLMsBenno Krojer, Perampalli Shravan Nayak, Oscar Mañas, Vaibhav Adlakha et al.ICML 2026 · 6 citations
- Learning Transformer ProgramsDan Friedman, Alexander Wettig, Danqi ChenNeurIPS 2023 · 59 citations
- Talking Heads: Understanding Inter-Layer Communication in Transformer Language ModelsJack Merullo, Carsten Eickhoff, Ellie PavlickNeurIPS 2024 · 49 citations
