[Paper Review] Injecting Domain Adaptation with Learning-to-hash for Effective and Efficient Zero-shot Dense Retrieval
This paper proposes injecting domain adaptation into supervised learning-to-hash (LTH) methods—BPR and JPQ—to improve zero-shot dense retrieval effectiveness across diverse domains. By leveraging unsupervised domain adaptation techniques like GenQ and GPL, the approach boosts nDCG@10 by 11.5% and 8.2% on average over BEIR while maintaining 32× memory efficiency and 14×/2× speedup in CPU retrieval latency.
Dense retrieval overcome the lexical gap and has shown great success in ad-hoc information retrieval (IR). Despite their success, dense retrievers are expensive to serve across practical use cases. For use cases requiring to search from millions of documents, the dense index becomes bulky and requires high memory usage for storing the index. More recently, learning-to-hash (LTH) techniques, for e.g., BPR and JPQ, produce binary document vectors, thereby reducing the memory requirement to efficiently store the dense index. LTH techniques are supervised and finetune the retriever using a ranking loss. They outperform their counterparts, i.e., traditional out-of-the-box vector compression techniques such as PCA or PQ. A missing piece from prior work is that existing techniques have been evaluated only in-domain, i.e., on a single dataset such as MS MARCO. In our work, we evaluate LTH and vector compression techniques for improving the downstream zero-shot retrieval accuracy of the TAS-B dense retriever while maintaining efficiency at inference. Our results demonstrate that, unlike prior work, LTH strategies when applied naively can underperform the zero-shot TAS-B dense retriever on average by up to 14% nDCG@10 on the BEIR benchmark. To solve this limitation, in our work, we propose an easy yet effective solution of injecting domain adaptation with existing supervised LTH techniques. We experiment with two well-known unsupervised domain adaptation techniques: GenQ and GPL. Our domain adaptation injection technique can improve the downstream zero-shot retrieval effectiveness for both BPR and JPQ variants of the TAS-B model by on average 11.5% and 8.2% nDCG@10 while both maintaining 32$ imes$ memory efficiency and 14$ imes$ and 2$ imes$ speedup respectively in CPU retrieval latency on BEIR. All our code, models, and data are publicly available at https://github.com/thakur-nandan/income.
Motivation & Objective
- Address the poor zero-shot generalization of existing learning-to-hash (LTH) techniques when applied across diverse domains.
- Improve downstream retrieval effectiveness of compressed dense retrievers without sacrificing memory or inference efficiency.
- Evaluate whether domain adaptation can bridge the performance gap between in-domain LTH and zero-shot dense retrieval.
- Maintain high efficiency—both in memory footprint and retrieval latency—while enhancing generalization across BEIR’s 18 diverse datasets.
Proposed method
- Inject domain adaptation into pre-trained LTH models (BPR and JPQ) by fine-tuning them on synthetic training data generated from a source domain (MS MARCO) to adapt to target domains in BEIR.
- Use two unsupervised domain adaptation techniques: GenQ and GPL, which generate synthetic query-document pairs to improve model generalization.
- Train the LTH models using a ranking loss (e.g., BPR loss) on the synthetic data, enabling the model to learn cross-domain semantic alignment.
- Maintain the original 32-bit dense embedding size for the TAS-B retriever and compress it into binary codes via LTH, preserving retrieval efficiency.
- Evaluate on BEIR benchmark using nDCG@10 as the primary metric across 18 diverse datasets.
- Measure memory usage and CPU retrieval latency using FAISS and brute-force search to ensure efficiency is preserved.
Experimental results
Research questions
- RQ1Can supervised LTH techniques like BPR and JPQ generalize effectively to zero-shot retrieval across diverse domains such as those in the BEIR benchmark?
- RQ2Does injecting domain adaptation into LTH models improve their zero-shot retrieval effectiveness compared to naive LTH fine-tuning on a single domain?
- RQ3To what extent can domain adaptation preserve the memory and latency efficiency of LTH while improving cross-domain performance?
- RQ4How do different domain adaptation strategies (GenQ vs. GPL) compare in boosting LTH performance on unseen domains?
Key findings
- Naïve application of LTH techniques (BPR and JPQ) to zero-shot retrieval underperforms the zero-shot TAS-B dense retriever by up to 14% in nDCG@10 on average across BEIR datasets.
- Injecting domain adaptation via GPL improves BPR and JPQ performance by 11.5% and 8.2% in nDCG@10 on average, respectively, over the zero-shot TAS-B baseline.
- The proposed method maintains 32× memory efficiency compared to the original TAS-B dense retriever, with index sizes under 1 GB for 8.8M passages.
- CPU retrieval latency is reduced by 14× for BPR and 2× for JPQ compared to the original TAS-B dense retriever, demonstrating significant speedup.
- GPL-based domain adaptation yields the highest performance gain but is computationally expensive due to cross-encoder teacher inference and full-corpora embedding computation.
- The method is model-agnostic and can be extended to stronger backbone models like Contriever or newer LTH methods such as RepCONC.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.