Qwen3-8B · MLP layers 4, 12, 20, 26, 30, 34 · web text, code and tool calls · 12,288 neurons each · both poles

Sorting a layer's neurons by what they fire on

A neuron's index is arbitrary: shuffle the 12,288 neurons of a layer, moving each one's three weight vectors together, and the model computes exactly the same thing. So we're free to lay them out by meaning. Here every neuron is split into its two poles, and poles are placed near each other when they fire strongly on the same tokens of web text.

Across depth

The same analysis at six depths. Layer 4, near the input, has many families but almost none a reader can name: pieces of names, punctuation, separators. Layer 12 already has topic families (court cases, cooking, music) next to surface ones (digits, quotation marks). Layer 20 is mostly surface form: digits, punctuation, pieces of names. Layer 26 brings topics back (tax law, court opinions, cars, religion) alongside single-word grammar families (“have/has”, “there is”, “not”). Layer 30 is the most topical and the easiest to name. Layer 34, one before the last, sorts largely by spelling and style: words starting with a given letter, all-caps text, machine-spun spam. It's hard to name, partly because of the labeler: blind, Opus called 15 of its 30 largest families clear where Sonnet called 7, and saw more of them as about what comes next. Stability runs the other way from nameability: layers 4 and 20 replicate best on a fresh corpus (89% and 94%) and are hardest to name, while layer 30 is easiest to name and replicates least (77%). Word pieces and punctuation recur in any text; topics depend on what the sample contains. The last column covers every family, named unblinded: layer 30 and parts of 4, 12 and 20 by Opus, the rest by Sonnet, so treat small differences there with care. Click a row to open that layer below.

LayerFamilies ≥ 5Units in familiesNearest neighbour, median similarityNeighbour replicatesSonnet labels, 30 largest: clear / partial / mixedRandom groups not called mixedAll families: named clear / mixed

What sorting reveals

The same 900 units, two orders

Each pixel is one pair of units: dark means they often fire on the same tokens. Both panels show the identical 900 units (one stretch of the sorted order); only the order of rows and columns differs.

Co-firing matrix in original neuron-index order: scattered specks, no structure
Index order. How the model stores them. Related units are scattered at random.
The same matrix after sorting: small dark blocks along the diagonal
Sorted by co-firing. Small dark squares along the diagonal are families of units that fire together.

The map

All units, laid out so that units that fire together sit together (UMAP). Colored dots belong to a family of at least five units; grey dots are loners. Hover or tap a dot to see its family; pick a family from the list to highlight it and read what its members fire on. This is an abridged atlas: examples are included for featured families only (the five largest in each layer, plus the largest the namer called clear, up to 30, at most 120 members each).

scroll or pinch to zoom, drag to pan

What this does and doesn't show

No layer is organized into big departments. Each one breaks into many small families, and in most layers the blind labeler finds a real theme in nearly every large family, while it calls every size-matched random group "mixed". Families that fire together read nearly the same trigger (aligned gate weights) but write in different directions, so a family looks like a team splitting up the response to one situation, not a set of redundant copies.

What a family is about changes with depth: word pieces and punctuation at layer 4, topics and surface form at 12, mostly surface form at 20, grammar and topics at 26, topics at 30, spelling and style near the output. The dip at layer 20 matches the earlier single-neuron depth pilot, where the middle layers were also the hardest to label.

Limits: one model, 544k tokens of web text, six of the 36 layers. Families are defined by a cut I chose. The labeler sees at most 25 members and their top examples, so "mixed" partly measures the labeler: at layer 34 a stronger labeler (Sonnet) found themes that Haiku missed, and some families clearly share the next token (a verb ending in -s) that neither reliably named. Rare units can be grouped by one shared document as much as by a shared idea.

How this was made

  1. Ran Qwen3-8B over 544k tokens of FineWeb and recorded every MLP activation in the layer at every token.
  2. Split each neuron into two units, N+ (its positive pole) and N− (its negative pole). A unit fires on a token when the neuron passes its own top-0.5% threshold in that direction, so each unit fires on about 2,700 tokens. Poles whose strongest activation is under 5% of the layer's typical peak are dropped as silent.
  3. Similarity of two units = how often they fire on the same token, normalized for how often each fires (cosine of the 0/1 firing patterns). Weighting by activation size let a few freak tokens dominate and replicated worse.
  4. Sorting is average-linkage hierarchical clustering. A family is a branch whose members average at least 0.1 similarity, about 10× chance. The map is UMAP on the same distances.
  5. Replication: the whole analysis was repeated on a second sample of 1,500 documents sharing none with the first.
  6. Labels: every family of five or more units was named (unblinded) by Opus or Sonnet agents from up to 15 members' top examples and output-lens words; the panel shows the namer's coherence call and evidence. The blind test behind the table: the 30 largest families per layer, shuffled with 6 random groups of matching sizes, labeled by Sonnet and separately by Opus; neither ever gave a random group a theme.