← vedantjumle.com

Project page · October 2026

Seahorse: a memory for a frozen language model

Can a model that is never retrained remember what you told it in an earlier conversation? A vector pushed into its activations carries a leaning, but not a fact. A small stored slice of the model’s own attention memory, put back in the right place, carries the fact. This page explains both results, where the second one breaks, and where the project goes next.

Vedant Jumle · independent project · Paper 1: What Survives When Activation Steering Is Used as Memory (arXiv:2610.14958) · code and run reports

Summary

1 The question · 2 Two ways to put a memory back · 3 What a pushed vector carries · 4 Why: binding is positional · 5 What a stored slice carries · 6 Where it breaks · 7 The model writes its own references · 8 Where this is going · 9 Limits · Explainers and newer results · References · Appendix

1The question

A language model has two kinds of memory. Its weights are permanent but slow to change. Its context is instant, but it disappears when the session ends. Nothing sits in between: no fast, lasting memory that forms from experience, the role the hippocampus plays in animals (the project is named after it; hippocampus is Greek for seahorse).

Seahorse tries to build that middle piece for a model whose weights never change. The aim is a memory rather than a record. A record is a transcript you search and paste back. A memory is compact, it is stored from the model’s own internal states, and it comes back when the present resembles the past, in the spirit of the hippocampal index theory, where the hippocampus stores a pointer that reactivates the cortex rather than the content itself (Teyler & DiScenna, 1986).

The models are small and open: Qwen2.5-1.5B-Instruct, Qwen3.5-2B and Qwen3.5-9B, all frozen. The test is always the same. In session 1 the user says something (“My dog’s name is Pepper.”, “I can’t stand jazz music.”). In session 2, a fresh chat with none of that text, the user asks something where it matters. Each result is reported next to no memory (the floor) and in context, where the original sentence is written into the session-2 prompt (what perfect remembering would look like).

2Two ways to put a memory back

Some background first. A transformer reads text as a row of positions, roughly one per word piece. Each position carries a vector, the residual stream, that every layer reads and adds to. At each attention layer, each position also leaves behind a key and a value. A later position finds information by attention: it compares its query with all the keys and reads a weighted mix of the values. The keys and values of everything read so far are the KV cache. The point that matters here: information that sits at a position can be looked up by attention. A vector that is added everywhere has no position of its own.

Seahorse has tried two ways of putting a memory back into a new conversation.

A · THE PUSH (PAPER 1) Session 1: read twice with “My dog’s name is Pepper.” and with a reference in its place (the opposite, “without”, or alternatives of the same kind) Stored: one vector s the difference of the two readings in the residual stream, filed under a gist key of the chat Session 2: a new chat What’s my dog’s name? answer → +αs+αs +αs+αs +αs at 3 latelayers, if thegist matches added at every position: the memory has no position of its own B · THE SLICE (NOW) Session 1: read once My dog’s name is Pepper . keep the keys and values of the 2 marked positions (+ the recurrent state on the hybrid 2B) Stored: a slice 2 positions × every attention layer, filed under the subject “dog” no reference needed Session 2: the user’s turn Pepper . What’s my dog’s name? answer → attention reads the value from the stored position gate: the slice goes in only if the question names the stored subject (“dog”)

Scroll sideways to see the whole diagram.

Figure 1. The push adds the same vector at every position, so attention has nowhere to look it up. The slice puts the model’s own keys and values for “Pepper .” back at two positions in the user’s turn (accent), where the answer can find them by attention. Dashed outline: the subject that files the slice and opens its gate.

3What a pushed vector can carry

Paper 1 (arXiv:2610.14958) tests the push in one consolidated run, core_v1, on Qwen3.5-2B and Qwen3.5-9B (the 9B at the same relative depth). The claims and their pass/fail rules were written down before the run. It uses 15 leanings (vegetarian, early riser, prefers quiet, …), 8 dislikes (“I can’t stand jazz music.”), 12 facts and 50 unrelated prompts, at doses α = 0.5 to 3 per layer. The controls are a random vector, another memory’s vector, a placebo experience (“I had a coffee this morning”) and the gate removed. A judge model (Qwen3.5-9B) labels every answer for direction and coherence; an incoherent answer counts as zero, however many target words it contains.

3.1 It stays out of unrelated answers

On unrelated prompts, 99% (2B) and 98% (9B) of answers are token-for-token identical to the no-memory answers. The gate does this: with it removed, only 6% and 10% stay identical.

