Causal Scrubbing is a mechanistic interpretability method that evaluates a hypothesized circuit by resampling the activations of specific model components from a "corrupted" dataset and verifying that the network's output is entirely determined by the identified subgraph. The core premise is that if a circuit is truly responsible for a behavior, then replacing all other activations with values from inputs where the behavior is absent should not alter the model's performance on the original task.
Glossary
Causal Scrubbing

What is Causal Scrubbing?
A hypothesis-driven validation technique for testing whether a specific subgraph of a neural network fully mediates a behavior by replacing activations with samples from a corrupted distribution.
The technique operates by performing a tree-based search over the model's computational graph, systematically replacing node activations with samples drawn from a reference distribution where the causal variable of interest has been randomized. A successful scrub—where performance remains high despite the corruption of irrelevant pathways—provides strong evidence that the hypothesized circuit is both necessary and sufficient for the behavior, distinguishing genuine mechanistic understanding from spurious correlational explanations.
Key Characteristics of Causal Scrubbing
Causal scrubbing is a rigorous falsification test for hypothesized circuits in neural networks. It verifies that a proposed subgraph fully mediates a specific behavior by resampling activations from a corrupted dataset and checking if the model's performance is preserved.
The Core Hypothesis Test
Causal scrubbing operates on a simple principle: if a hypothesized circuit is correct, replacing all other activations with noise should not degrade performance. The method resamples activations from a 'corrupted' distribution where the key causal factors are broken, but only for nodes outside the proposed circuit. If the model's loss on the original task is recovered when the circuit's activations are patched in, the hypothesis is validated. This directly tests the completeness of the proposed subgraph.
Resampling & Activation Patching
The technique relies on activation patching across multiple forward passes:
- Clean Pass: Run the model on the original input to capture the 'correct' activations for the hypothesized circuit nodes.
- Corrupted Pass: Run the model on a perturbed input (e.g., shuffled tokens, noise) to capture 'incorrect' activations for all other nodes.
- Patched Pass: Run a third pass where the circuit nodes use the clean activations, and all other nodes use the corrupted activations. The model's output is then evaluated.
Distinction from Ablation
Causal scrubbing is fundamentally different from ablation (zeroing or mean-replacing activations):
- Ablation removes information, creating out-of-distribution states that can cause unpredictable model failures.
- Causal Scrubbing replaces information with a valid, in-distribution alternative from a corrupted dataset. This preserves the model's typical activation statistics while breaking the specific causal relationship under investigation, providing a more faithful test of the circuit's role.
Iterative Refinement of Circuits
The process is inherently iterative and serves as a debugging tool for mechanistic interpretability:
- Propose: An initial circuit is hypothesized based on attention patterns or weight analysis.
- Scrub: The scrubbing test is applied. If performance drops significantly, the circuit is incomplete.
- Revise: The researcher analyzes the nodes where the patched activations failed to recover performance, identifying missing components (e.g., a forgotten attention head or MLP neuron).
- Repeat: The expanded circuit is tested again until the scrubbing test is passed, confirming the hypothesis.
Formalizing the Falsification Criterion
A successful causal scrubbing test provides strong evidence that the identified subgraph is a faithful causal model of the behavior. The criterion is formalized as: for a given behavior B and a hypothesized circuit C, the model's performance on B should be statistically indistinguishable when running the full model versus running the model where only C receives clean activations and all other nodes receive activations from a distribution that breaks B. This moves interpretability from correlational observation to interventional proof.
Relationship to Other Methods
Causal scrubbing integrates concepts from several interpretability techniques:
- Activation Patching: It is a systematic, hypothesis-driven application of patching, rather than an exploratory one.
- Causal Mediation Analysis: It directly tests for a perfect mediation condition, where the indirect effect through the circuit fully explains the total effect.
- Mechanistic Interpretability: It serves as the gold-standard end-to-end validation step after discovering circuits via other means like sparse autoencoders or probing. It answers the question: 'Have we found the entire algorithm, or just a part of it?'
Frequently Asked Questions
Clear, technical answers to the most common questions about the causal scrubbing technique for mechanistic interpretability.
Causal scrubbing is a mechanistic interpretability technique that tests a hypothesized circuit in a neural network by resampling activations from a corrupted dataset and verifying that the model's behavior is fully mediated by the identified subgraph. The process works by first proposing a specific computational subgraph (a circuit) believed to be responsible for a particular behavior. Then, it systematically replaces activations at nodes outside this circuit with activations derived from a 'corrupted' or baseline dataset where the relevant feature is destroyed. If the model's performance on the task remains unchanged after this intervention, the hypothesized circuit is validated as both necessary and sufficient. If performance degrades, the hypothesis is falsified, revealing that the circuit is incomplete or incorrect. This method provides a rigorous, causal test rather than a mere correlational observation.
Causal Scrubbing vs. Other Interpretability Methods
Comparing Causal Scrubbing against other key interpretability techniques across dimensions of rigor, scope, and computational cost.
| Feature | Causal Scrubbing | Integrated Gradients | LIME |
|---|---|---|---|
Primary Objective | Hypothesis testing of circuits | Feature attribution | Local surrogate modeling |
Interpretability Paradigm | Mechanistic | Attribution-based | Attribution-based |
Requires Internal Access | |||
Model-Agnostic | |||
Evaluates Causal Fidelity | |||
Computational Cost | High | Medium | Medium |
Typical Granularity | Neuron/circuit | Input feature | Superpixel/word |
Satisfies Completeness Axiom |
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
Core concepts and techniques that form the foundation for understanding and validating circuits identified through causal scrubbing.
Circuits
A circuit is the minimal subgraph of a neural network—comprising specific attention heads and MLP layers—that mediates a particular behavior. Causal scrubbing is the primary tool for verifying that a hypothesized circuit is both faithful (captures all relevant computation) and complete (requires no other components). A validated circuit explains the full mechanistic pathway from input to output.
Activation Patching
A causal intervention technique that replaces the activations of a specific model component with activations from a corrupted or counterfactual input. By measuring the resulting change in output, researchers isolate which components are necessary and sufficient for a behavior. Causal scrubbing generalizes this by systematically patching entire hypothesized circuits simultaneously to test for completeness.
Faithfulness Metrics
Quantitative measures that evaluate how well an explanation captures the model's true computational process. A faithful circuit produces identical behavior when run in isolation. Key metrics include:
- Recovery rate: How much of the original performance is restored by the isolated circuit
- Completeness score: Whether the circuit accounts for all relevant information flow
- Minimality: Absence of redundant or non-contributing components
Mechanistic Anomaly Detection
The process of identifying unexpected behaviors in neural networks by analyzing their internal computations. When causal scrubbing reveals that a circuit fails to fully mediate a behavior, the residual error indicates the presence of additional, unidentified mechanisms. This drives iterative refinement of the circuit hypothesis and uncovers backup circuits or polysemantic neurons that encode multiple features.
Superposition Hypothesis
The theory that neural networks represent more features than they have dimensions by encoding them in almost-orthogonal directions in activation space. Causal scrubbing must account for superposition because a single neuron may participate in multiple circuits. Scrubbing a neuron for one behavior may inadvertently corrupt another, requiring careful feature disentanglement to isolate truly independent mechanisms.
Path Patching
A refined causal intervention technique that isolates specific computational paths between components rather than entire components. While standard activation patching replaces all outputs from a head, path patching targets only the influence flowing from one specific component to another. This enables causal scrubbing at finer granularity, testing whether a particular attention edge or MLP connection is necessary.

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