arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2505.16175cs.CVcs.AI
收藏

QuickVideo:基于系统算法协同设计的实时长视频理解

QuickVideo: Real-Time Long Video Understanding with System Algorithm Co-Design

University of Waterloo(滑铁卢大学)

Benjamin Schneider, Dongfu Jiang, Chao Du, Tianyu Pang, Wenhu Chen

AI总结:

提出系统算法协同设计QuickVideo,通过并行解码、KV-cache修剪预填充及CPU-GPU重叠执行,解决VideoLLMs长视频解码与预填充瓶颈,大幅降低推理延迟与内存,实现实时高质量长视频理解。

摘要:

长视频理解已成为现实世界应用中的关键能力,例如视频监控、会议总结、教育讲座分析和体育转播。然而,对于VideoLLMs而言,它在计算上仍然具有极高的 prohibitive 成本,主要由于两个瓶颈:1)顺序视频解码,即将原始比特流转换为RGB帧的过程,对于小时级的长视频输入可能需要长达一分钟;2)LLM推理中多达数百万token的昂贵预填充,导致高延迟和高内存使用。为了应对这些挑战,我们提出了QuickVideo,这是一种系统-算法协同设计,能够大幅加速长视频理解,以支持实时的下游应用。它包含三项关键创新:QuickDecoder,一种基于CPU的并行视频解码器,通过将视频分割为关键帧对齐的区间进行并发处理,实现了2-3倍的加速;QuickPrefill,一种内存高效的预填充方法,利用KV-cache修剪以更少的GPU内存支持更多帧;以及一种重叠方案,将CPU视频解码与GPU推理重叠执行。这些组件共同将长视频输入的推理时间减少了一分钟,即使在有限的硬件上也能实现可扩展、高质量的视频理解。实验表明,QuickVideo在不同时长和采样率下均具有良好的泛化能力,使长视频处理在实践中变得可行。

英文摘要:

Long-video understanding has emerged as a crucial capability in real-world applications such as video surveillance, meeting summarization, educational lecture analysis, and sports broadcasting. However, it remains computationally prohibitive for VideoLLMs, primarily due to two bottlenecks: 1) sequential video decoding, the process of converting the raw bit stream to RGB frames can take up to a minute for hour-long video inputs, and 2) costly prefilling of up to several million tokens for LLM inference, resulting in high latency and memory use. To address these challenges, we propose QuickVideo, a system-algorithm co-design that substantially accelerates long-video understanding to support real-time downstream applications. It comprises three key innovations: QuickDecoder, a parallelized CPU-based video decoder that achieves 2-3 times speedup by splitting videos into keyframe-aligned intervals processed concurrently; QuickPrefill, a memory-efficient prefilling method using KV-cache pruning to support more frames with less GPU memory; and an overlapping scheme that overlaps CPU video decoding with GPU inference. Together, these components infernece time reduce by a minute on long video inputs, enabling scalable, high-quality video understanding even on limited hardware. Experiments show that QuickVideo generalizes across durations and sampling rates, making long video processing feasible in practice.

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

↑