Abstract
Multi-vector retrieval models have set new benchmarks in Visual Document Retrieval (VDR) by representing pages as sets of patch-level embeddings. However, the resulting storage overhead is often prohibitive for large-scale applications. We introduce DocPruner, a lightweight, document-adaptive framework that prunes redundant embeddings by leveraging the model's intrinsic attention signals. DocPruner reduces storage requirements by 50–60% with minimal impact on retrieval accuracy, making high-fidelity visual search commercially viable.
Introduction
The shift from OCR-based document processing to Large Vision-Language Models (LVLMs) has significantly improved the understanding of complex layouts and visual elements. Modern retrievers like ColPali utilize a multi-vector paradigm, where a single page is represented by hundreds of embeddings. While this captures fine-grained detail, the storage cost for millions of pages is immense. Existing compression techniques, such as fixed-rate pruning or vector merging, often degrade performance by ignoring document-specific information density or blurring critical features.
The DocPruner Framework
DocPruner addresses the storage bottleneck through a query-agnostic, offline pruning process that adapts to the complexity of each document.
1. Quantifying Importance via Attention
DocPruner identifies salient patches by extracting attention weights from the model's final Transformer layer. Specifically, it uses the attention scores from the global token (e.g., [EOS]) to all image patches. This "intrinsic signal" reflects what the model itself deems important for understanding the page.
2. Adaptive Thresholding
Documents vary in complexity; a dense technical table requires more embeddings than a simple cover page. DocPruner calculates a document-specific threshold ($\tau_d$) based on the distribution of attention scores: $$\tau_d = \mu_d + k \cdot \sigma_d$$ where $\mu_d$ and $\sigma_d$ are the mean and standard deviation of scores for document $d$, and $k$ is a tunable hyperparameter for pruning aggressiveness.
3. Theoretical Foundation
The framework is grounded in the Information Bottleneck (IB) principle. By pruning low-attention patches, DocPruner creates a compressed representation that preserves maximal information relevant to the document's semantics while minimizing storage footprint.
Experimental Evaluation
The framework was tested on two major benchmarks: ViDoRe-V2 (complex retrieval) and JinaVDR-Bench (multilingual robustness). Evaluations spanned three state-of-the-art models: ColQwen2.5, ColNomic, and Jina Embedding V4.
Key Results
- Storage Efficiency: DocPruner consistently achieved a 50–60% reduction in storage across all tested models.
- Performance Retention: On ColQwen2.5, pruning 51.6% of embeddings resulted in a negligible drop in nDCG@5 (from 0.5508 to 0.5470).
- Multilingual Robustness: The system maintained high accuracy across German, Russian, Chinese, and Japanese datasets, sometimes even slightly improving scores due to the removal of noisy, low-information patches.
Conclusion
DocPruner provides a practical solution to the storage challenges of multi-vector VDR. By utilizing a model's internal attention as a guide for adaptive pruning, it maintains high retrieval fidelity while significantly lowering the barrier for real-world deployment. Future work will explore integrating this mechanism directly into the training phase to further optimize the trade-off between efficiency and accuracy.
Summary updated