3.2 Leanings: real, modest, and only near α ≈ 1

Qwen3.5-2BQwen3.5-9B
Judged lean gain vs no memory−1..+1 scale; whiskers: 95% CI−0.200+0.20+0.40none0.5123α per layer2B9B
Answers judged incoherentshare of all answers0%25%50%75%100%none0.5123α per layer2B9B
Data table
modelα per layerjudged lean gain [95% CI]incoherentword-count lean gain
Qwen3.5-2Bnone0 (reference)14%—
Qwen3.5-2B0.5+0.09 [−0.02, 0.20]15%0.18
Qwen3.5-2B1+0.20 [0.04, 0.38]22%0.35
Qwen3.5-2B2+0.15 [−0.03, 0.36]61%0.51
Qwen3.5-2B3+0.05 [−0.11, 0.22]85%0.39
Qwen3.5-9Bnone0 (reference)3%—
Qwen3.5-9B0.5+0.06 [−0.04, 0.16]6%0.11
Qwen3.5-9B1+0.11 [0.00, 0.24]9%0.24
Qwen3.5-9B2+0.15 [−0.02, 0.36]41%0.43
Qwen3.5-9B3−0.06 [−0.24, 0.15]80%0.56
Figure 2. Leanings in paper 1. Left: judged lean gain over no memory (+1 = a coherent recommendation toward the user’s trait, −1 = away, 0 = neutral or incoherent). Right: the share of answers the judge calls incoherent; “none” is no memory. The accent line marks α = 1 per layer. Whiskers: 95% intervals from a bootstrap over items, then prompts. With the preference written in the prompt, the gain is +0.72 (2B) and +0.81 (9B).

At α = 1 per layer, answers lean toward the stored preference by +0.20 [0.04, 0.38] on the 2B and +0.11 [0.00, 0.24] on the 9B. That is significant, but small next to the in-context gain, and uneven across items: strong for early riser, prefers quiet, vegan and vegetarian; nothing for celiac, lactose intolerant or has young kids. At α = 2, incoherent answers jump from 22% to 61% (2B) and from 9% to 41% (9B), and the coherent lean no longer clears zero (+0.15 [−0.03, 0.36]; +0.15 [−0.02, 0.36]). The pre-registered claim required a gain at both doses, so it failed.

A correction to earlier versions of this page. They reported a large vegetarian effect from counting preference words. Word counts rise with the dose even when the text breaks down: here, the word-list lean gain on the 2B goes from +0.35 at α = 1 to +0.51 at α = 2, while the judged lean does not rise. The earlier count was inflated by incoherent text. The judged, pre-registered result above replaces it.

3.3 Facts come out as a word, not a statement

Asked to use a stored fact (“Write a short birthday message to my sister.”), the judged clean use, meaning the right fact used correctly in a coherent answer, is at most 0.15 (2B) and 0.12 (9B) at any dose, against 0.96–0.98 in context. At α ≥ 2, 86–94% of answers mention the fact without using it cleanly: “Petra Petra Petra …”. Injecting the same vector at earlier layers does not turn it into knowledge either; it fades, or garbles the answer (“My name is Omar.”).

The reason shows in the vector itself. Read through the model’s output vocabulary (the logit lens), a fact shift ranks the right name in the top 10 only from relative depth 0.833 (2B) and 0.875 (9B) onward; at half depth its median rank is about 71,000–75,000. A stored fact shift is an intention to say a word, present only near the output.

3.4 No premises

A premise is a fact the model can reason with. The test is a balanced pair of yes/no questions, one where Yes is right (“Is my dog called Pepper?”) and one where No is right (“Is my dog called Max?”); averaging the two accuracies means a model that drifts toward “No” scores 0.5, not more. No dose raises it. With a fact memory at α = 1, balanced accuracy stays at 0.50 on both models, the same as with no memory (0.50), against 0.98 with the fact in context; at α = 2 the 2B even loses (−0.15 [−0.27, −0.04]). The shifts in the Yes/No margins are a general tilt, not knowledge. The push also gets the owner wrong: pushed toward teal, the model said “Teal is my favourite colour!”. Section 5 shows that this, too, is a failure of the push, not of memory in general.

3.5 What you subtract decides the direction

A pushed vector is always “the state with the experience, minus a reference”. Three references matter: the opposite statement (“I love jazz”), the same message without the experience, and the mean over eight alternatives of the same kind (“I can’t stand rock / classical / … music”).

