Practical Online KV Cache Compaction for LLM Agents: An Empirical Study
YLYujian LiuJJJiabao JiLALi An
Rohit JainGungor PolatkanSZSiyu Zhu
Shiyu Chang YLYujian Liu
JJJiabao Ji
LALi An

Rohit Jain
Gungor Polatkan
SZSiyu Zhu

Shiyu Chang
+7
This paper studies online KV cache compaction for LLM agents, where future queries are unknown at compaction time. It compares token eviction (TE) and attention matching (AM) using cheap proxy queries like boundary, repeat-prefill, and delayed future-generation. Experiments on BrowseComp-Plus and WideSearch show that immediate compaction degrades performance, while delaying compaction with the agent's actual future queries recovers most of the gap. TE is more robust than AM under imperfect proxies and, across models, preserves most accuracy while reducing KV cache by 80% and improving throughput, positioning proxy-query selection as a core design choice.

arXiv ·
· August 2, 2026