Mayank SaxenaWriting

Interpretability · research note

An AI Agent Found Most of the Neurons That Block a Connect Four Threat

A 6.3M-parameter transformer learns to block your threats. We traced how it does it, from one attention head to seven column alarms, and tested whether an AI agent describing its neurons blind would have found them.

Mayank SaxenaNovember 2026Code and data
The interactive demo: a Connect Four board with three ochre stones stacked in column 3, the model's move bars favouring column 3, a lit lamp over the column, and a map of all 6,144 neurons with the vertical-block circuit highlighted

Interactive demo

Play against the model and watch it block

A live copy of the model runs in your browser. Stack three stones and watch all 6,144 neurons respond, follow the threat from one attention head to seven column alarms, and switch each part off.

We trained a small transformer to play Connect Four from move lists alone. It has 6 layers and was trained on 400,000 games from a search engine; it now picks one of the engine's best moves 94% of the time. When the opponent stacks three stones with the cell above empty, it blocks on top 100% of the time. This post traces how, and then asks whether an AI agent that studies the model's neurons one at a time would have found the parts that matter.

01It keeps a board in its head

The model never sees a board, only column numbers. Like Othello-GPT (Li et al. 2022), it builds one internally, labelled the way a player thinks: mine and theirs, not red and yellow (Nanda et al. 2023). After layer 3's attention, stone colours are readable 98.6% of the time (Figure 1). Editing a stone in that internal board changes the model's move when the stone matters (58%) far more than when it does not (18%).

The board becomes readable mid-model, in the player's own frame

Accuracy of a linear readout of each cell's stone, by where in the model it reads

mine / theirsred / yellowguess from move number
Figure 1: after layer 3's attention, stones read as mine/theirs are right 98.6% of the time, as red/yellow 62%, and a guess from the move number alone gets 34%.

02How it blocks a vertical threat

To find the parts that block, we compared each threat position with its twin: the same game with the opponent's last move played somewhere harmless. Swapping one part's activity from the twin into the threat position shows how much of the push towards the block that part carries (Appendix B). By a rule fixed in advance, the smallest set of neurons carrying 80% of the push has 53 members. Read from the input to the move, they form four steps (Figure 2).

Four steps from your stones to the block

The vertical-block circuit, with what each step carries; on the right, how often the model blocks vertical threats with that step switched off

Figure 2: one attention head gathers the opponent's recent moves, 15 directions carry the threat through the middle layers, and 36 column alarms in the last layer push the move. Switching a step off drops vertical blocks from 100% to the number under it. Try it in the demo →

It gathers your recent moves. Head 2 of layer 0 puts 66% of its attention on the moves of the player who just moved, mostly the latest two. A vertical three is usually built from exactly those moves. On its own the head carries 44% of the push. (We had predicted it would look up the same column; it does not.)

The threat travels as a few directions. Through the middle layers no small set of neurons holds the threat: 3,000 would be needed for 80% of it. It lives in 15 directions, patterns across many neurons at once, which carry 83% (Figure 3).

Upstream, vertical blocking lives in 15 directions but needs 3,000 neurons

Share of the push towards the block removed by patching the top k neurons or top k directions of layers 0–4, by threat orientation (log scale)

neuronsdirections80% of what all of layers 0–4 carry
Figure 3: vertical threats are the most compact in directions (15) and the least in neurons (3,000); horizontal threats need 40 directions or 290 neurons, diagonal ones 60 or 770.

Seven column alarms make the move. In the last layer single neurons do the work. 36 neurons there belong to the circuit, and 92% of them push towards exactly the column whose threat they respond to: an alarm per column. The directions feed them, and the alarms alone carry 79% of the push.

Switch them off. On held-out games, switching off the alarms drops vertical blocks from 100% to 70%; the head gives 73% and the directions 64%. Random parts of the same size change nothing. The switches are not surgical, though: ordinary play suffers too (Figure 4).

Each part matters most for vertical blocks, but none is purely a vertical-block part