Qwen3.5-2B7 dislikes · + = away from the disliked thinggainwrong way−10+1in context+0.77minus the opposite+0.230%minus “without”−0.2571%minus the alternatives−0.38100%
Qwen3.5-9B8 dislikes · + = away from the disliked thinggainwrong way−10+1in context+1.02minus the opposite+0.2512%minus “without”−0.3188%minus the alternatives−0.37100%
Data table
modelreference subtractedα per layerjudged lean gain [95% CI]dislikes pushed the wrong way
Qwen3.5-2Bin context+0.77 [0.52, 1.02]
Qwen3.5-2Bminus the opposite1+0.23 [0.05, 0.44]0%
Qwen3.5-2Bminus “without”1−0.25 [−0.50, −0.03]71%
Qwen3.5-2Bminus the alternatives1−0.38 [−0.57, −0.19]100%
Qwen3.5-9Bin context+1.02 [0.77, 1.26]
Qwen3.5-9Bminus the opposite1+0.25 [0.02, 0.50]12%
Qwen3.5-9Bminus “without”1−0.31 [−0.54, −0.07]88%
Qwen3.5-9Bminus the alternatives1−0.37 [−0.59, −0.15]100%
Figure 3. Dislikes in paper 1, each reference at its highest dose with at most 10% looping answers (α = 1 for all three). + means answers coherently steer away from the disliked thing. Right column: the share of dislikes pushed the wrong way. Blue = interval above zero, red = below, grey = in context, for scale.

Only the opposite keeps a dislike a dislike: +0.23 (2B) and +0.25 (9B). Subtracting the alternatives turns every dislike into a like (−0.38, −0.37), and subtracting “without” does the same on most items (−0.25, −0.31). Inside the model, “I can’t stand jazz” is mostly jazz with a faint negation, so any reference without jazz in it leaves jazz behind. A preference has a what (the concept) and a which way (the sign), and no single subtraction keeps both.

3.6 How far to trust the judge

No human labels were collected. Instead, every core_v1 answer was re-judged by models from other families: gpt-oss-20B, Gemma-4-12B and Llama-3.1-8B, plus Qwen3.6 as a same-family reference that never votes.

claim · modelQwen3.5-9B (original)gpt-oss-20BGemma-4-12Bmajority: original + 3majority: 3 cross-family
C2 leanings transfer · 2Bfailsfailsfailsholdsholds
C2 leanings transfer · 9Bfailsfailsfailsholdsholds
C3 facts are not cleanly used · 2Bholdsholdsholdsholdsholds
C3 facts are not cleanly used · 9Bholdsholdsholdsholdsholds
C5 the reference decides direction · 2Bholdsholdsholdsholdsholds
C5 the reference decides direction · 9Bholdsholdsholdsholdsholds

The majority votes are over the original judge plus the three cross-family judges, or over the three cross-family judges alone. The fact result (C3) and the direction result (C5) hold under the original judge, under gpt-oss and Gemma-4, and under both majority votes; under gpt-oss and Gemma-4 the alternatives push dislikes the wrong way even harder (−0.52 to −0.43). The leaning result (C2) is judge-sensitive: it fails under every single judge but holds under both majority votes, because the original judge is the strictest about coherence. Llama-3.1-8B is not trusted on its own: it labelled most fact answers as using the fact, including many where the name never appears. The same-family Qwen3.6 agrees on C3, and on C5 for the opposite and the alternatives, but not for “without”.

4Why: facts are bound by position

Work on how models track entities says a fact in context is bound through positions. The entity and its attribute carry a shared binding tag, an internal marker of which entity goes with which attribute (“the first pair”, “the second pair”), and attention heads find the attribute’s position and copy from it (Feng & Steinhardt, 2024; Prakash et al., 2024). Facts stored in the weights work differently: they are loaded onto the subject’s own position (Geva et al., 2023). Either way, a position does the work, and a push supplies none.

To see where our models read a fact from, the run takes “My dog’s name is Pepper. What’s my dog’s name?” and the same prompt with Rocky. It copies the internal state at one position and one layer from the Pepper run into the Rocky run, and measures how much of the model’s Pepper-versus-Rocky preference moves.

