TL;DR
ThinkStream introduces a novel "Watch–Think–Speak" paradigm that allows multimodal large language models to reason over continuous video streams in real time. By evicting old visual tokens and replacing them with compact, text-based reasoning traces, the framework maintains a stable memory footprint and flat inference latency while outperforming proprietary models like GPT-4o on streaming benchmarks.
What Problem Does This Paper Address?
Most existing video large language models (VLLMs) operate under a "batch" paradigm: they ingest an entire video context before initiating multi-step reasoning to produce an answer. While this works for offline video QA, it fails in real-time streaming scenarios—such as interactive AI assistants or embodied robotic agents—due to three critical bottlenecks:
- Strict Causality: Reasoning must rely only on observations available up to the current millisecond.
- KV Cache Explosion: As a continuous video stream grows indefinitely, retaining all dense visual tokens quickly exhausts GPU memory and inflates attention computation.
- Proactive Timing: Real-time systems must autonomously decide when to respond or act based on evolving evidence, rather than waiting for an external trigger or the end of a file.
Methods
The authors introduce ThinkStream, a unified framework designed to tackle these streaming constraints through three core components:
- The Watch–Think–Speak Paradigm: Instead of separating perception and reasoning, the model processes incoming video chunk-by-chunk. For each chunk, it generates a short, localized reasoning segment enclosed in a
<think>block, followed by an interaction decision: either emit a response (<response>) or remain silent (<silent>) to keep observing.
- Reasoning-Compressed Streaming Memory (RCSM): To bound KV cache growth, ThinkStream utilizes a sliding window for dense visual tokens. When older visual tokens are evicted from the cache, their corresponding text-based reasoning tokens are retained. This treats language as a highly compressed semantic memory layer, preserving historical context at a fraction of the computational cost.
- Streaming Reinforcement Learning with Verifiable Rewards (RLVR): The model is optimized using Group Relative Policy Optimization (GRPO). The reward function balances three rule-based components: Accuracy ($R_{acc}$), Format compliance ($R_{format}$), and Timing ($R_{time}$), which applies a linear decay penalty to discourage premature guessing or excessive latency.
- High-Efficiency Inference Backend: To support dynamic KV cache pruning without massive kernel launch overhead, the authors designed a custom backend utilizing replayable CUDA Graphs for decoding and eviction.
Datasets
The authors developed the ThinkStream Dataset to train and evaluate their framework:
- Training Data: 110K "Cold Start" instances featuring dense, time-grounded reasoning traces synthesized via a specialized prompt pipeline, alongside 9K RLVR instances formatted for verifiable reward optimization. The underlying videos were sampled from LLaVA-Video-178K and Tarsier2-Recap-585K.
- Evaluation Benchmarks: Real-time performance was evaluated on specialized streaming benchmarks, OVO-Bench and StreamingBench Real-Time. General capability was verified using standard offline benchmarks, VideoMME and LongVideoBench.
Key Insights and Ideas
- Language as Video Compression: The most compelling insight is that intermediate Chain-of-Thought (CoT) traces are not just useful for accuracy; they serve as an excellent lossy compression mechanism for visual history. High-level semantic summaries can completely replace raw visual tokens over long horizons without destroying the model's situational awareness.
- Unified Generation and Action: Instead of relying on external classification heads or event triggers to decide "when to speak," ThinkStream unifies perception, reasoning, and action selection into a single autoregressive text generation sequence.
Key Results
- Benchmark Superiority: A compact ThinkStream-3B model achieved an average score of 75.00 on StreamingBench Real-Time, outperforming proprietary models like GPT-4o (73.28) and Claude 3.5 Sonnet (72.44), while significantly beating open-source online baselines like Dispider-7B (67.63).
- Bounded Latency: As video context length scales up, standard VLLM baselines suffer from severe latency degradation, frequently violating real-time constraints. ThinkStream maintains a flat end-to-end latency well below the 0.5-second threshold required for a 2 FPS video stream.
- Inference Speedups: The custom CUDA Graph-based engine achieved a 5× speedup in token decoding at batch size 1 (154.07 tokens/s vs. 30.06 tokens/s for the baseline).
Limitations and Future Work
Not discussed in the paper.
Summary updated