arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.25551cs.DCcs.CV
收藏

StreamAhead:基于自适应预计算的实时流视频问答

StreamAhead: Real-Time Streaming Video Question Answering via Adaptive Precomputation

University of Southern California (USC)(南加州大学);DEVCOM Army Research Office(德沃科姆陆军研究办公室)

Haoyang Fan, Dhruv Parikh, Rajgopal Kannan, Viktor Prasanna

AI总结:

StreamAhead通过算法-系统协同设计的自适应预计算,在维持视频处理速率的同时大幅降低实时流视频问答的首次令牌生成时间,实现了准确率与效率的新平衡。

摘要:

基于视觉语言模型的实时流视频问答需在应用要求的视频处理速率下,低延迟响应任意时刻到达的查询。现有系统会在视频到达时为整个视频构建键值(KV)缓存,但查询通常仅使用前序少量帧作为证据,这凸显了一个基本权衡:视频到达时执行更多计算可减少查询时计算量,但会增加处理延迟;而推迟计算可提高视频处理速率,但需为检索内容增加查询时计算量。本文提出StreamAhead,一种算法-系统协同设计,通过自适应预计算利用该权衡:在查询到达前动态控制每个视频段的计算量。StreamAhead独立编码视频段,使每个段保持不同的表示级别,从低成本视觉特征到高成本KV缓存,仅在查询到达时为检索到的段完成KV缓存。StreamAhead离线分析将段推进至各表示级别的成本,运行时利用这些分析在查询执行的同时调度段计算,在异构CPU和GPU资源间流水线化,同时维持所需的视频处理速率。StreamAhead实现了与最先进方法相当的准确率,首次令牌生成时间(TTFT)最高降低10.4倍,比最先进的流系统TTFT最高降低5.9倍。它在P95 TTFT低于0.5秒时维持30 FPS,在P95 TTFT低于2秒时最高达到57 FPS。据我们所知,StreamAhead是首个具有相当准确率的实时流视频问答系统,在视频处理速率和TTFT之间设定了新的帕累托前沿。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