Towards Automated Circuit Discovery for Mechanistic Interpretability

Arthur Conmy, Augustine N. Mavor-Parker, Aengus Lynch, Stefan Heimersheim, Adrià Garriga-Alonso
2/12/2026

No official code found. Best implementation: TransformerLensOrg/TransformerLens (3,859 stars, MIT, last commit 2026-05-04). 2 more below.

Abstract

Through considerable effort and intuition, several recent works have reverse-engineered nontrivial behaviors of transformer models. This paper systematizes the mechanistic interpretability process they followed. First, researchers choose a metric and dataset that elicit the desired model behavior. Then, they apply activation patching to find which abstract neural network units are involved in the behavior. By varying the dataset, metric, and units under investigation, researchers can understand the functionality of each component. We automate one of the process' steps: to identify the circuit that implements the specified behavior in the model's computational graph. We propose several algorithms and reproduce previous interpretability results to validate them. For example, the ACDC algorithm rediscovered 5/5 of the component types in a circuit in GPT-2 Small that computes the Greater-Than operation. ACDC selected 68 of the 32,000 edges in GPT-2 Small, all of which were manually found by previous work. Our code is available at https://github.com/ArthurConmy/Automatic-Circuit-Discovery.

View on arXivView PDF

Code Implementations(3)

MIT

A library for mechanistic interpretability of GPT-style language models

3,859684Python, MakefileAug 26, 20225 months agoMIT
MIT
29749TeX, ShellOct 28, 20222 years agoMIT
MIT

Replication of "Towards Automated Circuit Discovery for Mechanistic Interpretability" paper

11Jupyter NotebookJun 21, 20241 years agoMIT

Similar Papers

Cite this paper

@article{conmy2026towards,
  title  = {Towards Automated Circuit Discovery for Mechanistic Interpretability},
  author = {Arthur Conmy and Augustine N. Mavor-Parker and Aengus Lynch and Stefan Heimersheim and Adrià Garriga-Alonso},
  year   = {2026},
  eprint = {2304.14997},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2304.14997},
  journal = {NEURIPS 2023 2023}
}

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/2304.14997.svg)](https://codeofpaper.com/paper/2304.14997)

Discussion