GPT-2 Small: the model map

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. One row per layer, the first at the bottom; one cell per head (named layer.head) and one per MLP. Blue cells look like induction heads, orange like previous-token heads, deeper for higher; gray neither. Outlined heads are part of the circuit, outlined by their evidence: dashed observed, solid tested, thick confirmed. Red arrows are edges, styled the same way. Hover a head for its numbers.

GPT-2 Small in one picture: a row per layer, a cell per attention head colored by its scores (blue induction, orange previous token), an MLP cell per layer, and the circuit induction, GPT-2 Small drawn over it, each head and edge drawn dashed (observed), solid (tested by intervention against random controls) or thick (confirmed on held-out seeds). Hover a head for its numbers; see any head's attention on the Heads page. Drawn by X_eTaL.

gpt2 model map, circuit: induction, GPT-2 Small a row per layer (embedding at the bottom), a cell per head and per MLP circuit from: attention scores and the literature; heads tested by ablation and patching, edges by path patching unembed embed head 0.0: induction 3%, previous token 9%0.0 head 0.1: induction 0%, previous token 0%0.1 head 0.2: induction 3%, previous token 8%0.2 head 0.3: induction 0%, previous token 1%0.3 head 0.4: induction 0%, previous token 6%0.4 head 0.5: induction 0%, previous token 1%0.5 head 0.6: induction 4%, previous token 9%0.6 head 0.7: induction 0%, previous token 23%0.7 head 0.8: induction 3%, previous token 10%0.8 head 0.9: induction 3%, previous token 9%0.9 head 0.10: induction 2%, previous token 5%0.10 head 0.11: induction 4%, previous token 8%0.11 head 1.0: induction 0%, previous token 21%1.0 head 1.1: induction 1%, previous token 21%1.1 head 1.2: induction 2%, previous token 13%1.2 head 1.3: induction 1%, previous token 8%1.3 head 1.4: induction 2%, previous token 10%1.4 head 1.5: induction 3%, previous token 6%1.5 head 1.6: induction 3%, previous token 4%1.6 head 1.7: induction 5%, previous token 8%1.7 head 1.8: induction 3%, previous token 8%1.8 head 1.9: induction 3%, previous token 7%1.9 head 1.10: induction 3%, previous token 13%1.10 head 1.11: induction 0%, previous token 1%1.11 head 2.0: induction 1%, previous token 18%2.0 head 2.1: induction 4%, previous token 8%2.1 head 2.2: induction 0%, previous token 51%2.2 head 2.3: induction 0%, previous token 33%2.3 head 2.4: induction 0%, previous token 11%2.4 head 2.5: induction 0%, previous token 36%2.5 head 2.6: induction 1%, previous token 11%2.6 head 2.7: induction 2%, previous token 14%2.7 head 2.8: induction 0%, previous token 25%2.8 head 2.9: induction 0%, previous token 43%2.9 head 2.10: induction 2%, previous token 16%2.10 head 2.11: induction 1%, previous token 9%2.11 head 3.0: induction 0%, previous token 3%3.0 head 3.1: induction 0%, previous token 17%3.1 head 3.2: induction 0%, previous token 43%3.2 head 3.3: induction 0%, previous token 25%3.3 head 3.4: induction 2%, previous token 5%3.4 head 3.5: induction 3%, previous token 7%3.5 head 3.6: induction 0%, previous token 34%3.6 head 3.7: induction 0%, previous token 57%3.7 head 3.8: induction 0%, previous token 37%3.8 head 3.9: induction 0%, previous token 12%3.9 head 3.10: induction 0%, previous token 12%3.10 head 3.11: induction 0%, previous token 23%3.11 head 4.0: induction 0%, previous token 16%4.0 head 4.1: induction 0%, previous token 18%4.1 head 4.2: induction 1%, previous token 6%4.2 head 4.3: induction 0%, previous token 29%4.3 head 4.4: induction 1%, previous token 5%4.4 head 4.5: induction 0%, previous token 14%4.5 head 4.6: induction 0%, previous token 19%4.6 head 4.7: induction 1%, previous token 19%4.7 head 4.8: induction 2%, previous token 5%4.8 head 4.9: induction 0%, previous token 10%4.9 head 4.10: induction 1%, previous token 4%4.10 head 4.11: induction 0%, previous token 100%4.11 head 5.0: induction 56%, previous token 4%5.0 head 5.1: induction 86%, previous token 3%5.1 head 5.2: induction 0%, previous token 19%5.2 head 5.3: induction 1%, previous token 12%5.3 head 5.4: induction 0%, previous token 22%5.4 head 5.5: induction 95%, previous token 3%5.5 head 5.6: induction 0%, previous token 38%5.6 head 5.7: induction 0%, previous token 5%5.7 head 5.8: induction 24%, previous token 5%5.8 head 5.9: induction 4%, previous token 5%5.9 head 5.10: induction 2%, previous token 8%5.10 head 5.11: induction 0%, previous token 5%5.11 head 6.0: induction 0%, previous token 26%6.0 head 6.1: induction 1%, previous token 5%6.1 head 6.2: induction 2%, previous token 5%6.2 head 6.3: induction 1%, previous token 8%6.3 head 6.4: induction 7%, previous token 9%6.4 head 6.5: induction 1%, previous token 12%6.5 head 6.6: induction 4%, previous token 6%6.6 head 6.7: induction 2%, previous token 13%6.7 head 6.8: induction 0%, previous token 41%6.8 head 6.9: induction 85%, previous token 3%6.9 head 6.10: induction 5%, previous token 6%6.10 head 6.11: induction 1%, previous token 12%6.11 head 7.0: induction 0%, previous token 39%7.0 head 7.1: induction 20%, previous token 5%7.1 head 7.2: induction 72%, previous token 3%7.2 head 7.3: induction 2%, previous token 8%7.3 head 7.4: induction 0%, previous token 7%7.4 head 7.5: induction 3%, previous token 6%7.5 head 7.6: induction 7%, previous token 6%7.6 head 7.7: induction 9%, previous token 5%7.7 head 7.8: induction 0%, previous token 10%7.8 head 7.9: induction 2%, previous token 7%7.9 head 7.10: induction 83%, previous token 3%7.10 head 7.11: induction 12%, previous token 4%7.11 head 8.0: induction 1%, previous token 6%8.0 head 8.1: induction 47%, previous token 4%8.1 head 8.2: induction 2%, previous token 7%8.2 head 8.3: induction 5%, previous token 4%8.3 head 8.4: induction 0%, previous token 7%8.4 head 8.5: induction 1%, previous token 13%8.5 head 8.6: induction 28%, previous token 5%8.6 head 8.7: induction 0%, previous token 23%8.7 head 8.8: induction 8%, previous token 6%8.8 head 8.9: induction 5%, previous token 6%8.9 head 8.10: induction 11%, previous token 5%8.10 head 8.11: induction 2%, previous token 4%8.11 head 9.0: induction 26%, previous token 8%9.0 head 9.1: induction 29%, previous token 4%9.1 head 9.2: induction 17%, previous token 6%9.2 head 9.3: induction 0%, previous token 21%9.3 head 9.4: induction 14%, previous token 4%9.4 head 9.5: induction 1%, previous token 5%9.5 head 9.6: induction 52%, previous token 4%9.6 head 9.7: induction 5%, previous token 5%9.7 head 9.8: induction 6%, previous token 5%9.8 head 9.9: induction 49%, previous token 3%9.9 head 9.10: induction 0%, previous token 8%9.10 head 9.11: induction 5%, previous token 4%9.11 head 10.0: induction 34%, previous token 5%10.0 head 10.1: induction 50%, previous token 5%10.1 head 10.2: induction 8%, previous token 5%10.2 head 10.3: induction 16%, previous token 4%10.3 head 10.4: induction 12%, previous token 6%10.4 head 10.5: induction 1%, previous token 7%10.5 head 10.6: induction 37%, previous token 5%10.6 head 10.7: induction 67%, previous token 4%10.7 head 10.8: induction 10%, previous token 4%10.8 head 10.9: induction 0%, previous token 10%10.9 head 10.10: induction 17%, previous token 4%10.10 head 10.11: induction 38%, previous token 7%10.11 head 11.0: induction 5%, previous token 8%11.0 head 11.1: induction 11%, previous token 6%11.1 head 11.2: induction 3%, previous token 4%11.2 head 11.3: induction 3%, previous token 9%11.3 head 11.4: induction 5%, previous token 5%11.4 head 11.5: induction 15%, previous token 4%11.5 head 11.6: induction 7%, previous token 4%11.6 head 11.7: induction 11%, previous token 5%11.7 head 11.8: induction 3%, previous token 15%11.8 head 11.9: induction 25%, previous token 4%11.9 head 11.10: induction 43%, previous token 5%11.10 head 11.11: induction 3%, previous token 8%11.11 MLP 0: no score yetMLP L0 MLP 1: no score yetMLP L1 MLP 2: no score yetMLP L2 MLP 3: no score yetMLP L3 MLP 4: no score yetMLP L4 MLP 5: no score yetMLP L5 MLP 6: no score yetMLP L6 MLP 7: no score yetMLP L7 MLP 8: no score yetMLP L8 MLP 9: no score yetMLP L9 MLP 10: no score yetMLP L10 MLP 11: no score yetMLP L11 H0 H1 H2 H3 H4 H5 H6 H7 H8 H9 H10 H11 head 4.11: confirmed (mean ablation confirmed (10%, held-out 13%); denoising under 5%) head 5.1: confirmed (mean ablation confirmed (22%, held-out 22%); denoising confirmed (12%, held-out 13%)) head 5.5: confirmed (mean ablation confirmed (6%, held-out 5%); denoising confirmed (11%, held-out 12%)) head 6.9: confirmed (mean ablation tested only (5%, held-out 4%); denoising confirmed (15%, held-out 15%)) head 7.2: confirmed (denoising confirmed (12%, held-out 12%); mean ablation under 5%) head 7.10: confirmed (denoising confirmed (8%, held-out 8%); mean ablation under 5%) head 7.6: confirmed (mean ablation confirmed (9%, held-out 8%); denoising under 5%) head 8.5: confirmed (mean ablation confirmed (9%, held-out 7%); denoising under 5%) head 9.9: confirmed (denoising confirmed (7%, held-out 7%); mean ablation under 5%) head 9.6: confirmed (denoising confirmed (7%, held-out 6%); mean ablation under 5%) head 10.1: confirmed (denoising confirmed (6%, held-out 6%); mean ablation under 5%) head 0.1: confirmed (denoising confirmed (5%, held-out 6%); mean ablation under 5%) induction scoreprevious token scoreneither reaches 20% Head colors are attention-pattern scores: candidates, not causal evidence. Hover a head for its numbers. edge observed: attention patterns only (which head feeds which is untested) edge tested: path patching beats random controls edge confirmed: also on held-out seeds head outlines (hover a head for its verdicts): observed: attention only tested: beats random controls on the finding seeds confirmed: also on the held-out seeds