BEIR

Also known as: Benchmarking IR

On this page 7

BEIR, short for Benchmarking IR, is a heterogeneous benchmark that evaluates information retrieval models in a zero-shot setting across 18 datasets and nine task types, from fact checking to biomedical search. In artificial intelligence, and particularly in the retrieval and knowledge stack behind search engines and RAG systems, it became the reference test for asking whether a retriever generalizes beyond the data it was trained on.

BEIR was released in 2021 by researchers from the Technical University of Darmstadt and collaborators. Its central finding was uncomfortable for the field: many dense retrieval models that beat BM25 on their training domain fell behind the lexical baseline when tested on unfamiliar collections.

How the BEIR benchmark is built

BEIR combines existing public datasets into one uniform evaluation format so that any retriever can be scored on all of them with the same code. Each dataset provides a corpus of documents, a set of queries and relevance judgments, often called qrels, that mark which documents answer each query.

The protocol is deliberately zero-shot: models are typically trained on MS MARCO passage ranking or another general source and then applied to BEIR without any fine-tuning on the target datasets. This mirrors a realistic deployment where an organization has no labeled data for its own documents.

The table below groups the BEIR datasets by task type, which shows how deliberately the benchmark mixes domains, query styles and document lengths.

Task typeDatasetsWhat the query looks like
Fact checkingFEVER, Climate-FEVER, SciFactA claim to be supported or refuted
Question answeringNatural Questions, HotpotQA, FiQA-2018A natural-language question
Biomedical retrievalTREC-COVID, NFCorpus, BioASQA clinical or scientific information need
Duplicate questionsQuora, CQADupStackA question that may already exist
Argument retrievalArguAna, Touche-2020An argument seeking counterarguments
Entity retrievalDBPedia-EntityA short entity-focused query
Citation predictionSCIDOCSA paper title seeking cited work
News and tweetsTREC-NEWS, Robust04, Signal-1MA news topic or headline
Task types and datasets in BEIR

Four collections, namely BioASQ, Signal-1M, TREC-NEWS and Robust04, require separate licenses, so many published results cover only the 14 freely available datasets. Comparing scores without checking which subset was used is a frequent source of confusion.

Metrics used to score retrievers

The headline BEIR metric is nDCG@10, normalized discounted cumulative gain over the top ten results, because it rewards relevant documents near the top and handles graded relevance labels. Results are usually reported per dataset and as an unweighted average across datasets.

MetricWhat it measuresTypical use
nDCG@10Ranking quality of the top ten resultsPrimary leaderboard score
Recall@100Share of relevant documents in the top 100Judging first-stage retrievers before reranking
MAP@kPrecision averaged over relevant positionsSecondary comparison
MRR@kPosition of the first relevant resultTasks with one main answer
Metrics reported in BEIR evaluations

Corpus sizes vary from a few thousand documents in NFCorpus and SciFact to several million passages in FEVER, Climate-FEVER and HotpotQA. The large collections test indexing efficiency and latency as much as ranking quality.

What BEIR revealed about retrieval models

The original BEIR study showed that BM25 remains a robust baseline across domains, while early dense bi-encoders such as DPR and ANCE generalized poorly. The best average quality came from BM25 followed by a cross-encoder reranker, at a much higher computational cost per query.

The comparison below summarizes the broad pattern reported in the original paper and confirmed by later work. It describes relative behavior, not exact scores, which differ by model version.

ArchitectureZero-shot behaviorCost profile
Lexical (BM25)Strong, stable baseline across domainsVery cheap; inverted index
Dense bi-encoderOften below BM25 on unfamiliar domainsCheap queries; large vector index
Learned sparse (SPLADE-style)Competitive with or better than BM25Moderate; inverted index
Late interaction (ColBERT)Strong generalizationLarge multi-vector index
BM25 plus cross-encoderBest average in the original studySlow; reranks each candidate
Retrieval architectures in the original BEIR study

These findings pushed research toward contrastive pretraining at scale, synthetic query generation for domain adaptation and hybrid search. Modern embedding models trained on large, diverse pair collections now clearly surpass BM25 on the BEIR average, which is why the benchmark remains a useful yardstick of generalization.

BEIR in relation to MTEB and other benchmarks

BEIR focuses only on retrieval, whereas MTEB, the Massive Text Embedding Benchmark, evaluates embeddings across retrieval, classification, clustering, reranking and other tasks. The MTEB retrieval track reuses most BEIR datasets, so a strong BEIR score and a strong MTEB retrieval score are closely linked.

MS MARCO, by contrast, is mainly an in-domain benchmark and a training source. A model that excels on MS MARCO but drops sharply on BEIR has likely overfit to web-search question style, which is exactly the gap BEIR was designed to expose.

Using BEIR well and its limitations

BEIR is valuable for shortlisting retrievers, but it cannot replace evaluation on an organization’s own data. Practitioners should read per-dataset scores for the domains that resemble their use case rather than relying on the single average.

PitfallWhy it misleadsBetter practice
Comparing different subsetsAverages over 14 and 18 datasets differConfirm the exact dataset list
Ignoring training contaminationSome models train on BEIR-related dataCheck training data disclosures
Trusting the average aloneLarge datasets can hide domain weaknessesInspect the relevant domains
Overlooking incomplete labelsUnjudged relevant documents count as missesSpot-check top results manually
Common pitfalls when interpreting BEIR results

Further limitations include English-only content, relevance judgments built with older retrieval systems that may penalize novel models, and the absence of latency or cost measurements. Teams typically pair BEIR results with a small in-house test set of 50 to 200 annotated queries before choosing a production retriever.

The idea in brief

A search model can look excellent on the material it practiced on. The real question is how it does on topics it has never seen. BEIR is a test made of 18 different exams, covering medicine, finance, science, news and everyday questions.

A model that scores well across all of them is more likely to work on new documents. It is like a student who passes tests in many subjects, not only in the one they studied for. BEIR helps engineers pick a good starting point, but they still need to test on their own documents.

A practical scenario

A healthcare software company plans a RAG assistant over clinical guidelines and must choose an embedding model. The team has no labeled queries yet, so it shortlists five candidate models by their BEIR results on TREC-COVID, NFCorpus and SciFact, the datasets closest to its domain, instead of the overall average.

The team then writes 120 realistic test questions and marks the correct guideline passages. Two models that ranked similarly on the BEIR average differ clearly on this set, and a hybrid of BM25 and the best embedding model gives the highest Recall@20. The company ships that configuration, and BEIR has reduced weeks of testing to a few days.