UniversalRAG: Retrieval-Augmented Generation over Corpora of Diverse Modalities and Granularities

Woongyeong Yeo, Kangsan Kim, Soyeong Jeong, Jinheon Baek, Sung Ju Hwang
4/29/2025
cs.CLcs.AIcs.CV

No official code found. Best implementation: wgcyeo/UniversalRAG (177 stars, Apache-2.0, last commit 2025-05-21).

Abstract

Retrieval-Augmented Generation (RAG) has shown substantial promise in improving factual accuracy by grounding model responses with external knowledge relevant to queries. However, most existing approaches are limited to a text-only corpus, and while recent efforts have extended RAG to other modalities such as images and videos, they typically operate over a single modality-specific corpus. In contrast, real-world queries vary widely in the type of knowledge they require, which a single type of knowledge source cannot address. To address this, we introduce UniversalRAG, designed to retrieve and integrate knowledge from heterogeneous sources with diverse modalities and granularities. Specifically, motivated by the observation that forcing all modalities into a unified representation space derived from a single aggregated corpus causes a modality gap, where the retrieval tends to favor items from the same modality as the query, we propose modality-aware routing, which dynamically identifies the most appropriate modality-specific corpus and performs targeted retrieval within it, and further justify its effectiveness with a theoretical analysis. Moreover, beyond modality, we organize each modality into multiple granularity levels, enabling fine-tuned retrieval tailored to the complexity and scope of the query. We validate UniversalRAG on 10 benchmarks of multiple modalities, showing its superiority over various modality-specific and unified baselines.

View on arXivView PDF

Code Implementations(1)

wgcyeo/UniversalRAGCommunity100%
Apache-2.0

[ACL 2026] UniversalRAG: Retrieval-Augmented Generation over Corpora of Diverse Modalities and Granularities

17715Shell, PythonApr 30, 20251 years agoApache-2.0
aillmmultimodalrag

Similar Papers

Cite this paper

@article{yeo2025universalrag,
  title  = {UniversalRAG: Retrieval-Augmented Generation over Corpora of Diverse Modalities and Granularities},
  author = {Woongyeong Yeo and Kangsan Kim and Soyeong Jeong and Jinheon Baek and Sung Ju Hwang},
  year   = {2025},
  eprint = {2504.20734},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.20734v3}
}

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

Discussion