patch at the name’s own position (“Pepper”)patch at the question’s subject (“my dog”)
Qwen2.5-1.5Bshare of the Pepper-vs-Rocky preference moved · 7 facts0.000.250.500.751.000481216202427layer (of 28)
Qwen3.5-2Bshare of the Pepper-vs-Rocky preference moved · 7 facts0.000.250.500.751.0004812162023layer (of 24)
Data table
modellayername positionquestion subject
Qwen2.5-1.5B01.000.00
Qwen2.5-1.5B11.00−0.00
Qwen2.5-1.5B21.000.00
Qwen2.5-1.5B31.00−0.00
Qwen2.5-1.5B41.00−0.00
Qwen2.5-1.5B51.00−0.00
Qwen2.5-1.5B61.00−0.00
Qwen2.5-1.5B71.00−0.00
Qwen2.5-1.5B81.00−0.00
Qwen2.5-1.5B91.00−0.00
Qwen2.5-1.5B101.00−0.00
Qwen2.5-1.5B111.00−0.00
Qwen2.5-1.5B121.00−0.00
Qwen2.5-1.5B131.000.00
Qwen2.5-1.5B141.000.00
Qwen2.5-1.5B151.000.00
Qwen2.5-1.5B161.000.00
Qwen2.5-1.5B171.000.00
Qwen2.5-1.5B181.000.00
Qwen2.5-1.5B190.980.00
Qwen2.5-1.5B200.980.00
Qwen2.5-1.5B210.970.00
Qwen2.5-1.5B220.840.00
Qwen2.5-1.5B230.700.00
Qwen2.5-1.5B240.460.00
Qwen2.5-1.5B250.460.00
Qwen2.5-1.5B260.310.00
Qwen2.5-1.5B270.000.00
Qwen3.5-2B01.00−0.00
Qwen3.5-2B11.00−0.00
Qwen3.5-2B21.00−0.00
Qwen3.5-2B31.000.00
Qwen3.5-2B41.000.00
Qwen3.5-2B51.000.00
Qwen3.5-2B61.000.00
Qwen3.5-2B71.000.00
Qwen3.5-2B81.000.00
Qwen3.5-2B91.000.00
Qwen3.5-2B101.000.00
Qwen3.5-2B111.000.00
Qwen3.5-2B121.000.00
Qwen3.5-2B131.000.00
Qwen3.5-2B141.00−0.00
Qwen3.5-2B150.910.00
Qwen3.5-2B160.88−0.00
Qwen3.5-2B170.86−0.00
Qwen3.5-2B180.85−0.00
Qwen3.5-2B190.060.00
Qwen3.5-2B200.000.00
Qwen3.5-2B210.000.00
Qwen3.5-2B22−0.000.00
Qwen3.5-2B230.000.00
Figure 4. Activation patching, one layer at a time. Blue: patching the name’s own position moves the whole preference until the answer has read it, then nothing. Orange: patching the question’s subject (“my dog”) moves nothing at any layer, on either model.

Patching the question’s subject moves 0.00 of the preference at every layer. Patching the name moves everything up to layer 18 (Qwen2.5) or 14 (Qwen3.5-2B), then falls: on the 2B to 0.06 by layer 19, because by then the answer position has already read the name. On Qwen2.5, blocking the answer’s view of the name costs 0.59 [0.41, 0.81] of the in-context gain, and only in the last layers. So the answer pulls “Pepper” from Pepper’s position, late; “my dog” is a label. It may still carry a pointer (a binding tag), which this patch cannot see, but it holds no copy of the value. Writing a stored state at the subject, the plan before this test, gave clean use 0.00.

5What a stored slice carries

If the value is read from its own position, the memory should give the model that position back. The slice does: the keys and values of the name and the full stop after it, stored in session 1 and put into the user’s turn in session 2 when the question mentions the subject. The tests use 7 fact items (a dog’s, cat’s, sister’s, brother’s, grandmother’s, best friend’s and boss’s name), with prompts that need the fact without asking for it, judged by the majority of three judges from three families.

