Unit 10 · AI research · Lesson 7 of 9
Interpretability methods (optional)
Step 1: Learn the ideas
- Probing classifiers and control tasks
- Gradient, gradient-times-input and integrated gradients
- Sanity checks for saliency methods
- Attention weights as explanations, and why they are not enough
- Activation patching and causal tracing
- Circuits and induction heads
- Superposition and sparse dictionary features
- Evaluating interpretability claims
Why it matters
Interpretability is a research area in its own right and a growing part of safety work. Even outside it, interviewers may ask how you would check whether a model "knows" something or why it made a prediction. A good answer depends on knowing which methods give correlational evidence and which support causal claims.
Core ideas
Probing trains a simple classifier on frozen activations to predict a property such as part of speech or a board state. High accuracy shows the information is decodable, not that the model uses it, and a flexible probe can learn the task by itself. Control tasks, which assign random labels with the same structure, measure how much accuracy comes from the probe's own capacity.
Attribution assigns importance scores to inputs: raw gradients, gradient times input, integrated gradients (which accumulates gradients along a path from a baseline input and satisfies a completeness property) and perturbation methods. Randomization tests have shown that some saliency maps barely change when the model's weights are randomized, so they reflect the input more than the model. The choice of baseline input also changes the answer.
Mechanistic methods try to reverse-engineer the computation. Activation patching replaces activations from one run with those from another, for example a corrupted prompt, and measures the effect on the output, which gives causal evidence about which components matter. Circuit analyses trace how specific attention heads and MLP layers implement behaviours such as induction: copying the token that followed an earlier occurrence of the current token. Because networks represent more features than they have neurons (superposition), single neurons are often polysemantic, and sparse autoencoders or dictionary learning are used to extract more interpretable feature directions.
Common misconceptions
- "High probe accuracy means the model uses that information." It shows decodability; interventions are needed to show use.
- "Attention weights explain the prediction." They show mixing weights in one layer; other components transform the result, and different weights can produce the same output.
- "A clean saliency map validates the method." Visual plausibility is not faithfulness; run randomization and perturbation tests.
- "A circuit found on a curated prompt set explains the behaviour in general." Check coverage on broader inputs and use mean or resample ablations rather than zeroing activations, which can push the model off its normal operating range.
How to approach it
Start with the Transformer Circuits framework paper and a TransformerLens tutorial on a small model, reproduce induction-head detection, then train a probe with a control task. Read the saliency sanity-check paper before trusting any attribution figure. In interviews, label every interpretability claim by its evidence type: decodability, attribution or intervention.
Suggested order
- 1Read "A Mathematical Framework for Transformer Circuits" for the residual-stream view and how attention heads compose.
- 2Read "In-context Learning and Induction Heads" and reproduce induction-head scores on a small pretrained model with TransformerLens.
- 3Read "Designing and Interpreting Probes with Control Tasks" and do the probe project.
- 4Read "Sanity Checks for Saliency Maps" and the Distill article on attribution baselines; run a weight-randomization check on one attribution method.
- 5Read "Toy Models of Superposition" (problem setup and main results) and "Towards Monosemanticity" at overview level.
Step 2: Check off what you can do
Tap each one you can genuinely do or explain. Each earns 10 XP.
Step 3: Go deeper
Transformer Circuits ThreadStart here
transformer-circuits.pub (Anthropic interpretability research)Framework, induction heads, superposition and dictionary-learning papers for mechanistic interpretability.
Open(opens in a new tab)Link responded, 5 Oct 2026Designing and Interpreting Probes with Control Tasks
arXivHow to separate representation content from probe capacity.
Open(opens in a new tab)Link responded, 5 Oct 2026Sanity Checks for Saliency Maps
arXivRandomization tests every attribution method should pass.
Open(opens in a new tab)Link responded, 5 Oct 2026Distill (journal archive)
DistillSection: Visualizing the Impact of Feature Attribution Baselines
How the baseline input changes integrated-gradients attributions.
Open(opens in a new tab)Link responded, 5 Oct 2026TransformerLens
GitHub (TransformerLensOrg)Tooling to cache, patch and ablate activations in small GPT-style models.
Open(opens in a new tab)Link responded, 5 Oct 2026
Step 4: Practice
Use a small pretrained model so experiments run in minutes. For every result, write the evidence type (decodable, attributed, causally necessary or sufficient) and the baseline you compared against. Keep failed hypotheses in your notes; they make good interview material.
- Linear probe with a control task on a small transformerOpen(opens in a new tab)Not attemptedSelf-directed project (control-task method)
- Find and verify induction heads with TransformerLensOpen(opens in a new tab)Not attemptedSelf-directed project (TransformerLens)
Record attempts on each problem’s page (+15 XP, +10 more when solved on your own).
Step 5: Test yourself
Answer each one out loud or on paper before you finish the lesson.
- Question 1What does a control task control for?
- Question 2What property does integrated gradients satisfy that raw gradients do not?
- Question 3Why can zero-ablation overstate a component’s importance?
- Question 4What is an induction head, behaviourally and mechanistically?
- Question 5Why are individual neurons often polysemantic?
You’re done when you can
- Train a probe with a control task and report selectivity, not only accuracy.
- Run an activation-patching experiment and explain which causal claim it supports and which it does not.
- Explain superposition and why sparse dictionary methods are used, in under three minutes.
- List three pitfalls in evaluating interpretability claims with a mitigation for each.


