VideoRAG: Retrieval-Augmented Generation over Video Corpus

Soyeong Jeong, Kangsan Kim, Jinheon Baek, Sung Ju Hwang
1/10/2025
cs.CVcs.AIcs.CL

Official code: starsuzi/VideoRAG (85 stars, last commit 2025-03-17).

Abstract

Retrieval-Augmented Generation (RAG) is a powerful strategy for improving the factual accuracy of models by retrieving external knowledge relevant to queries and incorporating it into the generation process. However, existing approaches primarily focus on text, with some recent advancements considering images, and they largely overlook videos, a rich source of multimodal knowledge capable of representing contextual details more effectively than any other modality. While very recent studies explore the use of videos in response generation, they either predefine query-associated videos without retrieval or convert videos into textual descriptions losing multimodal richness. To tackle these, we introduce VideoRAG, a framework that not only dynamically retrieves videos based on their relevance with queries but also utilizes both visual and textual information. The operation of VideoRAG is powered by recent Large Video Language Models (LVLMs), which enable the direct processing of video content to represent it for retrieval and the seamless integration of retrieved videos jointly with queries for response generation. Also, inspired by that the context size of LVLMs may not be sufficient to process all frames in extremely long videos and not all frames are equally important, we introduce a video frame selection mechanism to extract the most informative subset of frames, along with a strategy to extract textual information from videos (as it can aid the understanding of video content) when their subtitles are not available. We experimentally validate the effectiveness of VideoRAG, showcasing that it is superior to relevant baselines. Code is available at https://github.com/starsuzi/VideoRAG.

View on arXivView PDF

Code Implementations(1)

starsuzi/VideoRAGOfficial100%

VideoRAG: Retrieval-Augmented Generation over Video Corpus

853Shell, PythonMar 4, 20251 years ago
large-language-modelsllmsmultimodalragvideorag

Similar Papers

Cite this paper

@article{jeong2025videorag,
  title  = {VideoRAG: Retrieval-Augmented Generation over Video Corpus},
  author = {Soyeong Jeong and Kangsan Kim and Jinheon Baek and Sung Ju Hwang},
  year   = {2025},
  eprint = {2501.05874},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.05874v3}
}

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/2501.05874.svg)](https://codeofpaper.com/paper/2501.05874)

Discussion