Abstract
Visualized Document Retrieval (VDR) models, such as ColPali, have set new benchmarks by processing documents as images, preserving crucial layout and visual information. However, their reliance on thousands of patch-level embeddings per page leads to prohibitive storage costs. This study systematically explores token reduction techniques to mitigate this bottleneck. We find that token pruning is fundamentally limited by the query-dependent nature of patch importance. Instead, we propose Light-ColPali and Light-ColQwen2, which employ late-stage semantic clustering to merge redundant embeddings. Our results demonstrate that these models can reduce memory requirements by up to 90% while retaining over 98% of original retrieval performance, bridging the gap between high-performance VDR and real-world scalability.
Introduction
Traditional document retrieval pipelines often rely on Optical Character Recognition (OCR) or PDF text extraction, which can discard vital structural cues like charts, tables, and font styles. Visualized Document Retrieval (VDR) circumvents this by using Large Vision-Language Models (LVLMs) to encode document screenshots directly. While effective, models like ColPali encode each page into hundreds of high-dimensional patch embeddings (e.g., 1024 patches per page). For large-scale datasets, the storage requirements—often reaching 10MB for a 50-page document—and the subsequent computational load for similarity matching become significant barriers to deployment. This paper investigates methods to compress these embeddings without sacrificing retrieval accuracy.
Methodology
The research evaluates two primary strategies for embedding reduction: Token Pruning (removing less relevant tokens) and Token Merging (combining similar tokens).
The authors identify that merging is superior for VDR and explore three critical design choices:
- Merging Mechanism: Comparing 1D/2D spatial pooling against semantic clustering based on cosine similarity.
- Architectural Placement: Determining the optimal stage for merging (Pre-Encoder, Post-Encoder, Post-LLM, or Post-Projector).
- Fine-tuning: Assessing the impact of training the model to adapt to compressed representations.
The proposed Light-ColPali/ColQwen2 architecture utilizes semantic clustering at the Post-Projector stage, followed by fine-tuning. This "late-stage merging" allows the model to leverage full visual context during processing before compressing the final output for storage.
Analysis of Token Reduction Strategies
A key finding of this study is that sophisticated pruning methods (e.g., attention-based) often underperform compared to simple random pruning. This counter-intuitive result stems from the fact that patch importance is highly dependent on the specific user query, which is unknown during the offline indexing phase.
As shown in Figure 2, different queries activate entirely different sets of patches on the same document. Pruning a group of patches deemed "unimportant" offline might inadvertently delete the information required for a future query. In contrast, merging preserves the global semantic information by grouping similar patches rather than discarding them.
Experimental Results
The models were evaluated across multiple benchmarks, including ViDoRE, VisRAG, and MMLongBench-Doc. The results highlight a significant breakthrough in the efficiency-performance trade-off.
As illustrated in Figure 1, Light-ColQwen2 achieves a 9x reduction in memory while maintaining 98.2% of its original NDCG@5 score. Even at extreme compression levels (49x reduction, leaving ~20 tokens per page), the model retains 94.6% performance, significantly outperforming single-vector baselines like DSE. The clustering process adds minimal overhead, requiring only a few additional hours of training and negligible time during inference.
Conclusion
This work demonstrates that late-stage semantic merging is a highly effective strategy for scaling Visualized Document Retrieval. By shifting from pruning to merging and applying fine-tuning, Light-ColPali/ColQwen2 achieves massive storage savings with minimal accuracy loss. Future research may explore combining these methods with vector quantization or implementing dynamic merging factors based on document complexity.
Summary updated