Manuscript Offprint

arXiv:2610.19373

Evaluating Compressed Memory: Dependence, Utility, and Content Benefit

Minsu Oh, Seunghui Jwa, Chanjun Park, Yeo-Chan Yoon

Abstract

Does a language model answer better because its compressed memory contains useful document information? Replacing memory vectors with zeros can lower a trained model's score without showing that it outperforms a model trained without memory. We combine zeroing with separately trained models that cannot access stored text or receive the same constant input for every document. Across nine systems, some models rely on memory yet perform worse than the trained alternative. For example, in experiments that predict states in generated stories, zeroing memory worsens a model's prediction loss, yet a model trained without memory achieves lower loss than the original model with intact memory. On TriviaQA, giving xRAG memory from another question's passage raises F1, which measures word overlap with accepted answers, from 19.38 without a document to 24.78. Its effect on how often outputs contain an accepted answer is statistically uncertain. The question's retrieved passage scores higher still (29.88 F1). Thus a gain over no document alone does not establish that the gain requires the question's passage. Evaluations must therefore specify the comparison model, absolute performance, and generation and scoring conditions.

1 Introduction

Compressed memory encodes text as vectors that a large language model (LLM) can use in place of the original text. Evaluating memory therefore requires evidence that the stored information improves prediction. A lower score after removing memory, or a higher score than a model given no document, can appear to provide that evidence. We show that neither comparison alone establishes a benefit from the stored content. A model can rely on memory yet predict worse than a model trained without it; a module trained to supply the same input for every document can also improve scores.

The problem is a mismatch between the comparison performed and the conclusion drawn. Removing memory after training asks whether the model relies on an input it learned to use. It does not ask whether training with memory produced a better predictor than training without it. Even that second comparison leaves another question: does the advantage require document content, or can a module trained without access to that content also improve performance? Treating these questions as interchangeable leaves the value of stored information untested.

These distinctions build on established comparisons with retrained models and controls for learned representations (Hooker et al., 2019; Hewitt and Liang, 2019). We bring the comparisons together to test what memory evaluations establish (Figure 1). We measure dependence by zeroing memory in an already trained model, and utility by comparing against a model trained without the tested memory. To measure content benefit, we train the same memory module with document vectors or with one constant input shared by every document. The constant-input module can learn to help the LLM, but cannot convey the current document's facts. Our contribution is an empirical account of where these comparisons lead to different conclusions and which additional evidence supports a claim about document content.

  1. We demonstrate that zeroing damage does not establish a training benefit. Across nine systems, four are harmed by zeroing memory yet perform worse than their trained alternatives on generated-story state prediction. These cases have low task performance; they do not establish the same disagreement in models that solve the task well. A separate controlled study produces a positive memory advantage

∗^{*}Corresponding authors: Yeo-Chan Yoon and Chanjun Park.

Observed: a fitted model with compressed memory, score SintactS_{intact} (higher is better)

Figure

One gain, three possible claims — each needs its own reference

Figure

Audit rule: a memory gain is defined only relative to its reference — report the reference, the intervention, and absolute task scores together.

Figure 1: Three comparisons for interpreting a memory gain. Zeroing memory tests whether an already trained model relies on it. Separately trained models without memory or with constant input test whether memory and document content improve performance.

when both models worsen, because the model without memory worsens more. Together, these results show why zeroing damage and a relative gain must be checked against trained alternatives and absolute performance (Section 4).

  1. We show that zeroing damage can include a benefit learned without document content. On questions about scientific papers, zeroing the output of a module trained on constant input lowers F1 by 5.73 points. F1 measures word overlap with an accepted answer, accounting for missing and extra words. This drop occurs although the module receives no facts from the current document. Training on document vectors also outperforms training on constant input, providing separate evidence that document content helps. These results distinguish the benefit of a learned input from the additional benefit of document content in a working question-answering system (Section 5).

  2. We establish that a gain over no document need not be specific to the question’s retrieved passage. Using xRAG, which maps a document embedding to one LLM input vector (Cheng et al., 2024), we find that passages from other questions improve some scores over no document on three datasets. The question’s retrieved passage performs better. Comparing only against no document would miss that some improvement also occurs with a different passage. We also show that generation settings and scoring rules change the conclusions supported by these comparisons (Section 5.2).

These findings make memory evaluation a question of matching evidence to a claim: reliance requires an intervention, utility requires a trained comparison, and document-content benefit requires a comparison that withholds document information. Reporting them together makes clear what a memory gain does, and does not, demonstrate.

