arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.23769cs.CV
收藏

保留推理,读取图像:面向多轮推理视觉语言模型的按需视觉键值缓存(KV)

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

Zhejiang University(浙江大学);Zhejiang Sci-Tech University(浙江理工大学);University of Canterbury(坎特伯雷大学);Wenzhou Business College(温州商学院)

Ziyi Wang, Xiyue Zhang, Bing Hu, Guangmin Song, Chenyi Zhang, Li Wang

AI总结:

该研究针对多轮推理VLMs中视觉KV缓存被推理挤占的问题,提出无需训练的ShelfKV方法,按需交换视觉条目,在对话场景中显著提升性能且不影响独立问题准确性。

摘要:

推理型视觉语言模型(VLMs)在回答前会处理数千个token,而保留策略会在推理过程中修剪键值(KV)缓存以控制其成本。我们发现这种修剪在多轮对话中会损害图像:图像与推理共享预算,不断增长的推理会将视觉条目挤出缓存。图表问题在首次提问时相比完整缓存损失8个点,在一轮推理后提问则损失24个点。为视觉条目设置小的保留位可恢复大部分损失,而在共享预算中添加相同槽位的恢复效果则差得多。因此,图像缺乏的是保护而非容量。基于这一发现,我们提出ShelfKV,一种无需训练的方法,可在现有保留策略之上运行。它将所有视觉条目保留在CPU内存中,在每个解码步骤,将当前查询评分最高的视觉条目交换到文本条目评分最低的注意力槽位。图像永远不会被逐出,仅在被读取时占用注意力槽位。我们在四个基准上评估ShelfKV,其中三个为对话式基准,使用两种保留策略和两种推理型VLMs。在对话场景中,它在匹配GPU内存时将最强的现有策略DBTrimKV提升了最多20.3个点,即使DBTrimKV使用两倍内存,仍领先8.7个点。在这些设置中,它还始终优于匹配GPU内存的固定视觉保留策略,且不会损害独立问题的准确性。这些结果表明,图像应免受推理的影响,但仅在需要时读取。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