Skip to content

Interpretability

Skip →Probing classifiers and control tasks

This section asks what a trained model computes and how we can tell, from input attributions up to reading and editing raw weights. It is written for an IR researcher who trains rankers and retrievers and wants to know which interpretability tools give causal evidence, and how to apply them to retrieval models.

There are two stages:

  • Stage 1 is the main track: the vocabulary (residual stream, circuits, features), the causal tests (patching), editing and steering, and sparse autoencoders, ending with patching applied to a dense retriever.
  • Stage 2 is for following current research: concept directions, validated circuits, how SAEs are evaluated and where they fail, attribution graphs, model auditing, CoT faithfulness, and interpretability of retrievers and weights.

Both stages are reading. Running the methods yourself is optional: ARENA Chapter 1 and nnsight are there if you want to. The rest of the sidebar is optional depth.

Stage 1 · Main track · 10 numbered items · about 9.5 h of reading. Optional reading is under Optional deep dives below.

  1. Probing classifiers and control taskspaper · ~40 minA survey of probing classifiers, read together with the control-task method of Hewitt and Liang, which asks whether a probe measures the representation or its own capacity to memorise.
  2. Transformer circuits frameworkblog · ~60 minReverse-engineers attention-only transformers of zero to two layers by treating the residual stream as a linear channel, splitting each head into a QK circuit and an OV circuit, and showing how heads compose into induction heads.
  3. Induction headspaper · ~60 minSix lines of evidence, from 34 models and over 50,000 head ablations, that induction heads (prefix-matching, copying attention heads) form in a sudden phase change and may be the main source of in-context learning.
  4. TransformerLenstool · ~45 minThe field's standard hook library. It names every activation, caches or replaces any of them in one call, and since v4 runs on HuggingFace weights through TransformerBridge, including BERT encoders.
  5. Activation patchingpaper · ~60 minHow to localize a behaviour to model components by swapping activations between a clean and a corrupted run, and how to approximate it with gradients.
  6. ROMEpaper · ~60 minCausal tracing finds factual recall in mid-layer MLPs at the last subject token, and ROME rewrites one fact with a closed-form rank-one update to one MLP matrix.
  7. Activation addition (steering)paper · ~50 minActAdd steers a frozen LLM by adding the activation difference between two contrasting prompts to the residual stream at inference time, with no gradients or labelled data.
  8. Toy models of superpositionpaper · ~60 minSmall ReLU autoencoders show that when features are sparse, networks store more features than dimensions by packing them into interfering directions, and that the packing follows phase changes and regular polytope geometry.
  9. Towards monosemanticity (SAEs)blog · ~75 minTrains a sparse autoencoder with an L1 penalty on a one-layer transformer's MLP activations and shows that its features are far more interpretable than neurons; read with Gao et al.'s TopK SAE, which removes the L1 penalty and fixes dead latents at scale.
  10. Axiomatic causal interventionspaper · ~50 minTurn an IR axiom (TFC1) into clean/corrupt document pairs, patch activations inside TAS-B, and find the four attention heads that carry a term-frequency signal.
  • Probing first (1) sets up the question the rest of the track answers: information that a probe can decode is not necessarily information the model uses.
  • Transformer circuits framework → induction heads (2–3) give the residual-stream vocabulary (QK and OV circuits, head composition) and the first fully explained mechanism.
  • TransformerLens (4) shows how hooks expose and replace activations, which is what every later method does under the hood. Read it for the mechanics; running it is optional.
  • Activation patching (5) is how a circuit claim is tested rather than told; every later page uses it or a variant.
  • ROME and activation addition (6–7) are one example each of editing (rewrite a stored fact) and steering (add a direction at inference time).
  • Superposition → Towards Monosemanticity (8–9) explain why single neurons are hard to read and how sparse autoencoders recover features.
  • Axiomatic causal interventions (10) closes the track by applying patching to a dense retriever, using IR axioms as the hypotheses.