References (91)

  • LongBench: A bilingual, multitask benchmark for long context understanding
  • Pythia: A suite for analyzing large language models across training and scaling
  • Yair Feldman and Yoav Artzi. 2026. No mean feat: Simple, strong baselines for context compression. Preprint, arXiv:2510.20797. Version 2. (opens arXiv in a new tab)
  • The Pile: An 800GB Dataset of Diverse Text for Language Modeling
  • The Llama 3 Herd of Models
  • This probe asks whether a model can use compressed records of earlier story events when those events are outside its local attention window
  • \tag {6} $$
  • $W_p, b_p$ project each slot to the hidden width, and $W_g, b_g$ determine the gate
  • The no-memory comparison model adds a residual multilayer perceptron (MLP) at the current position, with layer normalization, a linear map, GELU and a second linear map
  • Module counts exclude common LoRA
  • The generator creates 6,400/800/800 train/dev/test stories by assigning values to entity attributes and mentioning them later
  • $U$ compares pooled memory with the parameter-matched adapter; $D$ compares its intact and zeroed inputs
  • Zeroing sets memory values to zero but retains projection bias; bypassing instead removes the added residual contribution
  • We train pooled memory and a local adapter under two objectives: predicting every next token, or predicting only the designated state tokens
  • All four arms are shown; raw NLLs are compared only within a backbone
  • On a fixed panel of 128 development items, the mean endpoint NLL across the four model/objective conditions is 4.2523/3.4885
  • The content comparison evaluates all eighteen fits on 1,024 targets from 588 of 800 new stories (generator seed 2026101041), with no exact full-story/window overlap with the earlier pools
  • Zeroing still harms both trained paths
  • This experiment tests compression when the relevant evidence is supplied, without introducing retrieval errors
  • Extractive answer spans are joined with commas; other cases use the annotated free-form answer
  • Minimum development NLL across checkpoints 0/32/64/128 selects the rate; ties favor the lower rate and then the earlier checkpoint
  • The prompt contains Background: <xRAG>, the question, and The answer is:
  • After zeroing, the document-trained and constant-trained projector conditions give identical predictions on all 9,790 seed–question pairs
  • This experiment asks whether training the answer-generating LLM can improve answers while leaving compressed storage unchanged
  • Relative to the public decoder, the document-trained decoder gains exact matches on a mean 36.2 questions per fit and loses them on 2.4, with respective ranges 25–44/1–4
  • Each focal contrast in this earlier study $(R, T_{\mathrm{LLM}}, I_{\mathrm{LLM}})$ is positive under both constructions
  • The EM difference is +0.848 [0.148, 1.563] points, but its crossed interval is [-0.035, 1.731]
  • Match is token-substring answer inclusion; strict EM and F1 are descriptive secondary scores
  • Donor effects average the scores from all three assignments within each question
  • To estimate uncertainty for this fixed checkpoint and donor bank, we resample 10,984 original-passage clusters for 50,000 draws and adjust the eight-effect family using maximum-standardized deviations
  • These comparisons show how the chosen comparator affects interpretation; they neither establish that the source paper omitted controls nor provide an independent test set
  • Mean output lengths in Table 13 come from all saved answers
  • Changing to batch size four preserves every prompt token ID but changes 9,905 answers
  • These runs use PyTorch 2.5.1/Transformers 4.48.2
  • This study asks whether a compressed earlier passage helps predict a repeated word beyond what the visible suffix or a constant vector provides
  • We measure whether changing the remote text shifts preference toward the matching target using $(m_{o} + m_{c}) / 2$, where $m_{o} = \log p_{o}(y_{o}) - \log p_{o}(y_{c})$ and $m_{c} = \log p_{c}(y_{c}) - \log p_{c}(y_{o})$
  • A separate pooled/query-memory comparison starts from the same public checkpoint and
  • Fixed-fit intervals resample documents; crossed intervals also resample ten paired order seeds with family adjustment
  • Supplementary Tables S8, S9 and S13 report all nine systems on both data sources, includ-
  • Positive $U$ favors memory; positive $D$ means zeroing harms prediction
  • Positive $D_{\mathrm{abs}}$ means absence harms prediction; positive $E$ means evidence masking harms more than matched sham masking
  • Because systems differ in which components are adapted and which inputs they can access, their results do not isolate architectural causes
  • We train question-only rules to decide which questions receive document input under a fixed usage budget
  • The ratio $(F_a - F_{\text{closed}})/(F_{\text{full}} - F_{\text{closed}})$ expresses a condition's F1 gain over closed-book input as a fraction of the gap between full-text and closed-book F1
  • QA, reference-score, allocation, optimal-ablation and decoder families use maximum-standardized deviations for simultaneous coverage
  • The intervals do not cover arbitrary initialization choices, searches over con-
  • No bound accounts for selection among analyses
  • This appendix contains core implementation details and all principal objective/content, QA, LLM and lexical contrast families
  • Its standalone CoQA reconstruction officially rescores 20,250 saved answers and reconstructs the three paired effect intervals; it does not rerun neural inference
  • 19 on learned compression and 21 on attention key/value (KV) retention
  • Not located
  • Among the 19 learned-compression papers, we found no clear instance of a trained independent input under this definition: 17 were not located and two were unclear
  • The records disagreed in 18 of 168 cells; we preserved the disagreements and their resolutions
  • We specify the contrast before generating its outputs, but reuse the previously evaluated public QASPER test; this is not independent confirmation
  • We exclude paragraphs that match annotated evidence after whitespace normalization, including substring overlap in either direction
  • With 50,000 paired whole-paper draws, the fixed-fit 95% interval is [13.8176, 16.6779]; crossed paired order-seed/paper resampling gives [13.7586, 16.7300]
  • >Category</td><td colspan=
  • Correct minus wrong-document training is +7.4844 F1; correct-document minus closed-book training is +7.9442
  • All four arms, including the exploratory full-text reference, adapt 41,943,040 decoder parameters with rank-16, scale-32, zero-dropout LoRA; the base weights, encoder and public projector remain frozen
  • Closed-book prompts omit the background; the two compressed conditions retain one vector slot
  • Raw saved answers were independently rescored and an alternative indexed bootstrap reconstructed the results
  • We choose these generation settings from the source documentation before inspecting their outputs
  • Closed supplies only the question; full supplies passage text; document/question supply the corresponding compressed vector; zero supplies a zero vector
  • Two additional diagnostics each examine 256 questions per condition to test sensitivity to ordering and batch membership
  • This preserves dependencies created by shared generation and source text
  • All cells use Llama-3.2-3B, window 11, block size 16, one-block delay, memory width 256, and rank-16/scale-32 LoRA on q/k/v and gate/up/down projections with zero dropout
  • This is worse than uniform prediction over those candidates, so probability assigned outside the candidate set does not fully explain its high loss
  • Target-only training worsens target-token NLL for all arms, most for the adapter; positive utility need not imply absolute improvement
  • The candidate-informed uniform reference has mean NLL 1.8871 and accuracy $17.59\%$
  • The evaluation therefore does not establish transfer to an unseen task or freedom from pretraining contamination
  • correct rationale</td><td>60.56</td></tr><tr><td>Projector: same-story non-rationale</td><td>5.14</td></tr><tr><td>Correct-document decoder</td><td>66.56</td></tr><tr><td>Wrong-document-trained decoder</td><td>34.22</td></tr><tr><td>Closed-book decoder</td><td>18.86</td></tr></table>
  • Decoders trained with correct and wrong document vectors both receive the same correct rationale vector at evaluation
  • Across systems, the adapted components, available input and training histories differ
  • Its local comparator instead re- ceives 183 ordinary-language-model updates, then 64 target-only updates at $3 \times 10^{-5}$ and 512 at $10^{-5}$ ; the last two stages use zero weight decay
  • To check whether larger rates improve the comparison conditions more, we run a bounded development search over $2 \times 10^{-4}$, $8 \times 10^{-4}$, $3.2 \times 10^{-3}$, $1.28 \times 10^{-2}$, $5.12 \times 10^{-2}$ separately for document, question and constant input
  • The last two average NQ-open and WebQuestions equally under batch-one generation and pair passage clusters; they are not pinned TriviaQA Match claims
  • Task adaptation, suffix access and development histories differ; these are finite configurations rather than an optimized architecture ranking
  • This diagnostic does not retrain the ten-seed test models or replace the original twelve-effect family
  • Larger rates worsen development NLL. Finding better rates for all conditions does not establish equal optimization quality or a global optimum
  • The evaluation includes all 3,610 NQ-open and 2,032 WebQuestions items used in the earlier batch-one comparisons
  • Each original batch contains four consecutive items, except the final two-item NQ-open batch
  • M/L denotes memory/local
  • These two contrasts, two datasets and three scores form a separate twelve-effect family
  • On NQ-open, that interval includes zero
  • Both the compressed model and its baselines change between studies
  • All score changes are retained in the numerical supplement
  • Both document-trained rows use correct vectors at evaluation
  • Their difference, 10.8294, reconstructs the original interaction estimate exactly
  • The trained row averages ten training orders from the earlier fixed-memory study; it is distinct from the later 21.21-F1 decoder comparison
  • The no-document prompt also omits the background instruction
  • Its EOS-based generation also differs from the released repository's batch-dependent stopping