LiveVLM让视频大模型实时处理长视频,不卡顿也不占内存。
LiveVLM: Efficient Online Video Understanding via Streaming-Oriented KV Cache and Retrieval

- 用视觉分桶机制动态压缩视频记忆,保留关键信息
- 在不训练的情况下实现比现有方法更高的准确率
- 适合需要实时交互的场景,如自动驾驶、机器人
视频大语言模型(Video LLMs)已能处理长达一小时的视频并表现优异。然而,其键值缓存(KV cache)随时间线性增长,导致显著内存开销和响应延迟,这对深度求索等在线服务、自动驾驶和机器人等实际应用构成挑战。为此,我们提出无需训练、与查询无关的LiveVLM框架,专为在线视频理解与实时交互设计。LiveVLM采用视觉分桶(VSB)机制,以视觉-视觉注意力分数为依据,实现实时视频流处理,保留长期细节并消除冗余键值。考虑到无查询依赖的压缩会保留无关内容,进一步引入位置无关的键值检索(PaR)机制,通过解耦位置嵌入增强键张量相似性,实现页面级高效检索。大量实验表明,LiveVLM使基础模型LLaVA-OneVision在无需训练的查询无关方法中达到顶尖准确率,并超越部分有训练的在线模型。
原文摘要 · Abstract (English)
Recent developments in Video Large Language Models (Video LLMs) have enabled models to process hour-long videos and exhibit exceptional performance. Nonetheless, the Key-Value (KV) cache expands linearly over time, leading to substantial memory overhead and response delay--critical challenges in various real-world online applications, such as Deepseek services, autonomous driving and robotics. To mitigate these issues, we propose $\textbf{LiveVLM}$, a training-free and query-agnostic framework specifically designed for online video understanding and real-time interaction. LiveVLM employs a Vision Sink Bucketing (VSB) mechanism to process video streams in real time, retain long-term video details and eliminate redundant KVs. This mechanism utilizes vision-to-vision attention scores as the metric and seeks to maximize the coverage of contextual information during compression. Noting that KV cache compressed in a query-agnostic manner inevitably retains irrelevant information for specific queries, LiveVLM incorporates a Position-agnostic KV Retrieval (PaR) mechanism to reduce interference from redundant context. The keypoint of PaR lies in decoupling positional embeddings to enhance the similarity between key tensors, thereby supporting efficient retrieval at the granularity of pages. Extensive experiments demonstrate that LiveVLM enables the foundation LLaVA-OneVision model to achieve state-of-the-art accuracy among both training-free query-agnostic methods and training-based online models.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。