Start Stage 2 after Stage 1. It moves from “here is a method” to “how do we know the explanation is right, and does it scale to frontier models?” One item is an RL page on chain-of-thought faithfulness.

Ready for Stage 2? Check that you can do these without looking anything up. If not, reread the Stage 1 page in brackets.

Stage 2 · Frontier · 14 numbered items · about 10 h of reading. Optional reading is under Optional deep dives below.

  1. Refusal directionpaper · ~50 minA difference-in-means direction in the residual stream controls refusal in 13 open chat models; ablating it (or orthogonalising the weights against it) removes refusal, and adding it induces refusal.
  2. Linear representation hypothesispaper · ~45 minFormalises "concepts are directions" with counterfactual pairs in both the unembedding and embedding spaces, links them to probing and steering, and derives a causal inner product.
  3. IOI circuitpaper · ~30 minReverse-engineers how GPT-2 small completes "When Mary and John went to the store, John gave a drink to" with Mary, finding a 26-head circuit in seven classes and testing it for faithfulness, completeness and minimality.
  4. Cross-encoders as semantic BM25paper · ~60 minPath patching on a MiniLM cross-encoder finds matching heads that compute soft term frequency, an IDF vector in the embedding matrix, and late heads that combine them like BM25.
  5. Gemma Scopepaper · ~25 minReleases over 2,000 JumpReLU sparse autoencoders covering every layer and sublayer of Gemma 2 2B and 9B (plus select 27B layers), giving the field a shared, open set of SAE features to build on.
  6. Negative results for SAEsblog · ~25 minGoogle DeepMind's interpretability team finds that sparse probes on SAE latents underperform plain linear probes at detecting harmful intent out of distribution, and explains why they are deprioritising fundamental SAE research.
  7. Evaluating & improving SAEspaper · ~55 minWhy reconstruction error and L0 cannot tell you whether an SAE is useful; the eight SAEBench metrics and what they found; feature absorption as a sparsity-induced failure; and Matryoshka SAEs, whose nested reconstruction losses reduce it.
  8. Crosscoders & model diffingblog · ~65 minOne sparse dictionary that reads and writes several layers or two models at once; the relative decoder norm that labels latents base-only, shared or chat-only; why the L1 loss fakes chat-only latents (complete shrinkage, latent decoupling) and how BatchTopK substantially mitigates these artifacts; what diffing found about chat tuning, and what it can and cannot tell you about RL post-training.
  9. Circuit tracing (attribution graphs)blog · ~45 minReplaces a model's MLPs with a cross-layer transcoder, then builds prompt-specific attribution graphs between interpretable features; the companion "Biology" paper applies it to Claude 3.5 Haiku.
  10. Auditing hidden objectivespaper · ~45 minAnthropic trains a Claude 3.5 Haiku model with a hidden reward-model-sycophancy objective, runs a blind auditing game with four teams, and then studies eight auditing techniques, from data search to SAE features.
  11. Natural language autoencodersblog · ~40 minAn activation verbalizer writes text from an activation and an activation reconstructor maps the text back; trained jointly with RL on reconstruction, the text becomes a readable explanation used in real model audits.
  12. CoT faithfulnessRL · paper · ~40 minReasoning models that use a planted hint mention it in their chain of thought only a minority of the time, and RL that teaches them to exploit hints does not teach them to admit it.
  13. Sparse autoencoders for dense retrievalpaper · ~30 minA k-sparse autoencoder on dense retrieval embeddings, trained with a retrieval-preserving contrastive loss, yields interpretable features that can be amplified to steer what gets retrieved.
  14. Sparks of Weight-Space Programmingblog · ~50 minA frontier LLM reads and edits neural-network weights directly, with no gradients and no extra training.
  • Concept directions (1–2). The refusal direction is the current standard steering recipe: a difference of means, then directional ablation or a rank-1 weight edit. The linear representation hypothesis explains when probes and steering vectors are the same object.
  • Validated circuits (3–4). The IOI circuit is the reference case for faithfulness, completeness and minimality tests. Cross-encoders as semantic BM25 applies path patching to a reranker.
  • SAEs in practice (5–8). Gemma Scope is the open SAE suite most work uses. The negative results show where probes beat SAEs. SAE evaluation explains SAEBench, feature absorption and Matryoshka SAEs, i.e. how to tell a better dictionary from a lower loss. Crosscoders and model diffing apply a shared dictionary to a base model and its chat- or RL-tuned version, and show which apparent “new” features are sparsity artifacts.
  • Frontier methods (9–11). Circuit tracing replaces MLPs with transcoders and reads attribution graphs. Auditing hidden objectives tests whether these tools find a planted goal. Natural-language autoencoders turn activations into readable text.
  • Faithfulness, retrievers and weights (12–14). CoT faithfulness asks whether a model’s stated reasoning reflects what drives it. Dense-retrieval SAEs bring features to retrievers. Weight-space programming reads and edits behaviour directly in the weights.
  • Optional companions. Scaling Monosemanticity, faithfulness and information flow, CoT monitorability, tuned lens and open problems in mech interp.
  • Read 1 · Classical & post-hoc if you need input-level attributions for one prediction: start with Integrated Gradients, then SHAP.
  • Read 2 · Mechanistic: circuits if you want a complete worked circuit and the causal tests behind it: start with the tuned lens, then open problems in mech interp.
  • Read Courses, tools & explainers if you want a structured hands-on curriculum: start with Nanda’s mech-interp guide, then ARENA Chapter 1 (about 20 hours).
  • Read 3 · Causal: patching, editing, steering if you need more steering methods or the theory of concept directions: start with representation engineering.
  • Read 4 · Features: superposition & SAEs if you will train or use SAEs at scale: start with Scaling Monosemanticity.
  • Read 5 · Interpretability for retrieval if you want more circuits in rankers and tools for them: start with probing ranking LLMs, then MechIR.
  • Read 6 · Weight-space & model reading if you are interested in LLMs that read and edit weights directly: start with Sparks of Weight-Space Programming, a preliminary blog result. The 📌 pages in this group are pinned IR, evaluation and recommendation papers by the post’s first author, listed as a bridge from IR, not as interpretability work.
  • Read 7 · 2026 frontier if you follow current interpretability research (CoT faithfulness, activation verbalizers, auditing): start with auditing hidden objectives.
