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

HERMES: KV缓存作为分层内存用于高效视频流理解

HERMES: KV Cache as Hierarchical Memory for Efficient Streaming Video Understanding

Fudan University(复旦大学);Shanghai Innovation Institute(上海创新研究院);National University of Singapore(新加坡国立大学)

Haowei Zhang, Shudong Yang, Jinlan Fu, See-Kiong Ng, Xipeng Qiu

AI总结:

HERMES提出一种无需训练的架构,通过将KV缓存视为分层内存框架,实现视频流的实时准确理解,提升处理速度并降低内存消耗。

摘要:

近年来,多模态大语言模型(MLLMs)在离线视频理解方面取得了显著进展。然而,将这些能力扩展到流式视频输入仍具挑战性,因为现有模型难以同时保持稳定的理解性能、实时响应和低GPU内存开销。为解决这一挑战,我们提出了HERMES,一种新的无需训练的架构,用于实时和准确的视频流理解。基于机理注意力研究,我们将KV缓存概念化为一个分层内存框架,该框架在多个粒度层面封装视频信息。在推理过程中,HERMES重用紧凑的KV缓存,从而在资源受限条件下实现高效的流式理解。值得注意的是,HERMES在用户查询到达时不需要额外计算,从而保证了连续视频流交互的实时响应,其TTFT速度比现有最佳方法快10倍。即使与均匀采样相比,视频令牌减少多达68%,HERMES在所有基准测试中均实现了优越或可比的准确性,最高在流式数据集上提高了11.4%。

英文摘要:

Recent advancements in Multimodal Large Language Models (MLLMs) have demonstrated significant improvement in offline video understanding. However, extending these capabilities to streaming video inputs, remains challenging, as existing models struggle to simultaneously maintain stable understanding performance, real-time responses, and low GPU memory overhead. To address this challenge, we propose HERMES, a novel training-free architecture for real-time and accurate understanding of video streams. Based on a mechanistic attention investigation, we conceptualize KV cache as a hierarchical memory framework that encapsulates video information across multiple granularities. During inference, HERMES reuses a compact KV cache, enabling efficient streaming understanding under resource constraints. Notably, HERMES requires no auxiliary computations upon the arrival of user queries, thereby guaranteeing real-time responses for continuous video stream interactions, which achieves 10$\times$ faster TTFT compared to prior SOTA. Even when reducing video tokens by up to 68% compared with uniform sampling, HERMES achieves superior or comparable accuracy across all benchmarks, with up to 11.4% gains on streaming datasets.

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

↑