Skip to main content
QUICK REVIEW

[Paper Review] VisRAG: Vision-based Retrieval-augmented Generation on Multi-modality Documents

Yu Shi, Chaoyue Tang|arXiv (Cornell University)|Oct 14, 2024
Multimodal Machine Learning ApplicationsComputer Science4 citations
TL;DR

VisRAG proposes a vision-based retrieval-augmented generation framework that bypasses text parsing by directly using document images as input to a vision-language model (VLM)-based retriever and generator. By preserving full visual and layout information, VisRAG achieves 25–39% higher end-to-end performance than text-based RAG, especially excelling in layout-sensitive tasks where text parsing causes information loss.

ABSTRACT

Retrieval-augmented generation (RAG) is an effective technique that enables large language models (LLMs) to utilize external knowledge sources for generation. However, current RAG systems are solely based on text, rendering it impossible to utilize vision information like layout and images that play crucial roles in real-world multi-modality documents. In this paper, we introduce VisRAG, which tackles this issue by establishing a vision-language model (VLM)-based RAG pipeline. In this pipeline, instead of first parsing the document to obtain text, the document is directly embedded using a VLM as an image and then retrieved to enhance the generation of a VLM. Compared to traditional text-based RAG, VisRAG maximizes the retention and utilization of the data information in the original documents, eliminating the information loss introduced during the parsing process. We collect both open-source and synthetic data to train the retriever in VisRAG and explore a variety of generation methods. Experiments demonstrate that VisRAG outperforms traditional RAG in both the retrieval and generation stages, achieving a 20--40% end-to-end performance gain over traditional text-based RAG pipeline. Further analysis reveals that VisRAG is efficient in utilizing training data and demonstrates strong generalization capability, positioning it as a promising solution for RAG on multi-modality documents. Our code and data are available at https://github.com/openbmb/visrag.

Motivation & Objective

  • To address the limitations of text-based RAG in multi-modal documents, where parsing causes information loss and layout cues are ignored.
  • To investigate whether vision-language models (VLMs) can directly replace text-based retrieval and generation pipelines without intermediate text extraction.
  • To develop a pure-vision RAG pipeline that preserves original document structure and visual semantics for improved retrieval and generation.
  • To evaluate the effectiveness of VLM-based retrieval and generation on real-world multi-modal documents, including complex layouts and figures.
  • To demonstrate generalization and robustness of the approach across diverse document types and query scenarios.

Proposed method

  • VisRAG uses a VLM-based retriever (VisRAG-Ret) that embeds document images directly via weighted mean pooling of vision encoder tokens, bypassing OCR and text parsing.
  • The retriever employs a bi-encoder architecture, mapping queries and document images into a shared embedding space for dense retrieval.
  • For generation, VisRAG-Gen uses a VLM to generate answers based on retrieved document images, with multi-image support via page concatenation and weighted selection for models with single-image input.
  • The framework is trained on a combination of open-source VQA datasets and synthetic query-document pairs derived from web-crawled PDFs.
  • Layout and visual context are preserved throughout, enabling accurate interpretation of spatial relationships and document structure.
  • The system supports both single-image and multi-image VLMs, with adaptive processing to maintain visual fidelity during retrieval and generation.

Experimental results

Research questions

  • RQ1Can a vision-language model-based RAG pipeline outperform traditional text-based RAG in multi-modal document understanding?
  • RQ2To what extent does preserving visual layout and image content improve retrieval and generation accuracy compared to text-parsing pipelines?
  • RQ3How does VisRAG perform on layout-sensitive queries where text extraction fails due to font or formatting?
  • RQ4Does the direct use of images in retrieval reduce information loss compared to cascaded parsing pipelines?
  • RQ5Can VisRAG generalize across diverse document types, including infographics, manuals, and forms, with minimal reliance on textual content?

Key findings

  • VisRAG achieves a 25–39% end-to-end performance gain over traditional text-based RAG pipelines on multi-modal document benchmarks.
  • In layout-sensitive tasks, such as identifying percentages associated with specific regions (e.g., Europe vs. UK), VisRAG correctly identifies 53% for Europe, while TextRAG fails due to parsing-induced layout confusion.
  • VisRAG successfully retrieves documents where the target term (e.g., 'Club Jetty') is obscured by decorative fonts, which TextRAG fails to extract and thus cannot retrieve.
  • The VLM-based retriever outperforms both state-of-the-art text and vision-centric retrievers, even when trained under identical conditions.
  • With GPT-4o, VisRAG shows increasing performance gains as more retrieved documents are used, indicating strong scalability with multi-document context.
  • VisRAG demonstrates strong generalization and effective utilization of training data, suggesting robustness across diverse document layouts and visual structures.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.