After a language-model track
Inside the Black Box.
Pack five features into two dimensions, inspect a circuit, and put the magnifying glass in context.
Interpretability studies features and circuits inside networks. Useful discoveries are partial explanations, not a complete mind-reading tool.
Or jump to the hands-on bit ↗Before you poke the machinery
Try this: Change sparsity in a small, genuinely trainable superposition model. Compare it with the clearly labeled illustrative panels.
The honest boundary: One panel trains a toy model. Induction, logit-lens, and steering panels use authored examples; they do not reveal a live model’s internal state.
Your pace: Scroll, use the chapter links, or jump around. Reading works without JavaScript; interactive controls need it. Motion preferences are respected.
The black box has a few windows.
Training builds useful representations. Interpretability asks what those representations do.
We can specify the architecture and training procedure of an open model, yet still struggle to explain exactly how its learned parameters produce a particular behavior. Interpretability studies that gap.
If parameters still sound mysterious, start with How Models Learn. A language-model track helps with the attention vocabulary here.
This tour offers four small windows into a much bigger building:
- Superposition: train a tiny network that represents five features in a two-dimensional space. Watch what changes when features occur less often.
- Induction heads: inspect a schematic circuit that continues repeated patterns. It’s a useful example, not a complete explanation of language.
- Logit lens: try decoding intermediate representations. The displayed numbers are authored illustrations, not measurements from a model run.
- Feature steering: explore written examples inspired by published activation interventions, with an optional external feature dashboard.
One panel trains a real toy network. The other three use illustrations. None reads a model’s private thoughts. The research can expose useful mechanisms while leaving many questions unanswered.
Each arrow is where one of 5 features lives in the model's 2-dimensional hidden space — recomputed by real training every time you move the slider. Vary sparsity to compare how much the directions overlap. Currently, 0 of 5 feature vectors exceed the display threshold. The count measures vector lengths, not polygon geometry or human concepts. (Anthropic, “Toy Models of Superposition,” 2022.)
The arithmetic is real; the model and examples are deliberately small. Change a control and watch the result.
Step 1 — Superposition: more ideas than room
Five synthetic features, two dimensions, and a real little optimization problem.
Imagine five useful signals and only two dimensions to carry them. Should a network drop some signals, or represent them in overlapping directions? Toy models of superposition make that question small enough to investigate.
This panel trains a 15-parameter implementation inspired by the published model: five synthetic features pass through a two-dimensional bottleneck and are reconstructed with a ReLU output. It is real optimization in your browser, not a video or a measurement from a large language model.
Move sparsity, the chance that a feature is absent. When features rarely co-occur, overlap can become less costly. Directions can spread out so the model represents more features than the bottleneck has dimensions. With denser data, interference can make dropping some features worthwhile.
Watch the arrows and reconstruction loss. The displayed count uses a simple vector-length threshold; it does not by itself prove a particular polygon or recover a human concept. Shapes depend on the data, initialization, objective, and training settings.
The paper demonstrates a mechanism in controlled toy networks. It motivates questions about larger models without proving that every concept in every LLM has a clean linear direction. The little model has earned our curiosity; it has not earned a universal theory of everything.
| Mr | D | urs | ley | was | proud | . | Mr | D | urs | |
|---|---|---|---|---|---|---|---|---|---|---|
| Mr | ||||||||||
| D | ||||||||||
| urs | ||||||||||
| ley | ||||||||||
| was | ||||||||||
| proud | ||||||||||
| . | ||||||||||
| Mr | ||||||||||
| D | ||||||||||
| urs |
urs has appeared before — so this authored pattern points attention to the token that came right after it last time (teal outline), and our schematic predicts ley next. [A][B] … [A] → [B]: the simplified copying pattern.Illustrative attention pattern for a textbook induction head ([A][B] … [A] → attend to [B]), in the visual language of the site's attention heatmap. Real induction heads were characterized in Elhage et al. 2021 / Olsson et al. 2022 (transformer-circuits.pub).
This panel uses authored values or a schematic to explain the idea. It is not a live measurement or a performance benchmark.
Step 2 — Induction heads: a pattern-copying circuit
Two attention heads that team up to implement a copy algorithm — the 'hello world' of reverse-engineered LLM machinery.
In the LLM tracks you met attention as a mechanism — every token queries every earlier token. But mechanism isn’t purpose. What did training actually use attention to build? One well-studied example is: the induction head, a tiny algorithm for continuing patterns:
If you’ve seen
[A][B]before, and you’re looking at[A]again — predict[B].
Once “Mr Dursley” has appeared, the next “Mr D” should continue “ursley”. No grammar, no meaning — pure pattern completion. The panel shows the attention map in the same rows-look-at-columns language as the attention scene. Read the bottom row: the head finds the previous occurrence of the current token and locks onto the token right after it — the teal-ringed cell. That target is what gets copied into the prediction.
Under the hood it’s a genuine two-part circuit: one head in an earlier layer marks each token with “what came before me,” and the induction head in a later layer uses that marking to find the match-and-look-ahead cell. Two learned parts, composing into one legible algorithm — discovered in the weights, not designed into them.
Now toggle trained off. That smear is what attention looks like before
the circuit forms. In some studied small-model training runs, the transition occurs abruptly — a sudden
drop in loss early in training (the “induction bump”) right when these heads
snap into place. And their reach goes far beyond literal copying: induction
heads are a leading candidate for why LLMs can do in-context learning —
following patterns from your prompt that they were never trained on.
Fuzzier versions match [A*][B*]…[A]→[B-ish], completing analogies rather
than echoes.
The panel is a schematic, not a measured attention map. Evidence is strongest for the tested architectures and tasks; induction heads are not a complete explanation of every form of in-context learning. The next panels offer other ways to investigate learned representations.
- layer 0the 5%, 4%a 3%
- layer 1the 6%course 4%a 3%
- layer 2course 7%the 5%New 4%
- layer 3New 8%London 5%the 4%
- layer 4London 9%New 7%Chicago 5%
- layer 5Paris 11%London 10%France 6%
- layer 6Paris 23%France 10%London 7%
- layer 7Paris 38%France 9%Lyon 4%
- layer 8Paris 55%France 7%Lyon 3%
- layer 9Paris 71%France 5%Lyon 2%
- layer 10Paris 83%France 3%the 1%
- layer 11Paris 92%France 2%the 1%
Paris first takes the lead at layer 5 of 11 — in this authored example. These values illustrate intermediate decoding; real model trajectories need not become steadily more correct or certain.Illustrative — modeled on logit-lens readings of GPT-2 small (nostalgebraist 2020). Each row: decode the residual stream at that layer as if it were the final layer.
This panel uses authored values or a schematic to explain the idea. It is not a live measurement or a performance benchmark.
Step 3 — The logit lens: a window with distortion
Decode intermediate representations—and keep track of what the lens can and cannot show.
A transformer updates internal representations across layers. The logit lens asks: what token scores do we get if we apply an output decoder to an intermediate representation?
That is a useful analytical trick. It is not listening to a thought mid-sentence. An intermediate layer wasn’t necessarily trained to use the final decoder in exactly that way, so the lens can distort what is present.
The panel’s two examples use authored numbers, arranged to illustrate a possible shift from generic continuations toward a particular answer. They are not measured GPT-2 outputs and do not demonstrate that every model follows a syntax → meaning → certainty staircase. Real trajectories can change course, remain uncertain, or settle on something wrong.
Choose a prompt and compare the rows. What changes? Which candidate leads? What would you need to know before concluding that a model “knew the answer” at a particular layer?
The tuned lens learns transformations to make intermediate decoding more reliable. Even a better lens remains an instrument with assumptions. Skipping layers safely or interpreting confidence requires additional testing; this illustration alone supports neither conclusion.
Illustrative completions written for this site, imitating the published 'Golden Gate Claude' behavior (Anthropic, Scaling Monosemanticity, 2024). No live model is being steered.
This panel uses authored values or a schematic to explain the idea. It is not a live measurement or a performance benchmark.
Step 4 — Feature steering: turning the knob
Change an activation, measure a behavior. Promising experiments, not a mind-control panel.
Sparse autoencoders can identify interpretable directions in a model’s activations. Researchers then test interventions: if we increase or decrease an activation, does the output change?
Anthropic’s Scaling Monosemanticity work found many interpretable features in Claude 3 Sonnet. Increasing a Golden Gate Bridge feature produced striking bridge-related responses, including text identifying the assistant as the bridge. That’s a result about generated behavior—not proof of a literal identity or experience.
Move the panel’s dial. The displayed outputs are written imitations of that kind of behavior. No language model is being steered here. The optional Neuronpedia button opens an external dashboard for a different, GPT-2 feature. It is not a live version of the same Claude experiment.
An intervention is stronger evidence than correlation alone: it can establish that a direction influences a behavior in the tested setting. It does not show that the feature is a complete, isolated concept or that effects will remain reliable across prompts and models.
Feature steering is promising for investigation and control, with unresolved issues around completeness, side effects, and robustness. There is no general “turn deception off” switch. The interesting question is what a carefully measured intervention can tell us, including when it fails.
The box is opening
Useful mechanisms, partial explanations, and plenty left to investigate.
Four useful tools, four reasons to keep the labels attached:
- Superposition: a toy model can pack more sparse features than dimensions. This demonstrates a mechanism under controlled conditions.
- Circuits: studies of induction heads reveal interpretable pattern-copying behavior, especially in small models. They don’t explain all in-context learning.
- Lenses: decoding intermediate representations can expose patterns, but the lens has assumptions and can mislead.
- Interventions: changing activations can change behavior. That gives causal evidence in a tested setting, not a complete or guaranteed control system.
Interpretability can help researchers generate hypotheses, investigate failures, and test mechanisms. It cannot currently certify that a model is safe or detect every hidden motive by reading a feature dashboard.
The attribution-graphs research extends the toolkit to selected behaviors in a larger model. Those reconstructions also have limits: partial coverage, approximations, and interventions that need careful interpretation.
A good question to carry into the next paper is: what was observed, what was intervened on, and what remains an interpretation? That’s a useful habit well beyond this particular black box.
Keep exploring the originals: Toy Models of Superposition, Induction Heads, Tuned Lens, and Scaling Monosemanticity.
One rabbit hole
leads to another.
No quiz at the door. Pick whatever made you curious.