Manuscript Offprint
arXiv:2609.02780ShallowStream: Index Shallow then Answer Deep for Streaming Video Understanding
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 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.
Query-Agnostic Stream Processing. Before future questions are known, existing methods build historical representations through recurrent memory, KV-cache management, or compact visual representations. VideoStreaming [28] propagates memory across clips, while VideoLLaMB [37] connects them through recurrent memory bridges. KV-centric methods construct layer-wise states for admitted visual content: ReKV [10] stores complete video KVs in RAM or on disk, StreamKV [8] applies segment-wise adaptive compression, and StreamMem [47], InfiniPot-V [19], and HERMES [53] bound cache size using proxy-query attention, temporal redundancy and Value Norm, or hierarchical recency and attention cues, respectively. Beyond KV management, TimeChat-Online [49] and StreamingTOM [7] reduce visual tokens before full MLMM prefill, whereas Vista [25] indexes compact scene summaries while storing high-resolution frames in CPU memory. At this stage, ShallowStream reduces memory pressure by retaining history in a lightweight shallow index, with optional compression for long streams.
Query-Time Answering. At query time, methods either reuse stored memory or retrieve query-relevant evidence. StreamMem [47], InfiniPot-V [19], and HERMES [53] directly reuse compressed KVs, whereas ReKV [10], StreamKV [8], LiveVLM [27], and V-Rex [18] retrieve historical states. StreamingTOM [7] fetches token groups from quantized memory, while Vista [25] recalls indexed scenes with their high-resolution content. However, using history for every question can impair current-scene perception despite benefiting retrospective queries, as shown by SimpleStream [31]. OASIS [23] and WeaveTime [54] instead trigger retrieval only when current evidence is insufficient or uncertainty is high, but require an answer-level inference for routing and a second inference when retrieval is activated. In contrast, ShallowStream uses a lightweight gating mechanism and only then performs full-depth prefill over the selected historical evidence or recent context, avoiding a costly MLMM reasoning process for routing decisions.
3 Observations
Background and Notation. In streaming video understanding tasks, the video arrives causally as a sequence of video units , where denotes the -th unit. Each unit contains 2 sampled frames for Qwen3-VL and 1 for LLaVA-OneVision. At any query time , the system can only access the observed prefix ; it can neither observe future video nor know in advance the question that the user will ask at that


Figure 2 Layer-wise retrieval capability and stream-time prefill cost on LVBench. The left and right plots show results for Qwen3-VL-8B and LLaVA-OneVision-7B, respectively. We vary only the layer used for video-question matching. Latency is measured per video unit.
moment. For simplicity, in the following, when there is no ambiguity, we denote as and the answer generated by the model as .
We build on a pretrained MLLM as the base model. This model consists of a vision encoder and a language Transformer with layers. The vision encoder maps each video unit to a set of visual tokens, whose visual-token index set is denoted by ; layer maps input hidden states to and produces key/value states and . We define the pruning boundary as the index of the first deep layer. Accordingly, layers form the shallow MLLM, layers form the deep MLLM, and their union forms the full MLLM.
Observation: Shallow Layers Are Sufficient for Retrieval. We empirically find that in streaming video understanding, shallow MLLM representations provide sufficient capability to select question-relevant video units from a long history. This phenomenon is also consistent with prior findings that representations from shallow and middle layers may contain richer semantic information [16, 26, 44]. To isolate this retrieval capability from downstream answer generation, we conduct an experiment on LVBench [35] under our attention-sink stream-time prefill configuration [10]. Specifically, we rank historical video units using representations from varying candidate layers, and then apply the full-depth model exclusively to the highest-scoring units to generate the answer (see Appendix A.3 for a dense full-history control).
As illustrated in Figure 2, retrieval capability emerges in shallow layers, whereas streaming computational costs increase continuously with depth. Motivated by this observation, ShallowStream utilizes only shallow MLLM layers for continuous video encoding and evidence indexing, deferring the expensive full-depth computation until a question arrives and applying it strictly to the retrieved evidence.
4 ShallowStream
We propose ShallowStream, which separates query-agnostic stream processing from query-time answering. The high-frequency streaming stage performs only shallow MLLM prefill and maintains a lightweight full-history visual index. At the low-frequency query stage, a query-logit gate determines whether historical evidence is needed, the shallow index identifies which units are relevant, and full-depth prefill is allocated only to the selected video units. Figure 3 illustrates this end-to-end pipeline. Section 4.1 presents query-agnostic shallow index construction, including shallow per-unit prefill, full-history cache maintenance, and unit-level visual indexing. Section 4.2 presents query-logit routing, shallow evidence retrieval, and selective full-depth answer generation.

