arXiv(opens in a new tab)cs.AIAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.29951

Spatial Matryoshka Training for Multi-Granularity Visual Document Retrieval

Trishan Singha Roy, Arkadeep Acharya, Vishwajeet Kumar, Jaydeep Sen, Sachindra Joshi

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Multi-modal late-interaction retrievers achieve strong retrieval on visually rich documents by representing each page as per-patch embeddings and matching at the token level. However, this approach incurs high storage costs. Existing compression methods typically fix a single compression level at indexing time, limiting flexibility. We present ColSNAP (Spatial Nested Average Pooling) 1^{1}, a training method that generates a nested hierarchy of compression levels directly from a backbone's patch grid. By spatially pooling patch embeddings into progressively coarser tiers and training all tiers simultaneously, a single model learns to support retrieval at multiple compression levels without architectural changes. Crucially, a single encoding pass yields every tier, enabling the accuracy-storage trade-off to be configured at indexing time to match available storage budgets, rather than being fixed during training. We demonstrate that models trained using ColSNAP maintain near full-resolution retrieval performance under substantial compression and that ColSNAP transfers effectively across multiple late-interaction backbones, and achieves most of its improvements via a lightweight adaptation stage applied to a pre-trained retriever.

1 Introduction

Visual Document Retrieval (VDR) retrieves document pages relevant to a natural language query using both the visual layout and textual content of a page (Yan et al. 2026a; Faysse et al. 2025). Relevance cannot be determined from text alone: it depends on visual elements such as tables, charts, and figures, and on their spatial organization. Early approaches applied optical character recognition (OCR) (Hegghammer 2022; Zhang et al. 2025) to extract text for a conventional retriever, but such pipelines are brittle, as recognition errors propagate downstream and layout structure is lost when pages are verbalized. Vision-language models (VLMs) instead embed the rendered page image directly, eliminating the extraction stage.

The emergence of multi-modal embedding models has led to two dominant approaches. 1) Single-vector methods encode each page and query into one dense embedding, scored by cosine similarity (Ma et al. 2024; Meng et al. 2025). These are compact and support efficient approximate nearest-neighbour search, but compressing a page into one vector discards the fine-grained evidence that complex documents require, where relevance may hinge on a single table row or figure annotation (Weller et al. 2026). 2) Multi-vector methods adopt the late-interaction paradigm of ColBERT (Khattab and Zaharia 2020), extending it to visual documents. Systems such as ColQwen and ColPali (Faysse et al. 2025) represent a page as per-patch embeddings and score queries with a MaxSim operator that aligns each query token to its most relevant page region, preserving the localized evidence that pooling discards. This has established multi-vector representations as the dominant paradigm in VDR (de Souza P. Moreira et al. 2026; Günther et al. 2025). The cost, however, is substantial: a single page yields hundreds to thousands of stored vectors, so index size and query-time scoring both scale with the number of patches per page, and higher-resolution inputs push this further, making storage a limiting factor in large-scale deployment. This cost-quality tradeoff motivates two research questions:

• RQ1: Can a method maintain the retrieval performance of an existing retriever while substantially reducing the number of vectors needed to encode each document page?

• RQ2: Does such a method generalize across retrievers of differing size and retrieval performance?

We address these questions with ColSNAP (Spatial Nested Average Pooling), a training recipe that builds a nested hierarchy of compression levels directly from the backbone's patch grid. The key insight is that pretrained patch grids exhibit natural hierarchy-spatially adjacent patches are highly redundant, so averaging them yields meaningful coarser embeddings. In a single encoding pass, we spatially pool patch embeddings into a pyramid of granularities (1024 → 128 → 16 → 1), adding no tokens and no change to the encoder architecture. All tiers are trained jointly via Spatial Matryoshka learning with two distillation signals: (1) a frozen-teacher term anchoring all tiers to the original pretrained model, and (2) a cross-level term aligning coarse tiers to the live model's finest tier. At indexing time, users select a tier matching their storage budget, achieving up to ∼70×\sim 70\times smaller storage footprint on Nemotron ColEmbed 4B (de Souza P. Moreira et al. 2026) and ∼130×\sim 130\times smaller on ColPali v1.3 (Faysse et al. 2025).

1^{1}Code will be released upon publication.

∗^{*}Work done as an intern at IBM

Figure

Figure 1: Overview of ColSNAP. A shared vision–language encoder maps a document page to a row of patch embeddings (blue), flanked by a few auxiliary template tokens (grey), and the query to a set of query embeddings (purple). Spatial average-pooling compresses the patch embeddings into a nested pyramid of tiers (L0–L3) while leaving the auxiliary tokens unchanged; any tier can then be scored against the query with late-interaction MaxSim. A single encoding pass produces every tier, so the compression level is selected at index time.

We summarize our contributions as follows:

• We propose ColSNAP, a method that reduces storage costs of multi-vector retrievers by learning multiple compression levels from a single patch grid, without changing the encoder architecture.

• ColSNAP achieves up to ∼70×\sim70\times compression while retaining over 90% of full-resolution quality, with compression levels configurable at indexing time.

• The method generalizes across retrievers of differing size and retrieval performance (demonstrated on Nemotron ColEmbed 4B (de Souza P. Moreira et al. 2026) and ColPaLI v1.3 (Faysse et al. 2025)) and requires only lightweight adaptation of pre-trained models.

• We evaluate on ViDoRe v1 (Faysse et al. 2025), v2 (Macé, Loison, and Faysse 2025), and the public splits of v3 (Loison et al. 2026) benchmarks and show that multi-vector retrieval is practical at scale with ColSNAP.

The remainder of this paper is organized as follows. Section 2 reviews related work in neural retrieval and representation learning. Section 3 presents the ColSNAP method in detail. Section 4 describes our experimental setup and benchmarks. Section 5 presents results and analysis. Finally, Section 6 concludes the paper.

References (36)