Qwen2.5-1.5B (all attention)Qwen3.5-2B (hybrid)
how the fact is carriedshare of answers that use the fact correctly and coherently0.000.250.500.751.00no memory0.000.00pushed vector (paper 1, α = 1)Qwen2.5-1.5B: not run0.15the same 2 tokens as text0.270.242-position slice, attention only0.860.672-position slice + recurrent stateQwen2.5-1.5B: n/a: no recurrent state0.97recurrent state onlyQwen2.5-1.5B: n/a: no recurrent state0.00whole turn (+ state on the 2B)0.870.96stored after an unrelated chat0.800.99the sentence in context0.901.00
Data table
how the fact is carriedQwen2.5-1.5B clean use [95% CI]Qwen3.5-2B clean use [95% CI]
no memory0.00 [0.00, 0.00]0.00 [0.00, 0.00]
pushed vector (paper 1, α = 1)not run0.15 [0.05, 0.27]
the same 2 tokens as text0.27 [0.06, 0.51]0.24 [0.06, 0.47]
2-position slice, attention only0.86 [0.63, 1.00]0.67 [0.41, 0.91]
2-position slice + recurrent staten/a: no recurrent state0.97 [0.91, 1.00]
recurrent state onlyn/a: no recurrent state0.00 [0.00, 0.00]
whole turn (+ state on the 2B)0.87 [0.71, 1.00]0.96 [0.89, 1.00]
stored after an unrelated chat0.80 [0.56, 1.00]0.99 [0.94, 1.00]
the sentence in context0.90 [0.71, 1.00]1.00 [1.00, 1.00]

Scroll sideways to see the whole chart.

Figure 5. Clean use (the right fact, used correctly in a coherent answer) on prompts that need the fact. Whiskers: 95% intervals over the 7 items. The pushed-vector row comes from a different run (paper 1’s 12 facts, Qwen3.5-2B, its original judge) and is there for scale. Qwen2.5-1.5B has attention at every layer and no recurrent state, so its “2-position slice” is already the whole memory.

On Qwen2.5-1.5B, two stored positions give clean use 0.86 [0.63, 1.00], the whole turn 0.87, and the sentence in context 0.90. The same two tokens given as plain text in an earlier turn give 0.27 (difference −0.60 [−0.86, −0.34]), and 0.00 on the direct question. The slice carries more than its tokens because its keys and values were computed with the whole sentence in view. A slice stored after an unrelated exchange, and used without it, still gives 0.80.

What is and isn’t new. Putting back the whole turn is exactly prompt caching: the whole sentence as text in an earlier turn gives the same result (difference +0.00 [0.00, 0.00]). Reusing cached keys and values across requests, and fusing separately cached pieces, are known systems techniques (Prompt Cache, Gim et al., 2024; CacheBlend, Yao et al., 2025). Reusing a frozen model’s stored cache as memory in a later conversation, without training, is also prior work: MemArt (Zeng et al., ICLR 2026 submission) stores past turns as 16-token blocks and puts back the blocks that attention from the new question selects. What this work adds is a finer grain and the explanation: which two to eight single positions carry a fact, that such a slice beats the same tokens as text, where the answer reads the fact (the attribute’s own position, late), why separately stored slices swap partners (storage order, Section 6.1), and how the hybrid model splits the job between attention and its recurrent state.

5.1 On a hybrid model: the value and the verification come apart

Qwen3.5-2B attends at only 6 of its 24 blocks. There, the two-position slice alone gives clean use 0.67, and it refuses direct questions (“I don’t know your dog’s name!”; 0.20 on the direct question). Adding the recurrent state from the same stored turn gives 0.97 [0.91, 1.00] (direct question 0.89; change +0.30 [0.06, 0.57]), stored after an unrelated chat 0.99, in context 1.00. The state alone gives 0.00 clean use.

The value: the right name’s log-prob gainnats vs no memory, teacher-forced04812sentence in context10.62 positions + recurrent state10.82 positions, attention only10.0recurrent state only3.7conv buffer only0.7
Verification: balanced yes/no0.50 = chance0.000.501.00chancesentence in context1.002 positions + recurrent state1.002 positions, attention only0.50recurrent state only0.86conv buffer only0.50
Data table
what is restoredgain in log P(right name), nats [95% CI]balanced yes/no [95% CI]
sentence in context10.65 [9.28, 11.98]1.00 [1.00, 1.00]
2 positions + recurrent state10.79 [9.77, 11.80]1.00 [1.00, 1.00]
2 positions, attention only10.01 [9.02, 11.10]0.50 [0.50, 0.50]
recurrent state only3.74 [3.03, 4.50]0.86 [0.71, 0.96]
conv buffer only0.66 [−0.28, 1.58]0.50 [0.50, 0.50]
Figure 6. Qwen3.5-2B, teacher-forced (no generation): what each stored part carries. Left: how much more likely the right name becomes after “Your dog’s name is”. Right: balanced yes/no (“Is my dog called Pepper?” / “…called Max?”). Each recurrent block keeps a recurrent state and a short convolution buffer of the last few tokens; the “recurrent state” rows restore only the state, and the last row only the buffer.

