Research / research/notes/4.2_causal_interventions.md

documentPhase 1 notes — §4.2 Causal / interventional methodsauthorSimon-Pierre BouchercreatedTue Aug 11 2026 20:00:00 GMT-0400 (heure avancée de l’Est)statusdraft

§4.2 — Causal / interventional methods

B1. Activation patching (causal mediation / interchange intervention)

  • Key papers: origins: Vig et al., NeurIPS 2020, https://arxiv.org/abs/2004.12265 ; best practices: Zhang & Nanda, ICLR 2024, https://arxiv.org/abs/2309.16042 ; Heimersheim & Nanda 2024, https://arxiv.org/pdf/2404.15255
  • Reveals: which components causally mediate a behavior (clean/corrupted runs; noising vs denoising directions differ in meaning).
  • Cost: 2 forwards per (component, prompt-pair); exhaustive sweeps O(#components). Time-heavy, memory-light — well-suited to Macs 0.5B–8B; 14B with patience/quantization. Hook overhead MLX vs MPS = Experiment H.
  • Implementations: TransformerLens (MPS opt-in), NNsight https://github.com/ndif-team/nnsight , pyvene, baukit.
  • Failure modes: metric (logit-diff vs prob) and corruption type (Gaussian vs symmetric token swap) change localization conclusions; backup/hydra compensation; dormant-pathway subspace illusions; multi-mediator interactions (Curse of Multiple Mediators, 2026, https://arxiv.org/html/2606.27510v1).
  • Epistemic status: Established core method; hyperparameter sensitivity well-documented. methodology.md must pin corruption method + metric per map type, before scanning.

B2. Path patching

B3. Attribution patching (AtP/AtP*) and gradient-based screening

B4. Causal tracing / ROME-style locating

  • Key papers: Meng et al., NeurIPS 2022, https://arxiv.org/abs/2202.05262 (code https://rome.baulab.info/) ; critique: Hase et al., NeurIPS 2023, https://arxiv.org/abs/2301.04213
  • Reveals: where factual associations appear "stored" (noise subject tokens, restore states; mid-layer MLPs at last subject token).
  • THE central cautionary tale for modelmap: Hase et al. — edit success essentially uncorrelated with tracing-identified layers (ρ≈−0.13 at GPT-J layer 6); editing works almost anywhere; localization ≠ editability. Gaussian noising also distorts activations off-distribution.
  • Epistemic status: Contested / debunked-in-part (the locating→editing inference); the tracing observation itself replicates.

B5. Ablations (zero, mean, resample)

  • Key analyses: Zhang & Nanda (B1); Miller et al. 2024 (ablation choice flips faithfulness scores).
  • Reveals: necessity (not sufficiency) of a component.
  • Cost: cheapest intervention class; 1 forward per ablation. Ideal for Experiment B (localization vs diffusion).
  • Failure modes: zero-ablation is off-distribution (can create signal); mean-ablation destroys within-distribution variance; resample > mean > zero is the emerging norm; hydra effects mask importance; unit scans → multiple-comparison inflation.
  • Epistemic status: Established, with distribution-dependence caveats.

B6. Causal scrubbing

B7. DAS / interchange intervention accuracy / pyvene

B8. Steering vectors (ActAdd, CAA, ITI)

Cross-cutting 2024–2026 signals

  1. Faithfulness (not circuit overlap) became the standard comparison metric (EAP-IG) — then shown non-robust itself (Miller et al.).
  2. Patchscopes unifies lens-style readouts with interventions.
  3. Field syntheses: Open Problems in Mechanistic Interpretability (Sharkey et al. 2025, https://arxiv.org/abs/2501.16496); Bereska & Gavves review 2024, https://arxiv.org/pdf/2404.14082 ; Dead Salmons (2025, https://arxiv.org/pdf/2512.18792) — null-model controls, aligned with charter §8.4.
  4. Tooling: NNsight/NDIF paper https://arxiv.org/abs/2407.14561 benchmarks NNsight vs TransformerLens/pyvene/baukit. TransformerLens MPS remains opt-in. Plan: baukit-style raw hooks on MPS + native MLX hooks, benchmark both (Experiment H). No mainstream interpretability library targets MLX — publishable gap.