arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.09608cs.CVcs.AIcs.CL
收藏

StreamingVLM:无限视频流的实时理解

StreamingVLM: Real-Time Understanding for Infinite Video Streams

MIT(麻省理工学院);NVIDIA(英伟达)

Ruyi Xu, Guangxuan Xiao, Yukang Chen, Liuning He, Yao Lu, Song Han

AI总结:

提出StreamingVLM,通过统一训练与流推理的框架,利用注意力汇点状态复用和滑动窗口机制实现无限视频流的实时稳定理解,在Inf-Streams-Eval基准上以8 FPS速度达到66.18%胜率,并提升通用VQA能力。

摘要:

视觉语言模型(VLM)可以为实时助手和自主代理提供动力,但它们面临一个关键挑战:理解近乎无限的视频流而不增加延迟和内存使用。对整个视频进行全注意力处理会导致二次计算成本和在长视频上性能不佳。同时,简单的滑动窗口方法也存在缺陷,它们要么破坏连贯性,要么由于冗余重计算而遭受高延迟。在本文中,我们介绍了StreamingVLM,一种专为实时、稳定理解无限视觉输入而设计的模型。我们的方法是一个统一框架,将训练与流推理对齐。在推理过程中,我们通过重用注意力汇点状态、最近视觉令牌的短窗口和最近文本令牌的长窗口来维护一个紧凑的KV缓存。这种流式能力通过一个简单的监督微调(SFT)策略灌输,该策略在短的重叠视频块上应用全注意力,有效地模拟了推理时的注意力模式,而无需在过长的上下文中进行训练。为了评估,我们构建了Inf-Streams-Eval,一个新的基准,包含平均超过两小时的视频,需要帧与文本之间的密集、每秒对齐。在Inf-Streams-Eval上,StreamingVLM对GPT-4O mini实现了66.18%的胜率,并在单个NVIDIA H100上以高达8 FPS的速度保持稳定、实时的性能。值得注意的是,我们的SFT策略还增强了通用的VQA能力,无需任何VQA特定的微调,在LongVideoBench上提高了+4.30,在OVOBench Realtime上提高了+5.96。代码可在https://github.com/mit-han-lab/streaming-vlm获取。

英文摘要:

Vision-language models (VLMs) could power real-time assistants and autonomous agents, but they face a critical challenge: understanding near-infinite video streams without escalating latency and memory usage. Processing entire videos with full attention leads to quadratic computational costs and poor performance on long videos. Meanwhile, simple sliding window methods are also flawed, as they either break coherence or suffer from high latency due to redundant recomputation. In this paper, we introduce StreamingVLM, a model designed for real-time, stable understanding of infinite visual input. Our approach is a unified framework that aligns training with streaming inference. During inference, we maintain a compact KV cache by reusing states of attention sinks, a short window of recent vision tokens, and a long window of recent text tokens. This streaming ability is instilled via a simple supervised fine-tuning (SFT) strategy that applies full attention on short, overlapped video chunks, which effectively mimics the inference-time attention pattern without training on prohibitively long contexts. For evaluation, we build Inf-Streams-Eval, a new benchmark with videos averaging over two hours that requires dense, per-second alignment between frames and text. On Inf-Streams-Eval, StreamingVLM achieves a 66.18% win rate against GPT-4O mini and maintains stable, real-time performance at up to 8 FPS on a single NVIDIA H100. Notably, our SFT strategy also enhances general VQA abilities without any VQA-specific fine-tuning, improving performance on LongVideoBench by +4.30 and OVOBench Realtime by +5.96. Code is available at https://github.com/mit-han-lab/streaming-vlm.

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

↑