Figure 3 Overview of ShallowStream. Incoming video units are processed only by the shallow MLLM layers to build a lightweight visual memory. At query time, a query-logit gate determines whether historical retrieval is needed; when activated, shallow-layer attention scoring, cross-layer frame voting, and max-min diversity selection identify the evidence frame to retrieve. The selected history and recent context are then processed by the full-depth MLLM for answer generation. Under a constrained memory budget, the optional long-cluster module compresses older units into fixed-size representatives.
4.1 Query-Agnostic Shallow Index Construction
Streaming Shallow Prefill. In streaming video scenarios, we need to process each video unit sequentially to answer incoming queries in real time. Each arriving video unit is encoded as and processed only by the shallow layers to produce KVs for retrieval. In the detailed memory, we retain together with these shallow states so that a selected unit can later enter the language Transformer from layer 0 without storing any full-depth KV. Under the optional long-cluster mode, older per-unit states are replaced by the fixed-size representatives defined below.
Here, is the causal streaming KV cache accessible to layer . By skipping the deep layers , ShallowStream reduces per-unit model computation from layers to layers.
Full-History Shallow Cache. To help queries access distant history, ShallowStream retains the KVs of all observed units at each shallow layer:
Here, and concatenate the KVs of at layer . For each detailed unit , we store its visual encoding, shallow-layer KV cache, and timestamp as . These KVs allow the query to attend to the video history throughout layers [0, P). We retain the visual-token keys at every shallow layer for evidence retrieval.
Unit-Level Diversity Descriptor. We obtain a fixed-length unit descriptor by averaging the raw keys from the last shallow layer over and applying normalization:
where flattens all key heads and . This compact descriptor supports memory management and diversity-aware selection, while the unpooled shallow keys preserve fine-grained retrieval signals.
Historical and Recent Evidence Set. We partition the streaming memory by query-time role: the latest units form the recent context , while the rest form the historical context :
Both pools retain KVs at all shallow layers. The recent context is always included for current-scene awareness, whereas historical units are selected only for queries requiring retrospective evidence.
Optional Context Compression. When exceeds the retained-history budget , an optional module compresses older history into long-term clusters while preserving and near-term history in detail:
Long-term clusters are built incrementally over temporally adjacent units. A unit leaving the detailed window joins the latest cluster when its descriptor is sufficiently similar to the centroid ; otherwise it starts a new cluster. For a cluster of size , assignment and centroid update are
Each cluster maintains fixed-size representative shallow KVs updated via running average:
In addition, each cluster maintains an input-level visual representative (e.g., retaining the source unit closest to centroid or averaged visual embeddings). After this update, the cluster replaces its members' per-unit shallow states in the detailed archive. A query scores the cluster centroid and, if selected, consumes the single representative rather than resolving the cluster back to all of its members. Archive storage is fixed-size per cluster, and host-to-device movement is one representative per selected cluster, independent of its member count. This approximation is disabled when the uncompressed fits in memory.
4.2 Query-Time Answering
Full-History Shallow Query Prefill. At query time, we append q to the cached video history and process it through the shallow layers, attending at each layer to the exact per-unit KVs in detailed memory and, when enabled, the representative KVs of long-term clusters:
where denotes the retained layer-i KV cache corresponding to (or under compression in Equation 5) and denotes the raw query states. The uncompressed mode provides exact full-history shallow attention, while long-cluster mode covers the full timeline through detailed recent units and compressed historical representatives.
Query-Logit Retrieval Gate. Not every question benefits from searching the full video history: retrospective questions require earlier evidence, whereas current-scene questions can be answered from the recent context. ShallowStream distinguishes these cases directly from the query using the pretrained MLLM's output space. We place q in a fixed routing prompt with a small set of demonstrations and two single-token choices: A indicates that earlier video memory is required, and B indicates that the latest video segment is sufficient. A single text-only forward pass produces the corresponding next-token logits
We use their logit difference as a semantic retrieval score and compare it with a backbone-specific threshold :
For , the system uses only ; for , it retrieves from the retained detailed history and, when enabled, the long-term clusters. We select once on a benchmark-independent calibration set and freeze it for evaluation. The gate therefore reuses the pretrained model's semantic distinction between retrospective and current-scene questions without training a separate router or using benchmark labels; Appendix A.5 details the calibration protocol.
Evidence Retrieval. When the gate activates retrieval, we preserve token-level evidence instead of collapsing each detailed unit to a single similarity score. Let denote the candidate visual tokens in detailed historical memory; in uncompressed mode, . At each shallow layer , we reconstruct the scaled RoPE-aware Q-K attention from the last prompt token to these candidates and average it across attention heads. Denoting this token-level attention by , we retain
Each historical unit receives one vote for every selected token that belongs to it:
We rank units by , using their accumulated attention mass to break ties. To avoid spending the evidence budget on redundant moments, we retain the top 4K vote-ranked candidates. In the normalized descriptor space of Equation 3, max-min selection initializes with the most distant pair and repeatedly adds the candidate whose minimum cosine distance to the selected set is largest, until K units remain. Sparse retrieval hits may still omit the local temporal context needed to interpret the selected moments. We therefore expand each hit with its temporal neighbors before constructing the final evidence:
Here, DivTopK denotes vote-ranked, descriptor-based diversity selection, and Nbr(·) returns the retrieved units together with their temporal neighbors. With long-cluster compression, we additionally select
by scoring cluster centroids with the shallow query. Detailed units and cluster representatives are deduplicated and restored to temporal order. The gate decides whether history is needed, while token voting, diversity selection, and centroid retrieval decide which detailed moments or compressed intervals to use.
Selected-Unit Assembly. The shallow KVs support query contextualization and evidence selection, but are not continued as partial-depth generation states. For , we gather the retained input states of the selected original units. For , we gather one fixed-size input representative per selected cluster; no member-level recovery or full-history frame transfer is performed.
Selective Re-prefill and Generation. ShallowStream assembles only these selected input-level visual states with the question and executes all L language layers from the input, ensuring that generation uses consistent full-depth representations:
(15)
Only selected detailed units and cluster representatives receive full-depth computation. The host-to-device transfer is bounded by the selected evidence budget, and its cost is included in our end-to-end query measurements. Unselected detailed units and compressed intervals remain discoverable through the shallow index, avoiding both full-depth prefill of the entire stream and direct continuation from incomplete shallow states for generation.
5 Experiments
5.1 Experimental Setup
Datasets and Metrics. Following recent streaming-video studies [10, 53], we evaluate ShallowStream on OVO-Bench [21] and StreamingBench [24]. OVO-Bench explicitly separates Real-Time Visual Perception from Backward Tracing, allowing us to examine whether a method preserves current-scene understanding while retrieving earlier evidence when needed. StreamingBench provides a complementary assessment across broader continuous-video scenarios and tests whether this capability transfers beyond the retrospective-query setting. We additionally use LVBench [35] for analysis experiments on layer-wise retrieval capability and stream-time prefill cost.
Baselines. We select baselines that cover both strong streaming performance and mechanisms closely related to ShallowStream. Specialized online MLLMs include VideoLLM-online [4], Flash-VStream [52], Dispider [29], TimeChat-Online [49], StreamForest [51], and Streamo [41]. These methods provide competitive references built specifically for causal video processing. More directly comparable are training-free offline-to-online methods. ReKV [10], StreamKV [8], and LiveVLM [27] retrieve historical full-depth or compressed states; HERMES [53] organizes retained KVs as hierarchical memory; CausalMem [32] maintains a dynamic fixed-budget memory bank; and SimpleStream [31] provides a strong recent-window baseline. OASIS [23] and WeaveTime [54] instead activate historical retrieval on demand. Together, these baselines cover recent-only context, KV retention and retrieval, memory compression, fixed-budget memory, and conditional retrieval. We also report the original LLaVA-OneVision-7B [20] and Qwen3-VL-8B [2] backbones so that gains can be
Table 1 Main results on the OVO-Bench. Baseline results marked with ‡ are from our controlled reruns. Results marked with † enable long-cluster compression. Dashes indicate unreported entries.
| Model / Method | #Frames | Real-Time Visual Perception | Backward Tracing | Avg. | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| OCR | ACR | ATR | STU | FPD | OJR | Avg. | EPM | ASI | HLD | Avg. | |||
| Open-source Online MLLMs | |||||||||||||
| VideoLLM-online-8B [4] | 2 fps | 8.1 | 23.9 | 12.1 | 14.0 | 45.5 | 21.2 | 20.8 | 22.2 | 18.8 | 12.2 | 17.7 | 19.3 |
| Flash-VStream-7B [52] | 1 fps | 25.5 | 32.1 | 29.3 | 33.7 | 29.7 | 28.8 | 29.9 | 36.4 | 33.8 | 5.9 | 25.4 | 27.6 |
| Dispider-7B [29] | 1 fps | 57.7 | 49.5 | 62.1 | 44.9 | 61.4 | 51.6 | 54.6 | 48.5 | 55.4 | 4.3 | 36.1 | 45.3 |
| TimeChat-Online-7B [49] | 1 fps | 75.2 | 46.8 | 70.7 | 47.8 | 69.3 | 61.4 | 61.9 | 55.9 | 59.5 | 9.7 | 41.7 | 51.8 |
| StreamForest-7B [51] | 1 fps | 68.5 | 53.2 | 71.6 | 47.8 | 65.4 | 60.9 | 61.2 | 58.9 | 64.9 | 32.3 | 52.0 | 56.6 |
| Streamo-7B [41] | 1 fps | 79.2 | 57.8 | 75.0 | 49.4 | 64.4 | 70.1 | 66.0 | 54.6 | 52.0 | 31.7 | 46.1 | 56.1 |
| Offline-to-Online Methods | |||||||||||||
| LLaVA-OneVision-7B [20] | 32 | 66.4 | 53.2 | 71.6 | 51.1 | 72.3 | 59.2 | 62.3 | 53.9 | 52.7 | 18.8 | 41.8 | 52.1 |
| + ReKV [10] | 0.5 fps | 52.4 | 54.1 | 69.8 | 43.3 | 67.3 | 57.1 | 57.3 | 57.6 | 56.1 | 18.8 | 44.2 | 50.8 |
| + HERMES‡ [53] | 0.5 fps | 71.1 | 61.5 | 74.1 | 52.3 | 72.3 | 66.3 | 66.3 | 62.0 | 60.8 | 26.9 | 49.9 | 58.1 |
| + WeaveTime [54] | 1 fps | 72.5 | 69.7 | 74.1 | 53.4 | 75.2 | 67.9 | 68.8 | - | - | - | - | - |
| + CausalMem [32] | 0.5 fps | 71.8 | 61.5 | 76.7 | 48.9 | 76.2 | 66.8 | 65.7 | - | - | - | - | - |
| + SimpleStream‡ [31] | 4 | 77.2 | 71.6 | 75.9 | 52.3 | 77.2 | 71.7 | 71.0 | 53.2 | 52.0 | 43.6 | 49.6 | 60.3 |
| + ShallowStream (Ours) | 1 fps | 87.3 | 73.4 | 77.6 | 62.9 | 74.3 | 77.2 | 75.4 | 50.2 | 50.7 | 46.2 | 49.0 | 62.2 |
| + ShallowStream (Ours)† | 1 fps | 87.3 | 73.4 | 77.6 | 63.5 | 74.3 | 77.2 | 75.5 | 50.5 | 50.7 | 46.2 | 49.1 | 62.3 |
| Qwen3-VL-8B [2] | 64 | 76.5 | 58.7 | 75.0 | 59.0 | 68.3 | 59.2 | 66.1 | 53.2 | 66.9 | 9.7 | 43.3 | 54.7 |
| + HERMES‡ [53] | 2 fps | 85.2 | 64.2 | 73.3 | 55.6 | 70.3 | 65.8 | 69.1 | 50.5 | 65.5 | 19.9 | 45.3 | 57.2 |
| + OASIS [23] | - | 92.0 | 80.7 | 81.0 | 67.4 | 67.3 | 79.9 | 78.1 | 62.0 | 60.1 | 47.3 | 57.2 | 67.7 |
| + SimpleStream‡ [31] | 4 | 92.0 | 81.7 | 81.9 | 69.7 | 75.3 | 81.0 | 80.2 | 53.2 | 60.1 | 44.1 | 52.5 | 66.4 |
| + ShallowStream (Ours) | 1 fps | 92.0 | 83.5 | 82.8 | 71.9 | 75.3 | 79.9 | 80.9 | 52.5 | 72.3 | 49.5 | 58.1 | 69.5 |
| + ShallowStream (Ours)† | 1 fps | 92.0 | 83.5 | 82.8 | 71.9 | 76.2 | 79.9 | 81.0 | 51.2 | 71.0 | 50.0 | 57.4 | 69.2 |
interpreted within each model family.
Implementation Details. We evaluate ShallowStream with Qwen3-VL-8B-Instruct [2] and LLaVA-OneVision-7B [20], implemented in PyTorch with Hugging Face Transformers and FlashAttention-2. Both backbones are sampled at 1 FPS on both benchmarks. All Gate and retrieval settings are frozen for evaluation. Appendix A.2 summarizes the complete configuration, with Gate calibration detailed in Appendix A.5.
5.2 Overall Performance
Main result. ShallowStream matches the strongest streaming methods without task-specific training while providing a favorable accuracy-efficiency operating point across MLLM backbones. Tables 1 and 2 evaluate this capability across retrospective evidence tracing and broad real-time visual understanding. With Qwen3-VL-8B, ShallowStream reaches 69.5 on OVO-Bench and 78.2 on StreamingBench, while its LLaVA-OneVision-7B variant achieves 62.2 and 75.5, respectively.
5.3 Efficiency
Performance-efficiency. ShallowStream achieves performance on par with current state-of-the-art streaming methods at substantially lower continuous-stream cost. As shown in Figure 1, it reduces per-frame prefill and 10-s end-to-end latency by up to 52.1× and 11.9×, respectively.
All efficiency measurements use a single NVIDIA RTX 5090 with Qwen3-VL-8B under an aligned protocol on five long OVO-Bench Backward videos sampled at 1 FPS. For every method, timing begins after video-frame decoding, and generation is fixed to 16 visible answer tokens. We separately measure stream-time prefill
Table 2 Main results on the Real-Time Visual Understanding subset of StreamingBench. Baseline results marked with ‡ are from our controlled reruns. Results marked with † enable long-cluster compression. Dashes indicate unreported results.
| Model / Method | #Frames | Real-Time Visual Understanding | Avg. | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| OP | CR | CS | ATP | EU | TR | PR | SU | ACP | CT | |||
| Open-source Online MLLMs | ||||||||||||
| Flash-VStream-7B [52] | - | 25.9 | 43.6 | 24.9 | 23.9 | 27.3 | 13.1 | 18.5 | 25.2 | 23.9 | 48.7 | 23.2 |
| VideoLLM-online-8B [4] | 2 fps | 39.1 | 40.1 | 34.5 | 31.1 | 46.0 | 32.4 | 31.5 | 34.2 | 42.5 | 27.9 | 36.0 |
| Dispider-7B [29] | 1 fps | 74.9 | 75.5 | 74.1 | 73.1 | 74.4 | 59.9 | 76.1 | 62.9 | 62.2 | 45.8 | 67.6 |
| TimeChat-Online-7B [49] | 1 fps | 80.2 | 82.0 | 79.5 | 83.3 | 76.1 | 78.5 | 78.7 | 64.6 | 69.6 | 58.0 | 75.4 |
| StreamForest-7B [51] | 1 fps | 83.1 | 82.8 | 82.7 | 84.3 | 77.5 | 78.2 | 76.9 | 69.1 | 75.6 | 54.4 | 77.3 |
| Offline-to-Online Methods | ||||||||||||
| LLaVA-OneVision-7B [20] | 32 | 77.7 | 76.6 | 77.6 | 81.9 | 71.7 | 71.7 | 66.7 | 65.5 | 65.7 | 44.0 | 71.0 |
| + ReKV [10, 53] | 0.5 fps | 74.4 | 78.9 | 78.6 | 77.1 | 68.3 | 67.9 | 67.6 | 62.6 | 64.3 | 44.6 | 69.2 |
| + HERMES‡ [53] | 0.5 fps | 78.2 | 79.7 | 86.8 | 81.5 | 69.2 | 73.2 | 75.0 | 64.2 | 68.6 | 45.6 | 73.2 |
| + StreamKV [8] | 1 fps | 74.7 | 78.1 | 87.7 | 79.4 | 70.8 | 67.6 | 70.4 | 64.6 | 64.0 | 45.1 | 71.0 |
| + WeaveTime [54] | 1 fps | 71.5 | 81.3 | 86.8 | 78.6 | 75.2 | 73.2 | 72.2 | 69.1 | 68.8 | 44.7 | 72.1 |
| + SimpleStream‡ [31] | 4 | 80.4 | 71.9 | 85.2 | 85.5 | 76.1 | 73.8 | 69.4 | 65.5 | 71.1 | 37.3 | 73.5 |
| + LiveVLM [27] | 0.5 fps | 79.8 | 79.7 | 84.9 | 80.7 | 67.1 | 70.1 | 74.1 | 66.3 | 68.0 | 42.5 | 71.3 |
| + CausalMem [32] | 0.5 fps | 82.6 | 79.7 | 83.2 | 83.2 | 69.6 | 78.4 | 75.0 | 67.3 | 70.9 | 39.4 | 74.3 |
| + ShallowStream (Ours) | 1 fps | 82.8 | 67.2 | 83.9 | 90.8 | 71.7 | 81.9 | 64.8 | 70.7 | 74.8 | 35.2 | 75.5 |
| + ShallowStream (Ours)† | 1 fps | 82.8 | 67.2 | 83.9 | 90.8 | 72.3 | 81.9 | 64.8 | 70.7 | 74.8 | 35.2 | 75.6 |
| Qwen3-VL-8B [2] | 64 | 80.4 | 75.0 | 83.0 | 83.5 | 74.2 | 84.4 | 77.8 | 63.8 | 69.7 | 57.0 | 75.9 |
| + SimpleStream‡ [31] | 4 | 79.3 | 72.7 | 89.9 | 84.8 | 73.6 | 79.1 | 83.3 | 71.1 | 76.8 | 39.4 | 76.5 |
| + HERMES‡ [53] | 2 fps | 79.0 | 77.3 | 81.4 | 84.2 | 73.6 | 77.9 | 87.0 | 70.7 | 72.5 | 61.1 | 76.6 |
| + ShallowStream (Ours) | 1 fps | 79.3 | 71.9 | 89.9 | 85.8 | 77.4 | 79.1 | 88.9 | 71.5 | 77.3 | 52.9 | 78.2 |
| + ShallowStream (Ours)† | 1 fps | 79.3 | 71.9 | 90.2 | 85.5 | 77.4 | 79.1 | 88.9 | 71.5 | 77.3 | 49.7 | 78.0 |
per frame and the computation required to answer one query. ShallowStream keeps its shallow archive in host memory; the reported stream and query timings include archive updates, selected-state transfer, context assembly, and generation. The memory study reports peak GPU allocation rather than combined CPU-GPU capacity.
Memory scaling. By compactly retaining earlier evidence, long-cluster compression prevents the full shallow history from driving accelerator memory growth. The left panel of Figure 4 compares the final ShallowStream method with compression enabled and disabled; the latter retains the complete layer-0–4 shallow K/V history. Across the 64–1,024-frame range, compression keeps peak GPU memory nearly flat at about 18 GiB, while the uncompressed variant grows to 21.76 GiB and HERMES and OASIS require more GPU memory at long prefixes.
Real-time headroom. Whether enabling long-cluster compression (LC-on) or retaining the complete shallow history (LC-off), ShallowStream remains well below the real-time boundary. On five long videos containing 588–1,198 sampled frames without a frame cap, the right panel of Figure 4 combines query computation and continuous prefill to evaluate total compute demand at different query intervals. At an 80-s interval, both matched variants require about 2.6 s of compute, compared with 6.2 s for HERMES and 50.4 s for OASIS. Appendix A.6 further verifies that LC-off remains responsive as the retained history grows.


