arXiv(opens in a new tab)cs.CVSep 2026Cited by 3 papers on PaperVantage

Manuscript Offprint

arXiv:2609.02780

ShallowStream: Index Shallow then Answer Deep for Streaming Video Understanding

Jitai Hao, Ke Yang, Qiang Huang, Jun Yu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

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 and 10s end-to-end latency by up to 52.1× and 11.9×, respectively.

Work in Progress

Correspondence: {huangqiang, yujun}@hit.edu.cn

Repository: https://github.com/CURRENTF/ShallowStream

1 Introduction

In recent years, multimodal large language models (MLLMs) have demonstrated strong capabilities across diverse visual tasks [2, 3, 9]. Building on this progress, streaming video understanding has become increasingly important because of its direct applications in embodied intelligence, autonomous driving, surveillance and early warning, AR glasses, sports commentary, fitness coaching, and other scenarios [4, 10, 21, 24]. In offline long-video understanding, the complete video and question are available before inference. In contrast, streaming video understanding requires a model to causally process an open-ended video stream without knowing future questions.

A streaming workload is asymmetric: video frames arrive continuously, whereas queries occur intermittently.

Figure

Figure 1 Continuous-stream efficiency. Per-frame prefill and end-to-end latency with one query every 10s. Latency are normalized to ShallowStream. Performance is the full OVO-Bench average.

During query-agnostic stream processing, the model continuously encodes incoming content and maintains historical context before future questions are known. During query-time answering, it identifies and retrieves relevant evidence to address an arriving question. Consequently, incoming frames constitute the dominant, steady-state workload while queries remain sparse, making per-frame prefill a first-order system cost. As illustrated in Figure 1, representative existing methods incur substantial per-frame prefill overhead, which directly translates into severe end-to-end latency.

In summary, previous work on video streaming faced three challenges:

  • Expensive Stream Processing (Stream Processing). Many KV-centric methods prefill every video frame through the full Transformer stack before future questions are known [10, 19, 47]. Subsequent cache reduction lowers retained context and GPU memory. But the computation is already spent and constructs deep KV cache that may never be attended.

  • Lossy Evidence Reduction (Stream Processing). Reducing the memory footprint of expanding historical KV caches through query-agnostic compression, merging, or eviction risks discarding critical evidence required by future retrospective queries [8, 19, 22, 47]. Conversely, retaining full video states prevents information loss but leads to prohibitive memory consumption and often relies on bandwidth-limited offloading [10, 18].

  • Inefficient History Use (Query-Time Answering). Always appending history to context can increase latency and interfere with current-scene perception [31], while on-demand methods may require slow answer-level inference before deciding whether to activate historical evidence [23, 54].

We observe that, in streaming video understanding, leveraging only the model's shallow layers as a retriever is already sufficient to identify question-relevant historical evidence. As shown in Figure 2, Qwen3-VL-8B [2] and LLaVA-OneVision-7B [20] already exhibit strong retrieval capabilities at layer 4 and layer 3 out of 28 and 32 total layers, respectively.

Building on this observation, we propose ShallowStream, a novel architecture that decouples lightweight query-agnostic stream processing from selective query-time answering. On OVO-Bench, ShallowStream matches the performance of the strongest existing streaming methods [10, 23, 27, 53] while drastically reducing computational overhead. As shown in Figure 1, on long videos, it reduces per-frame prefill and 10-s end-to-end latency by up to 52.1× and 11.9×, respectively. Together, these results establish a highly favorable efficiency-performance operating point for continuous video streams. Specifically, ShallowStream systematically addresses these challenges through a two-stage design:

  • Shallow Encoding: During continuous stream processing, ShallowStream processes incoming video units through only the shallow layers of the language Transformer, drastically cutting steady-state computational

overhead by bypassing unnecessary deep-layer prefill.

  • Full-History Visual Indexing: It constructs a lightweight visual index from shallow-layer KVs, retaining access to historical evidence without maintaining full-depth states for the entire stream; optional long-cluster compression stabilizes memory over long histories.

  • Selective Query-Time Answering: Upon receiving a query, a lightweight query-logit gate assesses retrieval necessity without expensive reasoning passes, triggering full-depth processing exclusively on the retrieved historical evidence and recent context.

