AutoCache: Agentic Search for LLM Prefix Cache Compression
Chi-Chih Chang, Chien-Yu Lin, Yahya Emara, Ziang Song, Zihao Lin, Xilai Dai, Xuan Kelvin Zou, Kai-Chiang Wu, Carole-Jean Wu, Yang Song, Qifan Wang, Ziheng Jiang, Mohamed S. Abdelfattah
Abstract
Storing and reusing computed states allows LLM serving systems to avoid redundant prefill computation for shared prefixes, reducing time to first token. As context lengths and the number of reusable prefixes grow, however, limited cache capacity forces evictions and expensive recomputation, making storage efficiency critical. This challenge is further complicated by modern hybrid architectures that maintain recurrent and sliding-window states in addition to KV caches, requiring compression strategies that account for model architecture, workload characteristics, and reconstruction cost. We present AutoCache, an agent-driven framework that automatically discovers compression and reconstruction programs for prefix caches. Given a model, dataset, and accuracy target, AutoCache explores a large combinatorial space of compression techniques to compose effective cache-compression recipes, refine existing methods, and discover data- and model-architecture-specific compression opportunities. On the RULER benchmark with 32K context, AutoCache achieves 291.1x KV-cache compression on Qwen3.5-9B, compared with 16.0x for the strongest evaluated baseline. It does so by composing factorization, quantization, entropy coding, and protection of high-saliency cache entries in ways that would be difficult to design manually. More importantly, AutoCache can seamlessly extend compression beyond KV caches to recurrent states in hybrid models. By discovering and exploiting a previously unexploited low-rank structure in these recurrent states, AutoCache achieves 222.6x compression of the total cache memory footprint. These results demonstrate the potential of automatically discovering compression algorithms that are tailored to the model architecture and workload, therefore enabling substantially more storage-efficient prefix caching for LLM serving.
Create a lesson
Related papers
Knowing Where Is Not Enough: Evaluating Multimodal Evidence Acquisition in Search Agents
Shared title terminologycs.AIJohn Lau, Ziheng Tan, Chenyu Lu et al.
Weights2Fix: Training-free maintenance of infrastructure segmentation networks by an LLM agent that edits their weights
Shared title terminologycs.AIAisha Ajmal, Elyas Asadi Shamsabadi, Luming Shen et al.
GAPMem: Boundary-First Graph-Constrained Preference Memory Formation for Personalized LLM Agents
Shared title terminologycs.AITao Yu, Deliang Wen, Ke Sun et al.
PandaProbe: Agents That Learn from Mistakes by Revising Their Own Rules
Shared title terminologycs.AISina Tayebati
SHARK: A Sequential Head for Agentic Roadmaps over Evolving ToolKits
Shared title terminologycs.AIShuquan Man, Huiping Zhuang
GameStation: Benchmarking Multimodal Agents on Long-Horizon Modern Games
Shared title terminologycs.AIXiaoran Shang, Zhenyu Wu, Zonglin Li et al.