Introduction
ColBERT has emerged as a leading neural retrieval model due to its "late interaction" mechanism, which allows for high-accuracy matching between query and document tokens. However, this performance comes at a significant cost: ColBERT indexes every single token in a corpus as a separate vector. This leads to massive index sizes that scale linearly with the total number of tokens, creating a storage bottleneck for large-scale applications. While previous research has focused on compressing individual vectors through quantization, this study investigates token pruning—the process of selectively discarding less informative tokens before they are ever indexed.
Pruning Strategies
The researchers implemented a pooling layer within the ColBERT training pipeline to limit document representations to a maximum of $k$ tokens. They evaluated four distinct strategies for selecting which tokens to retain:
- First $k$ tokens: A baseline approach that keeps the initial tokens of a document, leveraging the natural tendency of authors to place critical context in introductory sentences.
- Top $k$ IDF tokens: This method retains tokens with the highest Inverse Document Frequency (IDF), prioritizing rare words that are theoretically more discriminative.
- $k$-Unused Tokens: This novel approach prepends $k$ special
[unused]BERT tokens to the document. The model is trained to aggregate the document's semantic meaning into these specific, fixed-position vectors, effectively learning a compressed representation. - Attention Score: Using the final attention layer of the Pretrained Language Model (PLM), this method calculates an importance score for each token based on the sum of attention it receives across all heads. The top $k$ tokens are then selected for indexing.
Experimental Results
The models were evaluated on the MS MARCO Passage and Document Ranking benchmarks. The results demonstrate that significant index reduction is possible with minimal impact on retrieval effectiveness.
Passage Retrieval
At $k=50$, pruning approximately 30% of tokens resulted in negligible performance loss. The baseline MRR@10 of 0.365 was nearly matched by the Attention Score method (0.358) and the First $k$ method (0.357). However, when pruning more aggressively to $k=10$, the $k$-Unused Tokens method emerged as the clear leader, maintaining an MRR@10 of 0.314, significantly outperforming the attention-based and heuristic methods.
Document Retrieval
The benefits of pruning are most pronounced in document retrieval. By limiting documents to 50 tokens, the researchers achieved an 85% reduction in index size. The $k$-Unused Tokens method again proved superior in this high-compression regime, achieving an MRR of 0.354 compared to the baseline's 0.380.
Architecture and Efficiency
Beyond token pruning, the study explored the impact of model architecture on efficiency. By switching to a MiniLM backbone, the authors found they could eliminate token normalization and query expansion steps. Interestingly, removing these components not only reduced inference complexity but also slightly improved performance, raising the MRR@10 from 0.362 to 0.365.
Discussion and Future Work
A key finding of this study is that simple heuristics like "First $k$" are remarkably resilient, likely due to the positional bias inherent in datasets like MS MARCO. However, for extreme compression, learned representations via special tokens ($k$-Unused) provide the most robust results.
A current limitation of attention-based pruning is the "repetition trap," where the model selects multiple instances of the same token or its variants, wasting index space. Future work should focus on diversity-aware selection mechanisms to ensure a broader range of semantic concepts are captured. Additionally, token pruning is orthogonal to vector compression; combining these techniques could lead to even more lightweight and efficient ColBERT implementations.
Summary updated