Skip to main content
QUICK REVIEW

[Paper Review] How to use and interpret activation patching

Stefan Heimersheim, Neel Nanda|arXiv (Cornell University)|Apr 23, 2024
Usability and User Interface DesignComputer Science5 citations
TL;DR

Provides practical guidance on activation patching in mechanistic interpretability, covering methods, interpretation, metrics, and common pitfalls.

ABSTRACT

Activation patching is a popular mechanistic interpretability technique, but has many subtleties regarding how it is applied and how one may interpret the results. We provide a summary of advice and best practices, based on our experience using this technique in practice. We include an overview of the different ways to apply activation patching and a discussion on how to interpret the results. We focus on what evidence patching experiments provide about circuits, and on the choice of metric and associated pitfalls.

Motivation & Objective

  • Provide practical advice and best practices for activation patching based on practitioner experience.
  • Summarize the different ways to apply activation patching and how to choose among them.
  • Discuss how to interpret patching results and what evidence they provide about circuits.
  • Highlight metrics, their pitfalls, and recommendations for reporting patching results.

Proposed method

  • Describe exploratory and confirmatory patching modes and when to use each.
  • Explain component granularity for patching (e.g., residual streams, MLP outputs, attention heads, path patching).
  • Differentiate noising (corrupt → clean) and denoising (clean → corrupt) patching and their interpretive implications.
  • Outline patching pipelines (source/destination prompts, saving activations, applying patches, observing outputs).
  • Discuss noising/denoising advantages, speedups (e.g., AtP*) and when to use path patching.
  • Compare activation patching to ablations and other patching techniques (zero, mean, Gaussian noise).
  • Provide guidance on prompt selection, experimental design (exploratory vs confirmatory), and using multiple patching directions.

Experimental results

Research questions

  • RQ1What kinds of patching experiments provide evidence about neural circuits in language models?
  • RQ2How should activation patching results be interpreted to infer sufficiency and necessity of components?
  • RQ3What metrics best capture patching effects, and what common pitfalls should researchers avoid?
  • RQ4How do denoising and noising patches differ in what they reveal about circuit structure?
  • RQ5What best practices minimize misinterpretation due to prompt choices and model backups?

Key findings

  • Activation patching is generally preferable to ablations for identifying circuit components.
  • Denoising tests sufficiency of patched activations, while noising tests necessity, and the two directions are not symmetric.
  • A range of metrics should be used; logit/logprob differences are often most informative for partial credit and interpretability.
  • Prompt choice and patching direction can drastically affect results; use narrow prompts for exploration and wide distributions for confirmatory tests.
  • Path patching can reveal interactions between components, distinguishing direct vs mediated effects.
  • Beware of backup behavior (Hydra effect) and negative components; using multiple metrics mitigates misinterpretation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.