CoStream: Codec-Guided Resource-Efficient System for Video Streaming Analytics
AI 摘要
CoStream利用视频编码信息优化视频流分析,提升吞吐并降低GPU计算成本。
主要贡献
- 提出了一种基于编解码器信息的视频流分析系统CoStream
- 通过编解码器元数据统一优化视频解码、视觉处理和LLM预填充
- 实现了在线patch剪枝和选择性KV缓存刷新
方法论
CoStream利用视频编解码器的元数据作为低成本的运行时信号,指导patch剪枝和KV缓存刷新,无需离线训练。
原文摘要
Video streaming analytics is a crucial workload for vision-language model serving, but the high cost of multimodal inference limits scalability. Prior systems reduce inference cost by exploiting temporal and spatial redundancy in video streams, but they target either the vision transformer (ViT) or the LLM with a limited view, leaving end-to-end opportunities untapped. Moreover, existing methods incur significant overhead to identify redundancy, either through offline profiling and training or costly online computation, making them ill-suited for dynamic real-time streams. We present CoStream, a codec-guided streaming video analytics system built on a key observation that video codecs already extract the temporal and spatial structure of each stream as a byproduct of compression. CoStream treats this codec metadata as a low-cost runtime signal to unify optimization across video decoding, visual processing, and LLM prefilling, with transmission reduction as an inherent benefit of operating directly on compressed bitstreams. This drives codec-guided patch pruning before ViT encoding and selective key-value cache refresh during LLM prefilling, both of which are fully online and do not require offline training. Experiments show that CoStream achieves up to 3x throughput improvement and up to 87% GPU compute reduction over state-of-the-art baselines, while maintaining competitive accuracy with only 0-8% F1 drop.