Reasoning with Memory: A Temporal Granularity-Adaptive Framework for Training-Free Long Video Understanding

Linghao Meng, Qiankun Li, Junyuan Mao, Pujin Liao, Zhicheng He, Enbo Zhang, Kun Wang, Yang Liu, Huazhu Fu, Yueming JinarXiv 2026

TL;DR

ReMem (Reasoning with Memory) is a training-free framework that enables Multimodal Large Language Models (MLLMs) to understand long videos by adaptively selecting the most relevant keyframes. By leveraging LLM "memory" to parse question granularity and a temporal graph to map video structure, it achieves state-of-the-art zero-shot performance on long-form video benchmarks without requiring any model fine-tuning.

What Problem Does This Paper Address?

Standard MLLMs (like LLaVA or Qwen-VL) are powerful but suffer from a "context window" bottleneck: they can only process a limited number of image tokens at once. When faced with a long video (minutes to hours), these models typically resort to uniform sampling (e.g., taking one frame every few seconds) or simple query-based selection.

The authors identify two major flaws in these approaches:

  1. Ignoring Temporal Granularity: A question like "What color is the car?" requires a narrow, localized look at a specific moment, while "How many times did the car turn left?" requires a broad, global view. Static sampling doesn't adapt to these different scales.
  2. Redundancy and Context Loss: Simple similarity-based selection often picks many nearly identical frames from a single high-scoring segment, missing the broader temporal "story" and causal links between events.
Fig. 1: Query-adaptive methods evaluate frames in isolation and suffer from the absence of temporal understanding. Our ReMem overcomes this bottleneck with memory-augmented temporal granularity-adaptive sampling, achieving superior accu- racy and efficiency for long video reasoning.

Methods

ReMem introduces a dual-level memory-augmented adaptation framework that works entirely at inference time (training-free).

1. Query-Level: Memory-Driven Question Parsing

ReMem uses a "Reasoning LLM" (like GPT-4o) to analyze the user's question before looking at the video. It extracts two things:

  • Temporal Granularity ($g$): A score from 0 to 1 indicating if the question is localized (low $g$) or global (high $g$).
  • Entity Extraction: It identifies specific visual signatures (e.g., "Mbappe jersey number") to improve the signal-to-noise ratio during frame retrieval.

2. Video-Level: Synergistic Dual-Semantic Frame Alignment

Instead of just looking at how well a frame matches the text, ReMem builds a Temporal-Semantic Memory Graph.

  • Static Alignment: Standard CLIP-based similarity between frames and the enhanced query.
  • Temporal Alignment: It clusters frames into "anchor states" and uses a random walk mechanism to propagate "activation energy" through the graph. This identifies frames that are structurally important to the video's timeline, even if their individual visual similarity to the query is lower.

3. Structure-Aware Dynamic Frame Routing

Finally, ReMem clusters the selected frames into coherent "events." It then dynamically distributes the total frame budget across these clusters. This ensures the model sees a diverse set of events rather than a bunch of redundant frames from the same second of footage.

Overview of the ReMem pipeline, showing Question Parsing, Dual-Semantic Alignment, and Dynamic Frame Routing.

Datasets

The framework was evaluated on four major LongVideoQA benchmarks:

  • Video-MME: A comprehensive benchmark with videos ranging from 1.3 to 41 minutes.
  • LongVideoBench: Focuses on long-context interleaved video-language understanding.
  • MLVU: A multi-task long video understanding benchmark.
  • LVBench: An "extreme" long video understanding benchmark (average duration ~68 minutes).

Key Insights and Ideas

  • Granularity is the Key: The paper argues that the "optimal" set of frames depends entirely on the type of question. By quantifying this as a continuous variable ($g$), ReMem can smoothly transition between localized and global reasoning.
  • Structural Memory vs. Static Snapshots: A video isn't just a bag of images. By using a graph-based random walk, ReMem treats the video as a continuous evolution, allowing it to bridge the gap between scattered frames.
  • Training-Free Superiority: Surprisingly, this mathematical modeling of temporal relationships often outperforms "training-based" methods that try to learn frame selection through brute force.

Key Results

ReMem consistently improved the performance of various MLLM backbones (LLaVA-Video, Qwen2-VL, Qwen3-VL):

  • LLaVA-Video: Reached 54.5% (+12.3%) on LVBench and 67.1% (+8.2%) on LongVideoBench.
  • Qwen3-VL: Achieved a massive 14.7% lead over the supervised FrameOracle baseline on the MLVU benchmark.
  • Robustness: On the "Long" subset of Video-MME, ReMem maintained semantic coherence where other methods (like AKS) stagnated, showing a 7.7% edge in long-range reasoning.

Limitations and Future Work

  • Preprocessing Latency: While the framework is training-free, the multi-step selection process (LLM parsing, graph construction, clustering) adds to the total inference time per sample. However, the authors note this is "amortized" because the selected frame indices can be reused across different MLLM backbones for the same video/query pair.
  • LLM Dependency: The quality of the initial question parsing depends on the strength of the reasoning LLM (e.g., GPT-4o).
  • Future Directions: The authors suggest exploring more efficient and scalable spatiotemporal reasoning mechanisms to further reduce the latency of the memory graph construction.

Summary updated

BibTeX
@misc{meng2026reasoning,
  author = {Linghao Meng and Qiankun Li and Junyuan Mao and Pujin Liao and Zhicheng He and Enbo Zhang and Kun Wang and Yang Liu and Huazhu Fu and Yueming Jin},
  title = {{Reasoning with Memory: A Temporal Granularity-Adaptive Framework for Training-Free Long Video Understanding}},
  year = {2026},
  eprint = {2607.24794},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.24794},
}
Figure