Towards Automated Circuit Discovery for Mechanistic Interpretability
Arthur ConmyAugustine N. Mavor-ParkerAengus LynchStefan HeimersheimAdrià Garriga-Alonso
Proposes an automated circuit discovery algorithm that replaces labor-intensive manual patching to efficiently isolate the computational subgraphs responsible for specific behaviors in transformer models.
Modern artificial intelligence models, such as large transformer language models, are widely deployed across high-stakes domains but operate largely as opaque black boxes. Mechanistic interpretability seeks to demystify these systems by reverse-engineering the internal subgraphs—known as circuits—that execute specific behaviors. Historically, discovering these circuits required labor-intensive, manual experimentation, creating a severe bottleneck that prevents safety and alignment evaluations from keeping pace with rapid model scaling.
The article formalizes the prevailing mechanistic interpretability workflow and introduces an automated method to eliminate the manual burden of circuit isolation. The primary objective is to evaluate whether an automated algorithm can reliably discover the precise internal computational pathways responsible for specific tasks without human intervention.
To accomplish this, the authors develop Automatic Circuit DisCovery (ACDC), an algorithm that systematically traverses a model's computational graph from outputs to inputs, pruning non-essential connections using activation patching and measuring changes against the Kullback-Leibler (KL) divergence. The authors evaluate ACDC across diverse language tasks and models, including GPT-2 Small, toy compiled transformers, and multi-layer attention networks. They benchmark ACDC against adaptations of existing techniques—Subnetwork Probing and Head Importance Score for Pruning—using receiver operating characteristic curves against previously published ground-truth circuits as well as performance metrics on held-out tasks.
The analysis yields four key findings. First, ACDC successfully automates edge-level circuit extraction, outperforming baseline methods across the majority of benchmarked tasks and matching manually identified circuits with high precision. For example, on the Greater-Than task in GPT-2 Small, ACDC accurately selected 68 out of 32,000 candidate edges and recovered all five functional component types identified in prior human-led studies. Second, optimizing for low KL divergence provides a more stable and generalizable pruning objective than maximizing task-specific accuracy metrics. Third, baseline methods show vulnerability to hallucinating non-existent circuits on randomized control networks, whereas ACDC more faithfully reflects genuine algorithmic structure. Fourth, ACDC directly enables new discoveries, uncovering previously unnoticed information flows and token interactions in gendered pronoun prediction in GPT-2 Small.
These results demonstrate that automated circuit discovery is a viable path toward scaling machine learning interpretability and auditing. Automating this pipeline substantially reduces human labor costs and accelerates research into AI safety, risk management, and compliance verification. By isolating exact internal pathways, organizations can better audit models for unwanted behaviors, biases, and vulnerabilities before deployment.
Technical leaders and researchers should adopt automated circuit discovery tools as a screening layer to accelerate model auditing pipelines. However, organizations should avoid relying entirely on ACDC for end-to-end safety guarantees without human oversight. Future work must focus on developing automated methods for the functional interpretation of identified circuits and integrating faster gradient-based approximations to reduce the computational runtime required when scanning large graphs.
Confidence in ACDC’s core pruning logic is high, but stakeholders should note key limitations. Current implementations can miss subtle negative components that dampen specific model behaviors, are sensitive to hyperparameter thresholds and corrupted reference distributions, and struggle to isolate redundant parallel logic such as logical OR gates. Consequently, automated circuit extraction should be treated as an accelerator within a broader testing pipeline rather than a fully autonomous safety proof.
- Paper: Transformer Feed-Forward Layers Are Key-Value Memories, Mor Geva et al. (2020). It provides foundational insights into reverse-engineering Transformer components by demonstrating how feed-forward layers function as key-value memory networks.
- Paper: Learning Important Features Through Propagating Activation Differences, Avanti Shrikumar et al. (2017). It establishes the principle of propagating activation differences to attribute component contributions, which underlies modern activation patching techniques.
- Paper: GNNExplainer: Generating Explanations for Graph Neural Networks, Rex Ying et al. (2019). It formalizes the problem of finding minimal explanatory subgraphs within neural computation graphs to explain specific model behaviors.
- Paper: Interpretable Explanations of Black Boxes by Meaningful Perturbation, Ruth Fong et al. (2017). It introduces optimization frameworks for identifying minimal necessary components via causal perturbations, a key antecedent to automated causal pruning.
- Paper: Network Dissection: Quantifying Interpretability of Deep Visual Representations, David Bau et al. (2017). It develops automated protocols to quantify the interpretability and alignment of individual hidden neural units across model representations.
- Paper: Understanding intermediate layers using linear classifier probes, Guillaume Alain et al. (2016). It establishes linear probing to isolate and inspect the functional representations present at intermediate hidden layers of neural architectures.
- Paper: BERT Rediscovers the Classical NLP Pipeline, Ian Tenney et al. (2019). It pioneered layerwise edge probing in Transformers to localize specific linguistic sub-tasks across internal computational layers.
- Paper: Sanity Checks for Saliency Maps, Julius Adebayo et al. (2018). It formulates essential methodology for rigorously validating whether interpretability algorithms truly reflect learned internal network mechanisms.
- Paper: Sparse Autoencoders Find Highly Interpretable Features in Language Models, Hoagy Cunningham et al. (2023). It extends mechanistic interpretability beyond manual or unit-level circuits by using sparse autoencoders to uncover monosemantic feature dictionaries and performing causal mediation patching on task circuits.
- Paper: The Dead Salmons of AI Interpretability, Maxime Méloux et al. (2025). It critically examines the statistical fragility and non-identifiability challenges inherent in mechanistic interpretability and circuit discovery methods.
- Paper: How Perturbations Propagate: A Multi-Level Analysis of Robustness in Large Language Models, Dun Li Chan et al. (2026). It applies activation patching and mechanistic analysis to evaluate how different types of perturbations propagate through language model components and attention heads.
- Paper: Spectral Lens: Activation and Gradient Spectra as Diagnostics of LLM Optimization, Andy Zeyi Liu et al. (2026). It complements circuit-level mechanistic analysis by introducing spectral diagnostics of activation and gradient geometries to monitor internal language model dynamics.
- Paper: There Will Be a Scientific Theory of Deep Learning, Jamie Simon et al. (2026). It synthesizes empirical mechanistic interpretability findings into a broader, emerging scientific theory of learning mechanics in deep neural networks.