Teacher-forced, the split is clean. The two attention positions carry the value (+10.0 nats, against +10.6 in context), but yes/no stays at 0.50. The recurrent state alone verifies (yes/no 0.86) but carries only part of the value (+3.7 nats) and never recalls it in generation. The recognition is in the recurrent state, not the convolution buffer (0.50). Together, yes/no is 1.00. This matches Afendulev et al. (2026), who find within one session on Qwen3.5 that attention carries exact retrieval and the recurrent state carries familiarity and response mode. One difference: their state also says yes to associated but wrong items, and ours does not. Tested with names that look or sound like the right one or share its theme, the 2B’s state alone still tells them apart (balanced accuracy 0.96 on the hand-picked facts, 0.94 on 38 more). One caveat: the state is not small. It is about 4.7 million numbers (19 MB in fp32) whatever the length of the text.

Why does the attention-only slice refuse when the value is there? Mostly for a generic reason. A direction that separates personal questions (“What’s my blood type?”) from general ones (“What’s the most common blood type?”), built with no memory at all, lifts the 2B’s answers to direct questions on held-out facts from 0.12 to 0.67, close to the 0.76 of a direction built from other facts heard in context; the “I know this entity” direction does not explain it. So the slice holds the content, and what it lacks is the model’s signal to answer from it, a kind of licence. The recurrent state supplies that signal on the hybrid; on Qwen2.5, keeping the subject’s position (“sister”) in the slice does much the same, measured teacher-forced (see the subject-position page below). Pushing the direction in by hand is not a fix: with no memory, it makes the model invent a name. What a stored slice has to contain for the model to use it is the current question (Section 8).

5.2 Read the answers

The greedy answers of Qwen3.5-2B for each way of carrying the fact. Loops are shortened, so “Pepper Pepper Pepper …” appears as Pepper [×40].

Fact
Memory
Figure 7. Qwen3.5-2B, greedy answers to the direct question, to a prompt that needs the fact, and to the first two yes/no probes. Push answers are from paper 1’s run; text and slice answers are from the slice runs (see the appendix). “Names the fact” only checks whether the name appears, including inside loops and refusals.

6Where it breaks

6.1 Separately stored facts swap partners

Two facts, each stored in its own session, are put back together for one question: an older sister Petra and a younger sister Maria, or a dog and a cat.

the right namethe partner’s name (a swap)neither
Qwen2.5-1.5Bshare of answersswapconfusable pairs (older / younger sister)both in context1%encoded together5%stored separately35%separately, shifted37%different subjects (dog / cat)both in context3%encoded together0%stored separately28%separately, shifted26%
Qwen3.5-2Bshare of answersswapconfusable pairs (older / younger sister)both in context5%encoded together5%stored separately28%separately, shifted33%different subjects (dog / cat)both in context0%encoded together0%stored separately19%separately, shifted22%
Data table
modelpairshow the two facts were storedcorrect [95% CI]partner’s name [95% CI]
Qwen2.5-1.5Bconfusable pairs (older / younger sister)both in context0.93 [0.87, 0.98]0.01 [0.00, 0.05]
Qwen2.5-1.5Bconfusable pairs (older / younger sister)encoded together0.89 [0.77, 0.98]0.05 [0.00, 0.13]
Qwen2.5-1.5Bconfusable pairs (older / younger sister)stored separately0.51 [0.33, 0.70]0.35 [0.18, 0.53]
Qwen2.5-1.5Bconfusable pairs (older / younger sister)separately, shifted0.54 [0.34, 0.75]0.37 [0.18, 0.56]
Qwen2.5-1.5Bdifferent subjects (dog / cat)both in context0.91 [0.79, 1.00]0.03 [0.00, 0.13]
Qwen2.5-1.5Bdifferent subjects (dog / cat)encoded together0.97 [0.87, 1.00]0.00 [0.00, 0.00]
Qwen2.5-1.5Bdifferent subjects (dog / cat)stored separately0.62 [0.37, 0.83]0.28 [0.08, 0.53]
Qwen2.5-1.5Bdifferent subjects (dog / cat)separately, shifted0.62 [0.38, 0.84]0.26 [0.06, 0.48]
Qwen3.5-2Bconfusable pairs (older / younger sister)both in context0.91 [0.80, 0.98]0.05 [0.01, 0.11]
Qwen3.5-2Bconfusable pairs (older / younger sister)encoded together0.89 [0.77, 0.98]0.05 [0.00, 0.13]
Qwen3.5-2Bconfusable pairs (older / younger sister)stored separately0.59 [0.37, 0.80]0.28 [0.12, 0.47]
Qwen3.5-2Bconfusable pairs (older / younger sister)separately, shifted0.57 [0.36, 0.78]0.33 [0.15, 0.54]
Qwen3.5-2Bdifferent subjects (dog / cat)both in context0.97 [0.91, 1.00]0.00 [0.00, 0.00]
Qwen3.5-2Bdifferent subjects (dog / cat)encoded together1.00 [1.00, 1.00]0.00 [0.00, 0.00]
Qwen3.5-2Bdifferent subjects (dog / cat)stored separately0.76 [0.54, 0.92]0.19 [0.03, 0.40]
Qwen3.5-2Bdifferent subjects (dog / cat)separately, shifted0.71 [0.42, 0.91]0.22 [0.04, 0.49]
Figure 8. Two stored facts used together (whole-turn slices, gates forced open). “Encoded together” reads both sentences in one pass before storing; “stored separately” stores each in its own session; “shifted” moves the second slice after the first instead of keeping the stored positions. Right column: the share of answers that give the partner’s name.

