Whether an activation-patching experiment lights up one neuron or three components depends on a single directional choice: copying clean states into a corrupted run (denoising) tests sufficiency and solves OR gates, whereas copying corrupted states into a clean run (noising) tests necessity and solves AND gates. In their practical guide to causal tracing and resample ablation, Stefan Heimersheim and Neel Nanda dissect why those two directions are not symmetric complements, and show how exponential probability metrics can turn an identical +2 logit contribution into either a 1 or 40 percentage-point jump depending on the baseline.

  • Direction flips circuit coverage: On a stylized 3-part "Nobel Peace Prize" circuit (L0H0, L1N42, and embeddings), noising flags all 3 components and requires keeping 3 paths clean, while denoising recovers output from L1N42 alone (1 component, or 2 paths).
  • Backup heads mask ablation effects: When a primary component boosting logits by +X is ablated, downstream Hydra backup heads compensate by roughly 0.7x, shrinking the visible drop to 0.3x without erasing it.
  • Probability cliffs mislead exploration: Because softmax is exponential in logits, adding +2 to a logit swings probability by 1 to 40 percentage points depending on baseline confidence, and saturates past top-1 dominance (around layer 17 in their GPT-2 Medium example).
  • Logit difference tracks linear additions: Residual-stream components add linearly to logit differences (+1 LD regardless of baseline), whereas discrete rank or accuracy jumps at a single threshold (layer 15 in GPT-2 Medium) hide upstream contributors.
Why denoising and noising are not mirrors: AND vs OR circuit behavior
Patching directionCausal claimC = A AND BC = A OR B (backup)
Denoising (clean -> corrupt)Sufficiency (restores cross-section)Misses A and B individually; finds C only.Finds A, B, and C in first pass.
Noising (corrupt -> clean)Necessity (breaks full circuit)Finds A, B, and C in first pass.Misses A and B if backup holds; finds C only.

Source: Heimersheim & Nanda (2024), Sections 2.3 and 2.4.

How It Works

Activation patching overwrites chosen intermediate activations during a destination forward pass with cached values from a source run, isolating specific information while holding shared context constant. Unlike zero ablation or mean ablation, which push activations off the natural data distribution, pairing two similar prompts ("The Louvre is in" vs "The Colosseum is in") lets practitioners trace which components carry landmark identity rather than general English syntax.

Heimersheim and Nanda separate the workflow into two distinct modes:

  • Exploratory vs confirmatory sweeps: Exploratory patching sweeps individual components from coarse residual-stream states down to attention heads, neurons, or sparse features, then uses path patching to distinguish direct connections (A -> C) from mediated ones (A -> B -> C). Confirmatory patching intervenes on many components at once (as in causal scrubbing) to test whether a hypothesized subgraph accounts for performance across a broad prompt distribution.
  • Prompt granularity: Narrow counterfactuals on Indirect Object Identification (IOI) trace specific sub-properties: swapping name values (John/Mary to Alice/Bob) locates name value representations; swapping clause order (Mary and John ... Mary ...) isolates name value while fixing IO position; replacing every name (Alice and Bob ... Charlie) tests the full circuit at confirmation time.

Key Findings

The core asymmetry comes from how serial AND gates and parallel OR gates interact with patch direction. In the authors’ stylized "Nobel Peace Prize" circuit, head L0H0 copies "Nobel" to the "Peace" token position, and neuron L1N42 maps the combined representation to "Prize". Because L1N42 acts like an AND gate on L0H0 and the "Peace" embedding, denoising L0H0 alone inside a random-word prompt leaves "Peace" missing and fails to restore "Prize". Denoising L1N42 succeeds by itself because L1N42 in the clean run already read clean upstream layers 0 to N-1. Conversely, noising breaks output whenever any of L0H0, L1N42, or either embedding is overwritten.

Real transformers add two further complications documented across IOI and docstring circuits: Hydra self-repair (backup heads absorbing roughly 0.7x of an ablated head’s logit boost, behaving like lossy OR gates) and negative components whose removal raises task score. Negative components make 100% score recovery ambiguous, since finding half the positive heads while excluding negative ones can overshoot clean performance; the authors frame circuit quality instead as a Pareto frontier of components vs recovered performance (for instance, recovering 80% of performance with 1% of components rather than 90% with 10%).

Comparing patching metrics for exploratory vs confirmatory runs
MetricScale & controlPrimary failure mode
Logit differenceContinuous, linear in residual stream; cancels shared circuitsFalse positive if a destructive patch lowers the incorrect token’s logit toward uniform.
LogprobContinuous, tracks relative probability; unspecific across tokensSaturates once top-ranked (past layer 17 in Fig. 2); mixes target boost with competitor suppression.
ProbabilityContinuous, exponential in logits; unspecific+2 logit shift jumps 1 to 40pp by baseline; saturates early and hides negative heads.
Accuracy / RankDiscrete step thresholdZero signal below threshold, spikes at crossing (layer 15); useful only for confirmatory checks.

Source: Heimersheim & Nanda (2024), Section 4 and Figure 2.

Caveats & Builder Takeaway

This paper is a synthesis of empirical best practices rather than a new benchmark across model families, and two key caveats bound every patching result. First, activation patching never guarantees minimality (no minimality): a circuit that restores performance is sufficient, not necessarily the smallest possible subgraph. Second, every finding applies strictly to the chosen clean and corrupted prompt distributions and says nothing about how those same polysemantic heads behave outside that distribution.

For engineers running activation patching or scaling up with attribution patching, state the patch direction explicitly, compute a dataframe of multiple metrics per run rather than trusting probability or rank alone, rely primarily on continuous logit-linear metrics (while verifying individual answer logits against uniform-damage artifacts), and confirm claims across several counterfactual prompt sets.