Homer: Understanding Long-form Videos with Hierarchical Memory and Agentic Reasoning

Yixin Ji, Fanghua Ye, Juntao Li, Bo Zhao, Zexuan Qiu, Zhaopeng Tu, Liefeng Bo, Min ZhangarXiv 2026

TL;DR

HOMER is a training-free framework that enables multimodal large language models (MLLMs) to understand hour-long videos in an online, streaming setting. By structuring video history into a three-layer hierarchical memory (perceptual, entity, and event-centric) and navigating it with a "verify-and-correct" agentic reasoner, HOMER achieves state-of-the-art performance on long-video benchmarks without requiring expensive model retraining.

What Problem Does This Paper Address?

While MLLMs excel at analyzing short video clips, hour-long videos present a massive challenge. In real-world streaming or online scenarios (like robotics or continuous monitoring), frames arrive sequentially, making it impossible to store the entire raw video due to memory constraints.

Existing online methods typically compress visual tokens into compact representations or log them into text-based memory banks based purely on temporal proximity. This creates a harsh tradeoff: coarse-grained memories lose critical fine details, while fine-grained memories become an unnavigable mess at scale. Furthermore, because these methods lack explicit structural mapping of how events connect causally, the LLM is forced to reconstruct the video's narrative from scratch for every single query.

Methods

HOMER (Hierarchical Online Memory Exploration and Reasoning) bridges this gap by mimicking human memory organization and retrieval. It consists of two core components: a Hierarchical Online Memory and an Agentic Reasoner.

Figure 1: Overview of HOMER. Each incoming clip is processed online into a Perceptual Buffer of key frames, an Entity Graph of character-centric episodic and semantic memories, and an Event Graph of narrative segments linked by temporal and causal edges. At question time, an agentic reasoner decomposes the query and performs multi-turn retrievals at progressively finer granularity to produce the final answer.

1. Hierarchical Online Memory

As the video streams in, HOMER incrementally builds a three-layer memory store:

  • Perceptual Buffer: Stores high-quality keyframes extracted via a novel sharpness-entropy joint quality score to preserve raw visual snapshots.
  • EntityGraph: Tracks characters by clustering face and voice embeddings, attaching clip-level episodic memories (actions, dialogues) and high-level semantic knowledge to specific identity anchors.
  • EventGraph: Groups clips into high-level event segments. Crucially, it uses an LLM to dynamically construct directed edges that explicitly define temporal and causal relationships (e.g., "Event A enables Event B" or "Event C causes Event D").

2. Agentic Reasoner with Harness Engineering

Instead of scanning memory linearly, the reasoner decomposes a question into atomic subtasks managed via a structured task ledger. The agent executes multi-round retrieval across four distinct modes: EVENT (coarse narrative context), VIDEO (fine-grained entity details), NEIGHBOR (graph-walking across causal links), and KEYFRAME (raw visual verification).

To ensure this multi-turn loop operates reliably, the authors introduce a harness engineering paradigm:

  • Inform/Constrain: Formats retrieval payloads into clean summaries and enforces strict output guardrails (e.g., deduplicating redundant queries).
  • Verify/Correct: Uses a lightweight sufficiency signal based on keyword fingerprints to detect when information has saturated, triggering strategy adjustments or subtask repairs if the agent gets stuck.
  • Self-Evolution: Automatically extracts successful retrieval strategies across questions, compiling them into a reusable skill library that optimizes future performance without any model fine-tuning.

Datasets

The authors evaluated HOMER on three challenging long-video benchmarks:

  • M3-Bench-robot: 1,276 open-ended questions over 100 robot-perspective real-life videos (averaging 35 minutes).
  • M3-Bench-web: 3,214 open-ended questions over 900 YouTube videos (averaging 27 minutes).
  • Video-MME-Long: 900 multiple-choice questions based on 300 videos ranging from 30 to 60 minutes.

Key Insights and Ideas

  • Causal Edges Matter: Ablation studies revealed that adding explicit event-level causal and temporal edges provided the most significant boost to multi-hop reasoning. It allows the agent to "walk" the narrative graph efficiently rather than guessing blindly.
  • The Bottleneck is Upstream: A detailed failure analysis showed that over 80% of errors were rooted in memory construction (either information was entirely absent or too coarse), rather than the agent's downstream reasoning or search behavior.
  • Model-Agnostic Architecture: HOMER's performance gains are structural. It successfully boosts the capabilities of text-only and open-source models (like Qwen3-Coder and DeepSeek-v4-Flash), allowing them to match or exceed closed-source multimodal giants like Gemini-2.5-Flash on long-video tasks without any video-specific fine-tuning.

Key Results

HOMER achieved substantial performance leaps over previous state-of-the-art online video understanding and agent-based methods:

Table 1: Main results on M3-Bench and Video-MME-Long. We compare HOMER with online video understanding models and agent-based baselines. ME, MH, CM, PU, GK denote multi-evidence reasoning, multi-hop reasoning, cross-modal reasoning, person understanding, and general knowledge extraction question types, respectively. All numbers are accuracy in %, and All reports the overall accuracy on the full split.
  • M3-Bench-robot: Reached 42.8% accuracy, outperforming the previous best agent baseline (M3-Agent-Gemini3) by +5.5 points.
  • M3-Bench-web: Reached 56.4% accuracy, a massive +10.8 point improvement.
  • Video-MME-Long: Achieved 75.1%, outperforming the baseline by +4.4 points.
  • Person Understanding: On the robot dataset, person-centric reasoning improved by +11.9 points, proving the efficacy of the EntityGraph.

Limitations and Future Work

The authors note that the primary bottleneck remains the upstream memory construction phase. If a fine-grained detail is missed or overly abstracted when the video frame first passes through the pipeline, the agent cannot retrieve it later, since the raw video stream is discarded.

Future work will focus on developing methods to generate denser, more accurate episodic summaries during the initial online ingestion phase, alongside stricter constraints to ensure the final answer synthesis remains completely faithful to the retrieved evidence.

Summary updated

BibTeX
@misc{ji2026homer,
  author = {Yixin Ji and Fanghua Ye and Juntao Li and Bo Zhao and Zexuan Qiu and Zhaopeng Tu and Liefeng Bo and Min Zhang},
  title = {{Homer: Understanding Long-form Videos with Hierarchical Memory and Agentic Reasoning}},
  year = {2026},
  eprint = {2607.02588},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.02588},
}
Figure