VTG-RAG: Long-Video Reasoning via Query-Adaptive Coarse-to-Fine Sampling and Temporal Graph Retrieval

Yao Lu, Yunhao Wang, Yaxin Gao, Feifei Teng, Chenxiao Liu, Zhe Tang, Jiaheng Wei, Zhaowei Zhu, Shanqing Yu, Qi XuanarXiv 2026 · arXiv

Long-form video understanding is the "final boss" of multimodal AI. While current Large Vision-Language Models (LVLMs) can describe a 10-second clip with ease, they often stumble when asked to reason over an hour-long movie or a complex surveillance feed. The challenge isn't just the sheer volume of data; it’s that the critical evidence is often sparse, buried under mountains of irrelevant "distractor" frames, and tied together by complex temporal relationships.

A new paper, VTG-RAG, introduces a framework that moves away from the "brute force" approach of uniform sampling, instead opting for a query-adaptive, graph-based strategy to navigate long-video timelines.

TL;DR

VTG-RAG is a retrieval-augmented generation framework that tackles long-video reasoning by combining query-adaptive coarse-to-fine sampling with temporal graph retrieval. By prioritizing video segments with high relevance variance and organizing evidence into a structured multimodal graph, it achieves significant accuracy gains on benchmarks like LongVideoBench while using roughly 50% fewer tokens than standard methods.

What Problem Does This Paper Address?

Most current video RAG (Retrieval-Augmented Generation) systems rely on uniform sampling. They slice a video into equal chunks, index them, and hope the retriever finds the right ones.

However, in long videos, this is problematic for two reasons:

  1. The "Average" Trap: A video segment might have low average relevance to a query but contain one or two critical frames (the "needle"). Uniform sampling often misses these spikes in relevance.
  2. Loss of Structure: Standard RAG treats video chunks as a "flat" list. It struggles to understand that Event A happened before Event B, or that the "man in the red shirt" in minute 5 is the same person seen in minute 50.

VTG-RAG aims to bridge this gap by intelligently selecting what to look at and then mapping those observations into a temporally aware "memory" graph.

Methods

The VTG-RAG architecture consists of three main modules:

  1. Query-Adaptive Coarse-to-Fine Sampling: Instead of just looking for segments with high mean similarity to the question, the system uses an "optimistic score." This score considers both the mean relevance and the intra-segment variance. High variance suggests a segment might contain a brief but vital moment. The system then performs a second, "fine-grained" sampling pass on the top candidates to confirm their importance.

  2. Temporal Graph Construction: The selected "core segments" are processed to extract visual descriptions, transcripts, entities (People, Locations, Objects, Events), and their relations. These are woven into a directed multigraph. Crucially, segments are linked by NEXT_IN_TIME edges, and identical entities are fused across different time stamps to maintain identity throughout the video.

  3. Time-Constrained Retrieval & Reasoning: The system doesn't just "search" the graph; it plans. It rewrites the user's query into sub-questions and performs a two-pass retrieval. The first pass builds a "working memory" of the timeline, and the second pass fills in specific evidence gaps. If the query has a timestamp (e.g., "What happened before the explosion?"), the retriever applies a temporal filter to ignore "future" information.

Datasets

The authors evaluated VTG-RAG on two primary benchmarks:

  • Video-MME: A comprehensive evaluation benchmark for multimodal LLMs in video analysis.
  • LongVideoBench: A dataset specifically designed for long-context interleaved video-language understanding, featuring videos up to an hour long.

Key Insights and Ideas

  • Variance is a Signal: One of the most clever insights is using relevance variance during sampling. In long-video reasoning, the "truth" is often a spike in a sea of noise. By rewarding segments with high variance, the model avoids discarding segments that are "mostly boring but briefly critical."
  • Graph vs. Flat Text: The paper demonstrates that a temporal graph is superior to a flat list of text chunks. The graph preserves the "flow" of the video, allowing the model to perform multi-hop reasoning (e.g., connecting a character's introduction to their later actions).
  • Efficiency Gains: By being selective about which frames enter the reasoning engine, VTG-RAG reduces the token count significantly. The authors report an average reduction of ~50% in token usage compared to direct inference baselines, making the process both faster and cheaper.

Key Results

VTG-RAG consistently outperformed both direct-inference baselines and other graph-based RAG methods:

  • LongVideoBench: Using the Qwen2.5-VL-32B model, VTG-RAG improved accuracy from 48.16% to 50.56% (+2.40 percentage points). With the 72B model, it reached 53.32%.
  • Video-MME: The framework achieved an average score of 42.34, outperforming other graph-based methods like LightRAG (39.29) and VideoRAG (33.77).
  • Scaling: The benefits of VTG-RAG were observed across various model sizes (7B to 72B), suggesting that the framework complements the inherent reasoning capacity of the underlying vision-language model.

Limitations and Future Work

While powerful, the authors acknowledge several hurdles:

  • Dependency on Captions: The quality of the temporal graph is only as good as the initial visual captions and entity extraction. If the captioning model misses a detail, the graph will be "blind" to it.
  • Linguistic vs. Visual: The current sampling relies heavily on image-text similarity. If the key evidence is purely linguistic (e.g., a specific word mentioned in a long, visually static conversation), the sampler might miss it.
  • Future Directions: The authors suggest moving toward more "event-centric" graph schemas and exploring adaptive segment lengths rather than fixed 16-second windows.

VTG-RAG represents a significant step toward AI that doesn't just "watch" video, but actually remembers and organizes it. For researchers in egocentric vision or long-form content analysis, this coarse-to-fine graph approach offers a promising blueprint for the future.

Summary updated

Abstract

Long-video reasoning requires a system to localize sparse evidence over extended temporal sequences, preserve temporal structure, and generate answers despite substantial multimodal distractors. Existing video retrieval-augmented generation methods typically build indexes from uniformly sampled video segments. In long-video settings, this design readily introduces irrelevant context and is unreliable for questions with explicit temporal constraints. We propose VTG-RAG, a framework for long-video question answering that combines query-adaptive coarse-to-fine sampling with temporal graph retrieval. First, a two-stage sampling strategy selects core segments with high mean query relevance or high intra-segment relevance variance. The framework then integrates subtitles, speech transcripts, visual descriptions, entities, and relations from these segments into a temporally ordered multimodal graph. Finally, it performs temporally filtered, two-pass retrieval and reasoning across frame, text, and graph evidence spaces. A lot of experiments have proven the effectiveness of the VTG-RAG. Specifically, we evaluate the framework on Video-MME and LongVideoBench. On LongVideoBench, the reported Qwen2.5-VL-32B and 72B results improve from 48.16% to 50.56% and from 52.13% to 53.32%, respectively, with 24 answer-input frames. These correspond to gains of 2.40 and 1.19 percentage points. The ablation experiments of VTG-RAG further support that the contributions of each component are very important.
BibTeX
@misc{lu2026vtg,
  author = {Yao Lu and Yunhao Wang and Yaxin Gao and Feifei Teng and Chenxiao Liu and Zhe Tang and Jiaheng Wei and Zhaowei Zhu and Shanqing Yu and Qi Xuan},
  title = {{VTG-RAG: Long-Video Reasoning via Query-Adaptive Coarse-to-Fine Sampling and Temporal Graph Retrieval}},
  year = {2026},
  eprint = {2611.18746},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.18746},
}
Figure