Skip to content

Pix2Evidence: fused image-text retrieval for visually rich documents

THE ARGUMENT

Fusing screenshot and transcription into one retrieval vector, then aligning question-side ranking to teacher-written evidence descriptions, beats pure screenshot retrieval on most Wikipedia QA benchmarks — but not when the metric is whether the answer-bearing page was retrieved.

On this page

Your team has 28.2 million screenshot tiles on disk and a benchmark to hit, but should you pay for a text-extraction pipeline or an image index? The usual advice is to pick one: text search finds the characters, screenshot search keeps the layout, and you cannot have both. This paper argues you can. Pix2Evidence encodes each screenshot tile together with a transcription of the text visible inside it into a single fused image–text representation — one vector per tile that carries both the picture and the words — and then trains that encoder with descriptions of where the answer actually sits [1]. Across five Wikipedia QA benchmarks the non-reranked system leads on answer accuracy on four, and reaches 26.0% on MMSearch, 4.4 percentage points above PixelRAG.

The old problem with screenshot search: layout saved, words lost

PixelRAG already rendered English Wikipedia into screenshots and cut them into tiles: roughly 7.1 million pages and 28.2 million tiles, each still linked to its source page. Pix2Evidence reuses that corpus rather than re-rendering it. Screenshots preserve layout and figures, which is the point; the cost is that many answers are literally written inside the image, as names, dates, or dollar amounts. The paper's own example is a tabular tile whose answer row reads US$155 million. To match that tile to the question, a retriever must first recognise the characters.

The second problem is quieter. A tile can be topically relevant and still contain none of the answer. A retriever — a model that turns questions and candidate pages into vectors and ranks them by similarity — is usually trained only to judge whether a tile is relevant, never to judge which sentence inside it carries the answer. The reader sees a handful of tiles and, if the selection is wrong, can only guess.

Two text pipelines: one for the index, one for training only

The paper builds two different kinds of text on top of the same tiles, and that split is the most reusable part of the design.

The first is transcription, which goes into the index. Qwen3-VL-4B-Instruct transcribes the visible text of every tile in reading order, with a prompt that discourages completing words cut off at tile boundaries. Transcription depends only on the image, not on any question, so it can be batched offline and cached. After quality, length, and format checks, about 85% of indexed tiles have nonempty transcriptions; the remaining 15% keep an empty text field and are encoded from the image alone.

The second is evidence description, which is training-only. For each training triple (question q, positive tile x+, reference answer a), Qwen3-VL-32B-Instruct acts as a teacher and writes K descriptions of the visible content that supports the question. The instruction asks for supporting content visible in the tile rather than an unsupported restatement of the answer. When no description is available, the pipeline falls back to concatenating the question and its reference answer as the supervision text.

Three inference steps: fused encoding, reranking, reading

Step one is fused encoding. The encoder adapts Qwen3-VL-Embedding-2B with LoRA — a low-rank adapter that trains a small set of extra parameters while freezing most of the base model — applied to both its language and vision components. Each tile is encoded together with its transcription into one normalised vector, and the retrieval score is the inner product between the question vector and that tile vector (Equation 1). Tiles with empty transcriptions are encoded from the image only. Vectors go into a FAISS index for nearest-neighbour search, returning the top N candidates.

Step two is cross-modal reranking. Qwen3-VL-Reranker-2B scores each question-candidate pair jointly, deriving the score from yes/no logits, and the top k candidates survive. Note that this reranker is not trained for the task at all.

Step three hands the question plus those k tiles to the reader, which generates the answer.

Training adds two terms (Equation 7). The contrastive term pulls the question toward its positive tile and away from mined negatives and in-batch candidates. The alignment term makes the question-side ranking distribution imitate the ranking induced by the evidence description, measured with KL divergence — a way of quantifying how far apart two probability distributions are — with a stop-gradient on the evidence side so only the question side updates, because the question side is what inference uses. The alignment weight is 0.05 and the temperature is about 0.07.