How often the model makes the right move, intact (open) and with one part switched off (filled), on held-out positions

intactpart switched off
Figure 4: vertical blocks fall from 100% to 73% (head), 64% (directions) and 70% (alarms), on 8,046 positions; "other play" is the search engine's best move on 3,000 ordinary positions.

03Would an AI agent have found them?

One way to automate interpretability is to hand an AI agent a single neuron and let it work like a scientist: look at the positions where the neuron fires, propose a rule, test it on new positions, and write a short description (Tigges et al. 2026). We tested whether that finds what matters. After freezing the circuit, we gave a fresh agent its 20 most important neurons shuffled among 20 look-alike decoys and 10 random directions, without saying what any of them were for. For 14 of the 20 it wrote a rule that picks out "block in this column", e.g. "Fires when the opponent threatens to win in column 0, the leftmost column". It did so for 2 of the 20 decoys (Figure 5).

Told nothing about blocking, the agent described 14 of the 20 key neurons as block detectors, and 2 of 20 decoys

Each dot is one unit the agent described blind. Position: how well its rule picks out "the player must block in column X" on unseen games (best F1 over the seven columns and "any column")

circuit neuronlook-alike decoyrandom directionpre-registered bar (0.5)
Figure 5: above the bar: 14 of 20 circuit neurons, 2 of 20 decoys, 1 of 10 random directions (we had required at least half and at most 10%). The circuit neurons' rules also predict their own firing better (median F1 0.53 against 0.29). Hover a dot to read what the agent wrote.

It found them because here single neurons do the work. The 2 layer-0 neurons it "missed" it described exactly, as reacting to where the opponent's last stone landed, which is what they are: the circuit's inputs. It also rated its own confidence higher for the circuit neurons than for the decoys. The full test is in Appendix I, and every description is in the neuron atlas.

What we take away. Describing neurons one at a time works where the model computes with single neurons, as at the end of the vertical block, and finds nothing where it does not: upstream, and for horizontal and diagonal threats, the information lives in directions spread across many neurons (15 directions against 3,000 neurons for the vertical threat in layers 0–4). Plausible descriptions are also cheap. The agent wrote convincing rules for 9 of 40 random directions in earlier runs, and a model reading the descriptions could not tell circuit neurons from decoys. What separated findings from stories was running the agent's rule against exact labels on held-out games, scored against a circuit frozen before the agent saw anything.

04Limits

05What comes next: mapping other concepts

The pipeline is reusable: a concept is a short task file (which positions count, what the right move is, how to build the twin without it), and the same code finds the parts, freezes them and tests an agent against them. The next steps, in order:

A–IAppendices

Appendix A: the model and how it was trained

The model has 6 layers, 8 attention heads per layer and 1,024 neurons in each layer's feed-forward block (gated, Shazeer 2020), 6.3M parameters in all. Games came from a search engine written in C that looks 10 moves ahead, with a few random opening moves so the games vary. Training took 8,000 steps (6 minutes on one GPU) and matched the engine's preferences over all moves, not just its single choice. The model picks one of the engine's best moves 94% of the time, beats a random player in 100% of games, and against the full-depth engine wins 51%, draws 18% and loses 31%.

Board edits: flipping the colour of one stone in the model's internal board changed its move 58% of the time when the stone mattered for the best move and 18% when it did not, on 1,069 matched pairs (difference 0.40, 95% interval 0.37 to 0.44).

Appendix B: how we found the circuit, and what we got wrong

Each threat position is paired with its twin: the same game with only the opponent's last move played somewhere harmless. Swapping one part's activity from the twin into the threat position (activation patching: Wang et al. 2022; Heimersheim & Nanda 2024) shows how much of the push towards the block that part carries. Only the last move differs, so every earlier activation is identical and the comparison is exact. We ranked all neurons with a fast approximation (Syed et al. 2023), patched the top ones exactly, and kept, by a rule fixed in advance, the smallest set removing 80% of the push: 53 neurons for vertical threats. Parts were chosen on one set of games and measured on another.

