The Curse of Multiple Mediators: Hidden Interaction Effects in Activation Patching

Sankaran Vaidyanathan, David Arbour, Aaron Mueller, Scott Niekum, David Jensen

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:

  1. 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).
  2. 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$.
Figure 1: Left. Spearman rank correlation between mean NIE and mean PIE per head across 144 heads in GPT-2 small, Pythia-70M, and Qwen2.5-0.5B. Datasets where INT is large relative to NIE show lower rank agreement between the two estimators. Right. INT as a function of the L2 distance between the mediator’s patched activation and its clean value for 6 heads from the IOI circuit with different roles. INT grows linearly with patch distance, consistent with Theorem 3.2.
  • 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.
Figure 3: Left: Mean NIE vs. mean PIE per head, colored by their functional group from Wang et al. [2023]. NMH and BNMH sit below the diagonal; S-Inh, DTH, PTH, and Induction cluster near the y-axis (PIE ≈0, INT ≈NIE); NNMH occupies the negative-PIE region above the diagonal. Right: Mean INT by functional group; each point is one head, with median INT marked with black lines. NMH and most BNMH are negative; S-Inh, DTH, PTH, and Induction are positive; NNMH is moderately positive; the remaining heads form a median-zero cluster.
  • 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.
Figure 4: All 144 heads ranked by signed mean (descending); dashed vertical line marks the Wang et al. circuit boundary (k = 26). Outlined circles identify the heads each estimand misranks. (A) NIE ranking: backup heads (BNMH, outlined) are displaced to ranks 11–116 by INT < 0 suppression, falling in the lower half of the top-26 circuit despite their functional importance. (B) PIE ranking: heads whose contribution is entirely pathway-mediated (DTH, Induction, PTH, outlined) are pushed to ranks 30–130, below every head with positive PIE, even though NIE ranks them in the top 12.

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

BibTeX
@inproceedings{vaidyanathan2026curse,
  author = {Sankaran Vaidyanathan and David Arbour and Aaron Mueller and Scott Niekum and David Jensen},
  title = {{The Curse of Multiple Mediators: Hidden Interaction Effects in Activation Patching}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=DA12jH1hET},
}
Figure