More Than Efficiency: Embedding Compression Improves Domain Adaptation in Dense Retrieval
Chunsheng Zuo, Daniel Khashabi
TL;DR
The paper tackles domain shift in dense retrieval by applying unsupervised PCA-based embedding compression to target-domain queries (and optionally documents). By projecting high-dimensional embeddings into a lower-dimensional subspace defined by the top principal components, the method reorients retrieval toward domain-relevant information without any labeled data or fine-tuning. Across 9 pretrained models and 14 MTEB datasets, query-only PCA improves $NDCG@10$ in 75.4% of model-dataset pairs, often with retention ratios between 50% and 90% of the original dimensions, and shows competitive performance relative to heavier domain-adaptation pipelines. The work demonstrates a simple, zero-cost baseline that can serve as a first-step domain adaptation technique, with implications for scalable retrieval in specialized domains and potential extensions to nonlinear manifold methods.
Abstract
Dense retrievers powered by pretrained embeddings are widely used for document retrieval but struggle in specialized domains due to the mismatches between the training and target domain distributions. Domain adaptation typically requires costly annotation and retraining of query-document pairs. In this work, we revisit an overlooked alternative: applying PCA to domain embeddings to derive lower-dimensional representations that preserve domain-relevant features while discarding non-discriminative components. Though traditionally used for efficiency, we demonstrate that this simple embedding compression can effectively improve retrieval performance. Evaluated across 9 retrievers and 14 MTEB datasets, PCA applied solely to query embeddings improves NDCG@10 in 75.4% of model-dataset pairs, offering a simple and lightweight method for domain adaptation.
