Skip to content
AI.info

Research

StreamingVLM: Real-Time Understanding for Infinite Video Streams

Overview Research area: Computer vision and multimodal machine learning — specifically vision-language models (VLMs) applied to continuous, real-time video streams. Technical level: Advanced. The pape

arXiv
2510.09608
Published
2025-10-10
Authors
Ruyi Xu, Guangxuan Xiao, Yukang Chen, Liuning He, Yao Lu, Song Han

AI summary

Overview

Research area: Computer vision and multimodal machine learning — specifically vision-language models (VLMs) applied to continuous, real-time video streams.

Technical level: Advanced. The paper assumes familiarity with transformer attention, KV caches, rotary positional embeddings (RoPE), and vision-language supervised fine-tuning.

Scope: The paper presents StreamingVLM, a training-and-inference framework that lets a 7B-parameter vision-language model caption and reason over near-infinite video streams in real time with bounded memory and stable latency, along with a sports-commentary SFT dataset (Inf-Streams-Train) and a long-video benchmark (Inf-Streams-Eval).

What This Paper Is About

Existing vision-language models struggle to watch video that never ends: full attention over the whole stream costs quadratic computation (O(T^2) per the paper) and unbounded memory, while naive sliding windows either break coherence between chunks or waste computation by re-processing overlapping frames. The authors' goal is a model that takes an infinite visual input, keeps its memory and per-token latency low and roughly constant, and still produces coherent, real-time output — demonstrated through continuous sports commentary. They solve this by making training mimic the exact attention pattern used at inference, rather than training on long contexts.

Key Contributions

  1. A streaming inference scheme with reuse-based KV cache. StreamingVLM keeps a compact cache consisting of 512 attention-sink tokens, a long window of 512 recent text tokens, and a short vision window covering 16 seconds, reusing these states instead of recomputing them.
  2. Contiguous RoPE (and contiguous 3D RoPE). Position indices are shifted left as old tokens are evicted so they stay numerically contiguous and within the trained range, preserving positional in-distribution behavior over unbounded streams.
  3. An overlapped-chunk, full-attention SFT strategy. Training splits long streams into chunks of length W with overlap O (0 < O < W), applies full attention inside each chunk, and interleaves vision and text tokens at 1-second intervals — approximating the sink-plus-sliding-window pattern used at test time without training on prohibitively long contexts.
  4. Data and evaluation resources. Inf-Streams-Train, a sports-commentary SFT dataset of over 4,000 hours, and Inf-Streams-Eval, a benchmark of 20 full games averaging 2.12 hours that requires dense per-second alignment between frames and text. A high-quality annealing dataset of 14K samples is also released as part of the training recipe.

