ViDoRAG: Visual Document Retrieval-Augmented Generation via Dynamic Iterative Reasoning Agents

Qiuchen Wang, Ruixue Ding, Zehui Chen, Wu Wei-qi, Shihang Wang, Pengjun Xie, Feng Zhao

Abstract

Understanding information from visually rich documents remains a significant challenge for traditional Retrieval-Augmented Generation (RAG) methods. Existing benchmarks predominantly focus on image-based question answering (QA), overlooking the fundamental challenges of efficient retrieval, comprehension, and reasoning within dense visual documents. To bridge this gap, we introduce ViDoSeek, a novel dataset designed to evaluate RAG performance on visually rich documents requiring complex reasoning. Based on it, we identify key limitations in current RAG approaches: (i) purely visual retrieval methods struggle to effectively integrate both textual and visual features, and (ii) previous approaches often allocate insufficient reasoning tokens, limiting their effectiveness. To address these challenges, we propose ViDoRAG, a novel multi-agent RAG framework tailored for complex reasoning across visual documents. ViDoRAG employs a Gaussian Mixture Model (GMM)-based hybrid strategy to effectively handle multimodal retrieval. To further elicit the model's reasoning capabilities, we introduce an iterative agent workflow incorporating exploration, summarization, and reflection, providing a framework for investigating test-time scaling in RAG domains. Extensive experiments on ViDoSeek validate the effectiveness and generalization of our approach. Notably, ViDoRAG outperforms existing methods by over 10% on the competitive benchmark.

Introduction

Retrieval-Augmented Generation (RAG) has become the standard for grounding Large Language Models (LLMs) in external knowledge. However, most existing RAG systems are primarily text-centric, making them "blind" to the nuances of Visually Rich Documents (VRDs). In real-world scenarios, critical information is often embedded in financial reports with complex tables, scientific papers with intricate charts, and slide decks with non-linear layouts.

Comparison of ViDoRAG/ViDoSeek with traditional approaches.

Traditional Visual Question Answering (VQA) datasets typically pair a single question with a single image, failing to capture the "needle in a haystack" challenge of retrieving information from thousands of pages. Furthermore, current RAG methods often rely on error-prone OCR or rigid "fixed Top-K" retrieval strategies that either miss vital context or overwhelm the model with irrelevant noise.

The ViDoSeek Dataset

To address the benchmark gap, we introduce ViDoSeek, a novel benchmark specifically designed for RAG on visually rich documents. Unlike traditional VQA, every query in ViDoSeek has a unique answer that must be identified within a large multi-document collection.

The ViDoSeek dataset creation pipeline.

Key characteristics of ViDoSeek include:

  • Scale and Diversity: Approximately 1.2k questions across a corpus of 6k images/pages, spanning 12 domains such as finance and law.
  • Multimodal Complexity: Queries require reasoning over text, charts, tables, and complex layouts.
  • Rigorous Quality Control: The dataset was constructed using a multi-stage pipeline involving human experts, semantic filtering by LLMs, and visual verification by VLMs to ensure high-quality, unambiguous query-answer pairs.

The ViDoRAG Framework

ViDoRAG introduces two primary innovations to overcome the limitations of traditional RAG:

1. Adaptive Recall with GMM

Instead of retrieving a fixed number of pages, ViDoRAG utilizes a Gaussian Mixture Model (GMM). By analyzing the similarity scores of retrieved pages, the system dynamically identifies the "natural break" between relevant and irrelevant content. This allows for concise retrieval when answers are straightforward and comprehensive retrieval for complex queries, effectively filtering out "noise" that often confuses models.

2. Multi-Agent Iterative Workflow

ViDoRAG employs a coarse-to-fine loop involving three specialized agents:

  • Seeker Agent: Rapidly scans document thumbnails to identify candidate pages.
  • Inspector Agent: Reviews the Seeker’s selections at high resolution, providing reflection and drafting preliminary answers.
  • Answer Agent: Performs a final consistency check between the retrieved evidence and the draft answer to ensure factual accuracy.

Key Results and Insights

Extensive experiments on ViDoSeek demonstrate the superiority of the ViDoRAG framework:

  • State-of-the-Art Performance: ViDoRAG outperformed existing baselines by over 10%.
  • Visual Context is Vital: Vision-based pipelines often outperformed text-based ones even for text-heavy queries, suggesting that spatial context (the layout of text on a page) is a critical signal lost by OCR-based methods.
  • Tabular Mastery: On table-heavy queries, ViDoRAG achieved 73.6% accuracy (using GPT-4o), a significant improvement over traditional TextRAG (61.0%).
  • Test-Time Scaling: The iterative nature of the agents allows for "thinking longer." While stronger models like GPT-4o require fewer rounds, weaker models can significantly close the performance gap when given more iterations to explore and reflect.

Conclusion

ViDoRAG represents a significant step forward in enabling AI to reason over complex, visually rich documents. By combining dynamic retrieval with an iterative multi-agent workflow, the framework achieves superior accuracy and efficiency. Future work will focus on optimizing the computational overhead of the iterative process to reduce latency while maintaining deep reasoning capabilities.

Summary updated

BibTeX
@misc{wang2025vidorag,
  author = {Qiuchen Wang and Ruixue Ding and Zehui Chen and WU Wei-qi and Shihang Wang and Pengjun Xie and Feng Zhao},
  title = {{ViDoRAG: Visual Document Retrieval-Augmented Generation via Dynamic Iterative Reasoning Agents}},
  year = {2025},
  eprint = {2502.18017},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.18017},
}
Figure