arXiv:2609.35497cs.CVSep 2026

Manuscript Offprint

arXiv:2609.35497

Sprout: Building Dynamic Memory While Reasoning for Agentic Video Understanding

Wei Chen, Xuanyu Zheng, Yancheng Long, Haoyang Xu, Kaiyu Jiang, Bin Wen, Tingting Gao, Han Li, Long Chen

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Long video understanding relies on video memory to overcome the context limits of multimodal large language models. Existing methods follow a build-then-reasoning pipeline: memory is built offline for the entire video, then reasoned over as a static source. In practice a long video is shared by several questions, and this pipeline is costly at both ends: with few questions, building memory for the whole video costs far more than answering them; with many questions, the memory is never updated, so what is learned while answering questions is lost to the next question. To alleviate these, we introduce Sprout, an agentic framework that builds memory while reasoning: a temporal tree that sprouts detailed nodes as questions are answered. The agent watches the video segment by segment at a low frame rate, stopping when the current question can be answered, remembers each segment as a coarse node of the tree, and revisits key intervals at a higher frame rate to refine the tree with the recovered details. Once a segment is recorded as text, its video input is removed from the context history, while the original video remains reachable through the video tools. The memory tree and prior question-answer records persist across questions, so the memory is online and dynamic: built from the first question onward and updated by every question thereafter. We find that replacing accumulated video inputs with textual memory substantially reduces context usage while maintaining accuracy, with slight improvements in some settings. Across benchmarks on three models, Sprout achieves competitive or improved accuracy relative to representative offline memory methods, with no upfront construction stage and lower context cost per question.

1 INTRODUCTION

Advances in multimodal large language models (MLLMs) (Qwen Team, 2026; Google DeepMind, 2026; Keye Team, 2026) have extended video understanding from short clips to long recordings spanning hours, such as lectures, films, and days of egocentric activity (Fu et al., 2025; Wang et al., 2025a; Yang et al., 2025). Answering questions about such videos requires locating brief moments scattered across time and connecting the evidence among them. As duration grows, however, feeding the video directly into the model becomes infeasible: the number of visual tokens scales linearly with length and quickly exceeds what a context window can hold. Sampling more sparsely fits the budget but discards the brief moments that questions often hinge on, while sampling more densely preserves them at a cost the context cannot absorb. Long video understanding therefore relies on video memory: a representation of the video maintained outside the context, from which question-relevant content is retrieved when needed.

Existing methods (QwenLM, 2026; Choi et al., 2026) construct video memory through a build-then-reasoning pipeline (Figure 1a): they first build memory offline, then reason over the resulting static memory with an agentic framework. In the construction stage, the model processes the entire video without knowing future questions and stores it as persistent memory; In the reasoning stage,

†^{\dagger}Corresponding author.

Figure

(a) Build-then-Reasoning

(b) Per-question Token Cost

Figure

(c) Build-while-Reasoning (Ours)

Figure 1: (a) Offline memory is first built for the whole video before the first question; Q1–Q6 then reason over the same memory without updating it. Nodes used by a question take that question's color, and the rest are never touched. (b) Per-question tokens with Gemini 3.8 Flash as the model. Direct feeds the video and question directly to the model. Offline memory is Qwen-MM-Plugins: its construction cost, amortized over the benchmark's questions. Our method has no construction stage. (c) Sprout builds memory while reasoning. The agent watches the video segment by segment at a low frame rate and stops once the question has enough evidence, so the tail of the video is never watched and costs nothing. Each watched segment is remembered as a coarse textual node written into memory; revisits at a higher frame rate add child nodes beneath the intervals a question needs.

it retrieves relevant evidence from that memory to answer a given question. Prior work within this pipeline mainly differs in how the offline memory is organized. Hierarchical memories (Yang et al., 2025; Tian et al., 2025) recursively summarize short segments into multi-scale representations, enabling top-down retrieval from coarse summaries to fine segments. Graph-based memories (Long et al., 2026a; Yeo et al., 2026; Chen et al., 2026; QwenLM, 2026) model relations among events, entities, and time, answering questions through navigation and traversal over the resulting structure. Flat episodic memories (Choi et al., 2026) keep construction minimal by indexing clip captions with multiple retrieval keys and deferring semantic composition to inference time. Despite these differences, all share two properties. First, memory is built offline over the entire video before answering, requiring costly conversion of fine-grained details into memory. Second, memory is static: it is only read during inference and not updated, so the model's observations and conclusions cannot persist across questions. In practice, a long video may be used to answer anywhere from a single question to a dozen or more. This leaves offline, static memory limited at both extremes: 1) upfront construction is wasteful when few questions are asked, since it must record every segment regardless of what is eventually asked; 2) a non-updatable memory prevents useful information from accumulating when many questions are asked, forcing each question to recover the same evidence from scratch.

To address these limitations, we propose a new framework whose memory is built while reasoning rather than before it, following two principles. First, the memory is built online from what the model has watched: rather than recording every segment in advance, it grows as the model watches for each question, so no cost is paid for video that no question needs. Second, the memory is refined from coarse to fine: it starts as brief summaries of what happens in each segment, and whenever the model looks closer at a segment to answer a question, it adds the details it finds.

Based on the build-while-reasoning framework, we introduce Sprout, an agentic framework whose memory is a temporal tree that sprouts new nodes as questions are answered (Figure 1c), built through three actions: watch, remember, and revisit. Watch. Given a question, the agent streams the video segment by segment at a low frame rate, starting from the beginning of videos or where the memory left off, and stops once it judges that the segments the question needs have been found. Remember. As each segment is watched, the agent writes it into memory as a coarse node with a time interval and an event summary, forming the first level of a temporal tree. Once a segment is recorded, its video input is removed from the context history, allowing the agent to reason without that video chunk and greatly reducing context pressure. Revisit. When a retrieved node identifies a relevant video interval but lacks the needed detail, the agent revisits it at a higher frame rate, saves the recovered details as child nodes, and may search memory for related earlier information. The revisited frames are released from the context history in the same way.

Together, the three actions follow the two principles above. Watching and remembering build the memory online from the video the model has actually watched, and keep text rather than video in the context. Revisiting refines coarse nodes into finer ones while the model reasons. As a result, our memory is online and dynamic: it is built online after the first question arrives, even when the full video is available in advance, and it keeps growing as each question adds nodes, refines existing ones, and leaves its answer behind.

We evaluate Sprout with three models (GPT-5 (OpenAI, 2025), Qwen3.8-Max, and Gemini 3.8 Flash) on LVBench (Wang et al., 2025a), Video-MME Long (Fu et al., 2025), and Video-Holmes (Cheng et al., 2026). Its accuracy is competitive with or better than representative offline memory methods, while it pays no construction cost before the first question. It also uses fewer tokens (Figure 1b): with Gemini 3.8 Flash, it spends 71.7K and 99.3K tokens per question on LVBench and Video-MME Long, 74% and 55% fewer than direct inference.

In summary, our contributions are threefold:

• We identify two limitations of the build-then-reasoning pipeline: offline construction is wasteful for few-question videos, and static memory cannot accumulate insights from earlier reasoning.

• We propose Sprout, an agentic framework that builds memory while reasoning through three actions: it watches the video at a low frame rate, remembers each segment as a coarse node of a temporal tree, and revisits key intervals at a higher frame rate to add finer nodes.

• We further find that removing video frames from the context once they are recorded as text keeps the context small without reducing accuracy. Experiments with three models on benchmarks show that Sprout is more effective than an offline memory method.

References (32)