Scorecard across five benchmarks: first on four, not on the fifth

Evaluation covers NQ, NQ-Tables, SimpleQA, MMSearch, and Encyclopedic-VQA (EVQA). Scoring is not uniform: NQ and NQ-Tables use exact match, while SimpleQA, MMSearch, and EVQA use an LLM judge. The table reports answer accuracy only.

MethodNQNQ-TablesSimpleQAMMSearchEVQA
mwparserfromhell (text)27.718.358.412.930.7
Trafilatura (text)29.421.969.013.529.2
PixelRAG (base)31.024.370.319.939.4
PixelRAG31.125.872.821.640.1
Pix2Evidence32.125.773.426.040.6
Pix2Evidence (+reranker)33.227.177.623.040.3

The non-reranked configuration leads the main comparison on NQ (32.1), SimpleQA (73.4), MMSearch (26.0), and EVQA (40.6); those four are where the abstract's claim comes from. The fifth is NQ-Tables, where the non-reranked system scores 25.7, one tenth below PixelRAG's 25.8, and only the reranked variant lifts that column to 27.1.

Recall deserves separate reading because it is not the same quantity. On NQ the fused retriever gets 60.6 against PixelRAG's 58.9, on NQ-Tables 56.8 against 50.7, and on SimpleQA 86.0 against 83.1. On EVQA, however, it gets 30.8 against 33.2, which is clearly worse. MMSearch has no gold articles, so recall is simply not reported.

Choosing the alignment term: direction matters, and so does lambda

The paper compares several alignment objectives on a QA metric that starts at 0.7725 for contrastive learning alone.

  • Contrastive only, no alignment term: 0.7725
  • Forward KL, lambda = 0.05: 0.7900 (best)
  • Forward KL, lambda = 0.20: 0.7825
  • Reverse KL, lambda = 0.20: 0.7800
  • Reverse KL, lambda = 0.05: 0.7750
  • Description cosine penalty, lambda = 0.10: 0.7750
  • Description cosine penalty, lambda = 0.20: 0.7725

Two lessons follow. Direction matters: forward KL beats reverse KL at both weights tested. Weight matters too: the same forward KL gains 0.0075 going from 0.20 to 0.05. The cosine penalty does essentially nothing, sitting at 0.7725 to 0.7750 across both weights, which suggests that simply pulling question and description embeddings together buys no evidence-localisation ability.

When this method does not apply

First, it is not a clean sweep, and the method fails to lead on NQ-Tables without reranking: 25.7 against PixelRAG's 25.8. On EVQA the recall gap is wider still, 30.8 against 33.2, even though accuracy edges ahead at 40.6 against 40.1. If your headline metric is whether the answer-bearing page was retrieved at all, an image-finds-image task like EVQA is out of scope for an advantage here.

Second, the reranker is not a free win, and it is an off-the-shelf model with no task-specific training. It raises SimpleQA from 73.4 to 77.6, NQ-Tables from 25.7 to 27.1, and NQ from 32.1 to 33.2, yet it drops MMSearch from 26.0 to 23.0 and EVQA from 40.6 to 40.3. Whether to enable it is a per-benchmark decision.

Third, the evaluation itself has limits. MMSearch has no gold articles, so recall cannot be reported; SimpleQA, MMSearch, and EVQA are LLM-judged while NQ and NQ-Tables use exact match, so the five columns are not directly comparable to one another.

Fourth, there is the data question. The paper says code will be released and derived data shared where licensing and privacy reviews permit. Transcriptions and teacher descriptions are both derived data, so that sentence means you may not receive the full 85% transcription set.

Finally, the alignment term does not apply when you have no labelled question-answer pairs, because the teacher descriptions are generated from a reference answer and exist only during training. Without that supervision, only the fused-encoding half is reusable, and that half merely ties PixelRAG on NQ-Tables.

References

  1. Pix2Evidence: A Multimodal RAG System for Text and Visual Evidence

Sign in to Padda

A code in your inbox. No password to remember.

Connecting to sign-in…