Automated Circuit Discovery is a class of algorithms that programmatically locate the sparse, causally-relevant subgraph of attention heads and MLP neurons implementing a specific model behavior. Unlike manual reverse engineering, ACD uses discrete optimization or continuous relaxation techniques to search the combinatorial space of possible circuits, testing candidate subgraphs against a target task to find the minimal set of components that recovers the full model's performance.
Glossary
Automated Circuit Discovery

What is Automated Circuit Discovery?
Automated Circuit Discovery (ACD) refers to algorithmic methods that automatically identify the minimal subgraph of a neural network responsible for a specific behavior without manual human inspection.
Key approaches include ACDC (Automatic Circuit DisCovery), which uses a recursive pruning process to iteratively remove irrelevant edges from the computational graph, and Subnetwork Probing, which jointly trains a binary mask over model components. These methods accelerate the mechanistic interpretability workflow by generating an initial circuit hypothesis that researchers can then manually validate using causal scrubbing and activation patching.
Key Characteristics of Automated Circuit Discovery
Automated Circuit Discovery (ACD) uses algorithms to identify the minimal subgraph of a neural network responsible for a specific behavior, replacing manual reverse-engineering with scalable, systematic search.
Causal Fidelity as the Objective
The central metric for ACD is causal fidelity—how well the discovered circuit's output matches the full model's behavior when all other components are ablated. A perfect circuit with 100% fidelity would produce identical logits to the original model on the target task. Evaluation methods include:
- Minimality vs. completeness trade-off: Smaller circuits are more interpretable but may sacrifice fidelity
- Negative masking: Zeroing out circuit components and verifying the behavior disappears
- Positive masking: Zeroing out everything except the circuit and verifying the behavior persists
- Knockout analysis: Systematically removing each circuit component to measure its marginal contribution High-fidelity circuits validate that the discovered subgraph is both necessary and sufficient for the behavior.
Activation Patching for Causal Evidence
ACD methods rely heavily on activation patching to establish causal relationships between components. This technique intervenes in a model's forward pass by replacing a specific activation with one from a corrupted or alternative input. Variants include:
- Resampling ablation: Replacing an activation with its value from a random other input to measure the component's unique contribution
- Mean ablation: Substituting an activation with its dataset-wide average, removing all input-specific information
- Zero ablation: Setting an activation to zero, which can introduce out-of-distribution artifacts
- Path patching: Isolating the causal effect flowing along a specific path between two components while freezing all other paths These interventions provide the ground-truth signal that ACD algorithms use to score and select edges.
Subnetwork Probing for Functional Clusters
Subnetwork probing is an alternative ACD approach that trains binary masks over model weights to identify task-relevant subnetworks. The process involves:
- Mask parameterization: Learning a continuous mask over attention heads and MLP neurons, regularized for sparsity
- Task-specific training: Optimizing the mask so that the masked subnetwork performs well on the target behavior while the full model is frozen
- Discretization: Thresholding the learned soft masks into hard binary inclusion/exclusion decisions
- Iterative refinement: Repeating the process with progressively stronger sparsity penalties This method is particularly effective for discovering circuits that span multiple layers and involve complex interactions between attention and MLP components.
Differentiation from Manual Circuit Analysis
ACD fundamentally differs from traditional manual mechanistic interpretability in several key ways:
- Scalability: ACD can analyze behaviors across thousands of inputs simultaneously, while manual analysis typically examines a handful of examples
- Completeness: Algorithms systematically evaluate all possible edges, reducing the risk of missing critical components that a human might overlook
- Reproducibility: Automated methods produce deterministic results given the same hyperparameters, unlike subjective human hypothesis generation
- Limitations: ACD may find circuits that are faithful but not interpretable—the discovered subgraph reproduces the behavior but remains opaque to human understanding
- Complementary use: ACD is often used to generate candidate circuits that researchers then manually interpret and validate
Frequently Asked Questions
Addressing the most common technical inquiries regarding the algorithmic identification of functional subgraphs within neural networks.
Automated Circuit Discovery (ACD) is an algorithmic methodology that identifies the minimal subgraph of a neural network—consisting of specific attention heads and MLP neurons—responsible for implementing a specific, human-interpretable behavior without requiring manual human inspection. Unlike manual reverse engineering, which relies on researchers hypothesizing and testing circuits, ACD techniques systematically search the model's computational graph. They typically work by defining a target behavior (e.g., completing a specific syntactic pattern), formulating a search objective that balances circuit faithfulness against sparsity, and then applying discrete optimization or continuous relaxation methods to prune away irrelevant components. The output is a sparse subgraph that causally explains the behavior, validated through techniques like causal scrubbing and activation patching.
Automated vs. Manual Circuit Discovery
A feature-level comparison of algorithmic circuit identification versus human-driven reverse engineering for neural network interpretability.
| Feature | Automated Discovery | Manual Reverse Engineering | Hybrid Approach |
|---|---|---|---|
Primary mechanism | Gradient-based or activation-based search algorithms | Human hypothesis generation and causal intervention | Algorithmic proposal with human validation |
Scalability to large models | |||
Requires human expertise | |||
Discovery speed | Minutes to hours | Weeks to months | Hours to days |
Granularity of output | Subgraph of attention heads and MLP neurons | Precise weight-level mechanisms | Head-level subgraphs with annotations |
Risk of false positives | Moderate to high | Low | Low to moderate |
Handles polysemantic neurons | |||
Typical evaluation metric | Minimum description length or faithfulness score | Causal scrubbing and ablation fidelity | Faithfulness with human interpretability score |
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Automated Circuit Discovery relies on a suite of causal and representational analysis techniques. These related concepts form the methodological backbone for identifying and validating the minimal computational subgraphs within neural networks.
Circuits
The fundamental object that automated discovery algorithms seek to identify. A circuit is a sparse subgraph of connected attention heads and MLP neurons that implements a specific, human-understandable algorithm. Unlike viewing a single neuron, a circuit captures the interaction between components.
- Example: The Induction Head circuit enables in-context copying.
- Discovery methods search for the minimal set of edges and nodes that preserve a behavior.
Activation Patching
A core causal intervention technique used to validate discovered circuits. It replaces a model's internal activation at a specific layer and token position with a value from a corrupted forward pass (e.g., with noise or a different input).
- If patching a component breaks the behavior, it is causally implicated.
- Path Patching extends this to isolate the direct effect of a specific edge between two components.
Causal Scrubbing
A systematic evaluation methodology for testing a hypothesized circuit. It replaces all activations outside the proposed circuit with corrupted values while keeping the circuit's internal activations intact.
- If the model's performance is fully restored, the circuit is a complete explanation.
- If performance degrades, the hypothesized circuit is missing key components, guiding further automated search.
Sparse Autoencoders
An unsupervised architecture critical for decomposing polysemantic neurons into monosemantic features. Trained on a model's dense activations, it learns a sparse overcomplete basis.
- This transforms the discovery problem from finding circuits of neurons to finding circuits of interpretable features.
- Dictionary Learning is the broader framework for this decomposition.
Superposition Hypothesis
The hypothesized phenomenon that neural networks represent more independent features than they have dimensions, compressing sparse features into a lower-dimensional space. This is the primary obstacle that automated circuit discovery must overcome.
- Explains why individual neurons are often polysemantic.
- Sparse autoencoders are designed to disentangle features from this compressed state.
Direct Logit Attribution
A linear decomposition technique that attributes the final model output directly to the individual contributions of each attention head and MLP layer. It uses the residual stream's linear structure to compute additive contributions.
- Provides a first-order approximation of component importance.
- Often used as a starting point or heuristic to guide more expensive causal discovery algorithms.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us