Main Findings

  • Commentary win rates: On Inf-Streams-Eval (infinite mode), StreamingVLM achieves a 66.18% win rate against GPT-4o mini, 87.81% against Livecc in chunked mode, and 99.12% against Livecc in infinite mode. The judge model is GPT-5.
  • Against Livecc-Sports-3K CC baselines: StreamingVLM scores 47.33 vs. LLaVA, 45.59 vs. GPT-4o, 44.21 vs. Gemini, and 56.19 vs. Livecc.
  • General VQA improves without VQA fine-tuning: Compared with its base model Qwen-2.5-VL-7B-Instruct, StreamingVLM improves MVBench from 67.34 to 69.16, holds VideoMME (w/o sub.) at 65.10, raises LongVideoBench from 54.70 to 59.00 (+4.30), and raises OVOBench Realtime from 56.00 to 61.96 (+5.96).
  • Real-time efficiency: StreamingVLM maintains stable, real-time performance at up to 8 FPS on a single NVIDIA H100, with per-token latency below the real-time threshold the paper defines as 10 tokens/s (≤0.1 s per token). The conclusion reports delivering stable commentary for over 3 hours at up to 8 FPS on one H100.
  • Full attention fails at scale: Full attention exceeds the latency limit and runs out of memory; sliding window without overlap shows a periodic latency spike pattern and incoherent commentary at chunk boundaries; sliding window with overlap remains inefficient due to redundant recomputation.
  • ReKV mismatch: A training-free eviction method (ReKV) fails in both directions — Qwen + ReKV scores 0.00, 19.56, 63.57 on the three Inf-Streams-Eval comparisons, while StreamingVLM + ReKV scores 0.00 across all three, frequently producing no output because its eviction policy disrupts the fixed context format the model was fine-tuned on.
  • Contiguous RoPE is necessary: With native RoPE in infinite mode, win rates collapse to 25.09 / 59.42 / 60.32; 100-second chunking partially recovers these to 63.23 / 74.00 / 98.07 but harms long-term memory; contiguous RoPE restores 66.18 / 87.81 / 99.12.
  • Text eviction matters: Training and evaluating with no eviction (T_sink = ∞, T_window = ∞) drops performance to 60.41 / 72.08 / 98.55, versus 73.64 / 92.33 / 99.38 with T_sink = 512 and T_window = 512 on the basketball subset.
  • Vision window size: A 16-second vision window is the best choice (66.18 / 87.81 / 99.38 win rates); 0 seconds of vision context drops to 52.90 / 77.49 / 97.56, confirming recent vision tokens are essential.
  • Sink size sensitivity: Larger T_sink generally helps — 64 gives 72.04 / 90.32 / 99.46 while 1024 gives 74.82 / 93.51 / 99.53 — but gains plateau at larger sizes, indicating a trade-off with computation.
  • SFT data and strategy: Training on the overlapped SFT data yields +31.29 win rate against GPT-4o mini on Inf-Streams-Eval and +3.68 win rate against LLaVA-Video-72B-Qwen2 on Livecc-Sports-3K cc, relative to a model trained only on Live-WhisperX-526K. A non-overlapping strategy scores 62.51 on the first Inf-Streams-Eval comparison versus 66.18 for the overlapped strategy.
  • Annealing data adds further gains: Adding the high-quality annealing stage moves Inf-Streams-Eval win rates from 63.46 / 83.82 / 98.95 to 66.18 / 87.81 / 99.12 and raises OVOBench Realtime from 60.55 to 61.96.
  • Stability over time: Splitting each test video into five segments at 20% intervals, StreamingVLM shows nearly constant win rate across segments and matches sliding-window-with-overlap, while full attention and sliding window without overlap degrade.

Methodology in Plain English

The researchers start from an existing open vision-language model, Qwen2.5-VL-Instruct-7B, and teach it a streaming habit. At inference, instead of remembering everything, the model keeps three things in memory: a fixed set of early "sink" text tokens (512), a rolling window of the most recent 512 text tokens, and a rolling window of the most recent 16 seconds of video tokens. Old vision tokens are evicted first. Because throwing away old tokens would normally scramble the position numbering, they continuously shift the rotary position indices so the surviving and incoming tokens stay in a contiguous, in-range sequence — done in 3D (time, height, width) for the Qwen-VL visual tokens.

To train this behavior without ever training on hours-long video, they cut long streams into short chunks (24 seconds) that overlap by 12 seconds, apply full attention inside each chunk, and interleave vision and text tokens every second rather than dumping all vision tokens first. Loss is computed only on the narration text; seconds without narration get a placeholder "..." token, which teaches the model when to speak and when to stay quiet.

The data pipeline collects games from five sports, extracts speech with WhisperX (over 6,000 hours of raw video and commentary), and uses GPT to label each sentence "keep," "edit," or "delete" — resulting in 46.32% kept, 37.89% edited, and 15.79% deleted, and 2,449 full games. A second "annealing" pass slices the data into 16–64 second clips with at least 2×duration words and no internal silence longer than 3 seconds, keeping only clips where GPT-5 judges more than 80% of the commentary to be real-time action; 52,530 candidate samples yielded 14,786 retained. Training happens in two steps: Stage 1 on 525K streaming samples plus LiveCC's Live-WhisperX-526K (526K samples), Stage 2 on the annealing data, for roughly 128 H100-days total.

Evaluation uses Inf-Streams-Eval, where each game is split into 100-second segments with at least 200 words of ground-truth commentary, and GPT-5 votes between two model outputs given the references. The benchmark has a chunked setting (models that cannot stream indefinitely get the previous text plus the current chunk) and an infinite setting (the model runs on the full stream, keeping its own past outputs as previous text).

