ColPali: Efficient Document Retrieval with Vision Language Models

Manuel Faysse, Hugues Sibille, Tony Wu, Bilel Omrani, Gautier Viaud, Celine Hudelot, Pierre Colombo

TL;DR

ColPali eliminates the brittle and complex PDF-to-text preprocessing pipelines traditionally used in modern retrieval systems. By leveraging a Vision Language Model (VLM) to embed document pages directly as images, it achieves state-of-the-art retrieval performance on visually rich documents while being significantly faster and simpler to deploy.

The Bottleneck in Modern RAG Systems

Most Retrieval-Augmented Generation (RAG) systems today are inherently "text-centric." To index a PDF, they must first pass it through a gauntlet of preprocessing steps: PDF parsing, Optical Character Recognition (OCR), layout detection (to differentiate titles from captions), and text chunking.

This multi-stage process is problematic for two main reasons:

  1. Brittleness: If the OCR misreads a table or the layout detector misses a crucial figure, that information is permanently lost to the retriever.
  2. Loss of Visual Context: Documents are visually rich. Fonts, layouts, and the spatial relationships between text and charts convey essential meaning that raw text strings simply cannot capture.

Currently, the field is heavily optimizing text embedding models while largely ignoring the massive information loss occurring during this initial data ingestion phase.

Enter ColPali: Document Retrieval as a Vision Task

To address these shortcomings, the authors introduce ColPali, a model that treats document retrieval fundamentally as a vision task rather than a text task.

Comparison of standard text-based retrieval pipelines versus the ColPali vision-based approach.
  • Architecture: ColPali is built on PaliGemma-3B, which combines a SigLIP vision encoder with a Gemma-2B language model.
  • Late Interaction (The "Col" in ColPali): Inspired by the ColBERT architecture, ColPali does not compress an entire document page into a single dense vector. Instead, it represents a page as a collection of embeddings—one for each image patch.
  • Matching Mechanism: When a user submits a text query, the model computes a "Late Interaction" score. It evaluates each token in the query and finds the most similar image patch on the document page, summing these maximum similarities to generate a final score. This allows the model to "attend" to specific visual elements, such as a particular cell in a complex table, that are relevant to the query.
  • End-to-End Training: Unlike traditional disjointed pipelines, ColPali is trained end-to-end using a contrastive loss to map text queries directly to document images.

The ViDoRe Benchmark

To properly evaluate systems on visually complex pages, the paper introduces ViDoRe (Visual Document Retrieval Benchmark). This comprehensive suite includes:

  • Academic Tasks: Repurposed QA datasets like DocVQA, InfoVQA, and TAT-DQA.
  • Practical Tasks: New datasets spanning domains like Energy, Government Reports, Healthcare, and AI, featuring documents in both English and French.

Key Results and Insights

ColPali demonstrates that VLMs are now powerful enough to understand text within an image better than many dedicated OCR systems, preserving the context of the entire page by staying in "vision space."

Performance comparison across the ViDoRe benchmark datasets, showing ColPali's superior NDCG@5 scores.
  • State-of-the-Art Performance: ColPali achieved an average 81.3 NDCG@5 across the ViDoRe benchmark. This significantly outperforms the best text-based baseline (Unstructured + OCR + BGE-M3), which scored only 66.1.
  • Massive Speedup in Indexing: By skipping OCR and layout detection entirely, ColPali is roughly 18x faster at indexing documents. It processes a page in about 0.39 seconds, compared to over 7.2 seconds for a high-quality traditional pipeline.
  • Zero-Shot Generalization: Despite being trained primarily on English data, the model exhibited strong performance on French documents, successfully leveraging the multilingual capabilities of its base Gemma language model.
  • Interpretability: The late interaction mechanism makes ColPali inherently interpretable. Users can generate heatmaps showing exactly which parts of an image the model "looked at" to satisfy specific words in a query.

Limitations and Future Work

The primary drawback of the ColPali approach is its storage footprint. Storing a vector for every image patch requires significantly more space (roughly 257 KB per page) compared to a single text embedding (~9 KB). Future work in vector compression and "token pooling" (merging redundant image patches) will be crucial to mitigate this.

Additionally, the current model focuses on retrieving individual pages. Extending this architecture to handle multi-page document context or integrating it into a full end-to-end "Visual RAG" system—where the VLM also generates the final answer—represents an exciting frontier for future research.

Summary updated

BibTeX
@inproceedings{faysse2025colpali,
  author = {Manuel Faysse and Hugues Sibille and Tony Wu and Bilel Omrani and Gautier Viaud and CELINE HUDELOT and Pierre Colombo},
  title = {{ColPali: Efficient Document Retrieval with Vision Language Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=ogjBpZ8uSi},
}
Figure