Manuscript Offprint

arXiv:2610.24537

Write Once, Query Many: Evolving Compact Reusable Memory for Long Videos

Kerui Chen, Jinglu Wang, Yun Wang, Xinjiang Wang, Yan Lu

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

ABSTRACT

Long videos often exceed the context capacity of multimodal large language models (MLLMs), while agentic search repeats costly video processing and grounding for each query. Reusable memory can amortize this cost, but must preserve information for questions unknown during construction. We propose Video-EMem, an evolvable video memory harness built on time-anchored perceptual observations. This representation combines compact free-form text with sparse images to preserve semantic content and complementary visual details across temporal scales, supporting temporal navigation without a fixed semantic schema. A Writer encodes each video once by consolidating overlapping multiscale observations, and a Reader retrieves and organizes evidence solely from the resulting memory. With the underlying models frozen, we evolve the operators within their writing and reading workflows using distinct feedback: query-independent source fidelity and coverage for the Writer, and QA failures in evidence localization and utilization for the Reader. Experiments support this separation for generalization beyond development queries, with our evolution strategy improving average accuracy by 7.2% over the unevolved harness. While reducing storage by about 99.86% on average relative to raw videos, Video-EMem improves Qwen3-VL-30B by an average of 2.6% across three long-video QA benchmarks over direct input of 2,048 frames. Using the same o3 answer model as the state-of-the-art agentic method, it improves average accuracy by 2.5% with 19×19 \times lower per-query latency.

1 INTRODUCTION

Long videos often exceed the practical context capacity of multimodal large language models (MLLMs). Search-based and agentic methods address this limitation by iteratively locating relevant segments (Ye et al., 2025; Fan et al., 2024; Zhang et al., 2026b; Chen et al., 2026b), but may repeat costly video processing and grounding, as shown in Figure 1 (a). Inspired by external memory in text-based agents (Park et al., 2023; Packer et al., 2023; Wang et al., 2023), an appealing alternative is to encode the video once into a compact representation reusable across queries. This raises a key question: how can we construct memory under a limited storage budget that preserves video information for unknown future questions and enables efficient evidence retrieval and organization?

Existing video representations offer different trade-offs. Retaining all visual tokens is costly, while subsampling can discard details and disrupt temporal continuity (Song et al., 2024; He et al., 2024; Zhang et al., 2024b; Yang et al., 2025; Wang et al., 2025b; Qian et al., 2024; Chen et al., 2026a). Textual memories are compact, but verbalization can omit fine-grained visual evidence (Kahatapitiya et al., 2025; Ma et al., 2025). Predefined schemas or relations for multimodal memory (Fan et al., 2024; Yin et al., 2026; Yeo et al., 2026) may constrain what is retained, and independently processing temporal segments (Zhang et al., 2024a; Pang & Wang, 2025) can overlook broader context. We therefore represent a video using a lightweight memory composed of time-anchored perceptual observations. Rather than exhaustively storing all frames or intermediate observations, it selectively retains semantic and perceptual evidence across multiple temporal scales through free-form text and sparse images, without imposing a predefined semantic schema.

1^{1}This work was done when K. Chen was an intern at Microsoft Research Asia.

(a) Previous methods

Figure

(b) Ours: write once, query many

Figure 1: The need for compact, reusable video memory. (a) Answering multiple questions about the same video incurs repeated processing costs: VLMs repeatedly process long visual contexts and also often omit details due to context limits, while agentic methods revisit the raw video through multiple retrieval and reasoning rounds. (b) To reduce query and storage costs, we adopt a write-once, query-many paradigm, encoding the video once into light-weight memory that preserves information for unknown future questions and supports efficient access across queries.

To construct and access such memory, we introduce Video-EMem, an evolvable harness with frozen underlying MLLMs. Development queries may cover only a subset of video content, so query-guided optimization (Xu et al., 2026b; Wang et al., 2025c; Diko et al., 2025) risks overlooking evidence needed for unseen questions. Our harness therefore separates query-independent writing from query-specific reading. Although prior work adopts this separation (Qian et al., 2024; Kahatapitiya et al., 2025), improving the two procedures under distinct objectives remains less explored. Our Writer processes each video once, consolidating observations from overlapping, multiscale windows bottom-up. It compacts text within the token budget, calibrates source-supported information lost in compression, and supplements images while limiting redundancy. Our Reader operates solely on the resulting memory: it retrieves text, accesses images for unresolved details, and organizes the evidence for a frozen answer VLM in a single retrieval-and-answer pass.

We leverage LLM-driven agent optimization (Xu et al., 2026c; Zhang et al., 2026a; Ye et al., 2026; Khattab et al., 2024; Opsahl-Ong et al., 2024; Zhang et al., 2025; Agrawal et al., 2026) to evolve the harness with separate feedback for each agent. Optimizing both agents solely for Question-Answering (QA) accuracy risks biasing memory toward development questions. The Writer therefore evolves using only source-video evidence, with feedback that rewards coverage and penalizes redundancy in textual and visual observations. With the resulting memory fixed, the Reader evolves from QA failures attributed to evidence localization or utilization. In both stages, an LLM makes targeted updates to the responsible operator.

We evaluate Video-EMem on hour-long video QA benchmarks with a memory budget of at most 20K text tokens and 160 images per video, reducing storage by about 99.86% on average relative to raw videos. For a one-hour video, this corresponds to ∼\sim 5.6 tokens and ∼\sim 0.04 images per second. Compared with direct video input, Video-EMem improves Qwen3-VL-30B by 1.2%, 4.8%, and 1.9% on LVBench (Wang et al., 2025a), Video-MME Long (Fu et al., 2025), and LongVideoBench Long (Wu et al., 2024), while the baseline using much more context (2048 images). The Writer evolves without QA supervision, while the Reader uses QA feedback only from a small subset of LVBench; both transfer to the other benchmarks without further adaptation. Our evolution strategy improves average accuracy by 7.2% over the unevolved harness. In addition, compared with the state-of-the-art agentic method DVD (Zhang et al., 2026b), Video-EMem improves average accuracy by 2.5 percentage points (72.3% vs. 69.8%) with ∼\sim 19 ×\times lower per-query latency (9.69 s vs. 180 s), using the same OpenAI o3 answer model. Our contributions are as follows:

• A compact, reusable video memory representation based on time-anchored perceptual observations that preserves source information independently of queries and supports efficient evidence retrieval and organization, and reduces storage by ∼\sim 99.86% relative to raw hour-long videos.

• An evolvable memory harness with separate Writer and Reader agents, optimized independently for source fidelity and QA performance to support generalization to unseen queries, improving average accuracy by 7.2% over the unevolved baseline.

• Experiments demonstrating our improved long-video QA performance and query efficiency (19× faster than agentic baseline).

References (34)