Why This Matters

Research impact. The paper argues that aligning training with streaming inference — rather than bolting a training-free eviction policy onto a model — is what makes infinite video feasible. It transfers the text-LLM recipe of "attention sink + sliding window + contiguous position" into the cross-modal video setting and shows the same SFT pipeline improves standard VQA benchmarks (LongVideoBench +4.30, OVOBench Realtime +5.96) with no VQA-specific fine-tuning. It also contributes a second-level-alignment benchmark, arguing that existing long-video benchmarks focus on retrieval or summarization and can be passed even at very low frame rates.

Real-world applications:

  • Live sports commentary and broadcasting, the paper's main demonstration, where the model narrates continuously for over two hours in the evaluated games (and up to 3 hours per the conclusion) and a demo shows commentary after roughly 100 minutes of continuous inference.
  • Autonomous driving, which the introduction names alongside embodied agents and real-time assistants as a target use case for continuous visual understanding.
  • Robotic and embodied agents that need to perceive an ongoing scene without a fixed endpoint.
  • Real-time assistants that must respond with low delay while retaining long-term conversational context.

Industry relevance. The system runs on a single NVIDIA H100 at up to 8 FPS with bounded memory, which puts infinite-stream understanding within reach of practical deployment rather than datacenter-scale serving. The reliance on a 7B open base model (Qwen2.5-VL) and released datasets makes the recipe reproducible for industrial teams building streaming products.

Future Directions

  • Fixed-window hyperparameters remain scenario-dependent. The sink-size sensitivity analysis shows performance plateaus at larger windows, and the authors state the window sizes are key hyperparameters that should be tuned per scenario; automatically adapting them is left open.
  • Mitigating hallucinations. The appendix demo notes that because the base model is modest in size, occasional hallucinations may occur in long commentary runs.
  • Extending beyond sports commentary. The evaluation is concentrated on sports streams from five leagues; whether the training-inference alignment transfers to other infinite domains such as driving or robotics is not established.
  • Comparing against other streaming approaches at scale. The paper notes that concurrent streaming video LLMs show clear performance drops on videos longer than 5 minutes, but its own comparisons center on GPT-4o mini, LiveCC, and ReKV.

Target Audience

Researchers and engineers working on multimodal large models, long-context inference, and streaming or online video understanding. It is most useful to those already comfortable with KV-cache management and positional-encoding details, and to practitioners building real-time video assistants, robotics perception, or autonomous-driving perception systems who need bounded memory and stable per-token latency. Readers interested in dataset and benchmark construction for long-form, second-level-aligned video will also find the Inf-Streams pipeline relevant.

Authors’ abstract

Vision-language models (VLMs) could power real-time assistants and autonomous agents, but they face a critical challenge: understanding near-infinite video streams without escalating latency and memory usage. Processing entire videos with full attention leads to quadratic computational costs and poor performance on long videos. Meanwhile, simple sliding window methods are also flawed, as they either break coherence or suffer from high latency due to redundant recomputation. In this paper, we introduce StreamingVLM, a model designed for real-time, stable understanding of infinite visual input. Our approach is a unified framework that aligns training with streaming inference. During inference, we maintain a compact KV cache by reusing states of attention sinks, a short window of recent vision tokens, and a long window of recent text tokens. This streaming ability is instilled via a simple supervised fine-tuning (SFT) strategy that applies full attention on short, overlapped video chunks, which effectively mimics the inference-time attention pattern without training on prohibitively long contexts. For evaluation, we build Inf-Streams-Eval, a new benchmark with videos averaging over two hours that requires dense, per-second alignment between frames and text. On Inf-Streams-Eval, StreamingVLM achieves a 66.18% win rate against GPT-4O mini and maintains stable, real-time performance at up to 8 FPS on a single NVIDIA H100. Notably, our SFT strategy also enhances general VQA abilities without any VQA-specific fine-tuning, improving performance on LongVideoBench by +4.30 and OVOBench Realtime by +5.96. Code is available at https://github.com/mit-han-lab/streaming-vlm.

Read the original paper