COCO-DR: Combating Distribution Shifts in Zero-Shot Dense Retrieval with Contrastive and Distributionally Robust Learning

Yue Yu, Chenyan Xiong, Si Sun, Chao Zhang, Arnold Overwijk
10/27/2022
cs.CLcs.IRcs.LG

Official code: OpenMatch/COCO-DR (51 stars, Python, MIT, last commit 2023-10-12).

Abstract

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.

Show full abstract

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}.

View on arXivView PDF

Code Implementations(1)

OpenMatch/COCO-DROfficial100%
MIT

[EMNLP 2022] This is the code repo for our EMNLP‘22 paper "COCO-DR: Combating Distribution Shifts in Zero-Shot Dense Retrieval with Contrastive and Distributionally Robust Learning".

514Python, ShellOct 26, 20223 years agoMIT
bertcontrastive-learningdense-retrievaldistributionallydistributionally-robust+6 more

Similar Papers

Cite this paper

@article{yu2022cocodr,
  title  = {COCO-DR: Combating Distribution Shifts in Zero-Shot Dense Retrieval with Contrastive and Distributionally Robust Learning},
  author = {Yue Yu and Chenyan Xiong and Si Sun and Chao Zhang and Arnold Overwijk},
  year   = {2022},
  eprint = {2210.15212},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.15212}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.15212.svg)](https://codeofpaper.com/paper/2210.15212)

Discussion