Fundamentals · Part 16How LLMs Work
Inside the Black Box: Features, Superposition and Circuits
How researchers read an LLM's internals: the logit lens, superposition, sparse autoencoders, circuits and steering, with real numbers and honest limits.
14 articles.
Fundamentals · Part 16How LLMs Work
How researchers read an LLM's internals: the logit lens, superposition, sparse autoencoders, circuits and steering, with real numbers and honest limits.
Math · Part 2Math for LLMs
Length, angle, cosine and projection built from Pythagoras, why random vectors in 4,096 dimensions are nearly perpendicular, and real embedding arithmetic.
Interpretability · Part 1Interpretability
What interpretability is for, its main methods, what counts as an explanation, and the toolkit, tested by asking two methods where GPT-2 keeps facts.
Interpretability · Part 2Interpretability
Decode a model's half-finished predictions layer by layer with the logit lens, train a tuned lens on a laptop, and see where the simple version breaks.
Interpretability · Part 3Interpretability
Train one-matrix classifiers on GPT-2 small and Qwen2.5-0.5B to read part of speech and truth from every layer, then check whether the probe did the work.
Interpretability · Part 4Interpretability
Find GPT-2 small's previous-token and induction heads, test how they compose, and measure what knocking them out does to in-context learning.
Interpretability · Part 5Interpretability
Swap one activation between two prompts to find where GPT-2 tracks names and recalls facts, and measure how corruption and metric choices change the answer.
Interpretability · Part 6Interpretability
Reproduce Toy Models of Superposition on a laptop: phase diagrams, pentagons and sticky fractions, then measure how mixed GPT-2 small's MLP neurons are.
Interpretability · Part 7Interpretability
Train a sparse autoencoder on GPT-2 small on a laptop, compare it with public ones, then explore and score Gemma Scope features on Gemma 2 2B.
Interpretability · Part 8Interpretability
From hand-found circuits to attribution patching, transcoders and attribution graphs, run with circuit-tracer on Gemma 2 2B and tested by intervention.
Interpretability · Part 9Interpretability
Find one direction that controls refusal in an open chat model, remove it and add it, measure the side effects, and compare SAE steering with a mean difference.
Interpretability · Part 10Interpretability
Word counts, then word pairs, then induction heads in 300 steps: 49 snapshots of the From Scratch model show what forms when, and what set the timing.
Interpretability · Part 11Interpretability
What looking inside a model can and can't check about its honesty: lie and sycophancy probes, model diffing and real audits, measured on Gemma 2 2B.
Interpretability · Part 12Interpretability
The series in review: every part's headline result, a robustness audit of three of them, the field's sharpest critiques, and the problems still open.