TL;DR
Activation patching—the gold standard for finding circuits in large language models—implicitly assumes it isolates a component's independent causal effect. This paper proves that patching actually conflates a component's pure effect with interaction effects caused by the transformer's residual stream. This interaction term explains why standard patching methods systematically miss critical "backup" components and cause massive instability in circuit evaluation metrics.
What Problem Does This Paper Address?
Mechanistic interpretability aims to reverse-engineer neural networks into human-readable "circuits." To find these circuits, researchers rely heavily on activation patching (also known as causal tracing or interchange intervention). The idea is simple: replace the internal activations of a specific component (like an attention head) from a "clean" prompt with activations from a "corrupted" prompt, and see how much the output changes.
Statistically, this measures the Natural Indirect Effect (NIE). However, transformers are built around a residual stream—a massive highway of skip-connections where information constantly bypasses components. In causal inference, this structure creates what are known as "recanting witnesses." Because of these bypass routes and downstream nonlinearities, activation patching cannot cleanly isolate a single component's effect. Instead, the measured effect is heavily contaminated by how that component interacts with the rest of the network.
Methods
The authors re-derive activation patching through the lens of formal causal mediation analysis. They show that the two primary patching methods are fundamentally asymmetric:
- Denoising (restoring clean activations into a corrupted run) isolates the Pure Indirect Effect (PIE)—the effect flowing strictly through the component.
- Noising (introducing corrupted activations into a clean run) computes the Natural Indirect Effect (NIE), which is a combination of the pure effect and an interaction term: $NIE = PIE + INT$.
The paper provides two key mathematical proofs:
- A Second-Order Approximation (Theorem 3.2): Using a Taylor expansion, they prove that the interaction effect ($INT$) scales with the distance between clean and counterfactual activations, and completely vanishes if the downstream network is locally affine (linear).
- Multi-Component Interaction (Theorem 4.1): They prove that when patching multiple components at once, the total interaction decomposes combinatorially into individual, pairwise, and higher-order group interactions ($xINT$).
Datasets
The authors evaluated their framework across multiple models (GPT-2 small, Pythia-70M, and Qwen2.5-0.5B) using several standard interpretability datasets from the Hanna et al. [2024] repository:
- Indirect Object Identification (IOI): Evaluated with both symmetric corruption (swapping names) and pABC corruption (introducing a third, unrelated name).
- Subject-Verb Agreement (SVA)
- Gender Bias
- Greater Than (GT)
Key Insights and Ideas
- Noising and Denoising are Not Symmetric: For years, the field treated noising and denoising as two sides of the same coin. This paper shows they measure entirely different causal quantities.
- Prompt Similarity Masks the Problem: When clean and corrupted prompts are nearly identical (e.g., changing a single word from singular to plural in SVA), the activation distance is tiny, suppressing $INT$. But when prompts diverge (like in complex reasoning tasks), $INT$ explodes, causing the rank correlation between NIE and PIE to drop as low as $\rho = 0.51$.
- Interaction Effects Encode Functional Roles: Instead of treating $INT$ as a nuisance to eliminate, the authors show its sign and magnitude reveal a component's true mechanism:
- Negative INT (Backup Compensation): Attention heads that step in only when primary heads fail. Their marginal importance shrinks when the rest of the model is clean.
- Positive INT (Context-Specific Mechanisms): Heads (like Induction or Duplicate Token heads) that only matter if downstream components are simultaneously active.
- Explaining Faithfulness Anomalies: Circuit "faithfulness" scores are notoriously unstable across different prompt templates (e.g., ABBA vs BABA layouts). The authors show this instability is driven almost entirely by volatile cross-component interactions ($xINT$) rather than the components' individual behaviors.
Key Results
The practical danger of ignoring $INT$ is illustrated using the famous GPT-2 IOI circuit as a ground truth:
- NIE (Noising) misses backup heads: Standard NIE ranking completely fluffs the detection of "Backup Name Mover" heads, displacing them far outside the top-26 circuit boundary because their negative $INT$ suppresses their scores.
- PIE (Denoising) misses context heads: If you switch to pure PIE ranking to find the backup heads, you run into the opposite failure mode—it completely misses context-specific components like Duplicate Token and Induction heads, dropping them to ranks 30–130.
Limitations and Future Work
The core limitation is a harsh reality of causal inference: because interaction effects decompose combinatorially, perfectly controlling or accounting for all higher-order interactions requires an intractable combinatorial search space.
The authors suggest that future work should lean into this complexity rather than trying to avoid it. Promising directions include using LLM-based "interpretability agents" to automatically cluster components by their functional interaction profiles, and utilizing advances in concept geometry to perform more selective interventions that minimize unwanted side-channel interactions.
Summary updated