Mechanistic Interpretability: From Activations to Causal Claims
Think of a transformer as a circuit board. Activation patterns are voltage readings; patching is replacing one component with a copy from another run. A claim is credible when the intervention changes the behavior you predicted and leaves unrelated behavior alone.
1. Logit lens
Project an intermediate residual stream through the unembedding matrix: . This is a descriptive projection, not proof that the model uses those logits at layer .
2. Patching effect
Let be the metric on a clean prompt and after replacing one activation. Define . Normalize by the corrupted baseline: .
3. Specificity control
A real circuit effect should be large for the target behavior and near zero for an unrelated behavior measured on the same patches. Report both; a global performance drop is not evidence of a specific circuit.
4. SAE reconstruction
Train with an L1 penalty on the code. Reconstruction loss plus sparsity determines whether features are monosemantic; measure both, not just pretty feature visualizations.
5. Causal mediation
The direct effect of a feature on output is estimated by intervening while holding other variables fixed: . Without the operator you only have correlation.