[Paper Review] VideoLLM-online: Online Video Large Language Model for Streaming Video
This paper introduces VideoLLM-online, a novel online video large language model that enables real-time, temporally aligned, long-context dialogue for streaming video using a Learning-In-Video-Stream (LIVE) framework. The framework employs a Streaming EOS prediction training objective, streaming dialogue data generation, and optimized inference with continuous key-value caching, achieving over 10 FPS inference on 5-minute video clips with an A100 GPU while matching or exceeding state-of-the-art performance on offline benchmarks.
Recent Large Language Models have been enhanced with vision capabilities, enabling them to comprehend images, videos, and interleaved vision-language content. However, the learning methods of these large multimodal models typically treat videos as predetermined clips, making them less effective and efficient at handling streaming video inputs. In this paper, we propose a novel Learning-In-Video-Stream (LIVE) framework, which enables temporally aligned, long-context, and real-time conversation within a continuous video stream. Our LIVE framework comprises comprehensive approaches to achieve video streaming dialogue, encompassing: (1) a training objective designed to perform language modeling for continuous streaming inputs, (2) a data generation scheme that converts offline temporal annotations into a streaming dialogue format, and (3) an optimized inference pipeline to speed up the model responses in real-world video streams. With our LIVE framework, we built VideoLLM-online model upon Llama-2/Llama-3 and demonstrate its significant advantages in processing streaming videos. For instance, on average, our model can support streaming dialogue in a 5-minute video clip at over 10 FPS on an A100 GPU. Moreover, it also showcases state-of-the-art performance on public offline video benchmarks, such as recognition, captioning, and forecasting. The code, model, data, and demo have been made available at https://showlab.github.io/videollm-online.
Motivation & Objective
- To address the limitations of existing video LLMs that process videos as static clips, which hinders real-time, continuous dialogue in streaming video settings.
- To enable temporally aligned, long-context, and real-time video dialogue by overcoming challenges in context window management, response latency, and redundant processing.
- To develop a scalable and efficient framework that supports always-on, contextual AI assistants for applications like smart AR glasses.
- To bridge the gap between offline video understanding models and online streaming dialogue systems through a unified training, data, and inference pipeline.
- To achieve high inference speed without sacrificing performance on both online streaming and offline video benchmarks.
Proposed method
- Proposes a Streaming EOS (End-of-Sequence) prediction objective that trains the model to predict when to respond or remain silent in a continuous video stream, reducing redundant context and improving efficiency.
- Introduces a data generation scheme that converts offline temporal annotations into streaming dialogue format to simulate real-time user interactions for training.
- Employs continuous key-value caching in the inference pipeline to maintain long-context memory across streaming frames while minimizing latency.
- Parallelizes visual feature encoding and language decoding to balance computational load and prevent bottlenecks in real-time video processing.
- Builds VideoLLM-online on CLIP for vision encoding and Llama-2/Llama-3 for language modeling, fine-tuned via the LIVE framework for streaming capability.
- Uses a hybrid training strategy combining autoregressive next-token prediction with the novel Streaming EOS objective to preserve language modeling quality while enabling selective response generation.
Experimental results
Research questions
- RQ1Can a large language model be trained to generate temporally aligned, context-aware responses in real time during a continuous video stream?
- RQ2How can a video LLM maintain long-context memory across extended video durations without exceeding model context limits?
- RQ3What training objective enables efficient, selective response generation in streaming video without relying on per-frame user queries?
- RQ4Can a unified framework achieve high inference speed for online streaming while maintaining strong performance on standard offline video benchmarks?
- RQ5How does the integration of streaming dialogue data generation improve model generalization for real-world video streaming applications?
Key findings
- VideoLLM-online achieves over 10 FPS inference speed on a 5-minute video clip using a single A100 GPU, demonstrating real-time capability for streaming video dialogue.
- The model achieves state-of-the-art performance on the COIN benchmark, with 59.8% and 63.1% accuracy on step and task recognition, respectively, outperforming prior end-to-end models.
- On the Ego4D LTA benchmark, VideoLLM-online-8B-v1+ achieves the best performance among end-to-end models with an editing distance of 0.689 for future action prediction.
- The model demonstrates strong temporal alignment, as shown in visualizations where responses are synchronized with real-time video frames and remain silent when no action is required.
- The use of multiple tokens per frame (v1+) improves vision-language understanding, increasing LG-Match from 42.3% to 49.0% on the Ego4D narration stream, though with minimal impact on inference speed.
- The LIVE framework enables the model to handle long-context video streams effectively, maintaining coherence and relevance across extended sequences without catastrophic forgetting.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.