arXiv cs.AI· 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·· 3 天前AI 评分41
AutoCache:面向 LLM 前缀缓存压缩的智能体搜索框架
AutoCache: Agentic Search for LLM Prefix Cache Compression
AI 导读
AutoCache 是一个由智能体驱动的框架,可自动为 LLM 前缀缓存发现压缩与重建方案。在 RULER benchmark 32K 上下文下,AutoCache 在 Qwen3.5-9B 上实现 291.1x KV-cache 压缩,而最强基线仅 16.0x。它还能将压缩扩展到混合模型的 recurrent states,通过对低秩结构的利用实现总缓存内存 222.6x 压缩。
正文 · 原文
Authors: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.
| Subjects: | Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2612.03651 [cs.AI] |
| (or arXiv:2612.03651v1 [cs.AI] for this version) | |
| https://doi.org/10.48550/arXiv.2612.03651 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Chi-Chih Chang [view email]
[v1]
Wed, 2 Dec 2026 11:32:12 UTC (585 KB)
来源:arXiv cs.AI · arxiv.org