跳到正文
arXiv (Robotics + Hardware + Signal)· Feng Cheng, Cong Guo, Junyao Zhang, Haoxuan Shan, Chiyue Wei, Hong Wang, Hai Li, Yiran Chen·· 1 天前精选AI 评分58

Gossamer:面向推理大模型的恒定预算 KV Cache 压缩架构

Gossamer: A Utility-Driven Architecture for Constant-Budget KV Cache Compression in Reasoning LLMs

AI 导读

作者提出 Gossamer,一种面向推理大模型的 KV cache 压缩架构,在恒定 KV cache 预算下按效用动态选择量化、合并或淘汰操作。该架构将余弦相似度估计融合进注意力计算,利用空闲算力完成相似度评估,作者称这一机制为 Free-Lunch Utilization,不带来延迟或带宽开销。

推荐理由

论文把 KV cache 压缩从纯算法层面推进到算法、系统与硬件协同设计,其利用空闲算力完成相似度评估的思路对推理芯片设计有参考价值。

正文 · 原文

arXiv:2611.29497v1 Announce Type: new Abstract: Transformer-based large language models (LLMs) are increasingly applied to complex reasoning tasks, yet their inference efficiency is fundamentally constrained by the rapid growth of the KV cache. As reasoning contexts extend to hundreds of thousands of tokens, the key-value (KV) cache becomes the dominant contributor to both memory footprint and bandwidth demand, tightly coupling computation with memory utilization and thereby limiting scalability. Existing compression methods, such as quantization and eviction, alleviate capacity pressure but remain purely algorithmic, often introducing additional passes and compute overhead that reduce system efficiency. This paper presents Gossamer, a KV cache compression architecture for reasoning LLMs that bridges the algorithm--system--hardware gap. Gossamer introduces a unified utility-based action framework that dynamically selects compression operations, quantization, merging, or eviction, under a constant KV cache budget. Through cross-domain co-design, we fuse cosine-similarity estimation directly into the attention computation, exploiting idle compute cycles to perform similarity evaluation without latency or bandwidth cost. We call this mechanism Free-Lunch Utilization. This enables real-time, fine-grained KV management with near-constant memory usage and negligible overhead. Under tight memory constraints, Gossamer sustains reasoning quality comparable to uncompressed inference while improving end-to-end throughput by up to 16.7$\times$ over uncompressed baselines, 5.5$\times$ and 4.9$\times$ over the quantization-based Oaken and Ecco, and 1.8$\times$ over the eviction-based R-KV.

来源:arXiv (Robotics + Hardware + Signal) · arxiv.org