跳到正文
arXiv (AI + Vision + Imaging)· Vinayshekhar Bannihatti Kumar, Manoj Ghuhan Arivazhagan, Disha Makhija, Rashmi Gangadharaiah·· 2 天前精选AI 评分55

arXiv论文研究prompt KV cache在哪些层可被替换

Probing the Prompt KV Cache: Where It Becomes Dispensable

AI 导读

arXiv 论文研究 prompt KV cache 的冗余形式,发现用空用户内容或填充 token 的聊天模板 KV 替换上层 prompt span 后,准确率接近无损,而将整个 prompt KV 置零则准确率崩塌。

推荐理由

论文用受控替换实验定位 prompt KV cache 冗余的层级与形式,并给出服务端内存与吞吐收益,可供推理部署参考。

正文 · 原文

arXiv:2605.30574v2 Announce Type: replace Abstract: Prior KV cache compression schemes empirically demonstrate that the prompt cache can be dropped or summarised during decoding with little accuracy loss, indicating that it is partly redundant. We ask when and what kind of redundancy, i.e., at which layers, after how many decoding steps, and in what form can the prompt span KV cache be replaced without breaking the task. A controlled splice intervention swept over layers and decoding steps shows this redundancy is about form rather than content. Replacing the upper layer prompt span KV cache with KV cache from a chat template scaffold with empty user content or filler tokens recovers near clean accuracy, while zeroing the entire prompt KV collapses accuracy. The dissociation replicates across the Qwen3, Gemma 3, and Llama 3 model families of varying sizes on multiple datasets. A serving implementation of this technique reduces KV memory by $15.4\%$, supports $18\%$ more HBM-constrained concurrent requests, and improves throughput by $13$-$21\%$.

来源:arXiv (AI + Vision + Imaging) · arxiv.org