BEIR: A Heterogeneous Benchmark for Zero-shot Evaluation of Information Retrieval Models

Nandan Thakur, Nils Reimers, Andreas Rücklé, Abhishek Srivastava, Iryna Gurevych

TL;DR

This paper introduces BEIR, a comprehensive and diverse benchmark for evaluating information retrieval (IR) models in a zero-shot setting. BEIR aims to address the limitations of existing benchmarks by including a wide range of tasks and domains, revealing that current neural IR models often struggle to generalize across different settings, with BM25 remaining a surprisingly robust baseline.

What Problem Does This Paper Address?

Modern information retrieval (IR) systems, especially those based on neural networks and large language models like BERT, have shown impressive performance on specific tasks and datasets. However, these models are often evaluated in "in-domain" settings, meaning they are tested on data very similar to what they were trained on. This raises a critical question: how well do these models actually generalize to new, unseen tasks and data distributions (out-of-distribution or OOD generalization)? Existing benchmarks are often too narrow, focusing on a single task or domain, making it difficult to get a holistic understanding of a model's true capabilities. This lack of robust evaluation hinders progress towards building truly generalizable and reliable IR systems.

Methods

The core contribution of this paper is the BEIR (Benchmarking IR) benchmark. BEIR is designed to be a heterogeneous and robust evaluation framework for zero-shot IR.

Here's how they built it:

  • Diverse Tasks: They curated 9 different types of retrieval tasks, including fact checking, question answering, news retrieval, and argument retrieval.
  • Diverse Datasets: Within these tasks, they selected 18 publicly available datasets, covering a wide array of domains (e.g., Wikipedia, scientific papers, financial news, tweets) and data characteristics (varying sizes, query lengths, document lengths).
  • Standardized Format: They provide a unified format for all datasets, making it easier for researchers to run experiments.
  • Evaluation of 10 Models: They evaluated 10 state-of-the-art retrieval systems, spanning five architectural categories: lexical (like BM25), sparse, dense, late-interaction, and re-ranking.
  • Zero-Shot Evaluation: The key is that models are evaluated on datasets they haven't been trained on, simulating real-world scenarios where models need to adapt to new data.

Datasets

BEIR includes 18 publicly available datasets across 9 heterogeneous retrieval tasks. Some notable examples include:

  • Question Answering: Natural Questions (NQ), HotpotQA
  • Bio-Medical IR: TREC-COVID, BioASQ, NFCorpus
  • News Retrieval: TREC-NEWS, Robust04
  • Fact Checking: FEVER, Climate-FEVER, SciFact
  • Argument Retrieval: ArguAna, Touché-2020
  • Duplicate Question Retrieval: CQADupStack, Quora
  • Tweet Retrieval: Signal-1M
  • Entity Retrieval: DBPedia-Entity
  • Citation Prediction: SCIDOCS

The paper also mentions that they use the MS MARCO Passage Ranking dataset for training and in-domain evaluation of many retrievers.

Key Insights and Ideas

  • In-domain performance is misleading: Models that perform exceptionally well on their training data (e.g., MS MARCO) can perform poorly on other datasets within BEIR, highlighting a significant generalization gap.
  • BM25 is a surprisingly strong baseline: Despite being a traditional lexical method, BM25 often outperforms more complex neural models in zero-shot settings, especially when generalization is key.
  • Re-ranking and late-interaction models excel at generalization: Architectures that involve cross-attention mechanisms or late-stage re-ranking of initial retrieval results tend to generalize best, though they come with higher computational costs.
  • Dense retrieval models struggle with OOD generalization: While efficient, dense retrieval models often underperform BM25 on BEIR datasets, especially when there's a domain shift from their training data.
  • Document expansion helps: Techniques like docT5query, which expand queries with relevant keywords, show improved generalization compared to methods that solely rely on learned term weights.
  • Lexical bias in datasets is a problem: Many datasets are annotated using lexical retrieval systems, which can unfairly disadvantage non-lexical (e.g., dense) models. Correcting for this bias can significantly improve the performance of dense models.

Key Results

  • Re-ranking and late-interaction models (e.g., BM25+CE, ColBERT) generally achieve the best zero-shot performances across BEIR, outperforming BM25 on many datasets.
  • Dense retrieval models (DPR, ANCE, TAS-B) are computationally more efficient but often underperform BM25 on BEIR. For instance, DPR, which is not trained on MS MARCO, performs the worst in generalization.
  • BM25 remains a strong baseline, outperforming many neural approaches on several BEIR datasets.
  • docT5query shows competitive performance, outperforming BM25 on 11 out of 18 datasets.
  • Computational cost vs. performance trade-off: The best-performing models (re-ranking, late-interaction) are also the slowest, while dense models are much faster but less performant in zero-shot settings.

Limitations and Future Work

  • Multilingual Tasks: BEIR is currently limited to English datasets. The authors suggest adding multilingual datasets for broader evaluation.
  • Long Document Retrieval: Most current tasks involve documents of moderate length. Including tasks that require retrieving very long documents would be valuable, though this poses challenges for transformer-based models with fixed context windows.
  • Multi-factor Search: BEIR currently focuses on pure textual search. Future work could incorporate other signals like PageRank, recency, or user interactions.
  • Task-specific Models: The benchmark focuses on generalizable models. Specialized models for specific tasks might outperform generic ones.
  • Dataset Bias: The authors highlight the issue of lexical bias in dataset annotations, which can unfairly penalize non-lexical models. They suggest the need for better, more diverse annotation strategies and pooling methods for future datasets.
  • Domain Adaptation: The paper explores domain adaptation for dense retrievers (GenQ), showing it can improve performance on specialized domains but not necessarily on broader ones.

The authors hope BEIR will accelerate progress towards more robust and generalizable IR systems and have made the benchmark publicly available.

Summary updated

BibTeX
@inproceedings{thakur2021beir,
  author = {Nandan Thakur and Nils Reimers and Andreas Rücklé and Abhishek Srivastava and Iryna Gurevych},
  title = {{BEIR: A Heterogeneous Benchmark for Zero-shot Evaluation of Information Retrieval Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=iBL7aCPLxWH},
}
Figure