What Is a Memory Worth? It Depends on the Question You Ask Later
A memory's usefulness is not a property of the memory alone but of the pair formed by that memory and a later question: paper [1] quantifies this with a paired +0.33 contrast and shows that summaries and structured records lose ground because they more often drop the sentence the answer needs.
On this page
Zhou owns the memory feature at a company building an intelligent assistant. The product saves the web pages it has visited, one record at a time, and when a user later asks a question it pulls the relevant records back in front of the model. He is stuck between two bad options. Keep the raw text and each record runs to thousands of words, so a long stack is expensive, takes up room, and makes the model miss the one line that matters; switch to a short summary and it is cheap, but he cannot be sure the sentence someone will eventually need has not been deleted. The team must decide next week whether to replace every raw record with a one-line summary. Their current method is blunt: give each memory a single importance score, measure average accuracy over a batch of questions, and ship the summary version as long as the average does not drop. The flaw is an untested assumption, that a memory is equally useful for every question. Paper [1] argues the opposite: a stored experience may answer one future question and offer little help with another, and averaging that variation away erases precisely what should have been preserved.
The Default Test: One Score per Memory
Zhou's default can be split further: compute an importance score for each memory, keep raw text for high scores and compress the rest into summaries, then measure average accuracy over a batch of questions and ship if the average holds. Two assumptions go unchecked. First, it treats a memory's usefulness as a fixed value, whereas paper [1] starts from the opposite premise: a stored experience may answer one future question and offer little help with another, so the quantity to measure is how much this memory helped on this task, which the authors call task-conditioned utility, an effect recorded on the memory-task pair rather than on the memory alone. Second, it treats an unchanged average as a safety signal, but if most questions are answered wrong with or without the memory, the average is diluted by a pile of zeros and what compression actually deleted becomes invisible [1].
The paper writes the measured quantity as a difference. The same reader, meaning the model that answers the future task, with identical decoding and the same scorer, is given the target memory in one arm and denied it in the other, and the two rewards are subtracted to give Delta U. A positive value means the memory helped, a negative one that it hurt, and zero means no measured change in reward, not identical answers or absent information. Because the two arms differ by exactly one item, the difference can be attributed to that memory. The unit of analysis is the cell, one memory-task pair under one evaluation condition; a memory has no single utility here, and its result is a profile across the tasks it faced [1].
How to Measure What One Memory Is Worth
The three most important constraints are enforced structurally rather than by convention. The writer, the model that turns a page visit into a memory, receives only that segment and never sees the later task; otherwise a positive Delta U would show only that a model can be told an answer and copy it forward. The memory bank is written once, content-hashed and frozen before any pairing exists, and no arm writes, updates or deletes a memory, which avoids the divergent-state hazard of repeated runs. The filler context, the unrelated memories that accompany the question, is identical across both arms: 4 memory units of 1,500 to 5,000 tokens each, drawn from 50 trajectories disjoint from every trajectory hosting a bearing memory, so the without arm is not an empty context but the same material minus one item [1].
Insertion position is not neutral either: moving only the target memory changed the answer in 8 of 12 pilot cells, and about 10% of labels change at scale, so the main runs hold position fixed, record it on every row, and condition every reported contrast on the recorded positions. Reward is binary in the screened run, each cell is two separate requests, none of the 5,198 calls was served from cache, and replicates agree on all 1,157 primary cells within one session, giving a zero execution floor [1]. A cost ledger sits beside every measurement, recording in seven families the resources used to form, store, retrieve and expose the memory, because a shorter memory is not automatically cheaper: one Summary costs about 7,956 writer tokens and one Structured record about 8,141, while this design reuses each memory 4.86 times. Amortizing that one-time cost, Summary overtakes Raw on point estimates only above roughly 5.5 uses per write, and its utility interval spans zero throughout [1].
To decide which pairs are worth executing, the paper uses an answer-bearing screen. It reads the memory text, the task's gold answer and the evaluation specification, but never the question, a reward or any model output, so the strata it defines are not selected on the outcome. The authors stress that it is an instrument, not a retriever: because it consumes the gold answer it cannot be deployed, and it only defines strata by whether the text contains the answer and fires on at most eight of the 865 to 1,024 units in the task's domain pool. To rule out the objection that selecting on the answer manufactures the effect, a gold-free screen was pre-registered, using the same gpt-oss-120b as the reader to judge whether the memory contains the information the question asks about. On 32 cells the gold screen never selected, its picks move the reader from 15.6% correct without the memory to 50.0% with it, while 42 matched-control pairs move from 14.3% to 11.9%; the contrast is +0.3676, with a task-clustered 95% interval of [+0.05, +0.70] over 44 tasks and an episode-clustered one of [+0.14, +0.67] over 19 episodes [1].
Where the Data Comes From and How Large It Is
The primary benchmark is the small tier of LongMemEval-V2, where each domain has exactly one haystack, a single pool of candidate memories that every question in that domain faces, so every memory is available to every question and there is no availability confound between arms [1]. A whole trajectory has a median length of 103,886 tokens, too long to serve as a memory, so the authors segment at the page visit, the maximal run of consecutive states sharing one URL, yielding 1,889 memory units with a median of 7,261 tokens. Segmentation preserves answerability for 278 of 295 deterministically scored questions, or 94.2%. Of 451 questions, 295 are deterministically scored, the benchmark's scorer is used verbatim, and an LLM-judged task raises an error rather than scoring zero. Seeded pairing gives a grid of 15,112 memory-task pairs, but the executed design is screened: 60 memories, 40 from the web domain and 20 from the enterprise domain with unit pools of 865 and 1,024, drawn from 35 source episodes. A content-blind size cap fixed before any outcome removed 11 candidate memories longer than 20,000 tokens. The 60 memories are every memory bearing on two or more tasks that passed the cap (35) plus 25 that bear on one, deliberately over-sampling multi-task memories so sign reversal has a chance. All three strata contain the identical 60 memories, across 218 tasks, for 1,157 cells [1].
Sparsity is itself a result. Screening all 1,889 units against the 295 deterministic questions yields 75 discriminative tasks, those firing on at least one and at most eight units; over these, 165 memories bear on at least one task across 266 memory-task edges, with 119 bearing on exactly one, 18 on two, 18 on three and a tail reaching nine, while the other 1,724 units bear on none, and the median breadth is one. Recomputing at caps of 4, 8, 16 and 32 units leaves 64% to 72% of bearing memories bearing on exactly one task at every cap, with the median always one [1]. Of the 220 deterministic questions excluded, 15 fire on no unit and 205 on more than eight, often because short answers such as a single number or letter occur on many pages; remove the cap entirely and string containment fires for all 1,889 memories, on 18 to 91 tasks each. Two secondary benchmarks were also run: 154 donor-to-recipient pairs on SciCode (34 memories, 40 tasks) and 40 interpretable cells on SWE-bench Verified, of which 92% come from one repository [1].
Results: How Large the Gap Is and Where It Comes From
Start with the headline. For each memory, subtract its mean paired reward gain on matched-control pairs from its mean gain on answer-bearing pairs, then average over the 60 memories: the result is +0.33 with a 95% interval of [+0.21, +0.46], an episode-clustered interval of [+0.20, +0.47], and a two-way interval over memories and tasks of [+0.1675, +0.4683]. It is +0.36 for single-task memories and +0.32 for multi-task ones, and +0.35 [+0.17, +0.53] reweighted to all 165 bearing memories [1]. Re-running all 285 bearing and control cells in a new session with three replicates each and position redrawn per replicate (1,708 real calls, none from cache) gives +0.50 [+0.37, +0.63]; under a second reader it is +0.6002; standardizing over position leaves it at +0.33. The direction holds in every tested condition while the magnitude moves with session and reader [1].
Screening cuts the structural zeros: cells that fail in both arms fall to 0.53 for bearing, against 0.79 for matched control and 0.70 for random. The memory helped in 50 of 139 bearing cells (36.0%), against 6.8% for control and 9.4% for random, and 84.8% of all 1,157 cells are exact zeros. Bearing tasks are the hardest without the memory, at 11.5% accuracy versus 14.4% for control and 20.5% for random, and the easiest with it, at 46.0%; of 16 bearing cells answered correctly without the memory, 14 are also correct with it. To rule out a simple inability to reach long context, the authors planted a unique code inside the target memory within a roughly 27k-token context: it is recovered in 22 of 22 cells and in 0 of 17 when nothing is planted. Yet with the answer in context the reader still fails on 54% of bearing cells [1].
| Task stratum | Both-arms-fail share | Wilson 95% interval | Mean Delta U |
|---|---|---|---|
| bearing | 0.53 | [0.44, 0.61] | +0.3453 |
| matched control | 0.79 | [0.71, 0.85] | +0.0274 |
| random | 0.70 | [0.67, 0.73] | +0.0642 |
Now compression. Changing only how each experience is written, on the 277 cells evaluated under all three representations the paired bearing-minus-control effect is +0.3174 [+0.192, +0.448] for Raw, +0.0613 [−0.042, +0.164] for Summary and −0.0498 [−0.143, +0.038] for Structured; only Raw excludes zero. Per cell, Raw exposes a mean 9,228 tokens, Summary 323 and Structured 238. Re-running the 277 representation cells with every arm padded to the Raw arm's total token count (a median of 8,065 tokens of bearing-disjoint filler) leaves Raw at +0.35 [+0.23, +0.49] on bearing cells, while Summary gains +0.04 and Structured +0.01; against Raw on the same cells they lose −0.31 [−0.44, −0.18] and −0.34 [−0.47, −0.21]. In other words, the usual defence that a short memory frees room for other context does not survive a fixed total context [1].
The truncation sweep points at the answer text itself. Cutting Raw from full length to its last 4,096 and 1,024 tokens and then to each cell's Summary length gives bearing-pair gains of +0.34, +0.31, +0.19 and +0.08, while the share of cells whose text still contains the bearing content falls to 100%, 84%, 48% and 29%; keeping the first N tokens instead retains it in only 1% of cells and drops the gain to −0.02. Splitting every arm by whether its text kept that content, cells that kept it gain +0.32 [+0.17, +0.49] pooled over compressed arms and cells that lost it gain −0.02 [−0.08, +0.03]. The authors state explicitly that the sweep changes content and length together, so it is consistent with, not proof of, retention of answer-bearing content driving the gains [1].
| Representation or cut | Median tokens | Cells still keeping answer | Bearing-cell Delta U |
|---|---|---|---|
| Raw, full | 8,344 | 100% | +0.34 |
| last 4,096 | 4,096 | 84% | +0.31 |
| last 1,024 | 1,024 | 48% | +0.19 |
| last N (matched) | 282 | 29% | +0.08 |
| Summary | 282 | 18% | +0.03 |
| Structured | 216 | 13% | -0.04 |
| first N (matched) | 282 | 1% | -0.02 |
Retrieval adds a further cut. Using the screen-defined labels over 75 tasks and 266 bearing edges to score retrievers that never see the answer, dense retrieval that ranks the whole 865 or 1,024-unit pool by the question and embeds 512-token chunks recovers, on average, 0.40 [0.31, 0.50] of a task's bearing units in its top ten, recall@10, and 0.35 when only a 2,000-token prefix is embedded, against about 0.01 by chance. The lexical ranker BM25 reaches 0.21 [0.14, 0.28] with an area under the ROC curve of 0.86, and chunked retrieval places the first bearing unit at a mean reciprocal rank of 0.41. Retrieval therefore locates bearing memories far above chance yet misses most of them in its top ten. Cosine similarity correlates with Delta U at only rho = +0.087 across the 1,157 cells, so looking similar is a weak guide to how much a memory helps [1].
Stability has to be read separately. Under a second reader, gemma-4-31B-it, on 1,694 byte-identical rows, 275 matched cells and 123 tasks, mean Delta U is higher by +0.0982 [+0.0247, +0.1730] and the within-memory bearing-minus-control contrast is +0.6002 [+0.4787, +0.7144]; yet the two readers' three-way labels agree on only 225 of 275 cells, at Cohen's kappa, a measure of annotation agreement corrected for chance, of 0.58, and the 6 and 2 harmed cells are too few to tell whether harm labels reproduce. Position alone changes 10% of labels and accounts for 11% of the variance of Delta U, with the bearing effect weaker in the middle of context (+0.30) than at its ends (+0.43); labels agree at kappa 0.78 at the same position and 0.65 at a new one. The aggregate contrast keeps its direction while individual memory-task labels do not [1].
Where the Claim Stops
Paper [1] specifies its limits more carefully than its results: the measurements characterize a defined evaluation task set, not the future return of a deployed agent. The following boundaries are the authors' own.
- Task type: evidence comes only from single-call factual recall, where memories are page visits from web-agent trajectories, future tasks are questions with deterministically scored answers, and a reader answers each in one call without acting in an environment; the paper makes no claim about procedural memory, acting agents or a trained retention policy;
- Benchmarks and models: the main results concern only the web and enterprise domains of LongMemEval-V2, one serving cluster and two reader checkpoints (gpt-oss-120b and gemma-4-31B-it), leaving generalization to other model families and deployments untested;
- The pairing is constructed: the memories are real trajectory spans, but their pairing to tasks is a seeded rule fixed before measurement, so every rate describes a defined evaluation task set rather than naturally occurring future tasks, and observed harm rates should not be read as population rates for deployed memory systems;
- No effect on coding tasks: Raw's own Delta U is −0.01 [−0.05, +0.02] on SciCode, where 122 of 127 cells are unchanged, and −0.05 [−0.17, +0.07] on SWE-bench Verified; with no Raw effect to preserve or lose, a representation contrast there cannot test how a memory should be written, and the positive factual-recall finding must not be extended to those settings;
- Single-item insertion and filler: inserting one item cannot see redundancy or complementarity between units, and the filler comes from trajectories hosting no bearing memory so it never contains competing evidence, which likely makes the bearing effect larger than a deployed system would see; leakage-audit rates are lower bounds.
In closing: this method applies when you already have a defined question-answering task set, are willing to write the evaluation conditions down exactly, and are comparing different writings of the same memories; its value is turning whether compression preserved the task-relevant answer into something measurable. If the real question is whether to retain a memory in an open environment, how several memories complement one another, or what to store for coding tasks, it cannot answer you. Those questions need a different evaluation framework, not the +0.33 recomputed somewhere else [1].