Figure 4 Continuous-stream memory and compute demand. Left: Peak GPU memory over lengths from 64 to 1,024 frames, averaged over five videos. Both variants use the final calibrated Gate and token-vote retriever. Right: For a query interval , each curve combines mean query computation over the same five long-video cases with stream-time prefill accumulated over seconds at 1 FPS. The dashed boundary separates configurations that finish within the query interval (below) from those whose compute exceeds it (above).
5.4 Analysis
We analyze the two decisions underlying ShallowStream: when historical evidence should be retrieved and which evidence should be selected. The main text studies Gate routing, token-vote ranking, diversity, and qualitative retrieval behavior. Complementary analyses examine attention context and retrieval depth in Appendix A.3, pruning-boundary accuracy and cost in Appendix A.4, benchmark-independent Gate calibration in Appendix A.5, and query-time scaling with retained history in Appendix A.6. Together, they show that the observation-motivated boundary achieves the strongest accuracy at low stream-processing cost, while both routing and full-history shallow retrieval remain efficient as the stream grows.


Figure 5 Gate ablation on OVO-Bench. Left: overall quality versus retrieval rate under controlled routing alternatives with fixed branch outputs. Right: the final Gate's retrieval allocation by benchmark section.

Figure 6 Retriever ablation on OVO-Bench queries selected by the calibrated Gate. Rankers are compared with diversity and temporal expansion disabled; diversity is compared with preceding-unit expansion.
Calibrated Gate Distinguishes Historical Needs. Always-recent routing can miss necessary historical evidence, whereas indiscriminate retrieval exposes the MLLM to distracting video noise. Figure 5 shows that the calibrated Gate avoids both failure modes by activating historical retrieval primarily for retrospective questions while preserving recent context for current-scene questions. Its markedly different routing behavior on Backward and Real-Time queries confirms that retrieval follows historical need rather than being applied indiscriminately. Together with the retriever results in Figure 6, these findings show that ShallowStream