Stored separately, the model gives the partner’s name in 19–37% of answers, even for a dog and a cat, and whether or not the positions overlap. Encoded together, both models answer correctly about as often as with both sentences in context (0.89–1.00 against 0.91–0.97).

The cause is storage order. A slice stored on its own is always “the first pair” of its conversation, so the question cannot tell two such slices apart. Storing the new fact after a dummy fact (“My gardener’s name is Brian.”), then dropping the dummy’s tokens, stores it as the second pair. That cuts partner confusion from 0.33–0.41 to 0.09–0.15 on three models (Qwen2.5-1.5B, Qwen3.5-2B and Llama-3.2-3B), against 0.01–0.05 when the two are encoded together. The binding sits at the subject’s positions (“younger sister”), and only joint encoding writes it there: on Qwen2.5 and Llama, adding the subject’s positions to a two-position slice cuts confusion from 0.20 and 0.17 to 0.03 and 0.01 when they come from a joint reading, and does not help when they come from separate ones (0.34 and 0.29). The tag cannot simply be added afterwards. Measured as Feng & Steinhardt do, the tag direction flips which partner the model prefers in 0.75 [0.69, 0.81] of held-out contexts in the late layers, against none for a random direction, but adding it to a stored slice does not reduce the swaps (change in confusion −0.02 [−0.14, 0.11]). With more facts, storing in order removes most swaps up to three facts (0.38–0.47 to 0.04–0.09 for facts of the same kind) and about halves them at five (0.51–0.55 to 0.22–0.30), where the errors give a neighbour’s name. Five memories of the same kind still have to be encoded together.

6.2 Retrieval works, and its errors are confident

With 59 stored facts on Qwen2.5-1.5B, a key built from the subject’s words picks the right slice for 0.85–0.92 of direct questions, depending on the layer, with no collapse as the store grows (a key from the whole text: 0.42–0.61; unrelated prompts open a gate 0–4% of the time). The right slice makes the right name as likely as the sentence in context does (+9.47 vs +9.48 nats). A wrong slice is worse than none: it pushes the right name down (−2.62 nats) and the model states the wrong value 0.86–0.90 of the time. In generation, on prompts that need the fact, the right slice gives 0.87 and the key’s own pick 0.49, with 0.16 confident wrong values. The right slice is in the top two 0.88–0.93 of the time, so checking the pick before using it is the obvious next piece.

One open check: on a pool of extra facts, asked only the direct question, the right slice did worse than in context. The direct question is also where two positions are weakest on the hand-picked facts, and teacher-forced the right slice matches the sentence in context on every one of the 59 facts, so this is most likely a prompt-type effect. It is being checked.

7The model can write its own references

Every pushed preference in paper 1 was written from hand-made comparison sentences: an opposite and eight alternatives. A real conversation has only the experience. So a model (Qwen3.5-9B) was given the experience sentence alone and asked to write the opposite and the alternatives; the memory then ran on Qwen3.5-2B as before.

