AutoCache 用智能体自动搜索前缀缓存压缩方案,Qwen3.5-9B 上实现 291.1x KV 缓存压缩
AutoCache: Agentic Search for LLM Prefix Cache Compression
推理服务存前缀缓存的可以看看,它用智能体在压缩技术空间里自动搜索配方,在 Qwen3.5-9B 的 32K 上下文上做到 291.1x 压缩,比最强基线的 16.0x 高出一个量级,还能压混合架构的循环状态。做 serving 优化的工程团队值得试。
arXiv 论文提出 AutoCache,一个智能体驱动的框架,可根据给定模型、数据集和精度目标,自动探索压缩技术组合,生成前缀缓存压缩与重建程序。在 RULER 基准、32K 上下文、Qwen3.5-9B 模型上,AutoCache 达到 291.1x 的 KV 缓存压缩率,而最强基线仅 16.0x。
其技术机制是将因子分解、量化、熵编码以及对高显著性缓存条目的保护组合成压缩配方,这类组合方案难以靠人工设计得到。同时,AutoCache 能把压缩范围从 KV 缓存扩展到混合架构中的循环状态,通过发现并利用这些循环状态中此前未被利用的低秩结构,实现总缓存内存占用 222.6x 的压缩。
随着上下文长度增长和可复用前缀增多,缓存容量受限导致的驱逐与重计算成本成为 LLM 推理服务的关键瓶颈。AutoCache 表明自动搜索针对特定模型架构和工作负载的压缩算法是可行路线,对优化 TTFT 和推理成本的部署方有直接参考价值。
AutoCache: Agentic Search for LLM Prefix Cache Compression
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.
This report is categorized under AITOP's "Papers" desk, focusing on China's AI industry and domestic foundation model ecosystem. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include AutoCache, Qwen3.5-9B, RULER, KV cache compression.
Source attribution: curated from 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). Cross-source corroboration: 4 independent sources have covered this development (including elvis, rohanpaul_ai, 歸藏(guizang.ai)), confirming industry-wide signal strength.