Abstract
Traditional Video-Large Language Models (Video-LLMs) primarily operate in an offline capacity, processing static clips with fixed frame counts. This approach is unsuitable for real-world applications requiring real-time interaction, such as robotic navigation or live stream analysis. We present StreamChat, a training-free framework designed to enable LLMs to reason over continuous video streams. By employing a hierarchical memory system and parallel system scheduling, StreamChat achieves a processing speed of 32 FPS with sub-second latency. Our evaluations on the newly introduced StreamBench dataset demonstrate that StreamChat significantly outperforms existing online models in both accuracy and conversational responsiveness.
1. Introduction
As Large Language Models evolve to handle multimodal inputs, video understanding has emerged as a critical frontier. However, most current Video-LLMs are designed for "offline" scenarios where the entire video is available for uniform sampling before processing begins. This paradigm faces three primary challenges: computational bottlenecks caused by the "memory explosion" of long-term attention, information loss from sparse sampling, and a lack of interactive capability for multi-round dialogue during a continuous stream.
To address these gaps, we introduce StreamChat, a framework that transforms existing Video-LLMs into real-time streaming agents. Unlike traditional models, StreamChat processes video dynamically, maintaining context over long durations without the need for expensive retraining.
2. The StreamChat Framework
StreamChat is a modular, training-free architecture that can be integrated with various base models, such as LongVA. Its functionality is built upon three core technical pillars:
2.1 Selective Frame Stacking
To mitigate the redundancy inherent in high-frame-rate video, StreamChat utilizes the Lucas-Kanade Optical Flow algorithm. The system calculates motion intensity between consecutive frames and only "pushes" a frame into the active processing buffer if the motion exceeds a predefined threshold. This selective mechanism ensures that the model focuses on semantically significant changes while ignoring static or redundant visual data.
2.2 Hierarchical Memory Management
Managing long-term context in a streaming environment requires a sophisticated memory structure to prevent system crashes and maintain relevance. StreamChat implements a three-tier memory system:
- Short-term Memory ($M_s$): Inspired by the Ebbinghaus Forgetting Curve, this tier maintains a small, high-fidelity set of recent visual features for immediate context.
- Long-term Memory ($M_l$): This tier utilizes a tree-structured index to store compressed visual features alongside "text clues" (short captions). This Retrieval-Augmented Generation (RAG) style approach allows the model to efficiently search for specific past events without re-processing the entire video history.
- Dialogue Memory ($M_d$): This component tracks the history of user interactions, ensuring that multi-turn conversations remain coherent and contextually aware.
2.3 Parallel System Scheduling
To achieve real-time performance, StreamChat decouples its operations into three independent, concurrent threads: frame stacking, memory formation, and response generation. This parallelization allows the system to continue ingesting and processing new frames even while the LLM is generating a response to a user query.
3. Evaluation and Benchmarking
3.1 StreamBench
Recognizing that existing benchmarks often lack the complexity required for streaming and multi-turn interaction, we introduced StreamBench. This dataset consists of 306 manually curated videos totaling 24.8 hours across four domains: Egocentric, Web, Working, and Movie. It includes 1.8K QA pairs covering six task types, including Object Search and Conversational Interaction.
3.2 Performance Metrics
StreamChat-7B demonstrates superior performance across both streaming and offline benchmarks:
- Accuracy: On StreamBench, StreamChat achieved 64.7% accuracy, an 8.3% improvement over the previous state-of-the-art online method.
- Efficiency: The framework reaches a processing speed of 32 FPS, a 6x increase over prior online models.
- Latency: The Request Processing Delay (RPD) is maintained under 0.9 seconds, facilitating a natural, interactive user experience.
- Generalization: Even on standard offline datasets like ActivityNet-QA, StreamChat outperformed existing state-of-the-art models by an average of 2.5%.
4. Discussion and Limitations
While StreamChat represents a significant step toward real-time video intelligence, several challenges remain. The model currently struggles with Temporal Fine-grained tasks, such as identifying very small objects or those that appear only briefly. Additionally, interpreting complex motion relationships—such as the specific interaction between two moving objects—remains difficult. Finally, while the tree-structured memory is efficient, it still faces VRAM constraints as video duration scales indefinitely, suggesting a need for more aggressive compression techniques in future iterations.
5. Conclusion
StreamChat provides a practical, training-free solution for real-time video understanding. By prioritizing motion-based frame selection and hierarchical memory retrieval, it bridges the gap between static analysis and dynamic interaction, setting a new standard for efficiency and accuracy in streaming Video-LLMs.
Summary updated