TL;DR
StreamFlow is a novel visual memory framework that equips frozen Multimodal Large Language Models (MLLMs) with efficient, dynamic streaming video understanding capabilities. By combining a raw-pixel-level mid-term memory with a compressed latent long-term memory, it filters out temporal redundancy before visual encoding and dynamically reactivates historical context on-demand during text generation. This approach achieves state-of-the-art accuracy on streaming benchmarks while cutting end-to-end latency in half.
What Problem Does This Paper Address?
Real-time streaming video understanding—crucial for applications like autonomous driving, embodied robotics, and AI agents—requires MLLMs to process continuous, unbounded visual inputs under strict causality and hardware constraints.
Existing methods generally fall into two flawed paradigms:
- Model-based methods: These fine-tune the MLLM backbone on streaming data, which incurs prohibitive training costs and risks catastrophic forgetting of the model's core capabilities.
- Memory-based methods: These couple a frozen MLLM with an external memory cache. However, they densely encode every incoming frame, wasting massive amounts of computation on static or highly predictable background regions. Furthermore, they rely on rigid, prefix-based memory access. As the model generates a long textual response, its internal attention naturally drifts away from the initial visual prefix toward its own generated text tokens, leading to severe hallucination risks.
StreamFlow answers the question: How can we design a streaming memory system that intelligently decides what visual information to encode, and exactly when to reactivate historical evidence during generation?
Methods
StreamFlow introduces a continuous, dual-stage visual memory flow that operates alongside a frozen MLLM backbone:
- Dynamics-Aware Mid-Term Memory ($M_M$): Instead of densely encoding all incoming frames, StreamFlow groups frames into Groups of Pictures (GOPs) consisting of an anchor I-frame and subsequent P-frames. It computes patch-level temporal residual scores directly in raw pixel space before visual encoding. Static patches are dropped, and only highly dynamic regions are passed to the visual encoder, drastically reducing front-end computation.
- Latent Long-Term Memory ($M_L$): As the mid-term memory fills up, older GOPs overflow and are compressed into compact visual latents. To prevent memory usage from growing unbounded, a similarity-guided anchor merge operator consolidates visually redundant historical GOPs over time, keeping the long-term memory bounded to a fixed capacity.
- Attention-Guided Memory Injection: During autoregressive text generation, the framework continuously monitors the model's Visual Attention Score (VAS) across all layers and heads. If the model's focus on visual context drifts below a predefined threshold ($\tau = 0.1$), a neural compressor dynamically retrieves the top-$K$ most relevant long-term visual latents and injects them directly into the current decoding prefix on-demand.
Datasets
- Training: The memory compressor was trained via supervised fine-tuning (SFT) using question-conditioned video examples from COIN (procedural steps), NeXT-QA (causal/temporal reasoning), STAR (situated interactions), CLEVRER (physical object dynamics), and selected LLaVA-Video-178K data for broad real-world coverage. High-quality supervision labels were generated using Qwen3.5-27B as a teacher model.
- Evaluation: The authors evaluated streaming performance on StreamingBench (including its Real-Time Visual Understanding subset, RTVU). To test generalization on conventional long videos, they also evaluated on MVBench, MLVU, and VideoMME.
Key Insights and Ideas
- Pre-Encoding Sparsification: Most token-dropping or video-compression methods operate after visual encoding. StreamFlow proves that filtering temporal redundancy in raw pixel space before the Vision Transformer (ViT) yields massive front-end efficiency gains without sacrificing fine-grained dynamics.
- Reactivating Memory via Attention Tracking: MLLMs naturally lose track of visual context during long text generation. Tracking the Visual Attention Score (VAS) provides an elegant, online grounding signal to trigger memory injections exactly when the model begins to rely too heavily on linguistic context.
- Semantic Relevance Matters: Through a counterfactual intervention experiment—where a sample's long-term memory was swapped with a shuffled memory from a completely different video—the authors proved that the model's performance gains are strictly tied to the semantic relevance of the retrieved historical evidence, rather than just the presence of extra visual tokens.
Key Results
- State-of-the-Art Streaming: StreamFlow achieved an overall accuracy of 67.73% on StreamingBench, outperforming the strongest baseline (LiveVLM-7B) by 4.63%.
- Strong Offline Generalization: On long-video benchmarks, it outperformed leading streaming methods by 2.24% on MLVU and 8.22% on VideoMME, demonstrating its capability to preserve long-range evidence over extended horizons (up to 50+ minute videos).
- Improved Visual Grounding: StreamFlow boosted the mean Visual Attention Score (VAS) by 59.1% relative to the vanilla setting, successfully mitigating attention drift during generation.
- Substantial Efficiency Gains: Compared to the vanilla baseline, StreamFlow reduced end-to-end task latency by 50.4% and peak memory consumption by 21.1%, enabling highly efficient inference.
Limitations and Future Work
Not discussed in the paper.
Summary updated