Abstract
VDocRAG is a novel framework for Retrieval-Augmented Generation (RAG) that processes documents directly as images. By leveraging Large Vision-Language Models (LVLMs) to interpret layouts, charts, and tables without intermediate text conversion, VDocRAG avoids the information loss inherent in traditional OCR-based parsing. The system achieves state-of-the-art performance in open-domain document question answering, particularly on visually complex documents, while significantly reducing inference latency.
Introduction
Standard Retrieval-Augmented Generation (RAG) systems typically follow a "parse-then-retrieve" pipeline. They utilize Optical Character Recognition (OCR) to convert PDFs or slides into text chunks, which are then stored and retrieved to answer queries. However, this approach is fundamentally limited when dealing with visually-rich documents. Text-only parsers often fail to capture the semantic meaning embedded in complex table structures, multi-colored charts, or specific spatial layouts.
Furthermore, most existing Document Visual Question Answering (DocVQA) research operates in a "closed" setting where the model is provided with the exact page required. VDocRAG addresses the real-world challenge of open-domain document VQA, where a system must first identify the correct document among millions before generating an answer.
Methodology
The VDocRAG framework consists of two primary stages:
- VDocRetriever: An LVLM-based dual-encoder that maps user questions and document images into a shared embedding space. Unlike traditional models, it uses the vision-language model itself to generate a "visual summary" token (
<EOS>) for each page, capturing the holistic context of the document. - VDocGenerator: Once the top-k relevant images are retrieved, they are processed by a second LVLM that "reads" the images alongside the question to generate a natural language response.
To optimize this process, the authors implemented two self-supervised pre-training tasks: Representation Compression via Retrieval (RCR), which aligns document images with OCR text, and Representation Compression via Generation (RCG), which requires the model to reconstruct document text using only the summary token.
Datasets and Benchmark
The study introduces OpenDocVQA, the first unified collection for open-domain document VQA. This benchmark aggregates over 231,000 images and 43,000 questions from diverse sources including DocVQA, ChartQA, and OpenWikiTable.
A key contribution is the MHDocVQA subset, designed for multi-hop reasoning. As illustrated in Figure 2, this dataset was constructed by identifying "bridge entities" to link disparate documents, forcing the model to connect information across multiple visual sources to find an answer.
Key Results and Insights
VDocRAG demonstrates significant advantages over traditional text-based RAG systems:
- Superior Retrieval: VDocRetriever outperformed BM25 and BERT-based models. On the ChartQA dataset, it improved retrieval performance by over 11 points compared to the base model.
- End-to-End Performance: In full pipeline tests on ChartQA, VDocRAG achieved a score of 52.0, nearly doubling the 28.0 score of a text-based RAG system using the same underlying language model.
- Efficiency Gains: By bypassing the explicit OCR-to-text step during inference, VDocRAG reduced retrieval time by 69%.
- Visual-First Reasoning: The model performed exceptionally well on documents with minimal text (0-10 words), proving that spatial and visual information are primary signals for effective retrieval.
Conclusion and Future Work
VDocRAG represents a shift toward truly multimodal RAG by treating documents as visual entities rather than just text. While the current model relies on OCR-aligned pre-training, future iterations could utilize image captions to better handle non-textual visual elements. Additionally, the authors suggest that joint optimization of the retriever and generator could further enhance the system's reasoning capabilities.
Summary updated