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.
本条情报归属 AITOP「论文」核心栏目,重点聚焦中国 AI 产业与国产大模型生态。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:AutoCache、Qwen3.5-9B、RULER、KV缓存压缩,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。
信源核验说明:本文原始线索采编自「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),经 AITOP 多维评分管线结构化提炼。截至目前,全网已有 4 家独立信源对该事件进行交叉印证与跟进报道(含 elvis、rohanpaul_ai、歸藏(guizang.ai) 等),属于近期高关注度行业信号。