Skip to main content
Memory & architecture

MemT-1.0: building memory into the model instead of the prompt

MemTensor gives language models a fixed-size internal memory. At long histories it is faster and far smaller than full context, but less exact.

· 7 min read
By Wasserstoff Labs
THE PAPERMemT-1.0: Towards Memory-Native EvolutionZhiyu Li et al. (MemTensor, with NVIDIA) · arXiv 2610.26825 · 19 October 2026
Smaller saved state per conversation at 128K tokens (Nano)
66x
Smaller saved state per conversation at 128K tokens (Nano)
End-to-end speed-up over full context at 128K tokens (Nano)
1.86x
End-to-end speed-up over full context at 128K tokens (Nano)
SWE-bench Verified tasks solved in all three runs
54.0% to 61.6%
SWE-bench Verified tasks solved in all three runs
Flash over the best rival in-model memory method, 11 benchmarks
+12.5 pts
Flash over the best rival in-model memory method, 11 benchmarks

The short version

Most AI systems remember by pasting history back into the prompt, or by fetching snippets from a database. In MemT-1.0, Zhiyu Li and 73 co-authors at MemTensor, working with NVIDIA, add a memory module inside an existing language model that rewrites a fixed-size internal state as it reads, so the history itself does not have to be kept. At 128K tokens of history, their smallest model is about 1.86 times faster end to end and stores about 66 times less per conversation than a model holding the full history. It beats other "memory inside the model" methods on average across 11 memory benchmarks, still trails methods that keep the original text, and made a coding agent more consistent across repeated runs.

The problem

A language model's context window is the text it can see at once. An agent that needs last week's conversation, or a lesson from a past task, usually has two options. It can keep the whole history in that window, or store notes outside the model and fetch the relevant ones, which is called retrieval-augmented generation (RAG).

Both options keep growing. Full context means keeping a KV cache, the model's internal record of every past token, and the paper shows its size and preparation time rise with history. Retrieval stores start small, but their text chunks and search vectors pile up too. In agent work, pasted lessons lengthen a context that is already long.

A third family, parametric memory, writes history into the model's numbers instead, for example by training a small add-on per document. It avoids a growing prompt but, in the paper's comparisons, recalls much less. MemT-1.0 tries to make this route work. The authors call the long-term goal memory-native evolution: models that build up experience as a capability of their own, not through external tools.

How it works

Think of a notebook with a fixed number of pages. A full-context model keeps a photocopy of everything it has read. MemT-1.0 keeps only the notebook, rubbing out what has gone stale and writing in what matters. It never gets thicker; the question is how much fits.

The paper names these parts:

  • Native memory block. Added next to the normal attention in selected layers of a frozen, already-trained model, the backbone. It has a local memory, the notebook itself, which starts empty for each new conversation and changes as it goes, and a hyper memory, the trained machinery that decides what to write, erase and read. It is learned in training, then fixed.
  • Storage and utilisation. Two procedures. Storage updates the local memory after each turn. Utilisation reads from it while the model writes its answer, and the result is blended with the model's ordinary attention over the current text.
  • Gated DeltaNet-2 updates. Gated DeltaNet-2 is an existing update rule for this kind of fixed-size memory. Its gates let the memory fade old content, erase an outdated association and write a new one. MemT-1.0 applies it token by token, with an added step that stops memory values running away. The team's earlier model, Metis, selected tokens instead.
  • Mixture-of-Storage (MoS). A way to add capacity by splitting each memory block into several parallel memory "experts". Every expert writes every token, and a router decides how much to read from each one. All three released models use one expert per layer; MoS was tested in a separate scaling study.

Training used 34 billion tokens in two stages. First, 20 billion tokens of general text teach the model to predict the next words using memory of earlier segments. Then 14 billion tokens of memory-focused data use distillation: the original backbone, which sees the full history as text, acts as teacher, and the memory model learns to match its predictions while seeing the history only through memory.

The family has three sizes: Nano (built on Qwen3.6-35B-A3B), Flash (on DeepSeek-V4-Flash after extra post-training by the authors) and Pro (on NVIDIA Nemotron-3-Ultra).

