gpt2 at revision 607a30d783dfa663caf39e06633721c8d4cfcd7e, float32, on a beginning-of-text token, then 16 random tokens, then the same 16 again. Tokens: <|endoftext|> | continued | SS | Louis | attack | vary | CD | Does | deeper | Gr | pro | shopping | clean | leadership | Is | girl | facility | continued | SS | Louis | attack | vary | CD | Does | deeper | Gr | pro | shopping | clean | leadership | Is | girl | facility
Attention pictures and scores show where heads look: observations, not causal evidence. What the model needs is tested by interventions, on the Effects and Edges pages.
How to read this page. What happens to the logit difference when a head is switched off (ablation) or its output is copied between the twins (patching), in percent: red helps, blue hurts. Verdicts compare each head with 20 random controls, then check it on held-out seeds.
The heads that pass on the finding seeds, run again on ten held-out seeds with the same rule: confirmed when they pass again.
mean ablation: percent of the clean logit difference lost: 5 of the 6 heads that pass on the 10 finding seeds pass again on the 10 held-out seeds. 5.1 finding 22%, held-out 22%: confirmed 4.11 finding 10%, held-out 13%: confirmed 7.6 finding 9%, held-out 8%: confirmed 8.5 finding 9%, held-out 7%: confirmed 5.5 finding 6%, held-out 5%: confirmed 6.9 finding 5%, held-out 4%: tested only (fails on held-out seeds) denoising: percent of the clean-twin gap restored: 9 of the 9 heads that pass on the 10 finding seeds pass again on the 10 held-out seeds. 6.9 finding 15%, held-out 15%: confirmed 5.1 finding 12%, held-out 13%: confirmed 7.2 finding 12%, held-out 12%: confirmed 5.5 finding 11%, held-out 12%: confirmed 7.10 finding 8%, held-out 8%: confirmed 9.9 finding 7%, held-out 7%: confirmed 9.6 finding 7%, held-out 6%: confirmed 10.1 finding 6%, held-out 6%: confirmed 0.1 finding 5%, held-out 6%: confirmed
A head passes when its mean effect is at least 5% and larger than every one of 20 random changes of the same size: tested on the finding seeds.
mean ablation: percent of the clean logit difference lost: 6 of 144 heads have an effect of at least 5% and beat all 20 of their random controls. 5.1 22% (controls up to 4%) 4.11 10% (controls up to 4%) 7.6 9% (controls up to 1%) 8.5 9% (controls up to 0%) 5.5 6% (controls up to 2%) 6.9 5% (controls up to 3%) denoising: percent of the clean-twin gap restored: 9 of 144 heads have an effect of at least 5% and beat all 20 of their random controls. 6.9 15% (controls up to 1%) 5.1 12% (controls up to 1%) 7.2 12% (controls up to 0%) 5.5 11% (controls up to 1%) 7.10 8% (controls up to 1%) 9.9 7% (controls up to 0%) 9.6 7% (controls up to 0%) 10.1 6% (controls up to 0%) 0.1 5% (controls up to 2%)
Interventions on every head. Each repeated prompt has a twin whose second copy is fresh tokens; the metric is the logit difference between the right next token and the twin's, at each position of the second copy. Effects are in percent, the mean over 10 seeds (blue below 0, red above). The grids below show every head; the verdicts above say which beat their controls.
denoising: percent of the clean-twin gap restored, over 10 seeds; not yet compared with random controls. 6.9 15% +- 2 5.1 12% +- 2 7.2 12% +- 2 5.5 11% +- 2 7.10 8% +- 1 9.9 7% +- 1 9.6 7% +- 2 10.1 6% +- 1 0.1 5% +- 3 10.0 5% +- 1 noising: percent of the clean-twin gap destroyed, over 10 seeds; not yet compared with random controls. 5.1 25% +- 7 7.6 10% +- 4 8.5 9% +- 3 0.1 7% +- 3 5.5 6% +- 4 6.9 6% +- 3 9.3 5% +- 2 7.11 4% +- 2 6.7 4% +- 3 8.2 4% +- 2
zero ablation: percent of the clean logit difference lost, over 10 seeds; not yet compared with random controls. 7.6 15% +- 4 5.5 13% +- 4 1.3 12% +- 5 0.1 11% +- 5 0.10 10% +- 9 5.9 10% +- 3 5.1 10% +- 6 3.0 7% +- 4 0.9 7% +- 4 1.1 7% +- 3 mean ablation: percent of the clean logit difference lost, over 10 seeds; not yet compared with random controls. 5.1 22% +- 6 4.11 10% +- 3 7.6 9% +- 4 8.5 9% +- 2 5.5 6% +- 3 0.1 5% +- 3 6.9 5% +- 2 9.3 4% +- 1 7.11 4% +- 1 6.7 4% +- 2