Request Order Matters: Cache-History Sensitivity in Selective KV-Cache Reuse for Rolling Agents

Tiffany Gu, Annie Guan, Manshu Huang, Nitin Rao, Siddhant Shah +1 more
10/5/2026
cs.AIcs.LGcs.PF

No confident code implementation found for this paper.

Abstract

Long-running agents repeatedly call an LLM while retaining most of their document window, evicting old documents, and appending new ones. These rolling updates break exact prefix caching and motivate non-prefix KV-cache reuse with selective recomputation.

Show full abstract

We show that persistent KV-cache reuse with selective recomputation can be history-dependent: in our rolling-agent workload, an unchanged prompt can produce different answers depending on the requests processed before it. At a matched 5% recomputation budget, document-aligned recomputation reduces answer variation across request orders from 69.0% with CacheBlend's token top-$k$ policy to 26.1%. When each prompt is evaluated after a different sequence of preceding requests, document-aligned recomputation improves fidelity to full prefill by 34.5-52.5 percentage points over token top-$k$, while both policies achieve approximately 5.7$\times$ median TTFT speedup. Our ablation study shows that, in our rolling-agent workload, contiguity is the main factor associated with robust selective recomputation.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{gu2026request,
  title  = {Request Order Matters: Cache-History Sensitivity in Selective KV-Cache Reuse for Rolling Agents},
  author = {Tiffany Gu and Annie Guan and Manshu Huang and Nitin Rao and Siddhant Shah and Margaret Capetz},
  year   = {2026},
  eprint = {2610.05833},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.05833v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.05833.svg)](https://codeofpaper.com/paper/2610.05833)

Discussion