What they found

  • Memory benchmarks. Across 11 benchmarks with histories from under 16K to over 64K tokens, Pro averaged 53.08, Flash 50.60 and Nano 46.97. Flash and Nano beat the strongest other parametric method, Temp-LoRA (38.08), by 12.52 and 8.89 points.
  • Still behind text. On the same suite, full context and the stronger text-based memory systems, such as MemOS and Mem0, averaged roughly 65 to 72. Simple retrieval averaged roughly 56 to 59. The gap was widest on LongMemEval-S and BEAM-1M.
  • General skills. With irrelevant material written into memory first, Pro averaged 0.11 points below its backbone on six general benchmarks, Flash roughly matched its backbone, and Nano fell by about one point. Effects varied by task.
  • Speed. On BEAM histories, one request at a time on two GPUs, Nano was slower than full context on short histories, about even at 32K tokens, and about 1.20, 1.86 and 3.99 times faster end to end at 64K, 128K and 256K. Time to the first word of an answer stayed at roughly 104 to 112 ms, while full context rose to about 445 ms at 256K.
  • Storage. Nano's saved state per conversation stays at 40 MiB however long the history, about 66 times smaller than full context at 128K. For short histories, a retrieval store is cheaper.
  • What matters inside. Updating token by token mattered far more than the exact update rule: switching Nano to one update per turn cut its average from 46.97 to 40.98. Adding memory experts helped a little, from 46.97 with one to 48.11 with four, but not on every benchmark.
  • Coding agents. The authors distilled 41,057 successful past coding runs into 1,040 reusable lessons and trained Nano to take a lesson into memory instead of the prompt. On SWE-bench Verified (500 real software issues, three attempts each), with the lesson stored before the task, average success rose from 66.07% to 69.33%, slightly above pasting the same lesson as text (68.87%). The share of tasks solved in all three runs rose from 54.00% to 61.60%, level with the text version. On SWE-bench Multilingual (300 tasks), that share rose from 45.33% to 53.67%. The share solved at least once did not rise consistently.

Where it falls short

  • A fixed notebook loses detail. The authors say plainly that a bounded state has limited room for detail and that new information competes with old, a real problem for tasks needing precise recall. Reading a long history does not guarantee getting the details back.
  • The abstract's framing is generous. The abstract calls the models competitive with retrieval-augmented methods. On the averages, even Pro sits several points below simple retrieval and well below full context. On short histories it is also slower and, against retrieval, larger.
  • The agent gains rest on outside help. Lessons came from an external bank, chosen by a separate search model, with at most one lesson stored per run. The authors note that results depend on lesson quality and retrieval, and that storing a lesson costs compute, so a shorter prompt is not automatically cheaper. Only Nano and only coding were tested.
  • Measurement limits. Memory answers were graded by another model (gpt-4.1-mini). The agent results come from three runs per task.
  • Harder to inspect. Our reasoning, not the paper's: a lesson in the prompt can be read, checked and deleted. One folded into a memory matrix cannot be read back as text, which matters wherever an agent's knowledge must be audited.
  • Open questions. Whether conversation memory can be folded back into the trained memory parts, and how the system could gather its own lessons, are left for future work.
WASSERSTOFF LABS

What it means for us

For anyone building AI employees, memory is where reliability is often won or lost. A support agent that forgets last month's complaint is not saving anyone time. MemT-1.0 makes the trade-off clear: text memory is exact and auditable but keeps growing; internal memory is compact and quick but lossy. A plausible answer is both, with text for facts that must be exact and internal memory for habits and procedure.

The number we would watch most closely is not recall. It is the jump in tasks solved in all three runs, while tasks solved at least once did not consistently rise. That suggests stored lessons mostly make an agent steadier, not cleverer, which echoes the paper's own finding that post-training mainly improves reliability. Does an agent work every time, not once? It is good to see a memory paper report exactly that.

Solved once is a demo; solved every time is a product.

The harness-triggered set-up matters for anyone designing agentic harnesses. The harness watches for trouble, such as failed commands, empty outputs or repeated failed attempts, and only then hands the agent a lesson. Nano reached 62.80% solved-every-time on SWE-bench Verified this way. Knowing when to step in is a harness design question, wherever the lesson ends up living.

SOURCES

  1. MemT-1.0: Towards Memory-Native Evolution — Zhiyu Li et al. (MemTensor, with NVIDIA). arXiv:2610.26825, 19 October 2026.

A plain-English explanation by Wasserstoff Labs. Figures are taken from the paper; read it for full methods and results.

Building agents that have to work every time?

We build custom evals and research partnerships with teams that need reliability.