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

VideoScan:通过帧级语义载体实现高效流式视频理解

VideoScan: Enabling Efficient Streaming Video Understanding via Frame-level Semantic Carriers

TeleAI(电信人工智能实验室);China Telecom(中国电信);ShanghaiTech University(上海科技大学);Xidian University(西安电子科技大学)

Ruanjun Li, Yuedong Tan, Yuanming Shi, Jiawei Shao

AI总结:

本文提出 VideoScan 框架,以每帧一个语义载体 token 和两阶段推理压缩视觉表示,使 LLaVA-Video 在保持性能与约18GB稳定显存的同时获得最高约5倍加速。

摘要:

本文介绍 VideoScan,这是一个为实时视频交互设计的高效视觉-语言模型(VLM)推理框架,能够有效理解并保留流式视频输入,同时提供快速、准确的响应。视频理解中的一个长期挑战——尤其是在长期或实时应用中——源于视觉 token 长度过大所造成的巨大计算开销。为解决这一问题,VideoScan 使用单个语义载体 token 表示每一帧,在预填充和解码这一两阶段推理过程中逐步降低计算和内存开销。语义载体 token 的嵌入来自对帧级视觉特征的优化聚合,确保表示紧凑且语义丰富。关键在于,相应的键值对经过训练,可保留来自先前帧的上下文语义,从而在不牺牲时间一致性的情况下实现高效内存管理。推理期间,每一帧的视觉 token 仅在预填充阶段处理一次,随后在解码阶段被丢弃,从而消除冗余计算。该设计即使在严格的实时约束下也能保证高效的 VLM 推理。在多种离线和在线基准上的综合实验表明,由本方法支持的 LLaVA-Video 与其原始版本和以往高效流式视频理解方法相比,分别实现最高约 5 倍和 1.29 倍的加速。关键的是,在获得这些提升的同时,模型仍保持有竞争力的性能,并确保稳定的 GPU 显存消耗(始终约为 18GB,与视频时长无关)。

英文摘要:

This paper introduces VideoScan, an efficient vision-language model (VLM) inference framework designed for real-time video interaction that effectively comprehends and retains streamed video inputs while delivering rapid and accurate responses. A longstanding challenge in video understanding--particularly for long-term or real-time applications--stems from the substantial computational overhead caused by the extensive length of visual tokens. To address this, VideoScan employs a single semantic carrier token to represent each frame, progressively reducing computational and memory overhead during its two-phase inference process: prefilling and decoding. The embedding of the semantic carrier token is derived from an optimized aggregation of frame-level visual features, ensuring compact yet semantically rich representations. Critically, the corresponding key-value pairs are trained to retain contextual semantics from prior frames, enabling efficient memory management without sacrificing temporal coherence. During inference, the visual tokens of each frame are processed only once during the prefilling phase and subsequently discarded in the decoding stage, eliminating redundant computations. This design ensures efficient VLM inference even under stringent real-time constraints. Comprehensive experiments on diverse offline and online benchmarks demonstrate that LLaVA-Video, supported by our method, achieves up to $\sim 5\times$ and $1.29\times$ speedups compared to its original version and previous efficient streaming video understanding approaches, respectively. Crucially, these improvements are attained while maintaining competitive performance and ensuring stable GPU memory consumption (consistently $\sim 18$GB, independent of video duration).

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

↑