preprint open access

A Residue Is Not a Recurrence: What 'Reinforcement Learning Alone' Shows About Information Carried in a Streamed KV Cache After Context Compaction, Why Presence, Use, Channel and Benefit Are Separate Claims, and the Re-Prefill and Cache-Swap Controls That Would Tell Them Apart

Abstract

Life of Research

Long-horizon language-model agents keep their memory bounded by compaction: past turns are deleted, sometimes replaced by a summary, and the agent carries on. There are two ways to carry on. A re-prefill pipeline rebuilds the cache from the text that survived, so the agent's state is exactly what it can read. A streaming pipeline keeps the cached keys and values of the surviving tokens, which were computed while the deleted turns were still visible, so the state also holds a residue of what was deleted. A September 2026 study makes streaming cheap to train with reinforcement learning, and reports, against an earlier summary-masking method that used supervised fine-tuning first, that reinforcement learning alone is enough for the streamed cache to act as a recurrent state. In this analysis the author reviews and synthesises published results to show that this sentence joins four claims of unequal standing. Presence, that the retained keys and values encode deleted content, is architectural: the earlier method's own toy-model probes find it unchanged across training, and it holds for any eviction that does not recompute. Use, that the policy's outputs depend on that residue, is what training adds, and the streaming study's controlled recall task shows reinforcement learning can add it when a reward scores recall directly and chance success is 20 percent; its supervised arm recalls perfectly from 16 decoded tokens, while its reinforcement-learning arm varies by tens of points across seeds at 16, 32 and 256 tokens. Channel, that the information travels in the residue rather than in visible tokens, is established only for the supervised arm, whose decoded sequence is fixed; the reinforcement-learning arm samples its own sequence, which could carry a code. Benefit, that the residue raises task return, is not shown for agents: matched streaming and re-prefill training runs differ in both directions across strategies, under confounds that prevent crediting the residue, while a 15.3-point loss from removing the residue was measured on a model trained with it. The paper consolidates the measured values in a table and a figure, sets out a ledger of where deleted information can survive, and specifies an attribution procedure with re-prefill, sequence-swap and cache-swap controls that would separate the four claims.

Pranay Mahendrakar, AI specialist

About the author

Pranay Mahendrakar is an ai specialist and large language model engineer based in Bengaluru, India. He builds production artificial intelligence systems and publishes open-access research on how those systems fail. See all 177 papers by Pranay Mahendrakar, or his ORCID record.

Questions about this paper

Who wrote "A Residue Is Not a Recurrence"?

Pranay Mahendrakar wrote "A Residue Is Not a Recurrence: What 'Reinforcement Learning Alone' Shows About Information Carried in a Streamed KV Cache After Context Compaction, Why Presence, Use, Channel and Benefit Are Separate Claims, and the Re-Prefill and Cache-Swap Controls That Would Tell Them Apart", published 26 Nov 2026. Pranay Mahendrakar is an Indian AI specialist and LLM engineer based in Bengaluru, India. He is the Managing Director of SonyTech, Nodal Coordinator at IIRS-ISRO, and an instructor at Tutorials Point. His work covers large language models, natural language processing, computer vision and retrieval-augmented generation. He publishes open-access research papers and is the author of three books: Just AI With Pranay, Multiverse of AI and It's Me LLM.

Is "A Residue Is Not a Recurrence" free to read?

Yes. "A Residue Is Not a Recurrence" by Pranay Mahendrakar is open access under a Creative Commons Attribution 4.0 licence, with the full PDF available from Zenodo at https://doi.org/10.5281/zenodo.24565011. There is no paywall and no account required.

How do I cite "A Residue Is Not a Recurrence"?

Cite the DOI: Mahendrakar, P. (2026). A Residue Is Not a Recurrence: What 'Reinforcement Learning Alone' Shows About Information Carried in a Streamed KV Cache After Context Compaction, Why Presence, Use, Channel and Benefit Are Separate Claims, and the Re-Prefill and Cache-Swap Controls That Would Tell Them Apart. Zenodo. https://doi.org/10.5281/zenodo.24565011 A BibTeX entry is provided on this page.

Related research by Pranay Mahendrakar

← All papers by Pranay Mahendrakar