StreamAhead: Real-Time Streaming Video Question Answering via Adaptive Precomputation
Abstract
Real-time streaming video question answering with vision-language models must answer queries that arrive at any time with low latency while sustaining the video-processing rate required by the application. Existing systems construct key-value (KV) caches for the entire video as it arrives, although a query typically uses only a few of the preceding frames as evidence. This highlights a fundamental trade-off: performing more computation as video arrives reduces query-time computation but can increase processing lag, whereas deferring computation can increase the video-processing rate but requires additional query-time computation for retrieved content. We present StreamAhead, an algorithm-system co-design that exploits this trade-off through adaptive precomputation: dynamically controlling how much computation to complete for each video segment before a query arrives. StreamAhead encodes video segments independently and lets each remain at a different representation level, from inexpensive visual features to costly KV caches, completing KV caches only for the retrieved segments when a query arrives. StreamAhead profiles offline the cost of advancing a segment to each representation level. Its runtime uses these profiles to schedule segment computation concurrently with query execution, pipelining it across heterogeneous CPU and GPU resources while maintaining the required video-processing rate. StreamAhead achieves accuracy competitive with state-of-the-art methods with up to 10.4x lower time-to-first-token (TTFT), and up to 5.9x lower TTFT than state-of-the-art streaming systems. It sustains 30 FPS with P95 TTFT under 0.5 s, and up to 57 FPS with P95 TTFT under 2 s. To our knowledge, StreamAhead is the first real-time streaming video QA system with competitive accuracy, setting a new Pareto frontier between video-processing rate and TTFT.
Create a lesson
Metadata
- Categories
- cs.DC, cs.CV
- Comments
- 12 pages, 5 figures, 6 tables
Related papers
Real-Time AI Acceleration on a 2D Spatial Dataflow Architecture
Shared title terminologycs.DCShriram Raja, Anton Njavro, Richard West
A Real-time tax compliance architecture for VAT split payments with Making Tax Smart and Open Banking
Shared title terminologycs.DCPanos Louvieris, George Ioannou, Gareth White
Fault-Tolerant Offloading Framework for Real-Time Applications in Mobile Edge Computing
Shared title terminologycs.DCChuanchao Gao, Yiyang Gao, Michael Yuhas et al.
Adaptive Warm-State Retention for Serverless Cold-Start Mitigation: Treating Keep-Alive Time as an Online Control Parameter
Shared title terminologycs.DCSanjeet Raj Pandey, Axel Küpper
Live Adaptation of Dataflow Stream Processing for Hybrid Edge-Cloud Analytics
Shared title terminologycs.DCYuanli Wang, Prateek Jain, Lei Huang et al.
AttnEx: Sparse-Attention Indexing with Per-Layer Head Allocation and Streaming Top-k
Shared title terminologycs.DCDongfang Zhao