[Paper Review] COCO-DR: Combating Distribution Shifts in Zero-Shot Dense Retrieval with Contrastive and Distributionally Robust Learning
COCO-DR is a zero-shot dense retrieval method that combats distribution shifts via continuous contrastive pretraining on target corpora and implicit distributionally robust optimization during fine-tuning. It achieves state-of-the-art performance on BEIR, outperforming models with 500× more parameters, including GPT-3 embeddings, at BERT Large scale with only 0.17% of the parameters.
We present a new zero-shot dense retrieval (ZeroDR) method, COCO-DR, to improve the generalization ability of dense retrieval by combating the distribution shifts between source training tasks and target scenarios. To mitigate the impact of document differences, COCO-DR continues pretraining the language model on the target corpora to adapt the model to target distributions via COtinuous COtrastive learning. To prepare for unseen target queries, COCO-DR leverages implicit Distributionally Robust Optimization (iDRO) to reweight samples from different source query clusters for improving model robustness over rare queries during fine-tuning. COCO-DR achieves superior average performance on BEIR, the zero-shot retrieval benchmark. At BERT Base scale, COCO-DR Base outperforms other ZeroDR models with 60x larger size. At BERT Large scale, COCO-DR Large outperforms the giant GPT-3 embedding model which has 500x more parameters. Our analysis show the correlation between COCO-DR's effectiveness in combating distribution shifts and improving zero-shot accuracy. Our code and model can be found at \url{https://github.com/OpenMatch/COCO-DR}.
Motivation & Objective
- To address the challenge of distribution shifts between source training tasks and target zero-shot retrieval scenarios.
- To improve generalization of dense retrieval models in low-resource, out-of-domain settings with no in-domain supervision.
- To develop a lightweight, unified model that maintains strong zero-shot performance across diverse retrieval tasks.
- To empirically validate the effectiveness of continuous contrastive learning and implicit DRO in mitigating distribution shifts.
Proposed method
- COCO-DR performs continuous contrastive pretraining (COCO) on target corpora by treating two text sequences from the same document as positive pairs and sequences from different documents as negative pairs.
- This improves sequence representation alignment and uniformity, adapting the model to the target distribution before fine-tuning.
- For query distribution shifts, COCO-DR applies implicit distributionally robust optimization (iDRO) during fine-tuning by clustering source queries based on embedding similarity.
- iDRO dynamically reweights loss per cluster using gradient similarity, enhancing robustness on underrepresented query clusters.
- The method jointly optimizes for both distributional adaptation and query cluster robustness without requiring explicit labels for target queries.
- The model is fine-tuned only on source task labels (e.g., MS MARCO), yet generalizes effectively to unseen target tasks in BEIR.
Experimental results
Research questions
- RQ1How do distribution shifts in query intent and document language affect zero-shot dense retrieval performance?
- RQ2Can continuous contrastive pretraining on target corpora improve model generalization in zero-shot retrieval?
- RQ3Does implicit distributionally robust optimization improve model robustness on rare or unseen query clusters?
- RQ4To what extent can a small model outperform large-scale models in zero-shot retrieval by combating distribution shifts?
Key findings
- At BERT Base scale (110M parameters), COCO-DR outperforms GTR-XXL and CPT-L, which use ~50× more parameters, on the BEIR benchmark.
- At BERT Large scale, COCO-DR surpasses CPT-XL (175B parameters), using only 0.17% of its parameters, on selected BEIR tasks.
- Continuous contrastive pretraining reduces sequence contrastive loss by 50% on BioASQ, correlating with a 22% gain in zero-shot nDCG@10.
- iDRO improves training loss on 12 out of 18 source query clusters closest to BEIR tasks, with a clear positive correlation between source cluster gains and target task improvements.
- COCO-DR achieves balanced alignment and uniformity in representations, which correlates with better generalization, as shown in ablation studies.
- The model shows strong zero-shot generalization across 18 BEIR tasks, demonstrating robustness without task-specific adaptation or large-scale parameter scaling.
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.