All pages by group
GroupPages
1 · Classical & post-hocIntegrated Gradients · Probing classifiers & control tasks · SHAP · LIME · TCAV · Attention is (not) explanation · Influence functions
2 · Mechanistic: circuitsZoom In: circuits · Transformer circuits framework · Induction heads · IOI circuit · Tuned lens · Circuit tracing (attribution graphs) · Open problems in mech interp
3 · Causal: patching, editing, steeringActivation patching · ROME · Activation addition · Refusal direction · Representation engineering · Linear representation hypothesis · Task arithmetic
4 · Features: superposition & SAEsToy models of superposition · Towards monosemanticity · SAEs find interpretable features · Scaling monosemanticity · Gemma Scope · Negative results for SAEs · The neuron-basis turn
5 · Interpretability for retrievalAxiomatic causal interventions · Cross-encoders as semantic BM25 · ABNIRML · Probing ranking LLMs · SAEs for dense retrieval · DPR: is it retrieving? · MechIR
6 · Weight-space & model reading📌 Sparks of Weight-Space Programming · WSP replications & limits · Related reading · 📌 MLLM tool-use refusal · 📌 Diversification as risk · 📌 mxbai-edge-colbert-v0 · 📌 ColBERT projection variants · 📌 LARA · 📌 HyPeR (partial rewards) · 📌 Retention two-sided matching · 📌 Dialogue nugget evaluation · 📌 TREC 2025 Product Search
7 · 2026 frontierFaithfulness as information flow · Natural language autoencoders · Global workspace (J-lens) · Auditing hidden objectives · Mechanistic shaping & CoT lifecycle
Courses, tools & explainersNanda’s mech-interp guide · ARENA Chapter 1 · TransformerLens · nnsight and NDIF · Umar Jamil on interpretability
Full reading path (includes optional pages)

