In Defense of Cross-Encoders for Zero-Shot Retrieval

Guilherme Rosa, Luiz Bonifacio, Vitor Jeronymo, Hugo Abonizio, Marzieh Fadaee +2 more
12/12/2022
cs.IRcs.CL

Official code: guilhermemr04/scaling-zero-shot-retrieval (29 stars, Jupyter Notebook, last commit 2022-09-26).

Abstract

Bi-encoders and cross-encoders are widely used in many state-of-the-art retrieval pipelines. In this work we study the generalization ability of these two types of architectures on a wide range of parameter count on both in-domain and out-of-domain scenarios.

Show full abstract

We find that the number of parameters and early query-document interactions of cross-encoders play a significant role in the generalization ability of retrieval models. Our experiments show that increasing model size results in marginal gains on in-domain test sets, but much larger gains in new domains never seen during fine-tuning. Furthermore, we show that cross-encoders largely outperform bi-encoders of similar size in several tasks. In the BEIR benchmark, our largest cross-encoder surpasses a state-of-the-art bi-encoder by more than 4 average points. Finally, we show that using bi-encoders as first-stage retrievers provides no gains in comparison to a simpler retriever such as BM25 on out-of-domain tasks. The code is available at https://github.com/guilhermemr04/scaling-zero-shot-retrieval.git

View on arXivView PDF

Code Implementations(1)

No Parameter Left Behind: How Distillation and Model Size Affect Zero-Shot Retrieval

292Jupyter NotebookMay 25, 20224 years ago

Similar Papers

Cite this paper

@article{rosa2022defense,
  title  = {In Defense of Cross-Encoders for Zero-Shot Retrieval},
  author = {Guilherme Rosa and Luiz Bonifacio and Vitor Jeronymo and Hugo Abonizio and Marzieh Fadaee and Roberto Lotufo and Rodrigo Nogueira},
  year   = {2022},
  eprint = {2212.06121},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.06121}
}

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/2212.06121.svg)](https://codeofpaper.com/paper/2212.06121)

Discussion