TL;DR
Multi-vector Visual Document Retrieval (VDR) models deliver state-of-the-art accuracy by embedding documents at the patch level, but their massive storage footprint makes large-scale deployment impractical. This paper introduces PRUNE-THEN-MERGE, a novel two-stage compression framework that first filters out low-information background patches using model attention and then clusters the remaining high-signal embeddings. This hybrid approach cuts storage costs by over 54% with negligible impact on retrieval accuracy, outperforming standalone pruning or merging methods.
What Problem Does This Paper Address?
Traditional document retrieval relies on brittle OCR pipelines that strip away vital layout information like tables, charts, and figures. Modern Visual Document Retrieval (VDR) fixes this by using Large Vision-Language Models (LVLMs) to process entire pages as images. The current state-of-the-art paradigm is multi-vector (patch-level) retrieval (such as ColPali), which represents a single document page as a collection of fine-grained patch embeddings. While this allows for precise matching via late-interaction mechanisms like MaxSim, it introduces a massive bottleneck: storing hundreds or thousands of vectors per page is incredibly expensive and computationally heavy.
Existing efficiency methods try to compress these vectors using either pruning (discarding less important patches) or merging (pooling patches together). However, pruning suffers a sharp performance drop at high compression rates because it starts throwing away critical content. Merging degrades more gracefully but naively averages noisy background patches with important text, diluting discriminative features and hurting accuracy.
Methods
The authors propose PRUNE-THEN-MERGE, an offline, query-agnostic compression framework that follows a "first refine, then compress" philosophy. It operates in two sequential stages:
- Stage 1: Adaptive Pruning: Instead of blindly dropping vectors, the framework extracts attention weights from the LVLM's final transformer layer. It calculates an importance score for each patch based on how much attention it receives from a global token (like the
[EOS]token). Patches falling below a document-specific statistical threshold (such as whitespace, margins, or decorative borders) are discarded, significantly boosting the signal-to-noise ratio. - Stage 2: Hierarchical Merging: The remaining high-quality, text-dense patch embeddings are then grouped using hierarchical agglomerative clustering (Ward's method based on cosine distance). The final compressed representation consists only of the centroids (means) of these clusters.
By filtering out the noise before clustering, the framework avoids the feature dilution trap of single-stage merging methods.
Datasets
The framework was rigorously evaluated across a massive suite of 29 distinct datasets spanning 6 major VDR benchmarks:
- ViDoRe-V1 & ViDoRe-V2: Standard visual document retrieval benchmarks containing diverse topics, complex layouts, and multimodal documents.
- JinaVDRBench: A comprehensive multilingual benchmark covering 9 distinct languages and intricate document structures.
- REAL-MM-RAG: A benchmark testing deep semantic understanding via non-extractive, rephrased queries.
- ViDoSeek: A Retrieval-Augmented Generation (RAG) benchmark consisting primarily of visual slides.
- MMLongBench-Doc: A long-context document understanding benchmark featuring lengthy, multi-page PDFs.
Key Insights and Ideas
- Decomposition is Key: The core "aha moment" of the paper is realizing that compression is better solved as two specialized sub-problems (noise filtering, then redundancy reduction) rather than a single step. Mathematically, this provides a much tighter approximation of the ideal but intractable Information Bottleneck objective.
- Noise Poisoning Centroids: Naive merging fails at high compression ratios because background noise vectors pull the cluster centroids away from the true semantic center of mass. Pruning first ensures the centroids are computed on a nearly noise-free set, keeping them unbiased.
- Language-Agnostic Robustness: The framework generalizes exceptionally well to non-Latin scripts (like Japanese and Chinese) and low-resource languages (like Hindi). Because it relies on the LVLM's universal visual-semantic understanding rather than text keywords, it naturally adapts to varying layout complexities and character densities.
Key Results
- Massive Storage Savings: Across three state-of-the-art base models (ColQwen2.5, ColNomic, and Jina-v4), PRUNE-THEN-MERGE achieved an average storage reduction of 54.60%, peaking at 58.88% for ColQwen2.5.
- Near-Lossless Performance: The framework extends the near-lossless compression range by roughly 10 percentage points compared to state-of-the-art pruning (DocPruner), maintaining baseline retrieval accuracy up to a 70% compression rate.
- Aggressive Compression Resilience: At extreme compression ratios (80-90%), where alternative methods collapse, PRUNE-THEN-MERGE remains highly stable. For example, on REAL-MM-RAG with ColQwen2.5 at an 84% compression rate, it achieved an nDCG@5 of 0.65, clearly outperforming DocPruner (0.56) and Sem-Cluster (0.61).
- Negligible Accuracy Drop: The overall average nDCG@5 across all models decreased by a mere 0.45%.
- Acceptable Indexing Overhead: Offline per-document encoding latency increased slightly from 0.46s to 0.69s, which is a perfectly acceptable trade-off since it happens entirely offline during indexing.
Limitations and Future Work
- Attention Dependency: The initial pruning stage is tightly coupled with the reliability of the base LVLM's internal attention mechanism. If the model's attention maps are noisy, the pruning quality drops. The authors plan to explore query-independent ranking metrics like gradient-based importance.
- Static Hyperparameters: The framework currently requires manual tuning of predefined hyperparameters (the pruning adaptation factor $k$ and merging factor $m$). Future work will focus on developing self-adaptive, data-driven strategies that dynamically adjust these factors based on document layout complexity and content density.
Summary updated