Life of Research
Appearance

Compressed Once, Read Many Times: Why Prompt-Compression Results Do Not Transfer to Agent Memory, What the Query-Agnostic Line Already Showed, and the Two Properties of a Memory Write No Protocol Yet Scores

  1. SONYTECH

Journal article

DOI10.5281/zenodo.22969435 LOR-00053

Download PDF (8.9 MB) Cite

Cite

Compressed Once, Read Many Times: Why Prompt-Compression Results Do Not Transfer to Agent Memory, What the Query-Agnostic Line Already…

Read

Abstract

(c) 2026 Pranay Mahendrakar. Licensed under CC BY 4.0.

Language-model agents that remember across sessions compress what they store: they summarise dialogue, extract facts, or evict cache entries, and then answer later questions from what is left. The compression ratios used to justify these designs come mostly from prompt-compression work in which the question is visible when compression runs. This paper examines whether those results transfer to the memory write, where the compressor must decide what to keep before any question exists. The premise that no one measures this does not survive the literature. The key-value cache line has built query-agnostic compressors and audited query visibility directly: in one matched-budget audit, the method the auditors call the most widely deployed beats a keep-the-start-and-recent-window baseline when it sees the question and loses to it when it does not. The paper argues that what remains open is narrower and harder. Every located "query-agnostic" result is still distribution-aware: the compressor is tuned for, or scored against, questions drawn from the same generator. A memory write has two properties no located protocol scores: its future query distribution is set by events that have not happened, and its compressions compose, because summaries are summarised again and records are overwritten. Published agent-memory evidence is consistent with that reading. Summary units are retrieved with 90.7 percent recall yet answer at 31.5 F1. In a 2024 pilot, two commercial assistants answering from fact stores written during the conversation scored 24.7 to 71.1 percent, where reading the raw history scored 91.8. The paper separates three query-visibility regimes, states what a write-time compression claim would have to report, and names the experiment that would settle the open part.
The literature search, drafting and citation verification for this paper were carried out with AI assistance under the author's direction. Every arXiv citation was machine-verified against its live arXiv Atom API record, and every other citation against its DOI record, during drafting (title and author list checked against the record returned). Every quantitative claim is taken from the abstract, full text or a table of the source credited with it; full-text numbers were read from the sources' own HTML renderings rather than from summaries. No experiment was run and no number in this paper was measured by its author. Table 1 re-presents numbers published by the cited papers, each named on its row; Figure 1 plots published values from three cited papers with no transformation beyond rounding. The three-regime classification, Algorithm 1 and the reporting protocol in Section 10 are original conceptual synthesis by the author, not empirical results, and are presented as such. Three psychology references are cited for terminology only; their full texts were not available to the verification step and no finding is attributed to them.

Keywords

Files (1)

Cite this record

Mahendrakar, P. (2026). Compressed Once, Read Many Times: Why Prompt-Compression Results Do Not Transfer to Agent Memory, What the Query-Agnostic Line Already Showed, and the Two Properties of a Memory Write No Protocol Yet Scores. Life of Research. https://doi.org/10.5281/zenodo.22969435

APA 7th edition
Export to a reference manager
BibTeX
@misc{mahendrakar2026compressed,
  author       = {Mahendrakar, Pranay},
  title        = {{Compressed Once, Read Many Times: Why Prompt-Compression Results Do Not Transfer to Agent Memory, What the Query-Agnostic Line Already Showed, and the Two Properties of a Memory Write No Protocol Yet Scores}},
  year         = {2026},
  month        = sep,
  date         = {2026-09-26},
  publisher    = {Life of Research},
  doi          = {10.5281/zenodo.22969435},
  url          = {https://lifeofresearch.com/articles/53},
  abstract     = {(c) 2026 Pranay Mahendrakar. Licensed under CC BY 4.0. Language-model agents that remember across sessions compress what they store: they summarise dialogue, extract facts, or evict cache entries, and then answer later questions from what is left. The compression ratios used to justify these designs come mostly from prompt-compression work in which the question is visible when compression runs. This paper examines whether those results transfer to the memory write, where the compressor must decide what to keep before any question exists. The premise that no one measures this does not survive the literature. The key-value cache line has built query-agnostic compressors and audited query visibility directly: in one matched-budget audit, the method the auditors call the most widely deployed beats a keep-the-start-and-recent-window baseline when it sees the question and loses to it when it does not. The paper argues that what remains open is narrower and harder. Every located "query-agnostic" result is still distribution-aware: the compressor is tuned for, or scored against, questions drawn from the same generator. A memory write has two properties no located protocol scores: its future query distribution is set by events that have not happened, and its compressions compose, because summaries are summarised again and records are overwritten. Published agent-memory evidence is consistent with that reading. Summary units are retrieved with 90.7 percent recall yet answer at 31.5 F1. In a 2024 pilot, two commercial assistants answering from fact stores written during the conversation scored 24.7 to 71.1 percent, where reading the raw history scored 91.8. The paper separates three query-visibility regimes, states what a write-time compression claim would have to report, and names the experiment that would settle the open part. The literature search, drafting and citation verification for this paper were carried out with AI assistance under the author's direction. Every arXiv citation was machine-verified against its live arXiv Atom API record, and every other citation against its DOI record, during drafting (title and author list checked against the record returned). Every quantitative claim is taken from the abstract, full text or a table of the source credited with it; full-text numbers were read from the sources' own HTML renderings rather than from summaries. No experiment was run and no number in this paper was measured by its author. Table 1 re-presents numbers published by the cited papers, each named on its row; Figure 1 plots published values from three cited papers with no transformation beyond rounding. The three-regime classification, Algorithm 1 and the reporting protocol in Section 10 are original conceptual synthesis by the author, not empirical results, and are presented as such. Three psychology references are cited for terminology only; their full texts were not available to the verification step and no finding is attributed to them.},
  keywords     = {prompt compression, agent memory, KV cache compression, query-agnostic compression, long-term conversational memory, memory evaluation, summarization faithfulness, rate-distortion},
  language     = {en},
  copyright    = {Creative Commons Attribution 4.0}
}

Using Zotero or Mendeley? Their browser connector saves this record from this page, with its PDF when there is one. On search and browse pages it lists every result so you can save many at once.

Guides What a complete citation needs What CC BY 4.0 allows What is a DOI?