Figure 7 Qualitative retrieval case study on OVO-Bench EPM. For the question "Where is the red and white checkered rug?" (ground-truth answer: E), each row shows the eight historical units selected by pooled shallow Q-K, pooled shallow Q-K with max-min diversity, and the final token-vote retriever with max-min diversity. Only the final retriever selects complementary evidence that supports the correct answer.
both identifies when history is needed and retrieves the relevant evidence effectively. The complete routing prompt and benchmark-independent calibration protocol are provided in Appendix A.5.
Token Voting Strengthens Shallow Evidence Retrieval. Our token-vote retriever provides the strongest evidence-selection signal among the compared rankers, and max-min diversity further improves it by discouraging redundant selections. Figure 6 shows that token voting from the last prompt token outperforms pooled shallow Q-K and the independent SigLIP encoder [33] when diversity and temporal expansion are disabled, demonstrating the value of query-contextualized token signals. With token voting and preceding-unit expansion fixed, max-min diversity provides a further gain by allocating the limited evidence budget across less redundant moments.
Token Voting and Diversity Select Complementary Evidence. Figure 7 visualizes how query-contextualized token voting changes the retrieved evidence. Pooled shallow Q-K repeatedly favors similar kitchen views and predicts B. Max-min diversity broadens its temporal coverage, but the selection remains anchored by the same pooled relevance signal and produces the same answer. The final retriever combines token-level relevance with diversity, covering complementary views across the room and correctly answering E. This example makes the two roles explicit: token voting identifies query-specific evidence, while max-min selection avoids spending the limited retrieval budget on redundant moments.
6 Conclusions
We presented ShallowStream, which decouples lightweight query-agnostic stream processing from selective query-time answering. It processes incoming video only through shallow MLLM layers and activates full-depth computation only for query-relevant evidence selected by a query-logit gate and diversity-aware token voting. Across two MLLM backbones, ShallowStream achieves performance on par with current state-of-the-art streaming methods while substantially reducing computation, latency, and GPU-memory growth, establishing an efficient operating point for continuous video understanding.
AI Use Statement
Generative AI tools were used to generate the benchmark-independent synthetic questions and routing labels used for Gate calibration, and to polish the manuscript. The authors reviewed the generated calibration data for consistency with the retrospective-versus-recent routing definition and reviewed all AI-assisted text. The authors take full responsibility for the final content of this work.
Ethics Statement
This work develops a computational method for streaming video understanding and evaluates it using existing pretrained models and public benchmarks. It does not involve human-subject research, the collection of personal or sensitive data, or deployment in safety-critical settings. We identify no specific ethical concerns arising from the proposed method.
Reproducibility Statement
Implementation details, model and benchmark configurations, calibration procedures, and evaluation protocols are documented in the main paper and appendix. The source code and experiment configurations are available at https://github.com/CURRENTF/ShallowStream. Together, these materials specify the data processing, inference settings, and measurements needed to reproduce the reported results.
References
[1] Shehreen Azad, Vibhav Vineet, and Yogesh Singh Rawat. Streamready: Learning what to answer and when in long streaming videos. ArXiv, abs/2603.08620, 2026. URL https://api.semanticscholar.org/CorpusID:286377314.
[2] Shuai Bai, Yuxuan Cai, Ruizhe Chen, Ke qin Chen, Xiong-Hui Chen, Zesen Cheng, Lianghao Deng, Wei Ding, Rongyao Fang, Chang Gao, Chunjiang Ge, Wenbin Ge, Zhifang Guo, Qidong Huang, Qidong Huang, Fei Huang, Binyuan Hui, Shutong Jiang, Zhaohai Li, Mingsheng Li, Mei Li, Kaixin Li, Zicheng Lin, Junyang Lin, Xuejing Liu, Jiawei Liu, Chenglong Liu, Yang Liu, Dayiheng Liu, Shixuan Liu, Dunjie Lu, Ruilin Luo, Chenxu Lv, Rui Men, Li Ying Meng, Xuancheng Ren, Xin yi Ren, Sibo Song, Yu chen Sun, Jun Tang, Jianhong Tu, Jianqiang Wan, Peng Wang, Pengfei Wang, Qiuyue Wang, Yuxuan Wang, Tianbao Xie, Yihe Xu, Haiyang Xu, Jin Xu, Zhibo Yang, Mingkun Yang, Jianxin Yang, An Yang, Bowen Yu, Fei Zhang, Hang Zhang, Xi Zhang, Botao Zheng, Humen Zhong, Jingren Zhou, Fanxi Zhou, Jingren Zhou, Yuanzhi Zhu, and Keming Zhu. Qwen3-vl technical report. ArXiv, abs/2511.21631, 2025. URL https://api.semanticscholar.org/CorpusID:283262018.
[3] Shuai Bai, Ke qin Chen, Xuejing Liu, Jialin Wang, Wenbin Ge, Sibo Song, Kai Dang, Peng Wang, Shijie Wang, Jun Tang, Humen Zhong, Yuanzhi Zhu, Mingkun Yang, Zhaohai Li, Jianqiang Wan, Pengfei Wang, Wei Ding, Zheren Fu, Yiheng Xu, Jiabo Ye, Xi Zhang, Tianbao Xie, Zesen Cheng, Hang Zhang, Zhibo Yang, Haiyang Xu, and Junyang Lin. Qwen2.5-vl technical report. ArXiv, abs/2502.13923, 2025. URL https://api.semanticscholar.org/CorpusID:276449796.
[4] Joya Chen, Zhaoyang Lv, Shiwei Wu, Kevin Qinghong Lin, Chenan Song, Difei Gao, Jia-Wei Liu, Ziteng Gao, Dongxing Mao, and Mike Zheng Shou. Videollm-online: Online video large language model for streaming video. 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 18407–18418, 2024. URL https://api.semanticscholar.org/CorpusID:270560262.
[5] Joya Chen, Ziyun Zeng, Yiqi Lin, Yiqi Lin, Wei Li, Zejun Ma, and Mike Zheng Shou. Live: Learning video llm with streaming speech transcription at scale. 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 29083–29095, 2025. URL https://api.semanticscholar.org/CorpusID:277993668.
[6] Tao Chen, Kun Zhang, Qiong Wu, Xiao Chen, Chaokun Chang, Xiaoshuai Sun, Yiyi Zhou, and Rongrong Ji. Scaling the long video understanding of multimodal large language models via visual memory mechanism. ArXiv, abs/2603.29252, 2026. URL https://api.semanticscholar.org/CorpusID:286977474.
[7] Xueyi Chen, Keda Tao, Kele Shao, and Huan Wang. Streamingtom: Streaming token compression for efficient video understanding. ArXiv, abs/2510.18269, 2025. URL https://api.semanticscholar.org/CorpusID:282246334.
[8] Yilong Chen, Xiang Bai, Zhibin Wang, Chengyu Bai, Yuhan Dai, Ming Lu, and Shanghang Zhang. Streamkv: Streaming video question-answering with segment-based kv cache retrieval and compression. ArXiv, abs/2511.07278, 2025. URL https://api.semanticscholar.org/CorpusID:282913012.
[9] Zhe Chen, Jiannan Wu, Wenhai Wang, Weijie Su, Guo Chen, Sen Xing, Zhong Muyan, Qinglong Zhang, Xizhou Zhu, Lewei Lu, Bin Li, Ping Luo, Tong Lu, Yu Qiao, and Jifeng Dai. Intern vl: Scaling up vision foundation models and aligning for generic visual-linguistic tasks. 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 24185–24198, 2023. URL https://api.semanticscholar.org/CorpusID:266521410.
[10] Shangzhe Di, Zhelun Yu, Guanghao Zhang, Haoyuan Li, Tao Zhong, Hao Cheng, Bolin Li, Wanggui He, Fangxun Shu, and Hao Jiang. Streaming video question-answering with in-context video kv-cache retrieval. ArXiv, abs/2503.00540, 2025. URL https://api.semanticscholar.org/CorpusID:276741475.
[11] Xin Ding, Hao Wu, Yifan Yang, Shiqi Jiang, Donglin Bai, Zhibo Chen, and Ting Cao. Streammind: Unlocking full frame rate streaming video dialogue through event-gated cognition. 2025 IEEE/CVF International Conference on Computer Vision (ICCV), pages 13448–13459, 2025. URL https://api.semanticscholar.org/CorpusID:276903154.
[12] Shenghao Fu, Qize Yang, Yuan-Ming Li, Yi-Xing Peng, Kun-Yu Lin, Xihan Wei, Jianfang Hu, Xiaohua Xie, and Wei-Shi Zheng. Vispeak: Visual instruction feedback in streaming videos. 2025 IEEE/CVF International Conference on Computer Vision (ICCV), pages 21778–21788, 2025. URL https://api.semanticscholar.org/CorpusID:277066592.
[13] Haonan Ge, Yiwei Wang, Hang Wu, and Yujun Cai. What should a streaming video model remember? ArXiv, abs/2606.16353, 2026. URL https://api.semanticscholar.org/CorpusID:289299850.
[14] Jitai Hao, Qiang Huang, Hao Liu, Xinyan Xiao, Zhaochun Ren, and Jun Yu. A token is worth over 1,000 tokens: Efficient knowledge distillation through low-rank clone. ArXiv, abs/2505.12781, 2025. URL https://api.semanticscholar.org/CorpusID:278740403.
[15] Jitai Hao, Hao Liu, Xinyan Xiao, Qiang Huang, and Jun Yu. Uni-x: Mitigating modality conflict with a two-end-separated architecture for unified multimodal models. ArXiv, abs/2509.24365, 2025. URL https://api.semanticscholar.org/CorpusID:281674376.
[16] Jitai Hao, Yuke Zhu, Tianjian Wang, Jun Yu, Xin Xin, Bo Zheng, Zhaochun Ren, and Sheng Guo. Omnikv: Dynamic context selection for efficient long-context llms. In International Conference on Learning Representations, 2025. URL https://api.semanticscholar.org/CorpusID:278601790.
[17] Jitai Hao, Qiang Huang, Yaowei Wang, Min Zhang, and Jun Yu. Deltakv: Residual-based kv cache compression via long-range similarity. ArXiv, abs/2602.08005, 2026. URL https://api.semanticscholar.org/CorpusID:285454299.
[18] Donghyuk Kim, Sejeong Yang, Wonjin Shin, and Joo-Young Kim. V-rex: Real-time streaming video llm acceleration via dynamic kv cache retrieval. 2026 IEEE International Symposium on High Performance Computer Architecture (HPCA), pages 1–14, 2025. URL https://api.semanticscholar.org/CorpusID:283895999.
[19] Minsoo Kim, Kyuhong Shim, Jungwook Choi, and Simyung Chang. Infinipot-v: Memory-constrained kv cache compression for streaming video understanding. ArXiv, abs/2506.15745, 2025. URL https://api.semanticscholar.org/CorpusID:279465408.
[20] Bo Li, Yuanhan Zhang, Dong Guo, Renrui Zhang, Feng Li, Hao Zhang, Kaichen Zhang, Yanwei Li, Ziwei Liu, and Chunyuan Li. Llava-onevision: Easy visual task transfer. ArXiv, abs/2408.03326, 2024. URL https://api.semanticscholar.org/CorpusID:271719914.
[21] Yifei Li, Junbo Niu, Ziyang Miao, Chunjiang Ge, Yuanhang Zhou, Qi He, Xiao wen Dong, Haodong Duan, Shuangrui Ding, Rui Qian, Pan Zhang, Yuhang Zang, Yuhang Cao, Conghui He, and Jiaqi Wang. 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. URL https://api.semanticscholar.org/CorpusID:275458756.
[22] Yucheng Li, Huiqiang Jiang, Qianhui Wu, Xufang Luo, Surin Ahn, Chengruidong Zhang, Amir H. Abdi, Dongsheng Li, Jianfeng Gao, Yuqing Yang, and Lili Qiu. Scbench: A kv cache-centric analysis of long-context methods. ArXiv, abs/2412.10319, 2024. URL https://api.semanticscholar.org/CorpusID:274763141.
[23] Zhijia Liang, Jiaming Li, Weikai Chen, Yanhao Zhang, Haonan Lu, and Guanbin Li. Oasis: On-demand hierarchical event memory for streaming video reasoning. ArXiv, abs/2604.17052, 2026. URL https://api.semanticscholar.org/CorpusID:287635604.
[24] Junming Lin, Zheng Fang, Chi Chen, Zihao Wan, Fuwen Luo, Peng Li, Yang Liu, and Maosong Sun. Streamingbench: Assessing the gap for mllms to achieve streaming video understanding. ArXiv, abs/2411.03628, 2024. URL https://api.semanticscholar.org/CorpusID:273850338.
[25] Haocheng Lu, Nan Zhang, Wei Tao, Xiaoyang Qu, Guokuan Li, Jiguang Wan, and Jianzong Wang. Vista: Scene-aware optimization for streaming video question answering under post-hoc queries. ArXiv, abs/2602.08448, 2026. URL https://api.semanticscholar.org/CorpusID:285454172.
[26] Kevin Meng, David Bau, Alex Andonian, and Yonatan Belinkov. Locating and editing factual associations in gpt. Advances in Neural Information Processing Systems 35, 2022. URL https://api.semanticscholar.org/CorpusID:255825985.
[27] Zhenyu Ning, Guangda Liu, Qihao Jin, Wenchao Ding, Minyi Guo, and Jieru Zhao. Livevlm: Efficient online video understanding via streaming-oriented kv cache and retrieval. ArXiv, abs/2505.15269, 2025. URL https://api.semanticscholar.org/CorpusID:278783116.
[28] Rui Qian, Xiao wen Dong, Pan Zhang, Yuhang Zang, Shuangrui Ding, Dahua Lin, and Jiaqi Wang. Streaming long video understanding with large language models. ArXiv, abs/2405.16009, 2024. URL https://api.semanticscholar.org/CorpusID:270063250.
[29] Rui Qian, Shuangrui Ding, Xiao wen Dong, Pan Zhang, Yuhang Zang, Yuhang Cao, Dahua Lin, and Jiaqi Wang. Dispider: Enabling video llms with active real-time interaction via disentangled perception, decision, and reaction. 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 24045–24055, 2025. URL https://api.semanticscholar.org/CorpusID:275336693.
[30] Jihao Qiu, Lingxi Xie, Xinyue Huo, Qi Tian, and Qixiang Ye. Longvideo-r1: Smart navigation for low-cost long video understanding. ArXiv, abs/2602.20913, 2026. URL https://api.semanticscholar.org/CorpusID:286000722.
[31] Yujiao Shen, Shulin Tian, Jingkang Yang, and Ziwei Liu. A simple baseline for streaming video understanding. ArXiv, abs/2604.02317, 2026. URL https://api.semanticscholar.org/CorpusID:287073889.
[32] Baiyang Song, Yu-Lin Lin, Qiong Wu, Tao Chen, Jun Peng, Xiao Chen, Yiyi Zhou, and Rongrong Ji. Towards a dynamic and fixed-budget memory bank for efficient streaming video understanding. ArXiv, abs/2606.25658, 2026. URL https://api.semanticscholar.org/CorpusID:289630861.
[33] Michael Tschannen, Alexey Gritsenko, Xiao Wang, Muhammad Ferjad Naeem, Ibrahim M. Alabdulmohsin, Nikhil Parthasarathy, Talfan Evans, Lucas Beyer, Ye Xia, Basil Mustafa, Olivier H'enaff, Jeremiah Harmsen, Andreas Steiner, and Xiao-Qi Zhai. Siglip 2: Multilingual vision-language encoders with improved semantic understanding, localization, and dense features. ArXiv, abs/2502.14786, 2025. URL https://api.semanticscholar.org/CorpusID:276482166.
[34] Haibo Wang, Bo Feng, Zhengfeng Lai, Mingze Xu, Shiyu Li, Weifeng Ge, Afshin Dehghan, Meng Cao, and Ping Huang. Streambridge: Turning your offline video large language model into a proactive streaming assistant. ArXiv, abs/2505.05467, 2025. URL https://api.semanticscholar.org/CorpusID:278394112.
[35] Weihan Wang, Zehai He, Wenyi Hong, Yean Cheng, Xiaohan Zhang, Ji Qi, Shiyu Huang, Bin Xu, Yuxiao Dong, Ming Ding, and Jie Tang. Lvbench: An extreme long video understanding benchmark. 2025 IEEE/CVF International Conference on Computer Vision (ICCV), pages 22958–22967, 2024. URL https://api.semanticscholar.org/CorpusID:270391637.
[36] Yiyu Wang, Xuyang Liu, Xiyan Gui, Xinying Lin, Boxue Yang, Chenfei Liao, Tailai Chen, and Linfeng Zhang. Accelerating streaming video large language models via hierarchical token compression. ArXiv, abs/2512.00891, 2025. URL https://api.semanticscholar.org/CorpusID:283450494.
[37] Yuxuan Wang, Yiqi Song, Cihang Xie, Yang Liu, and Zilong Zheng. Videollamb: Long streaming video understanding with recurrent memory bridges. 2025 IEEE/CVF International Conference on Computer Vision (ICCV), pages 24170–24181, 2024. URL https://api.semanticscholar.org/CorpusID:280422760.
[38] Ziyang Wang, Shoubin Yu, Elias Stengel-Eskin, Jaehong Yoon, Feng Cheng, Gedas Bertasius, and Mohit Bansal. Videotree: Adaptive tree-based video representation for llm reasoning on long videos. 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 3272–3282, 2024. URL https://api.semanticscholar.org/CorpusID:270094803.
[39] Siwei Wen, Zhangcheng Wang, Xingjian Zhang, Lei Huang, and Wenjun Wu. Eventmemagent: Hierarchical event-centric memory for online video understanding with adaptive tool use. ArXiv, abs/2602.15329, 2026. URL https://api.semanticscholar.org/CorpusID:285659749.
[40] Hang Wu, Sherin M. Mathews, Yujun Cai, Ming-Hsuan Yang, and Yiwei Wang. Semantic-aware adaptive visual memory for streaming video understanding. ArXiv, abs/2605.07897, 2026. URL https://api.semanticscholar.org/CorpusID:288147794.
[41] Jiaer Xia, Peixian Chen, Mengdan Zhang, Xing Sun, and Kaiyang Zhou. Streaming video instruction tuning. ArXiv, abs/2512.21334, 2025. URL https://api.semanticscholar.org/CorpusID:284153645.
[42] Jun Xiao, Jiajun Chen, Tianxiang Sun, Xun Yang, and Angela Yao. Mukv: Multi-grained kv cache compression for long streaming video question-answering. ArXiv, abs/2605.22269, 2026. URL https://api.semanticscholar.org/CorpusID:288650113.
[43] Junlin Xie, Quanlong Zheng, Ruifei Zhang, Kuo Wang, Yanhao Zhang, Jinguo Luo, Haonan Lu, Xiang Wan, and Guanbin Li. Streamrag: Enhancing real-time video understanding with retrieval augmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 38870–38879, June 2026.
[44] Ji Xin, Rodrigo Nogueira, Yaoliang Yu, and Jimmy J. Lin. Early exiting bert for efficient document ranking. In SUSTAINLP, 2020. URL https://api.semanticscholar.org/CorpusID:226283755.
[45] Shuhang Xun, Sicheng Tao, Jungang Li, Yibo Shi, Zhixin Lin, Zhanhui Zhu, Yibo Yan, Hanqian Li, Linghao Zhang, Shikang Wang, Yixin Liu, Hanbo Zhang, Xuming Hu, and Yinghao Ma. Rtv-bench: Benchmarking mllm continuous perception, understanding and reasoning through real-time video. ArXiv, abs/2505.02064, 2025. URL https://api.semanticscholar.org/CorpusID:278326974.
[46] Yibin Yan, Jilan Xu, Shangzhe Di, Yikun Liu, Yudi Shi, Qirui Chen, Zeqian Li, Yifei Huang, and Weidi Xie. Learning streaming video representation via multitask training. 2025 IEEE/CVF International Conference on Computer Vision (ICCV), pages 9900–9912, 2025. URL https://api.semanticscholar.org/CorpusID:278165314.
[47] Yanlai Yang, Zhuokai Zhao, Satya Narayan Shukla, Aashu Singh, Shlok Kumar Mishra, Lizhu Zhang, and Mengye Ren. Streammem: Query-agnostic kv cache memory for streaming video understanding. ArXiv, abs/2508.15717, 2025. URL https://api.semanticscholar.org/CorpusID:280700196.
[48] Zhenyu Yang, Yuhang Hu, Zemin Du, Dizhan Xue, Shengsheng Qian, Jiahong Wu, Fan Yang, Weiming Dong, and Changsheng Xu. Svbench: A benchmark with temporal multi-turn dialogues for streaming video understanding. ArXiv, abs/2502.10810, 2025. URL https://api.semanticscholar.org/CorpusID:276408575.
[49] Linli Yao, Yichen Li, Yuancheng Wei, Lei Li, Shuhuai Ren, Yuanxin Liu, Kun Ouyang, Lean Wang, Shicheng Li, Sida Li, Lingpeng Kong, Qi Liu, Yuanxing Zhang, and Xu Sun. Timechat-online: 80% visual tokens are naturally redundant in streaming videos. Proceedings of the 33rd ACM International Conference on Multimedia, 2025. URL https://api.semanticscholar.org/CorpusID:278033234.
[50] Woongyeong Yeo, Kangsan Kim, Jaehong Yoon, and Sung Ju Hwang. Worldmm: Dynamic multimodal memory agent for long video reasoning. ArXiv, abs/2512.02425, 2025. URL https://api.semanticscholar.org/CorpusID:283458398.
[51] Xiangyun Zeng, Kefan Qiu, Qingyu Zhang, Xinhao Li, Jing Wang, Jiaxi Li, Ziang Yan, Kun Tian, Meng Tian, Xinhai Zhao, Yi Wang, and Limin Wang. Streamforest: Efficient online video understanding with persistent event memory. ArXiv, abs/2509.24871, 2025. URL https://api.semanticscholar.org/CorpusID:281674907.
[52] Haoji Zhang, Yiqin Wang, Yansong Tang, Yong Liu, Jiashi Feng, and Xiaojie Jin. Flash-vstream: Efficient real-time understanding for long video streams. 2025 IEEE/CVF International Conference on Computer Vision (ICCV), pages 21059–21069, 2025. URL https://api.semanticscholar.org/CorpusID:280011608.
[53] Haowei Zhang, Shudong Yang, Jinlan Fu, See-Kiong Ng, and Xipeng Qiu. Hermes: Kv cache as hierarchical memory for efficient streaming video understanding. ArXiv, abs/2601.14724, 2026. URL https://api.semanticscholar.org/CorpusID:284917012.
[54] Yulin Zhang, Cheng Shi, and Sibei Yang. Weavetime: Stream from earlier frames into emergent memory in videollms. ArXiv, abs/2602.22142, 2026. URL https://api.semanticscholar.org/CorpusID:286011636.
A Appendix
A.1 Other Related Work
Representation Learning, Model Adaptation, and Architecture Design. Beyond explicitly maintaining historical memory, another line of work improves the representations, training objectives, and architectures underlying multimodal models. StreamFormer converts an image-pretrained vision transformer into a streaming backbone through causal temporal attention and jointly learns video-level semantics, frame-level temporal dynamics, and fine-grained spatial information [46]. LiveCC densely interleaves timestamp-aligned video frames and automatic speech recognition transcripts, enabling large-scale weakly supervised training for temporally aligned understanding and real-time commentary [5]. Streamo further unifies real-time narration, action understanding, event captioning, temporal grounding, and time-sensitive question answering through streaming video instruction tuning [41]. Beyond streaming-specific training, Uni-X mitigates modality conflict in unified multimodal models through a two-end-separated architecture [15]. These approaches improve or adapt the underlying model itself, whereas ShallowStream focuses on constructing and selectively reusing historical representations without requiring a streaming-specific backbone.
Always-On and Proactive Interaction. Streaming assistants must determine not only what to answer, but also when expensive language reasoning or an interaction should be initiated. StreamMind introduces event-gated LLM invocation, using a constant-cost streaming feature extractor to invoke the language model only when relevant events are detected [11]. Dispider disentangles perception, decision, and reaction so that a lightweight module can continue monitoring the stream while an asynchronous language model generates a response [29]. StreamBridge adapts offline video LLMs to streaming interaction using a compressed multi-round memory buffer and a separate lightweight activation model for proactive responses [34]. ViSpeak considers visual behavior itself as an instruction, enabling a model to react to gestures and other visually expressed interaction cues [12]. StreamReady instead models whether sufficient supporting evidence has arrived, explicitly penalizing answers that are produced either before or substantially after their evidence [1]. These methods decide when to invoke or respond with an MLLM; in contrast, the ShallowStream gate is activated after a question arrives and determines whether answering it requires historical evidence.
Memory Construction, Compression, and Query-Time Retrieval. A closely related line of work formulates efficient context use through incremental memory construction, compact state representation, and query-dependent evidence retrieval. StreamRAG performs online event segmentation, reuses computation across adjacent frames to accelerate knowledge extraction, and dynamically adjusts retrieval according to the temporal sensitivity of each query [43]. MuKV retains patch-, frame-, and segment-level KV representations and uses semi-hierarchical retrieval to preserve both fine-grained spatial cues and global temporal context [42]. FlexMem writes visual KV states through a dual-pathway compression mechanism and supports different memory-reading policies for long-video and streaming tasks [6]. More broadly, DeltaKV compresses KV caches using residual representations derived from long-range similarity [17]. EventMemAgent maintains an event-oriented short-term buffer and a structured long-term event memory, while using adaptive tools to acquire additional fine-grained evidence [39]. Unlike caption-based external memories or fully computed KV stores, ShallowStream preserves history in a lightweight shallow index and postpones full-depth multimodal prefill until a query identifies the evidence that is actually needed.
Concurrent Streaming-Memory Methods. Several recent concurrent studies further investigate what should be retained under a fixed streaming-memory budget. SelectStream keeps the current observation directly visible to a frozen VLM while exposing historical information through a fixed-capacity latent memory graph and a query-conditioned evidence budget [13]. SAVEMem uses a pseudo-question bank as a lightweight semantic prior during online memory construction and adapts the retrieval scope among short-, mid-, and long-term memory according to the query [40]. These methods reinforce the importance of separating current-scene perception from historical recall, while differing in whether history is represented through latent memory structures or structured semantic summaries.
Efficient Model Execution and Adaptation. Efficiency can also be improved by reducing redundant visual computation, compressing token flow, or transferring model knowledge more compactly. Streaming Token Compression jointly accelerates the vision encoder and LLM prefill: its cacher reuses visual features from temporally similar frames, while its pruner removes tokens with low spatial and temporal salience [36]. This differs from methods that compress visual tokens only after independently encoding every frame [7, 49]. At the model-adaptation level, Low-Rank Clone improves knowledge-distillation efficiency through compact low-rank clones [14]. Streaming-specific encoding reuse and compact knowledge transfer target complementary sources of efficiency, whereas ShallowStream controls when full model depth is executed and which historical evidence is processed during streaming inference.
Query-Driven Long-Video Agents. Agentic long-video methods provide another perspective on query-time evidence acquisition. VideoTree constructs a query-adaptive hierarchical representation and progressively expands relevant video segments from coarse to fine temporal granularity [38]. WorldMM maintains complementary episodic, semantic, and visual memories, from which an adaptive agent iteratively selects both a memory type and a temporal scale [50]. LongVideo-R1 similarly navigates from high-level summaries to detailed clips and terminates retrieval once it judges that sufficient evidence has been obtained [30]. These approaches demonstrate the value of adaptive multi-step retrieval, but generally assume that the complete video can be randomly accessed and that the query is available before evidence search. They are therefore distinct from query-agnostic stream processing, where future questions and future observations are both unavailable.
Continuous and Interactive Evaluation. Recent benchmarks extend streaming evaluation beyond single-turn questions posed at fixed timestamps. RTV-Bench introduces multi-timestamp questions whose answers evolve as the scene changes, separately probing continuous perception, understanding, and reasoning [45]. The ProReady-QA benchmark introduced with StreamReady annotates answer-evidence windows and proactive multi-turn questions, allowing correctness and response timing to be evaluated jointly [1]. ViSpeak-Bench evaluates visually triggered instructions, interruptions, and proactive interaction [12]. Together with OVO-Bench, StreamingBench, and SVBench [21, 24, 48], these benchmarks show that streaming results are only comparable when the evaluation specifies query timing, future-frame visibility, evidence availability, interaction history, and whether stream processing continues concurrently with answer generation.
A.2 Implementation Details
Table 3 summarizes the fixed configurations used in our main experiments. Both backbones use 1 FPS on both benchmarks and share the same evidence selection and decoding budgets, while the pruning boundary, Gate threshold, and video unit definition follow their respective architectures. Shallow KVs and input-level visual states are archived in host memory. In LC-off runs, this archive preserves every detailed unit; in LC-on runs, units outside the detailed window are replaced by fixed-size cluster KVs and one input representative per cluster. Query latency is measured from query entry to generation completion and therefore includes host-to-device transfer and selected-context assembly.
A.3 Attention Context and Retrieval Depth
The layer-wise diagnostic in Figure 2 follows the stream-time prefill configuration used by ReKV [10]. During causal stream processing, each incoming video unit uses an attention sink together with a bounded local window. This restriction applies to stream-time prefill rather than the retrieval scope: ShallowStream still retains a full-history shallow index and can retrieve evidence from the entire observed stream. Under this deployment-oriented configuration, shallow representations already provide effective video-question matching signals, while deeper stream-time prefill incurs additional computation.
An additional dense complete-causal-prefix control confirms that the preferred retrieval depth depends on the stream-time attention regime. Dense full-history attention can refine retrieval representations through deeper processing, but its prefill cost grows with the accumulated history and therefore does not provide bounded per-unit cost for open-ended streams. ShallowStream instead targets practical bounded-context streaming, where retrieval signals emerge early and full-depth computation can be reserved for query-relevant evidence.
Table 3 Main implementation settings for the two evaluated backbones.
| Setting | Qwen3-VL-8B | LLaVA-OneVision-7B |
|---|---|---|
| Backbone and Stream Processing | ||
| Pruning boundary | 5 | 4 |
| Sampling rate, OVO / StreamingBench | 1 / 1 FPS | 1 / 1 FPS |
| Video unit | 2 frames | 1 frame |
| Stream prefill window | 64 units, 128 frames | 128 units, 128 frames |
| Query Routing | ||
| Gate prompt | ten shot | ten shot |
| Gate calibration set | 200 shared query-only examples | |
| Gate threshold | 11.0 | 0.875 |
| Evidence Selection and Generation | ||
| Query representation | last prompt token | |
| Visual candidates per shallow layer | 64 tokens | |
| Vote-ranked candidate pool | 32 historical units | |
| Selected historical evidence | 8 units with max-min diversity | |
| Temporal expansion | one preceding unit per selected unit | |
| Recent context, retrieval / recent-only | 6 / 2 units | |
| Maximum new tokens | 16 | |
A.4 Pruning-Boundary Accuracy and Cost
The first five layers already form an effective visual evidence index, allowing ShallowStream to retain its strongest accuracy without unnecessary continuous-stream depth. Figure 8 reports a full OVO-Bench Backward sweep that varies only the pruning boundary while holding routing, evidence selection, and recent-only outputs fixed. The boundary, selected beforehand from LVBench, achieves the strongest EPM, HLD, and Backward average, with the latter reaching 58.27; increasing the boundary through provides no further gain.
Table 4 Cost summary under the final calibrated Gate and token-vote retriever. Stream-time prefill is averaged over the same five long videos; query components use the matched full-history LC-off setting.
| Measurement | Setting or component | Cost |
|---|---|---|
| Stream-time prefill | 9.47 ms/frame | |
| 10.72 ms/frame | ||
| 15.53 ms/frame | ||
| Query-time computation | Full query | 1.759 s/query |
| Gate | 92.7 ms/query | |
| Evidence selection | 106.0 ms/query |
Shallow Processing Preserves Accuracy at Lower Cost. ShallowStream’s efficiency advantage follows directly from restricting continuous stream processing to shallow layers. As shown in Table 4, the observation-motivated boundary requires 31.0% less per-frame prefill than while preserving the strongest accuracy in Figure 8. Gate routing and evidence selection also occupy only a small fraction of total query computation. Thus, shallow continuous encoding preserves the method’s favorable operating point even after accounting for its stronger query-time evidence selection.
A.5 Query-Logit Gate Calibration
We construct a benchmark-independent query-only calibration set from synthetically generated labeled questions under the same retrospective-versus-recent routing definition as the ten-shot prompt. No OVO-

