Attribution Patching Outperforms Automated Circuit Discovery

Aaquib Syed, Can Rager, Arthur Conmy
10/16/2023
cs.LGcs.AIcs.CL

No official code found. Best implementation: Aaquib111/edge-attribution-patching (50 stars, last commit 2024-05-31).

Abstract

Automated interpretability research has recently attracted attention as a potential research direction that could scale explanations of neural network behavior to large models. Existing automated circuit discovery work applies activation patching to identify subnetworks responsible for solving specific tasks (circuits). In this work, we show that a simple method based on attribution patching outperforms all existing methods while requiring just two forward passes and a backward pass. We apply a linear approximation to activation patching to estimate the importance of each edge in the computational subgraph. Using this approximation, we prune the least important edges of the network. We survey the performance and limitations of this method, finding that averaged over all tasks our method has greater AUC from circuit recovery than other methods.

View on arXivView PDF

Code Implementations(1)

Code for my NeurIPS 2024 ATTRIB paper titled "Attribution Patching Outperforms Automated Circuit Discovery"

5016Shell, PythonSep 2, 20232 years ago

Similar Papers

Cite this paper

@article{syed2023attribution,
  title  = {Attribution Patching Outperforms Automated Circuit Discovery},
  author = {Aaquib Syed and Can Rager and Arthur Conmy},
  year   = {2023},
  eprint = {2310.10348},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.10348v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.10348.svg)](https://codeofpaper.com/paper/2310.10348)

Discussion