Automatic Circuit DisCovery (ACDC) automates the recursive edge-pruning loop of mechanistic interpretability, cutting roughly 32,000 candidate edges in GPT-2 Small down to 68 edges on the Greater-Than task while recovering all 5 manually identified component types. Published at NeurIPS 2023 by Arthur Conmy, Augustine N. Mavor-Parker, Aengus Lynch, Stefan Heimersheim, and Adrià Garriga-Alonso, the algorithm beats both Subnetwork Probing (SP) and gradient-based Head Importance Score for Pruning (HISP) across edge-level ROC benchmarks, while exposing sharp limits around OR-gates, negative heads, and metric choice.
- Higher edge recovery AUC: Using KL divergence and corrupted interchange interventions,
ACDCachieves0.982edge ROC AUC on Docstring (vs0.937forSP,0.805forHISP),0.869on IOI (vs0.823and0.789), and0.853on Greater-Than (vs0.806and0.693). - 93% graph compression on Docstring: Optimizing logit difference at threshold
tau = 0.067yields a 98-edge subgraph, 93% smaller than the 1,377-edge full model and 79% smaller than the manual 464-edge 8-head circuit while scoring better on both KL divergence (0.67vs0.83) and mean logit difference (0.32vs-0.62). - Metrics swing accuracy sharply: Switching
ACDCfrom KL divergence to task loss drops Greater-Than edge AUC from0.853to0.461and IOI from0.869to0.589, because pruning negative heads lets subgraphs overshoot the full model’s3.55logit difference up to5.0. - Novel motif discovery: On gendered pronoun completion (
"So Dave is a really great friend, isn't"),ACDC(tau = 0.05) flaggedMLP 7at the" is"token as the circuit’s highest-degree hub, early evidence of the summarization motif.
How It Works
The paper systematizes manual circuit discovery into three steps: choose a behavior, prompt dataset, and metric; decompose the model into a computational DAG (for example, attention heads split by Q, K, V, plus MLPs); and iteratively patch connections to strip away irrelevant edges. ACDC automates the third step, acting as an automated, restricted search over causal scrubbing hypotheses where edges either stay intact or get overwritten by corrupted counterfactual activations x'_i.
Algorithm 1 initializes subgraph H to the full graph G and walks nodes in reverse topological order from output logits back to embeddings. For each incoming edge w -> v, ACDC temporarily replaces that edge’s signal with its cached corrupted value and checks whether the average KL divergence D_KL(G || H_new) - D_KL(G || H) stays below threshold tau. If it does, the edge is permanently pruned; otherwise it remains, and recursion continues into remaining parent nodes.
To benchmark ACDC, the authors adapt two gradient baselines to corrupted-activation patching: SP, which optimizes a continuous-then-rounded mask with L0 sparsity regularization lambda, and HISP, which ranks nodes by first-order gradient times activation delta (equivalent to attribution patching up to an absolute value). They evaluate all three on five published circuits, IOI, Docstring, Greater-Than, and two compiled tracr programs (tracr-xproportion, tracr-reverse), plus a standalone Induction task on 40 OpenWebText sequences (305 edges) and permuted-weight “reset networks” designed to test whether an algorithm hallucinates circuits when no learned algorithm exists.
Key Findings
Across language-model circuits (Docstring, IOI, Greater-Than) and Induction above 20 edges, ACDC achieves the strongest edge-level ROC AUC and Pareto frontier of KL divergence vs edge count. On Induction reset networks, HISP and SP (especially with zero ablation) still manage to optimize down loss on randomized weights, whereas ACDC relies more directly on genuine causal structure.
At the same time, design choices heavily sway outcomes. Using KL divergence avoids the overshoot failure of logit difference, where dropping negative components makes a subgraph “outperform” the full model and destabilizes greedy pruning. Patching with corrupted inputs also proves far safer than zero ablation on natural language: on Docstring at tau = 0.067, zero ablation keeps 177 edges (vs 98 with corrupted data) and degrades KL from 0.67 to 3.35 and logit difference from 0.32 to -2.895. Only on compiled tracr transformers does zero ablation outperform random permutations (1.000 vs 0.200 AUC on tracr-reverse), because permuting tokens alone leaves fixed positional embeddings intact.
Caveats & Builder Takeaway
ACDC is slow on large graphs because each candidate edge test requires a forward pass, and its “ground truth” circuits from prior manual papers (1,041 edges in IOI, 262 in Greater-Than) are themselves imperfect human approximations. Greedy edge deletion also cannot recover parallel redundant branches (OR-gates) without follow-up path patching or node-group tests.
In practice, treat ACDC as a structured Step 3 hypothesis pruner rather than a turnkey circuit interpreter: pair KL divergence with in-distribution corrupted prompts, inspect multiple tau thresholds for negative components, and combine edge-level attribution prefilters (like AtP*) when scaling beyond GPT-2 Small.