Figure 8 Sensitivity to the pruning boundary on OVO-Bench Backward under the final calibrated Gate and token-vote retriever. Routing and evidence selection are held fixed across depths.
Bench or StreamingBench queries are used. For each backbone, we apply the ten-shot prompt and compute . We select a backbone-specific threshold using a precision-first criterion that requires the one-sided 95% Wilson lower bound on retrieval precision to be at least 90%, and freeze it before evaluating either benchmark.
Table 5 Query-logit Gate calibration on the benchmark-independent query-only set.
| Backbone | Precision | 95% lower bound | Recall | |
|---|---|---|---|---|
| Qwen3-VL-8B | 11.0 | 96.04% | 91.47% | 97.00% |
| LLaVA-OneVision-7B | 0.875 | 97.78% | 90.63% | 44.00% |
A.6 Query-Time Scaling with Retained History
We evaluate the cost of querying a retained shallow history across a 16× range under full-history LC-off and the matched final LC-on setting. These wall-clock measurements include transfer from the host-resident archive and selected-context assembly. Total query latency remains nearly unchanged as the history grows under both settings. Long-cluster compression also keeps evidence-selection cost essentially constant, while Gate and decoding latency remain nearly invariant. Thus, even the complete shallow history remains responsive, while compression additionally bounds the history-dependent selection stage.