The sidebar groups are a catalogue. This longer path covers the main track plus the optional pages most worth adding; it puts the mechanistic spine first and the first hands-on lab early.

  1. Transformer refresher (if needed): Attention Is All You Need or the Illustrated Transformer.
  2. Residual-stream view: the transformer circuits framework, then induction heads. Learn this view before the rest of the section.
  3. First lab, alongside step 2: ARENA Chapter 1 (sections 1.1–1.2) with TransformerLens. Reproduce an induction head before reading further.
  4. Causal tests: activation patching first, then the IOI circuit as its worked example, then ROME, activation addition and the refusal direction. Patching is how a circuit claim gets tested rather than told.
  5. Features: toy models of superposition → Towards Monosemanticity → Scaling Monosemanticity, then the negative SAE results as a check on enthusiasm.
  6. Retrieval applications: axiomatic causal interventions → cross-encoders as semantic BM25 and MechIR, then SAEs for dense retrieval. These apply steps 2–5 to the models you already train.
  7. Model reading: Sparks of Weight-Space Programming and its related reading. Read it as a preliminary blog result, not an established method.
  8. Frontier: circuit tracing (attribution graphs) and auditing hidden objectives; keep TransformerLens or nnsight open while you read.

Classical branch (any time; probing is also main-track page 1; much of it will be familiar from learning-to-rank work): Integrated Gradients and SHAP for what inputs matter; probing with control tasks for what is decodable; “Attention is (not) explanation” for why decodable is not the same as used.

Questions to think through

These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.

  1. Connect

    Trace one claim, "head X computes query–document term matching in a cross-encoder", through this section's tools. Which page supplies the vocabulary for stating the claim, which supplies the causal test, which supplies a feature-level check, and what would each tool's failure mode do to the claim?

    What a strong answer covers
    • Vocabulary: the transformer circuits framework (residual stream, QK and OV circuits) states what the head reads and writes.
    • Causal test: activation patching with realistic counterfactual pairs (STR-style), normalised logit difference, both noising and denoising directions.
    • Feature check: an SAE or probe at the head's output, with probe control tasks or SAE reconstruction checks guarding against memorisation or unfaithful features.
    • Failure modes: off-distribution corruption inflates effects; attribution patching misses saturated heads; probes can be decodable but unused; SAE features depend on dictionary size.
  2. Critique

    Classical attributions (Integrated Gradients, SHAP) and mechanistic circuits both claim to explain a prediction. Contrast what each kind of explanation is a claim about, what counterfactual it relies on, and when you would trust one over the other for a neural ranker.

    What a strong answer covers
    • Attributions assign credit to inputs relative to a baseline or a missing-feature value function; they say nothing directly about internal mechanism.
    • Circuit claims are about internal components and are tested by interventions on activations, relative to a corrupted run.
    • Both depend on an often unjustified counterfactual: the IG baseline or SHAP imputation, and the patching corruption.
    • Prefer attributions for a quick input-level audit of one ranking; prefer circuits when the claim is about a reusable mechanism that should generalise across queries.
  3. Research idea

    Pick one retrieval behaviour you care about (for example exact-match preference, recency bias or length bias). Using the pages in group 5 as models, propose a two-month interpretability project: model, behaviour dataset, the first runnable experiment, and the result that would make you change a production ranker.

    What a strong answer covers
    • A concrete open model of manageable size (a MiniLM or BERT-base cross-encoder, or a small dense retriever) so that patching is cheap.
    • A diagnostic dataset of minimal pairs isolating the behaviour, in the style of axiomatic or ABNIRML probes.
    • First experiment: behavioural confirmation, then activation patching over heads and layers, using TransformerLens, nnsight or MechIR.
    • Actionable result: a localised component whose ablation or steering removes the bias without hurting held-out effectiveness, compared against a data or training fix.