Reproduce “The Curse of Multiple Mediators: Hidden Interaction Effects in Activation Patching” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

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

This research formally demonstrates that activation patching in transformers measures both a component's pure causal effect and significant interaction effects, providing a theoretical basis for observed inconsistencies in mechanistic interpretability and offering new diagnostic insights. It shows that these interaction effects explain discrepancies in component importance rankings and faithfulness scores across various tasks and prompt distributions.

Key insights

  • Standard activation patching (noising) measures the Natural Indirect Effect (NIE), which is composed of the Pure Indirect Effect (PIE) and a mediated Interaction Effect (INT), indicating that component contributions are not purely isolated.
  • These interaction effects (INT), encompassing both individual (sINT) and cross-component (xINT) forms, are critical diagnostics that explain inconsistencies in interpretability metrics and reveal qualitative functional roles that neither PIE nor NIE alone capture.
  • The magnitude of INT is influenced by the semantic distance between clean and counterfactual prompts and approaches zero in locally affine models, suggesting that certain benchmarks might not accurately reflect interaction complexities in real transformers.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.