跳到正文
arXiv (AI + Vision + Imaging)· Ziyi Wang, Xiyue Zhang, Bing Hu, Guangmin Song, Chenyi Zhang, Li Wang·· 6 天前AI 评分38

ShelfKV:面向多轮推理VLM的按需视觉KV缓存方法

Keep the Reasoning, Read the Image: On-Demand Visual KV for Multi-Turn Reasoning VLMs

AI 导读

研究发现推理VLM的KV缓存剪枝策略会让图像与推理共享预算,多轮对话中推理内容挤占视觉条目,导致图表问题准确率从损失8分扩大到24分。为此提出免训练的ShelfKV,将全部视觉条目保留在CPU内存,每步解码时把当前查询得分最高的视觉条目换入得分最低的文本条目注意力槽位。

正文 · 原文

arXiv:2611.23769v1 Announce Type: new Abstract: Reasoning vision-language models (VLMs) think for thousands of tokens before they answer, and retention policies keep the KV cache affordable by pruning it as the reasoning grows. We find that this pruning sacrifices the image in multi-turn conversations: the image and the reasoning share one budget, so the growing reasoning crowds the visual entries out. A chart question that loses 8 points to the full cache when asked first loses 24 points when asked after a round of reasoning. Protecting a small visual reserve from eviction recovers most of this loss, while adding the same slots to the shared budget recovers considerably less. The image therefore lacks protection, not capacity. Based on this finding, we propose ShelfKV, a training-free method that works on top of existing retention policies. It keeps every visual entry in CPU memory and, at each decoding step, swaps the visual entries that the current query scores highest into the attention slots of the text entries it scores lowest. The image is never evicted, yet it occupies attention slots only while it is read. We evaluate ShelfKV on four benchmarks, three of them conversational, with two retention policies and two reasoning VLMs. In conversations, it improves the strongest existing policy, DBTrimKV, by up to 20.3 points at matched GPU memory, and still leads by 8.7 points when DBTrimKV uses twice the memory. It also consistently outperforms a fixed visual reserve of matched GPU memory in these settings, without hurting accuracy on standalone questions. These results show that the image should be protected from the reasoning but read only on demand.

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