# Poster 28336

- Kind: Poster
- Talk page and recording: https://iclr.cc/virtual/2025/poster/28336

> Transcript of the talk's recording (session_asr), made by speech recognition or taken from the host's captions. It may contain errors. The words are the speakers'; listen to the recording on the talk's page before quoting it.

Hello, today we'll talk about our paper called PALI, Efficient Document Retrieval with Vision Language Models. Retrieval augmented generation is a powerful technique to be able to answer user queries instead of directly needing to rely on internal model knowledge to respond to a given user query. We're first going to search for relevant documents in an external database.
And feed the result of this search with these external contexts to LLM for it to synthesize an answer. However, one of the standard problems with this approach is that when these external documents are not text-based or not text-only, they become harder to process. Typically for PDF documents, you might want to, in order to extract text correctly and embed your external corpus correctly, you might want to...
Put these documents through a complex pipeline where it requires, for example, extracting text through OCR models or detecting the documents layouts in order to identify headers, footers, tables, figures, paragraphs in order to process each of them separately using smaller and specialized models. What happens in practice is that this takes a lot of time. It's very complicated to orchestrate.
And often you're going to lose a lot of division information through, you know, trying to compress it and represent it as text. One of the main breakthroughs of these last years and more particularly the last year is the rise of vision language models, models that can process visual information as well as textual information at the same time.
While initially these models were very good at captioning and captioning images, recently they have become very good at reading text inside of the images and so they're now able to do OCR, they're now able to understand the layouts, they're now even able to understand the complex figures and charts, so this unlocks a lot of new things. The way these models work usually is that you're going to represent images.
through a series of tokens, a series of image tokens, and feed these image tokens concatenated with the original text tokens and feed them to a language model as if it were text. Our approach is to see whether we can replace these standard pipelines which are complex, long, and brittle with vision language models that are able to, in a single forward pass, take a document's screenshot, basically the document's image, and embed it.
creates a powerful embedding if we're able to do this we're going we're going to be able to understand all of the visual elements a lot better since we don't need to compress them as text first it's going to go a lot faster and it's end-to-end trainable so it's very easy to retrain to a new modality in order to evaluate our systems
We build a visual benchmark, visual document retrieval benchmark, which we call VIDORE, which assesses different types of documents in different types of domains. This is an example of the type of questions and associated page we'd want to recover and find in our given corpus. And we model our system, which we call COPELLE, as the following.
We feed each document page to a vision encoder model, which creates a series of image patches, which we then feed into a large language model. So all of this is the vision language model, the VLM. And this second language model is going to create a series of token vectors, image token vectors, which we keep in a database.
And when a user has a query in a kind of online situation, we're going to be able to measure the distance between the terms of the query and the image tokens that represent the page that we just embedded. And we realize that our system is very fast since it's doing everything in a single forward pass, goes a lot quicker than these more complex brittle pipelines. It works very well and it is end-to-end trainable. So if we take a look at some results.
Our model works a lot better than existing contrastive image embedders, such as SIGLIP, but it also works a lot better than these complex pipelines which do OCR, document detection, text embedding, etc. And keeping different vectors for each image works better than just keeping only one. Another nice...
The thing about our system is that it's very interpretable. We see which parts of the image were used to retrieve the documents, which were the most salient. And our project is fully open source, whether code, leaderboard, models. The models have been used over 2 million times. They're used in production, so feel free to use them. And thank you very much.
