Seahorse · explainer

What “across positions” means

A transformer doesn’t hold a conversation as one vector. It holds a table: one residual vector per token position. Concepts inside one vector are (roughly) added together. Which concept belongs to which is recorded by where things sit in that table, and attention reads it back by picking a position.

“Binding is across positions” = the link between dog and Pepper is not stored inside any single vector. It is stored by Pepper sitting in its own slot, tagged as part of the dog pair, where a question can find it.
The problem with one vector

A sum can’t say which goes with which

Take two sentences that mean different things. Below, each column is one token position, and each row is a feature the residual vector at that position carries. The rightmost column is what you get if you average all the positions into one vector, which is what a pooled steering shift does.

Switch between the two sentences. The table changes. The pooled vector does not.

sentence
content feature order tag: pair 1 order tag: pair 2

Toy numbers chosen by hand to show the idea, not measured activations. The tag rows stand for the “binding ID” directions found by Feng & Steinhardt and Dai et al.

This is the classic binding problem: red·square + blue·circle and blue·square + red·circle add up to the same bag of features. Once you sum over positions, the information about which name belongs to which pet is gone. Nothing you do to that one vector afterwards can recover it.

How the model reads it back

Attention fetches by slot, not by content

Now ask “What’s my cat’s name?” The model doesn’t search for a vector that says “cat’s name”. Interpretability work on entity tracking (Prakash et al.; the Lookbacks paper) finds a chain: work out which pair the question is about, carry that address to the answer position, then let value-fetching heads attend to the slot with that address and copy what’s there. Step through it.

memory as

The key move is step 2: attention’s score is a dot product between a query and each position’s key, so it can single out one column. A table gives it columns to choose between. A pooled vector gives it one, already mixed.

One subtlety. “Position” here means a separate slot attention can pick, carrying its tag. It does not mean the absolute index. In Seahorse’s collision test, shifting a stored slice to a later index changed nothing (confusion 0.35 vs 0.37). The tag, set when the slice was stored, does the work, not the index.

What this explains in Seahorse

Four ways to store a fact, one rule

Every Seahorse result on facts follows from whether the stored thing keeps its own slot and a tag the question can match. Numbers are clean use of the fact in a coherent answer, from the project’s runs.

One way to write it down · an interpretation

Sums inside a slot, a tensor product across slots

Status: a lens, not a measured finding. Tensor-product structure has been confirmed in small RNNs on synthetic tasks (McCoy et al. 2019; ROLE). Encoders trained on natural text looked more like a bag of words, and the TP-Transformer had to build binding into attention explicitly. No paper has tested whether an LLM’s sequence actually has this structure. The maths below is a tidy way to describe the Seahorse results, not evidence for them.

Call the content at position i its filler fᵢ, and what identifies the slot (its place and tag) its role rᵢ. The whole sequence then behaves like a tensor product representation (Smolensky):

sequence ≈ Σᵢ fᵢ ⊗ rᵢ

Attention undoes the binding. The query names a role; the dot product with each key picks the matching slot; the value comes out:

answer ≈ Σᵢ softmax(⟨q, kᵢ⟩) · vᵢ → f_j where r_j matches q

Pooling a shift averages over the role index. In tensor language that contracts the role away, and only the bag of fillers is left:

pooled = (1/n) Σᵢ fᵢ ← no rᵢ, no binding
ObjectWhat it keepsBinding?
One residual vectorA near-additive sum of features at that slot (plus its own tag)Only as a tag for others to match
The KV cache / a stored sliceFillers with the roles they were encoded with, one row per slotYes, but a slice stored on its own always carries the first pair’s role
A pooled steering shiftThe sum of fillers, roles averaged outNo
Concept × signA filler times a 1-D role (+1 / −1)Only the sign, which the model can already read as a push toward or away
Where the picture is simplified

Caveats