Figure 9 Query-time scaling on an NVIDIA RTX 5090. All six collected history lengths are shown. (a) Total query latency and time to first token (TTFT). (b) Evidence-selection and Gate latency. (c) Decoding latency. Solid circles denote full-history LC-off and dashed squares denote the matched final LC-on setting. Curves show means over five retrieval queries, and shaded regions denote 95% confidence intervals.
A.7 Ten-Shot Router Prompt
For reproducibility, the complete prompt template used by our ten-shot query-logit router is given below. [Input video question] denotes the question inserted at inference time.
| Ten-Shot Query-Logit Router Prompt |
|---|
| You are deciding whether answering a video question requires retrieving older video memory. The system already has the latest video segment immediately available. Do not answer the video question itself. |
| Routing options:A. Answering reliably requires inspecting earlier video memory.B. The latest video segment is sufficient; older video memory is unnecessary. |
| Here are labeled routing examples: |
| Example 1:Video question: What object is the person holding in the latest visible moment?Correct routing option: B |
| Example 2:Video question: Where did the person leave the keys near the beginning of the video?Correct routing option: A |
| Example 3:Video question: What word is currently displayed on the screen?Correct routing option: B |
| Example 4:Video question: How many times did the bell ring over the course of the video?Correct routing option: A |
| Example 5:Video question: Which item did the cook pick up first?Correct routing option: A |
| Example 6:Video question: What color is the vehicle visible in the latest scene?Correct routing option: B |
| Example 7:Video question: What was inside the box before it was emptied?Correct routing option: A |
| Example 8:Video question: What action is the person performing right now?Correct routing option: B |
Example 9: Video question: Which object is immediately to the left of the cup in the latest frame? Correct routing option: B
Example 10: Video question: How has the room changed compared with its appearance earlier in the video? Correct routing option: A
Now route this video question: <video_question> [Input video question] </video_question>
Output only A or B. Routing answer: