Bridging Modalities, Spanning Time: Structured Memory for Ultra-Long Agentic Video Reasoning

Jiazheng Li, Chi-Hao Wu, Yunze Liu, Kaize Ding, Jundong Li, Chuxu ZhangarXiv 2026

TL;DR

MAGIC-Video is a training-free structured-memory framework designed to help AI agents reason over ultra-long videos spanning days or weeks. By combining a Multimodal Memory Graph with a Narrative Memory Chain, it unifies cross-modal retrieval and long-horizon tracking, achieving state-of-the-art results on massive lifelogging and livestreaming benchmarks.

What Problem Does This Paper Address?

Multimodal Large Language Models (MLLMs) boast increasingly massive context windows, yet processing ultra-long videos—such as week-long egocentric life-logs or multi-week surveillance footage—remains a major bottleneck. Fitting raw frames from a 50+ hour video into a context window forces aggressive downsampling, which discards crucial fine-grained details before inference even begins.

To bypass this, current systems build external memories offline and retrieve query-relevant snippets. However, they suffer from two core flaws:

  1. Cross-modal fragmentation: They store text and visual modalities in separate, unlinked databases, meaning an agent must awkwardly stitch together independent search results.
  2. Detail dilution: They rely on bottom-up caption summaries that abstract away fine-grained details over long horizons. If you ask "how did the cake-baking project unfold across the week?", standard retrieval-augmented generation (RAG) either returns a generic summary or scattered, disconnected snippets.
Overview of ultra-long video reasoning challenges and the MAGIC-Video solution.

Methods

MAGIC-Video addresses these challenges through a training-free architecture split into two phases:

1. Offline Memory Construction

  • Multimodal Memory Graph (MMG): The video is preprocessed into multi-granularity captions, visual embeddings, named entities, and semantic triples. These are unified into a single heterogeneous graph with four node types and six typed edges (e.g., linking an entity to the specific visual clip it appears in). This structure allows a single Personalized PageRank (PPR) pass to propagate relevance across modality boundaries seamlessly.
  • Narrative Memory Chain (NMC): To complement the graph, an LLM scans the video offline to distill top-down narrative threads. It generates topic chains (tracking a specific entity's lifecycle) and event chains (linking related multi-day activity steps).

2. Online Agentic Retrieval Loop

At inference time, an LLM-driven controller orchestrates a multi-round retrieval loop (capped at 5 rounds). For each query, it seeds a cross-modal PPR pass over the graph and injects matching narrative facts from the NMC. The merged, time-ordered context is then fed to a reasoning backbone (Qwen3.5-Flash) to generate the final answer.

Figure 2: MAGIC-Video pipeline. Offline (left): preprocessing produces multi-granularity captions, named entities, semantic triples, and visual embeddings, from which we build the Multimodal Memory Graph (four node types connected by six typed edges) and the Narrative Memory Chain (topic chains + event chains). Online (right): for each question, an agentic loop seeds cross-modal Personalized PageRank over the graph, injects matching chains, and feeds the merged context to the reasoning backbone, which either refines its search or commits to an answer.

Datasets

The framework was evaluated on three ultra-long video benchmarks:

  • EgoLifeQA: 7 days of continuous egocentric first-person footage (51.9 hours) featuring 500 multiple-choice questions across five long-range reasoning subtasks.
  • Ego-R1 Bench: Uses the same 7-day egocentric video corpus but introduces a different set of 50 questions split between manual and model-generated sets.
  • MM-Lifelong (Month subset): 14 livestream videos totaling 105.6 hours spanning 51 days, evaluated using 623 open-ended questions.

Key Insights and Ideas

  • Graph-Native Multimodality: Instead of treating text and video as separate search silos, embedding visual clips and text entities as first-class nodes in the same graph allows structural traversal to bridge the modality gap in a single step.
  • Top-Down Meets Bottom-Up: While bottom-up captioning captures local context, top-down distillation via the Narrative Memory Chain is essential for preserving long-horizon biographies and recurring events across days.
  • Stateless Memory Efficiency: Consolidating multi-granularity captions into a single graph with temporal edges avoids the massive memory overhead of maintaining separate indices, preventing Out-Of-Memory (OOM) errors on month-scale data.

Key Results

Despite using a lightweight reasoning backbone (Qwen3.5-Flash), MAGIC-Video consistently outperformed strong general-purpose, long-video, and specialized agentic baselines:

  • On EgoLifeQA, it achieved a 67.6% average accuracy, outperforming the prior best agentic system (EGAgent with a Gemini 2.5 Pro backbone) by 10.1 points.
  • On Ego-R1, it reached 64.7%, beating WorldMM by 7.4 points.
  • On MM-Lifelong, it scored 24.5% under a strict GPT-5 judge, a 5.9-point gain over ReMA-GPT-5.

Ablation experiments confirmed that the MMG and NMC components are highly complementary; removing either component led to a significant drop in accuracy across all benchmarks.

Figure 3: Cumulative ablation of stacking MMG and then NMC on top of an independent-retrieval (IR) baseline. The third bar is the full MAGIC-Video system. EgoLifeQA / Ego-R1 use MC accu- racy; MM-Lifelong uses GPT-5-judged answer accuracy (same 0–100 scale).

Limitations and Future Work

  • Caption-Bounded Recall: The framework is fundamentally upper-bounded by the quality of its raw text captions. If an event is omitted during the initial captioning phase, it cannot be surfaced by graph traversal or chain matching.
  • Strictly Offline Construction: Both the MMG and NMC must be built entirely offline before querying, meaning the system does not currently support streaming or real-time video updates.
  • Higher Token Consumption: Combining multi-scale graph nodes with rich narrative chains increases the per-question token context. The authors suggest a future direction involving a relevance-pruning pass after each search round to drop unused context.

Summary updated

BibTeX
@misc{li2026bridging,
  author = {Jiazheng Li and Chi-Hao Wu and Yunze Liu and Kaize Ding and Jundong Li and Chuxu Zhang},
  title = {{Bridging Modalities, Spanning Time: Structured Memory for Ultra-Long Agentic Video Reasoning}},
  year = {2026},
  eprint = {2605.08271},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.08271},
}
Figure