Dislikes7 items · Qwen3.5-2B · loop-matched dosegaindose−0.50+0.5+1in context+0.77hand-written opposite+0.23α 1generated opposite+0.19α 1generated alternatives−0.39α 1concept × read sign+0.39α 2concept × true sign+0.39α 2
Leanings15 items · Qwen3.5-2B · loop-matched dosegaindose−0.50+0.5+1in context+0.72hand-written opposite+0.20α 1generated opposite+0.17α 1generated alternatives+0.27α 1concept × read sign−0.09α 2concept × true sign+0.27α 1
Data table
groupmemory written fromα per layerjudged lean gain [95% CI]items pushed the wrong way
Dislikesin context+0.77 [0.52, 1.02]
Dislikeshand-written opposite1+0.23 [0.05, 0.44]0%
Dislikesgenerated opposite1+0.19 [0.01, 0.40]29%
Dislikesgenerated alternatives1−0.39 [−0.55, −0.21]100%
Dislikesconcept × read sign2+0.39 [0.19, 0.59]0%
Dislikesconcept × true sign2+0.39 [0.19, 0.59]0%
Leaningsin context+0.72 [0.55, 0.89]
Leaningshand-written opposite1+0.20 [0.04, 0.38]33%
Leaningsgenerated opposite1+0.17 [0.02, 0.33]27%
Leaningsgenerated alternatives1+0.27 [0.10, 0.45]21%
Leaningsconcept × read sign2−0.09 [−0.29, 0.09]57%
Leaningsconcept × true sign1+0.27 [0.10, 0.45]21%
Figure 9. Memories written from the model’s own references (29 items), judged lean gain at the highest dose with at most 10% loops. “Concept × sign” stores the concept (from the alternatives) and applies it with a sign: read automatically, or the true sign.

On dislikes, the generated opposite moves answers the right way (+0.19, hand-written +0.23), and the generated alternatives move them the wrong way (−0.39 [−0.55, −0.21], 100% of items wrong). That is paper 1’s direction result again, with no human-written reference, and it holds under every judge. The generated sentences are not copies of the hand-written ones, and the model kept some odd clauses (“I have celiac disease, so I can eat gluten.”), but the effect survives.

The open piece is the sign. A general like/dislike direction reads the sign of the 23 signed items with accuracy 0.43–0.52, about chance. It reads every dislike right but calls restrictions negative: vegan, lactose intolerant, a tight budget. “Avoid” is not “dislike”; the sign has to be read relative to the stored concept. With the true sign, concept × sign is the best leaning memory so far (+0.27 on leanings, +0.39 on dislikes); with the automatic sign, leanings do not improve (−0.09 [−0.29, 0.09]), because restrictions get the wrong sign.

On PrefEval (Zhao et al., 2025), 200 preferences that no one wrote references for, the generated opposite improves preference-following under every judge, modestly: +0.03 to +0.10 at α = 1, against +0.41 to +0.46 with the preference in context.

judgeno-memory accuracygenerated opposite, α = 1α = 2experience in context
Qwen3.5-9B (original)0.10+0.03 [0.01, 0.05]+0.05 [0.03, 0.07]+0.43 [0.39, 0.48]
gpt-oss-20B0.26+0.06 [0.03, 0.09]+0.14 [0.09, 0.18]+0.43 [0.38, 0.48]
Gemma-4-12B0.46+0.10 [0.06, 0.13]+0.16 [0.12, 0.21]+0.41 [0.36, 0.46]
majority0.28+0.07 [0.04, 0.10]+0.07 [0.03, 0.11]+0.46 [0.40, 0.51]

8Where this is going

The design that follows from these results has two channels and an offline phase.

Open problems, roughly in order:

A second write-up, on what binds a memory (the push, the slice, and the hybrid’s split), is in progress, with more controls and a second model family running now.

9Limits

·Explainers and newer results

Three companion pages: one explainer, and two results pages built from the run outputs like this one.

·References

·Appendix: runs, definitions, judges

Code, pre-registrations and run reports are in the Seahorse repository. Every chart on this page, and every number tied to a chart or a claim, is generated from the run outputs by tools/manuscript/build.py, so the page can be rebuilt when a run changes. The exceptions are the addendum 7–9 numbers and the selector comparison in Section 8, marked in the list of runs below.

Runs

Definitions

Judges

The original judge is Qwen3.5-9B with a fixed rubric for direction and coherence. The panel re-judged paper 1’s answers with gpt-oss-20B, Gemma-4-12B and Llama-3.1-8B (not trusted as a single judge after it failed a sanity check; it counts as one voter in the majority votes), plus Qwen3.6-35B-A3B as a same-family reference. The slice runs use the majority of the original judge, gpt-oss and Gemma-4. Sampling: 1 greedy answer plus 4 samples per prompt (T = 1, top-p 0.95), with the same random numbers in every condition.