Spatially-Grounded Document Retrieval via Patch-to-Region Relevance Propagation

Athos Georgiou
12/2/2025
cs.CVcs.IR

Official code: athrael-soju/Snappy (92 stars, MIT, last commit 2026-02-09).

Abstract

Late-interaction multimodal retrieval models like ColPali achieve state-of-the-art document retrieval by embedding pages as images and computing fine-grained similarity between query tokens and visual patches. However, they operate at page-level granularity, limiting utility for retrieval-augmented generation (RAG) where precise context is paramount. Conversely, OCR-based systems extract structured text with bounding box coordinates but lack semantic grounding for relevance assessment. We propose a hybrid architecture that unifies these paradigms: using ColPali's patch-level similarity scores as spatial relevance filters over OCR-extracted regions. We formalize the coordinate mapping between vision transformer patch grids and OCR bounding boxes, introduce intersection metrics for relevance propagation, and establish theoretical bounds on area efficiency. We evaluate on BBox-DocVQA with ground-truth bounding boxes. For within-page localization (given correct page retrieval), ColQwen3-4B with percentile-50 thresholding achieves 59.7% hit rate at [email protected] (84.4% at [email protected], 35.8% at [email protected]), with mean IoU of 0.569, compared to ~6.7% for random region selection. Our approach reduces context tokens by 28.8% compared to returning all OCR regions and by 52.3% compared to full-page image tokens. Our approach operates at inference time without additional training. We release Snappy, an open-source implementation at https://github.com/athrael-soju/Snappy.

View on arXivView PDF

Code Implementations(1)

MIT

🐊 Snappy's unique approach unifies vision-language late interaction with structured OCR for region-level knowledge retrieval. Like the project? Drop a star! ⭐

9216CSS, ShellJul 28, 20258 months agoMIT
colpalicomputer-visiondeepseek-ocrdockerdocument-retrieval+14 more

Similar Papers

Cite this paper

@article{georgiou2025spatiallygrounded,
  title  = {Spatially-Grounded Document Retrieval via Patch-to-Region Relevance Propagation},
  author = {Athos Georgiou},
  year   = {2025},
  eprint = {2512.02660},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.02660v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2512.02660.svg)](https://codeofpaper.com/paper/2512.02660)

Discussion