TL;DR
ColSNAP (Spatial Nested Average Pooling) is a novel training recipe for multi-modal late-interaction document retrievers that creates a flexible, nested hierarchy of spatial compression levels from a single forward pass. By allowing users to dynamically select their accuracy-storage trade-off at index time, it reduces storage footprints by up to 70× on large models while retaining over 96% of full-resolution retrieval quality.
What Problem Does This Paper Address?
Visual Document Retrieval (VDR) systems help find document pages based on a user's natural language query by analyzing both text and visual layouts (like charts, tables, and figures). State-of-the-art VDR models use a "multi-vector late-interaction" approach (e.g., ColPali), which embeds a page as a dense grid of image patches. While highly accurate because it preserves fine-grained visual details, this paradigm is incredibly expensive: storing thousands of vectors per page creates massive storage overhead and slows down query-time scoring.
Existing compression techniques typically lock the system into a single, predetermined compression level during training or indexing. This lack of flexibility prevents practitioners from adjusting to changing storage budgets or hardware constraints without completely retraining or re-indexing their models.
Methods
The authors introduce ColSNAP, a lightweight post-training adaptation method that builds a spatial pyramid of granularities directly from the backbone model's patch grid without changing its underlying architecture.
Starting with a standard $32 \times 32$ patch grid (1024 embeddings), ColSNAP applies spatial average-pooling over progressively larger windows to construct four hierarchically consistent tiers:
- L0 (Finest): $32 \times 32 = 1024$ patches (no compression)
- L1: $16 \times 8 = 128$ patches (~8× compression)
- L2: $4 \times 4 = 16$ patches (~64× compression)
- L3 (Coarsest): $1 \times 1 = 1$ patch (~1024× compression)
Crucially, auxiliary template tokens (like special start/end tokens) are left unpooled and carried over across all tiers.
To train all tiers simultaneously, the authors employ Spatial Matryoshka Learning using a joint objective with three components:
- Spatial Matryoshka Ranking Loss: A contrastive loss that forces every tier to rank positive documents above in-batch negatives.
- Frozen-Teacher Distillation: A KL-divergence loss that anchors all tiers to the original, uncompressed pretrained model to prevent performance degradation at full resolution.
- Live Cross-Tier Distillation: A loss that aligns the coarser tiers (L1–L3) to the live model's own finest tier (L0), ensuring semantic consistency across granularities.
Datasets
- Training: The models were trained on the ColPali-Train dataset. For enhanced robustness, the authors also experimented with a variant incorporating mined hard negatives released by Nomic AI.
- Evaluation: The approach was evaluated using the ViDoRe (Visual Document Retrieval) benchmark suite, spanning ViDoRe v1 (in-distribution), ViDoRe v2, and the public splits of ViDoRe v3 (out-of-distribution across diverse domains like finance, healthcare, and industrial documents).
Key Insights and Ideas
- Natural Spatial Hierarchy: Pretrained vision-language patch grids inherently possess spatial redundancy. Adjacent patches often capture parts of the same visual element (e.g., a single table cell or paragraph block), meaning simple average pooling can compress them effectively without losing critical semantic context.
- Orthogonal Compression Axes: Because ColSNAP operates entirely on the spatial grid dimension, it is fully orthogonal to standard Matryoshka Representation Learning (MRL), which truncates vector embedding dimensions. The two techniques can be stacked for even greater compression.
- Hard Negatives Matter at the Bottom: Incorporating mined hard negatives during training significantly buffers performance at the coarsest tiers (L2 and L3). It forces the model to learn highly discriminative features even when spatial resolution is severely restricted.
Key Results
The authors validated ColSNAP across two structurally different backbones: Nemotron ColEmbed 4B (2560-dimensional embeddings) and ColPali v1.3 (128-dimensional embeddings).
- Nemotron ColEmbed 4B: The L1 tier reduced the index size and query-time scoring cost by 7.3× while retaining 96.9% of the full-resolution retrieval quality (nDCG@10) on ViDoRe v3. Even the extreme L3 tier (a single patch vector) retained 92.0% of full-resolution quality.
- ColPali v1.3: The L1 tier achieved 7.6× compression with virtually lossless performance (99.8% retention on ViDoRe v3).
- Rapid Convergence: ColSNAP functions efficiently as a post-training adaptation step. As shown in the paper's training curves, the models achieved the vast majority of their multi-granularity retrieval gains within the first 1 to 3 epochs of training.
Limitations and Future Work
The primary limitation identified is that extreme compression is fundamentally bounded by the backbone's embedding capacity. For instance, ColPali v1.3—which uses much smaller 128-dimensional embeddings—suffered a sharper performance drop at the L2 and L3 tiers compared to the 2560-dimensional Nemotron model.
For future work, the authors suggest exploring more sophisticated pooling mechanisms beyond uniform average pooling, or dynamically combining spatial pooling with token pruning strategies to further optimize the storage-performance frontier.
Summary updated