VideoStir: Understanding Long Videos via Spatio-Temporally Structured and Intent-Aware RAG

Honghao Fu, Miao Xu, Yiwei Wang, Dailing Zhang, Liu Jun +1 more
4/7/2026
cs.CVcs.AI

No official code found. Best implementation: RomGai/VideoStir (15 stars, MIT, last commit 2026-06-13).

Abstract

Scaling multimodal large language models (MLLMs) to long videos is constrained by limited context windows. While retrieval-augmented generation (RAG) is a promising remedy by organizing query-relevant visual evidence into a compact context, most existing methods (i) flatten videos into independent segments, breaking their inherent spatio-temporal structure, and (ii) depend on explicit semantic matching, which can miss cues that are implicitly relevant to the query's intent. To overcome these limitations, we propose VideoStir, a structured and intent-aware long-video RAG framework. It firstly structures a video as a spatio-temporal graph at clip level, and then performs multi-hop retrieval to aggregate evidence across distant yet contextually related events. Furthermore, it introduces an MLLM-backed intent-relevance scorer that retrieves frames based on their alignment with the query's reasoning intent. To support this capability, we curate IR-600K, a large-scale dataset tailored for learning frame-query intent alignment. Experiments show that VideoStir is competitive with state-of-the-art baselines without relying on auxiliary information, highlighting the promise of shifting long-video RAG from flattened semantic matching to structured, intent-aware reasoning. Codes and checkpoints are available at Github.

View on arXivView PDF

Code Implementations(1)

RomGai/VideoStirCommunity25%
MIT

Official code repository for the ACL 2026 paper: "VideoStir: Understanding Long Videos via Spatio-Temporally Structured and Intent-Aware RAG"

150C++, CudaJan 21, 20264 months agoMIT

Similar Papers

Cite this paper

@article{fu2026videostir,
  title  = {VideoStir: Understanding Long Videos via Spatio-Temporally Structured and Intent-Aware RAG},
  author = {Honghao Fu and Miao Xu and Yiwei Wang and Dailing Zhang and Liu Jun and Yujun Cai},
  year   = {2026},
  eprint = {2604.05418},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.05418v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2604.05418.svg)](https://codeofpaper.com/paper/2604.05418)

Discussion