浅流:先浅索引后深回答,用于流式视频理解
研究论文 · 2026/09/07
流式视频理解对于具身智能、自动驾驶、工业监控等实际应用至关重要,但多模态大模型处理连续视频流的计算成本高昂。现有方法多关注视觉token剪枝、量化等,忽略了模型深度维度。为此,本文提出ShallowStream框架,利用MLLM的浅层同时进行帧编码和检索索引构建,在流处理时维护轻量索引,查询时通过浅层注意力分数和多样性感知策略选择证据帧。实验表明,ShallowStream在性能与现有最强方法相当的同时,将每帧预填充延迟和10秒端到端延迟分别降低高达52.1倍和11.9倍。
该文提出了一种新颖的流式视频理解框架ShallowStream,通过利用模型浅层构建索引,大幅降低计算延迟,同时保持高性能,对实际应用具有重要价值。
Streaming video understanding is a critical capability for real-world applications, including embodied intelligence, autonomous driving, industrial monitoring, surveillance and early warning, and wearable assistants. However, processing continuous video streams with multimodal large language models (MLLMs) is computationally expensive. Existing efforts have explored reducing streaming overhead through visual token pruning, token merging, quantization, on-demand frame retrieval, and context offloading. However, most existing methods overlook the dimension of model depth. Repeatedly executing full-depth MLLM prefill over incoming frames is prohibitively expensive, incurring substantial computational overhead and causing the KV cache to grow at a rate directly proportional to the prefill depth. To address these challenges, we propose ShallowStream, a novel framework that leverages the shallow layers of an MLLM to simultaneously perform frame encoding and retrieval index building. During stream processing, ShallowStream maintains an always-on lightweight index using the KV cache of shallow layers. During query-time answering, we leverage the attention scores generated by the shallow layers to score context frames and employ a diversity-aware selection strategy to retrieve precise and comprehensive evidence. ShallowStream achieves performance on par with the strongest existing streaming methods, while reducing per-frame prefill latency and 10-second end-to-end latency by up to 52.1x and 11.9x, respectively. Our code is available at https://github.com/CURRENTF/ShallowStream.