KeyRec:面向流式与长视频理解的有界视觉记忆

·

研究论文 · 2026/10/06

视觉语言模型越来越多地用于理解长视频和连续流。然而,密集的视觉标记随视频时长累积,使得长上下文推理成本过高。现有的免训练视觉标记选择方法通过保留信息性标记来降低这一成本,但可能丢失连贯的事件证据,并且无法区分详细的近期观察与长程历史。我们提出 KeyRec,一种用于构建有界视觉记忆的免训练框架。在与查询无关的写入过程中,KeyRec 将细粒度的近期观察保存在视觉缓存中,并将历史证据组织为结构化的事件库。候选事件根据其相对于先前存储事件的新颖性被提出,并通过在线添加-合并-淘汰更新进行维护。当问题到来时,仅文本路由器在近期记忆和事件记忆之间自适应地分配固定的读取预算,而无需重新处理历史帧。KeyRec 作用于面向模型的视觉嵌入,并支持模块化编码器-投影器 VLM 以及无编码器和投影器的 NEO-ov 架构。在四个流式和长视频基准以及三个 VLM 主干上,KeyRec 仅使用 10% 的密集解码器面向视觉标记预算,在 15 个设置中的 13 个中实现了最佳压缩性能。在实时问题上,它比最强的压缩基线高出 2.21–18.37 分,在六个长视频设置中的五个中实现了最佳压缩结果,并在每个 NEO-ov 2B 设置中表现最佳。

该工作显著降低了长视频和流式理解中视觉语言模型的计算成本,同时保持甚至提升了性能,为高效长上下文推理提供了免训练且通用的解决方案。

Vision-language models are increasingly used to understand long videos and continuous streams. However, dense visual tokens accumulate with video duration, making long-context inference prohibitively expensive. Existing training-free visual-token selection methods reduce this cost by retaining informative tokens, but may lose coherent event evidence and fail to distinguish detailed recent observations from long-range history. We propose KeyRec, a training-free framework for constructing bounded visual memory. During query-agnostic writing, KeyRec preserves fine-grained recent observations in a visual cache and organizes historical evidence into a structured event bank. Candidate events are proposed according to their novelty relative to previously stored events and maintained through an online add--merge--evict update. When a question arrives, a text-only router adaptively allocates a fixed readout budget between recent and event memory, without reprocessing historical frames. KeyRec operates on model-facing visual embeddings and supports both modular encoder--projector VLMs and the encoder- and projector-free NEO-ov architecture. Across four streaming and long-video benchmarks and three VLM backbones, KeyRec achieves the best compressed performance in 13 of 15 settings using only 10\% of the dense decoder-facing visual-token budget. It outperforms the strongest compressed baseline by 2.21--18.37 points on real-time questions, achieves the best compressed result in five of six long-video settings, and performs best in every NEO-ov 2B setting.

阅读原文

参与讨论