Predictions that failed. We expected head 2 of layer 0 to look up earlier stones in the newest stone's column; only 24% of its attention goes there (17% if it looked evenly). Looked at afterwards, it attends to the last mover's earlier moves (66%; 14% and 12% to their latest two), and the share on the threat column rises from 9% on ordinary positions to 24% on threats. We expected the first direction of each layer to track the height of the opponent's stack; it does not (rank correlation at most 0.31), though in layers 1, 2 and 4 it separates "a vertical threat on the newest column" from other positions moderately well (AUROC 0.76 to 0.78). And two switches cost ordinary play more than our limits: 95% → 84% (directions) and 80% (alarms); random parts of the same size change vertical blocking by 0 points.

Appendix C: choosing the size

Smaller models are often assumed to be easier to read, so we trained a ladder of 43 models from one to six layers and ran the board-edit test on each. Smaller was not cleaner: the better a model's internal board, the more cleanly the edits changed its moves (correlation 0.97 across all 43). The smallest sizes that pass the edit test are 6 layers × 128 (4 of 5 seeds) and 4 × 192 (5 of 5). We kept the original 6 × 256 model: it plays best, has the clearest board and maps the most concepts.

Models with a clearer internal board respond more cleanly to board edits

Each dot is one trained model; board readability against edit specificity

Figure 6: across 43 models the correlation is 0.97; the 6 × 256 models are at the top right.
Appendix D: what worked and what didn't
  • Board edits took three designs. Editing only the current position barely beat random edits; editing every position did, and only a matched comparison (a stone that matters against one that does not, at the same position) gave a clean test.
  • Wider was not cleaner. We predicted that more neurons per layer would make single neurons more interpretable. All three such predictions failed in the opposite direction (0 of 3 held).
  • A sparse autoencoder comparison was inconclusive: 56% of its features never or rarely fired, so it was under-trained.
  • The first agent study had an artefact. Every game starts from the same few positions, so any direction that happens to be extreme there gets an exact one-line rule. The second study excluded the first moves.
  • Single neurons rarely matter alone. Switching off one neuron almost never changes a move; groups do.
Appendix E: horizontal and diagonal threats

The same rule found no compact neuron set for horizontal or diagonal threats. Counting layers 0–4 only, horizontal threats need 290 neurons (the top 50 already carry 50%) or 40 directions; diagonal threats need 770 neurons or 60 directions. No single head stands out (the best carries 18% and 7%). Our guess, not tested: a vertical threat only needs one column's recent history, which attention can gather directly, while horizontal and diagonal threats need the heights of several columns lined up, which the model builds over several layers.

Appendix F: other concepts in this model

We wrote 659 exact concepts for the game (cells, landing spots, threats, lines, full columns, game phase) and asked how many can be read from one unit, chosen on half the games and scored on the other half. A single neuron captures 31% of them, a random direction 6%, and a trained linear readout 56%. Neurons beat random directions on local concepts (one cell, one column, the last move) and lose on global ones (how full the board is). The neuron atlas shows every neuron, including the agent's descriptions of the 44 of 120 neurons it described well (Library, "Described by the agent").

Single neurons capture far more concepts than random directions, but far fewer than a trained readout

Share of the 659 concepts read with F1 ≥ 0.5 on held-out games, with 95% intervals

Figure 7: neurons 31%, random directions 6%, linear readouts 56%.
Appendix G: the first agent runs, before the circuit was known

Two earlier runs described 120 neurons (and 40 random directions, of which the agent wrote convincing rules for 9) before any circuit work. 9 of those neurons turned out to be in the vertical circuit, and every one of those descriptions names a threat in one column. Written blind, before the circuit was known. The score is how well the description's rule predicts the neuron's activity on unseen games (0.41 to 0.68; the neurons also respond to related positions, as several descriptions note). Overall, 12 of the 120 described neurons are among the 200 that matter most for blocking of any kind (about 2 if they had been picked at random, which they were not: a third were chosen for matching a known concept).