In this way, ShallowStream decouples query-agnostic stream processing from query-time answering, effectively deferring expensive deep computations until an incoming question identifies the historical evidence that requires full-depth processing. Consequently, it achieves a favorable operating point that maintains minimal stream-time prefill overhead while preserving access to past visual evidence for retrospective reasoning.

References (54)

  • Streamready: Learning what to answer and when in long streaming videos
  • Qwen3-vl technical report
  • Qwen2.5-vl technical report
  • Videollm-online: Online video large language model for streaming video
  • Live: Learning video llm with streaming speech transcription at scale
  • Scaling the long video understanding of multimodal large language models via visual memory mechanism
  • Streamingtom: Streaming token compression for efficient video understanding
  • Streamkv: Streaming video question-answering with segment-based kv cache retrieval and compression
  • Intern vl: Scaling up vision foundation models and aligning for generic visual-linguistic tasks
  • Streaming video question-answering with in-context video kv-cache retrieval
  • Streammind: Unlocking full frame rate streaming video dialogue through event-gated cognition
  • Vispeak: Visual instruction feedback in streaming videos
  • What should a streaming video model remember? ArXiv, abs/2606.16353, 2026
  • A token is worth over 1,000 tokens: Efficient knowledge distillation through low-rank clone
  • Uni-x: Mitigating modality conflict with a two-end-separated architecture for unified multimodal models
  • Omnikv: Dynamic context selection for efficient long-context llms
  • Deltakv: Residual-based kv cache compression via long-range similarity
  • V-rex: Real-time streaming video llm acceleration via dynamic kv cache retrieval
  • Infinipot-v: Memory-constrained kv cache compression for streaming video understanding
  • Llava-onevision: Easy visual task transfer
  • Ovo-bench: How far is your video-llms from real-world online video understanding? 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 18902–18913, 2025
  • Scbench: A kv cache-centric analysis of long-context methods
  • Oasis: On-demand hierarchical event memory for streaming video reasoning
  • Streamingbench: Assessing the gap for mllms to achieve streaming video understanding
  • Vista: Scene-aware optimization for streaming video question answering under post-hoc queries
  • Locating and editing factual associations in gpt
  • Livevlm: Efficient online video understanding via streaming-oriented kv cache and retrieval
  • Streaming long video understanding with large language models
  • Dispider: Enabling video llms with active real-time interaction via disentangled perception, decision, and reaction
  • Longvideo-r1: Smart navigation for low-cost long video understanding
  • A simple baseline for streaming video understanding
  • Towards a dynamic and fixed-budget memory bank for efficient streaming video understanding
  • Siglip 2: Multilingual vision-language encoders with improved semantic understanding, localization, and dense features
  • Streambridge: Turning your offline video large language model into a proactive streaming assistant
  • Lvbench: An extreme long video understanding benchmark
  • Accelerating streaming video large language models via hierarchical token compression
  • Videollamb: Long streaming video understanding with recurrent memory bridges
  • Videotree: Adaptive tree-based video representation for llm reasoning on long videos
  • Eventmemagent: Hierarchical event-centric memory for online video understanding with adaptive tool use
  • Semantic-aware adaptive visual memory for streaming video understanding
  • Streaming video instruction tuning
  • Mukv: Multi-grained kv cache compression for long streaming video question-answering
  • Streamrag: Enhancing real-time video understanding with retrieval augmentation
  • Early exiting bert for efficient document ranking
  • Rtv-bench: Benchmarking mllm continuous perception, understanding and reasoning through real-time video
  • Learning streaming video representation via multitask training
  • Streammem: Query-agnostic kv cache memory for streaming video understanding
  • Svbench: A benchmark with temporal multi-turn dialogues for streaming video understanding
  • Timechat-online: 80% visual tokens are naturally redundant in streaming videos
  • Worldmm: Dynamic multimodal memory agent for long video reasoning
  • Streamforest: Efficient online video understanding with persistent event memory
  • Flash-vstream: Efficient real-time understanding for long video streams
  • Hermes: Kv cache as hierarchical memory for efficient streaming video understanding
  • Weavetime: Stream from earlier frames into emergent memory in videollms