Manuscript Offprint

arXiv:2609.38119

VideoLoop: Looped Working Memory Against Semantic Thrashing in Long-Form Video Agents

Jinfa Huang, Jianming Xu, Jingyang Lin, Zhengyuan Yang, Jiebo Luo

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

ABSTRACT

Long-form video understanding requires multimodal agents to iteratively gather evidence over many reasoning steps. However, most existing agentic methods suffer from semantic thrashing: as append-only working memory grows, attention to key evidence collapses, and the agent loses access to what it has already found. First, we provide a structural argument showing that append-only memory can incorporate newly observed target evidence, but cannot remove accumulated noise or prevent ordered context growth without a rewrite operator. Second, motivated by this analysis, we propose VideoLoop, a multimodal agent with two coupled loops. The outer loop reasons over the video and the inner loop, after each step, retrieves artifacts from an unbounded filesystem of past observations and intermediate analysis, and rewrites a bounded working memory. Extensive experiments demonstrate the effectiveness of VideoLoop, which improves four popular LVLM backbones in a plug-and-play manner, with an average gain of 4.2% points over baseline on VideoMME (long). Further analysis of working memory suggests that VideoLoop mitigates semantic thrashing: on the hardest quarter of VideoMME (long) questions, a blind judge that reads only the agent's context answers 81.1% correctly, versus 60.9% for the append-only agent. With Gemini 3.1 Pro, VideoLoop reaches 88.3% on VideoMME (long), 88.8% on VideoMMMU, and 80.9% on LongVideoBench (long).

Email: {jhuang90, jluo}@cs.rochester.edu, philipxjml@gmail.com

Code: github.com/philipxjm/videoloop

1 INTRODUCTION

Long-form video understanding (Lin et al., 2026; Luo et al., 2025; Wang et al., 2025b; Tang et al., 2025) requires reasoning over thousands of frames spanning minutes to hours, where the evidence relevant to a question is sparse and scattered across non-contiguous segments. Although recent studies attempt to scale representations to hour-level contexts (Lin et al., 2025; Shu et al., 2025), untrimmed videos contain massive natural redundancy (Yao et al., 2025; Li et al., 2025b). Therefore, numerous methods explore adaptive temporal search, pivot frame retrieval, and step-by-step reasoning (Ye et al., 2025; Gao et al., 2026; Li et al., 2025a; Bhatnagar et al., 2026; Li et al., 2026b). In this setting, general large vision-language models (LVLMs) (Gemini Team, Google, 2023; 2024; Google DeepMind, 2026; OpenAI, 2023; 2024) still struggle to ingest such massive contexts reliably. Agentic systems (Li et al., 2026a; Lin et al., 2026; Yan et al., 2026; Zhang et al., 2025; He et al., 2026) address this gap by reasoning iteratively: at each step, the agent observes a region of the video, updates a working memory of accumulated evidence, and decides where to look next. Iterative agents consistently outperform baselines on long-form video benchmarks.

However, most prior agentic methods (Zhang et al., 2025; Li et al., 2026a; Yan et al., 2026; He et al., 2026; Wang et al., 2024) share a restrictive design: a single reasoning loop with an append-

Figure

(a) Semantic Thrashing in Append-Only Working Memory

(b) Stable Retrieval in Dual-Loop Bounded Working Memory (Ours)

Figure 1: Existing Append-only working memory leads to semantic thrashing, our VideoLoop sustains stable retrieval via a dual-loop bounded working memory. (a) A single-loop video agent appends every tool result to a working memory bounded by the LVLM context. As context accumulates, attention to key evidence is diluted, and effective retrieval first peaks and then collapses as context continues to grow. The append-only agent achieves an 81.9% final accuracy on VideoMME (long). (b) VideoLoop adds an inner orchestration loop. Tool results are written to an unbounded filesystem, and a memory orchestrator retrieves from the filesystem to rewrite a bounded working memory after every outer step. Our method improves task accuracy by +3.9 points on VideoMME (long) to 85.8%. Both configurations use Gemini 3 Flash.

only working memory. As the agent observes more, this memory accumulates within the LVLM's bounded context. Once it exceeds this bound, attention to key evidence of the user's query is severely diluted by the accumulation of observations, and the agent loses reliable access to what it has already found. As shown in Figure 1(a), we describe this systemic failure as semantic thrashing, in analogy to OS thrashing (Denning, 1968a): the agent expends increasing computational effort while its grounding on prior findings degrades, as a thrashing OS spends most cycles swapping pages rather than running useful work. We further show that semantic thrashing is a structural property of append-only updates rather than an incidental tuning issue. Treating the working memory and the optimal evidence set as subsets of a common evidence universe, append-only can reduce missing target evidence when new relevant observations arrive, but cannot remove accumulated irrelevant evidence once it has entered memory. Closing this gap requires an operator that can remove evidence from the working memory, which append-only memory by definition forbids. Moreover, append-only memory grows increasingly costly as the ordered observation log expands. Therefore, append-only memory fails along two dimensions: it cannot discard irrelevant evidence, and it cannot bound the cost of retaining past observations.

These limitations motivate a decoupled design with two complementary properties: (i) an unbounded external store retaining all observations losslessly, and (ii) a bounded working memory rewritten at every step under a fixed budget. To this end, in Figure 1(b), we propose VideoLoop, a dual-loop architecture, which realizes this decoupled design. The outer loop is a multimodal agent that observes the video and writes its findings to a persistent filesystem of past observations and intermediate analysis. The inner loop is a memory orchestrator that, after each outer step, retrieves question-relevant artifacts from the filesystem and rewrites a concise working memory. Decoupling reasoning from memory management allows each loop to operate within a fixed context budget, while the orchestrator retains random-access read privileges on the full trajectory history during consolidation. Furthermore, we evaluate our VideoLoop on three popular benchmarks for long-form video understanding. To probe memory quality, a blind judge that reads only the agent's accumulated context shows that append-only retrievability drops from 86.7% on the easiest tasks (Q1) to 60.9% on the hardest (Q4), while our method drops only from 94.7% to 81.1%. With Gemini 3.1 Pro as the policy model, it reaches 88.3% on VideoMME (long), 88.8% on VideoMMMU, and 80.9% on LongVideoBench (long), with absolute gains of 3.2% to 4.5% over the native LVLM. The dual-loop architecture is also plug-and-play across LVLM backbones, yielding consistent improvements without retraining. Overall, our contributions are summarized as follows:

• Structural motivation for semantic thrashing. We formalize semantic thrashing as a structural failure mode of append-only video-agent memory: such updates fail to remove accumulated irrelevant evidence or prevent ordered context growth without a rewrite operator.

• Dual-loop bounded working memory. VideoLoop decouples reasoning from memory management through an unbounded filesystem and bounded working memory rewritten at every step.

• Strong empirical performance. Extensive experiments demonstrate that VideoLoop effectively mitigates memory degradation, improves accuracy on three long-form video benchmarks, and generalizes across diverse LVLM backbones without retraining.

References (54)