Appendix H: how we kept ourselves honest
  • Every test was written into a public plan before it was run, including the rule that picks the circuit; failures are reported as failures.
  • Circuits were chosen on one set of games and measured on another, and frozen, with the file hash logged, before any agent description was compared with them.
  • Agent runs were blind: the agent never saw which units were random, and the second run's files were checked for any word that names the design.
  • The in-browser model is checked against the original under every switch, and every number on this page is filled in from the result files by a script that fails on any mismatch.
  • The blind test ran on a separate account from a sealed bundle without the plan, the log or the answer key; the descriptions were committed before they were scored, and the answer key only afterwards.
Appendix I: the blind test in full

Design. After the circuit was frozen, its 20 most important neurons by patching effect were mixed with 20 decoys (each one a neuron from the same layer with similar activation statistics, far down the importance ranking) and 10 random directions, behind shuffled ids. One fresh agent per unit, with the same prompt and tools as the earlier runs (examples of firing, a board API, 8 scoring calls on training games), wrote a description, a rule as a short program, and its effect on the move. It was not told about blocking or that a circuit existed. All scores below are on games it never saw, with at least 4 stones on the board.

Three pre-registered tests. (1) The rule picks out a must-block in one column (best F1 ≥ 0.5): 14 of 20 circuit neurons, 2 of 20 decoys, held (bar: at least 10, at most 2). (2) A fresh model reading only the description and effect says it is about the opponent's threat: 18 of 20 against 6 of 20, failed on the decoys; the decoys it accepted are other tactical neurons (an open three on the bottom row, the mover's own three). (3) The rule predicts the neuron's own strongest firing: median F1 0.53 against 0.29, difference 0.25 (95% interval 0.16 to 0.33), held. Scored against weaker firing (top 10% or 20% instead of top 3%) the difference vanishes (0.03 and -0.02): the descriptions fit the tail they were asked to describe.

The misses. 6 circuit neurons fell under the bar. 2 are in layer 0 and were described almost perfectly (F1 ≥ 0.90) as reacting to where the opponent's last stone landed: inputs to the circuit, not a tactic. Two were described as vertical threes in one column and scored just under the bar, because the concept also counts horizontal and diagonal blocks in that column; two respond to horizontal threats. The agent's own confidence tracked the groups: medium or high for 19 of 20 circuit neurons, low for 16 of 20 decoys and 9 of 10 random directions.

Rule breaks. 13 of the 50 agents counted how often a candidate rule held on saved examples, which the prompt forbids. Their submissions were kept, as the protocol requires. Without them (a check we added afterwards) the picture is the same: 13 of 18 circuit neurons and 2 of 16 decoys above the bar, F1 difference 0.23.

RReferences

  1. Heimersheim, S. & Nanda, N. (2024). How to use and interpret activation patching. arXiv:2404.15255
  2. Li, K., Hopkins, A. K., Bau, D., Viégas, F., Pfister, H. & Wattenberg, M. (2022). Emergent World Representations: Exploring a Sequence Model Trained on a Synthetic Task. arXiv:2210.13382
  3. Nanda, N., Lee, A. & Wattenberg, M. (2023). Emergent Linear Representations in World Models of Self-Supervised Sequence Models. arXiv:2309.00941
  4. Shazeer, N. (2020). GLU Variants Improve Transformer. arXiv:2002.05202
  5. Syed, A., Rager, C. & Conmy, A. (2023). Attribution Patching Outperforms Automated Circuit Discovery. arXiv:2310.10348
  6. Tigges, C., Kowal, M., McGrath, T., Lewis, O. & Cammarata, N. (2026). Neurons as an Interpretable Basis. Goodfire Research. goodfire.com
  7. Wang, K., Variengien, A., Conmy, A., Shlegeris, B. & Steinhardt, J. (2022). Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 small. arXiv:2211.00593