TL;DR
QueryStream is a training-free, plug-and-play framework that makes streaming video understanding both efficient and proactive by filtering visual data based on the user's specific intent. By pruning up to 70% of redundant visual tokens and using a dual-gated trigger mechanism, it achieves state-of-the-art performance on real-time benchmarks while significantly reducing computational overhead.
What Problem Does This Paper Address?
As we move toward "online" AI—think embodied robots, autonomous driving, or live event monitoring—models must process continuous, unbounded video streams with minimal latency. Standard Video Large Language Models (Video-LLMs) are designed for "offline" tasks, treating video as a static batch of frames. This approach is computationally ruinous in a streaming context.
Existing streaming solutions often rely on a "change-is-important" heuristic: if pixels change significantly between frames, the data is kept. The authors argue this is a flawed premise because it conflates raw visual dynamics with semantic relevance. For example, a cat walking across the background is a visual "change," but it’s irrelevant if the user is asking about a car engine. This leads to two major issues:
- Computational Redundancy: Processing visually active but semantically useless data.
- Mistimed Responses: Triggering responses to irrelevant visual shocks or missing subtle, slow-moving events that are actually important to the query.
Methods: The QueryStream Framework
QueryStream introduces two synergistic, training-free components that sit as an "intelligent gateway" between the video stream and a backbone Video-LLM (like Qwen2.5-VL).
1. Query-Aware Differential Pruning (QDP)
Instead of simple frame-to-frame comparisons, QDP uses a "dual-criterion sieve" to filter incoming frames:
- Semantic Relevance: It calculates the similarity between visual patches and the user’s query embedding using a lightweight OpenCLIP encoder.
- Temporal Novelty: It compares current patches against a Dynamically Smoothed History (DSH). Unlike comparing to just the previous frame, DSH maintains a running average of recent history, making the system robust to transient noise and slow visual drifts.
- The Filter: A token is only preserved if it is both semantically relevant to the query and temporally novel compared to the smoothed history.
2. Relevance-Triggered Active Response (RTAR)
To decide when the model should speak, RTAR uses a dual-gated logic:
- Relevance Gate: Is the current frame's holistic content aligned with the query?
- Density Gate: Is there a significant influx of new relevant information? (Measured by the "keep rate" of the QDP module).
- Trigger: The model only generates a response when both gates are open, preventing "hallucinated" responses to irrelevant motion.
Datasets
The authors evaluated QueryStream on several demanding benchmarks:
- StreamingBench: A comprehensive suite for real-time visual understanding.
- OVO-Bench: Focuses on complex "backward tracing" (looking back at what happened) and "forward active responding" (knowing when to chime in).
- Offline Benchmarks: Video-MME and LongVideoBench were used to test how well the pruning mechanism generalizes to long-form, offline video tasks.
Key Insights and Ideas
- Pruning as Denoising: One of the most striking findings is that pruning isn't just a speed hack—it's a performance booster. By removing "semantic noise" (irrelevant visual data), QueryStream provides the LLM with a cleaner context, often leading to higher accuracy than processing the full, unpruned video.
- The Power of Smoothed History: Naive differential pruning is "myopic." By using a smoothed history (DSH), the model can distinguish between a meaningful state change and a flickering pixel or a slight camera wobble.
- Intent-Driven Efficiency: The paper proves that video redundancy is relative to user intent. A stream that looks "busy" visually might be "empty" semantically if it doesn't contain the specific information the user requested.
Key Results
- State-of-the-Art Performance: On StreamingBench, QueryStream-7B achieved an overall score of 75.32, surpassing the strong TimeChat-Online baseline.
- Extreme Efficiency: QueryStream matched the performance of full-token baselines while pruning over 70% of visual tokens.
- Proactive Accuracy: On OVO-Bench’s "Forward Active Responding" tasks, QueryStream’s dual-gated trigger was significantly more precise than density-only triggers, avoiding false starts on irrelevant visual changes.
- Offline Generalization: When applied to the "long" subset of Video-MME, the pruning module improved the base Qwen2.5-VL score by 2.2 points, validating its role as an effective context-denoising tool.
Limitations and Future Work
- Encoder Bottleneck: The system's precision is fundamentally limited by the representational quality of the pre-trained OpenCLIP encoder. If the encoder can't "see" a fine-grained detail, the pruner might discard it.
- Static Queries: The current framework is designed for a single, static user query. It does not yet handle dynamic, multi-turn conversations where the user's intent might evolve over time.
- Fixed Hyperparameters: The logic gates rely on fixed thresholds. While effective, the authors suggest that future work could explore adaptive thresholding or learned gating policies to make the system even more robust across diverse video domains.
Summary updated