EAP-GP: Mitigating Saturation Effect in Gradient-based Automated Circuit Identification
Lin Zhang, Wenshuo Dong, Zhuoran Zhang, Shu Yang, Lijie Hu, Ninghao Liu, Pan Zhou, Di Wang
Abstract
Understanding the internal mechanisms of transformer-based language models remains challenging. Mechanistic interpretability based on circuit discovery aims to reverse engineer neural networks by analyzing their internal processes at the level of computational subgraphs. In this paper, we revisit existing gradient-based circuit identification methods and find that their performance is either affected by the zero-gradient problem or saturation effects, where edge attribution scores become insensitive to input changes, resulting in noisy and unreliable attribution evaluations for circuit components. To address the saturation effect, we propose Edge Attribution Patching with GradPath (EAP-GP), EAP-GP introduces an integration path, starting from the input and adaptively following the direction of the difference between the gradients of corrupted and clean inputs to avoid the saturated region. This approach enhances attribution reliability and improves the faithfulness of circuit identification. We evaluate EAP-GP on six datasets using GPT-2 Small, GPT-2 Medium, and GPT-2 XL. Experimental results demonstrate that EAP-GP outperforms existing methods in circuit faithfulness, achieving improvements up to 17.7%. Comparisons with manually annotated ground-truth circuits demonstrate that EAP-GP achieves precision and recall comparable to or better than previous approaches, highlighting its effectiveness in identifying accurate circuits.
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.
7 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
- Sparse Autoencoders Find Highly Interpretable Features in Language Models cites Towards Automated Circuit Discovery for Mechanistic Interpretability
- Sparse Autoencoders Find Highly Interpretable Features in Language Models cites Investigating Gender Bias in Language Models Using Causal Mediation Analysis
- Towards Automated Circuit Discovery for Mechanistic Interpretability cites Locating and Editing Factual Associations in GPT
- Towards Automated Circuit Discovery for Mechanistic Interpretability cites Causal Abstractions of Neural Networks
- Locating and Editing Factual Associations in GPT cites Investigating Gender Bias in Language Models Using Causal Mediation Analysis
- Understanding and Mitigating Political Stance Cross-topic Generalization in Large Language Models cites Investigating Gender Bias in Language Models Using Causal Mediation Analysis
- Understanding and Mitigating Political Stance Cross-topic Generalization in Large Language Models cites When Truth Is Overridden: Uncovering the Internal Origins of Sycophancy in Large Language Models
- When Truth Is Overridden: Uncovering the Internal Origins of Sycophancy in Large Language Models cites Understanding and Mitigating Political Stance Cross-topic Generalization in Large Language Models
- Mechanistic Interpretability as Statistical Estimation: A Variance Analysis cites Towards Automated Circuit Discovery for Mechanistic Interpretability
- Mechanistic Interpretability as Statistical Estimation: A Variance Analysis cites Locating and Editing Factual Associations in GPT
- Mechanistic Interpretability as Statistical Estimation: A Variance Analysis cites Sheaf Discovery with Joint Computation Graph Pruning and Flexible Granularity
- Mechanistic Interpretability as Statistical Estimation: A Variance Analysis cites Causal Abstractions of Neural Networks
- Query Circuits: Explaining How Language Models Answer User Prompts cites Sparse Autoencoders Find Highly Interpretable Features in Language Models
- Query Circuits: Explaining How Language Models Answer User Prompts cites Towards Automated Circuit Discovery for Mechanistic Interpretability
- Query Circuits: Explaining How Language Models Answer User Prompts cites Investigating Gender Bias in Language Models Using Causal Mediation Analysis
- Sheaf Discovery with Joint Computation Graph Pruning and Flexible Granularity cites Sparse Autoencoders Find Highly Interpretable Features in Language Models
- Sheaf Discovery with Joint Computation Graph Pruning and Flexible Granularity cites Towards Automated Circuit Discovery for Mechanistic Interpretability
- Sheaf Discovery with Joint Computation Graph Pruning and Flexible Granularity cites Locating and Editing Factual Associations in GPT
- Sheaf Discovery with Joint Computation Graph Pruning and Flexible Granularity cites Investigating Gender Bias in Language Models Using Causal Mediation Analysis
- Sheaf Discovery with Joint Computation Graph Pruning and Flexible Granularity cites Causal Abstractions of Neural Networks
- When Truth Is Overridden: Uncovering the Internal Origins of Sycophancy in Large Language Models cites Locating and Editing Factual Associations in GPT
Cited by top-tier papers7
- When Truth Is Overridden: Uncovering the Internal Origins of Sycophancy in Large Language ModelsKeyu Wang, Jin Li, Shu Yang, Zhuoran Zhang et al.AAAI 2026 · 25 citations
- Mechanistic Interpretability as Statistical Estimation: A Variance AnalysisMaxime Méloux, François Portet, Maxime PeyrardICML 2026 · 13 citations
- Sheaf Discovery with Joint Computation Graph Pruning and Flexible GranularityLei Yu, Jingcheng Niu, Zining Zhu, Xi Chen et al.EMNLP 2025 · 11 citations
- Understanding and Mitigating Political Stance Cross-topic Generalization in Large Language ModelsJiayi Zhang, Shu Yang, Junchao Wu, Derek F. Wong et al.ACL 2026 · 5 citations
- Query Circuits: Explaining How Language Models Answer User PromptsTung-Yu Wu, Fazl BarezICML 2026 · 1 citation
Builds on18
- 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
- Towards Automated Circuit Discovery for Mechanistic InterpretabilityArthur Conmy, Augustine N. Mavor-Parker, Aengus Lynch, Stefan Heimersheim et al.NeurIPS 2023 · 861 citations
- Investigating Gender Bias in Language Models Using Causal Mediation AnalysisJesse Vig, Sebastian Gehrmann, Yonatan Belinkov, Sharon Qian et al.NeurIPS 2020 · 851 citations
- Causal Abstractions of Neural NetworksAtticus Geiger, Hanson Lu, Thomas Icard, Christopher PottsNeurIPS 2021 · 516 citations
Related papers
- Efficient Automated Circuit Discovery in Transformers using Contextual DecompositionAliyah R. Hsu, Georgia Zhou, Yeshwanth Cherapanamjeri, Yaxuan Huang et al.ICLR 2025
- Position-aware Automatic Circuit DiscoveryTal Haklay, Hadas Orgad, David Bau, Aaron Mueller et al.ACL 2025
- Transcoders find interpretable LLM feature circuitsJacob Dunefsky, Philippe Chlenski, Neel NandaNeurIPS 2024 · 222 citations
- Towards Best Practices of Activation Patching in Language Models: Metrics and MethodsFred Zhang, Neel NandaICLR 2024 · 233 citations
- Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 SmallKevin Ro Wang, Alexandre Variengien, Arthur Conmy, Buck Shlegeris et al.ICLR 2023 · 50 citations
