Abstract
Dense retrieval models have revolutionized information search by mapping queries and documents into high-dimensional vector spaces. However, the resulting embeddings impose substantial memory and computational burdens. This paper proposes a static pruning method using Principal Component Analysis (PCA) to reduce embedding dimensions offline. We demonstrate that models can maintain high retrieval effectiveness even after significant dimensionality reduction. Specifically, a 50% reduction in dimensions typically results in less than a 5% drop in performance, effectively doubling storage efficiency and query speed.
Introduction
Modern information retrieval relies heavily on "dense retrieval," where bi-encoder models transform text into semantic embeddings. While effective, the high dimensionality of these vectors makes scaling to billions of documents challenging due to memory constraints and the computational cost of similarity searches. Previous attempts at pruning have often relied on dynamic, query-time logic or content-dependent document deletion, both of which introduce operational complexity. This research explores whether a simple, static, and offline approach—pruning dimensions based on their statistical importance—can provide a "free lunch" in efficiency.
Methodology: Static PCA Pruning
The authors leverage Principal Component Analysis (PCA), a classic matrix decomposition technique, to identify and retain only the most informative dimensions of the embedding space. The process involves:
- Offline Decomposition: Computing the eigendecomposition of a document embedding matrix to identify dimensions capturing the most variance.
- Static Pruning: Discarding the least significant dimensions to create a reduced index.
- Query Transformation: Applying a pre-computed transformation matrix to incoming queries at runtime.
This approach is "static" because the pruning is performed once during the indexing phase, requiring no complex decision-making during the search process.
Experimental Setup
The method was evaluated using three prominent bi-encoder models: ANCE, TAS-B, and Contriever. Testing spanned several standard benchmarks, including MS MARCO, TREC DL 19 & 20, DL HARD, and BEIR TREC COVID (for out-of-domain evaluation).
Results and Discussion
The core finding of the study is the existence of a "50% sweet spot." Across most models and datasets, pruning half of the embedding dimensions resulted in a negligible loss in ranking effectiveness.
Model Robustness and Generalization
The study revealed that model architecture significantly influences robustness to pruning. ANCE proved exceptionally resilient, maintaining high performance even at 70% pruning. In contrast, Contriever showed higher sensitivity to aggressive dimensionality reduction.
Furthermore, the authors found that the transformation matrix is highly generalizable. A matrix learned on a general corpus like MS MARCO performed effectively on specialized datasets like TREC COVID, suggesting that the "important" dimensions are intrinsic to the model's internal representation rather than the specific document content.
Sample Efficiency
A key practical insight is that the PCA transformation does not require a massive dataset to compute. Using as few as 1,000 document embeddings yielded results nearly identical to those obtained using 100,000 embeddings, making the technique easy to implement even with limited data.
Conclusion
Static PCA-based pruning offers a straightforward and effective method for optimizing dense retrieval systems. By reducing embedding dimensions by 50%, practitioners can achieve a 2x improvement in space efficiency and a proportional speedup in query processing with minimal impact on retrieval quality. Future work will explore how this technique interacts with other compression methods like quantization and why specific model architectures exhibit varying levels of sensitivity to pruning.
Summary updated