StreamAgent: Towards Anticipatory Agents for Streaming Video Understanding
Haolin Yang, Feilong Tang, Lingxiao Zhao, Xiang An, Ming Hu, Huifa Li, Xinlin Zhuang, Yifan Lu, Xiaofeng Zhang, Abdalla Swikir, Junjun He, Zongyuan Ge, Imran Razzak
TL;DR
StreamAgent addresses real-time streaming video understanding by integrating anticipatory planning with a memory-aided perception loop. It forecasts future task-relevant events and regions, aligns current observations with those predictions, and engages tool-augmented perception to proactively gather evidence, all coordinated by a planning-driven decision agent. A streaming KV-cache memory mechanism enables selective recall across long videos by combining on-GPU short-term memory with CPU offloaded long-term memory and dynamic, layer-aware retrieval. Results show leading performance on streaming benchmarks with substantially reduced latency compared to baselines, and strong competitive performance on offline long-video tasks, underscoring the practical value of anticipatory planning and memory-efficient retrieval in real-time video understanding. The approach advances real-time, proactive video QA by fusing future-aware reasoning, hierarchical memory, and targeted perception, with potential applications in autonomous driving and intelligent surveillance.
Abstract
Real-time streaming video understanding in domains such as autonomous driving and intelligent surveillance poses challenges beyond conventional offline video processing, requiring continuous perception, proactive decision making, and responsive interaction based on dynamically evolving visual content. However, existing methods rely on alternating perception-reaction or asynchronous triggers, lacking task-driven planning and future anticipation, which limits their real-time responsiveness and proactive decision making in evolving video streams. To this end, we propose a StreamAgent that anticipates the temporal intervals and spatial regions expected to contain future task-relevant information to enable proactive and goal-driven responses. Specifically, we integrate question semantics and historical observations through prompting the anticipatory agent to anticipate the temporal progression of key events, align current observations with the expected future evidence, and subsequently adjust the perception action (e.g., attending to task-relevant regions or continuously tracking in subsequent frames). To enable efficient inference, we design a streaming KV-cache memory mechanism that constructs a hierarchical memory structure for selective recall of relevant tokens, enabling efficient semantic retrieval while reducing the overhead of storing all tokens in the traditional KV-cache. Extensive experiments on streaming and long video understanding tasks demonstrate that our method outperforms existing methods in response accuracy and real-time efficiency, highlighting its practical value for real-world streaming scenarios.
