top of page

Retrieval Evaluation Metrics: When Each One Misleads

Writer: Salil Trehan
Salil Trehan
Nov 14
12 min read

Updated: Nov 16

Short answer. Query by query, recall@100 and nDCG@10 named opposite winners on 56 of the 169 BEIR NFCorpus queries where both metrics showed a difference between BM25 and bge-base-en-v1.5 (323 test queries, one deterministic run). That is 33%. Match the metric to the stage you are judging, and test any gap with a paired per-query bootstrap before you trust it. At the system level the metrics agreed: for BM25 against the dense or hybrid system, every metric named the same winner on both SciFact and NFCorpus, so the disagreement shows up per query, not in the averages. On this dataset and these systems, a recall number alone did not tell me which system ranks better, because recall@100 judges the candidate pool and nDCG@10 judges the order at the top. I tested one pair on one dataset, so I do not claim the 33% generalises. On SciFact (300 queries, BM25 against bge-base) the opposite held for two rank-aware metrics: MAP@10 and nDCG@10 never disagreed across 131 queries. Below: where precision, MRR, MAP, hit rate and nDCG mislead, what wrong labels do (on synthetic noise), and how to reproduce every number.


Bars: recall@100 and nDCG@10 disagree on 31 to 45% of NFCorpus queries; MAP@10 and nDCG@10 on 0 of 131 SciFact queries
Figure 1. Recall@100 and nDCG@10 disagree on 31 to 45 percent of NFCorpus queries, depending on the system pair (33% for BM25 vs bge-base). MAP@10 and nDCG@10 disagree on none of 131 SciFact queries (BM25 against bge-base). Denominators are printed on the bars.

Quick definitions, for k results retrieved per query:


  • Recall@k: the share of a query's relevant documents found in the top k.

  • Precision@k: the share of the top k that are relevant.

  • Hit rate@k: the share of queries with at least one relevant document in the top k.

  • MRR@k: the average, over queries, of 1 divided by the rank of the first relevant document (0 if none in the top k).

  • MAP@k: the average, over queries, of precision measured at each relevant document's rank.

  • nDCG@k: relevant documents earn gain that shrinks with rank, divided by the best possible ordering, so early placement counts more and graded labels are handled (Wikipedia on DCG).


BEIR is a public collection of retrieval datasets with relevance labels (BEIR paper). BM25 is a keyword-matching ranking function. bge-base-en-v1.5 is a dense embedding model that ranks by vector similarity. RRF (reciprocal rank fusion) merges two ranked lists by giving each document a score that falls with its rank in each list and summing the scores.


Which metric was my recall number, and what did I run?

Recall@k in this post is the share of a query's relevant documents found in the top k retrieved results. It is not approximate-neighbour recall, which asks how many of the true nearest vectors an index returns. I used my own metric code, and it matches two reference libraries to within 5.6e-16. I checked 10 metric variants on the three main systems on 2 datasets against pytrec_eval and ranx, and the largest absolute difference was 5.6e-16. The winner comparison below uses 9 metrics because linear and exponential nDCG@10 are identical on SciFact's binary labels, so I count them once. The repository has 5 tests, including both Wikipedia nDCG values discussed below.


The setup is small on purpose:


  • Datasets: BEIR SciFact (300 test queries) and BEIR NFCorpus (323 test queries). SciFact has about 1.1 relevant documents per query (computed from the labels: 339 over 300 queries) with binary labels. NFCorpus has graded labels (grades 1 and 2 in the labels) and many relevant documents per query.

  • Systems: three systems in the main tables: stemmed BM25 with parameters selected on training queries (SciFact k1 1.2, b 0.8; NFCorpus k1 2.5, b 0.6), the dense model bge-base-en-v1.5, and reciprocal rank fusion of the two (k=60). Each returns its top 100. A fourth system, MiniLM-L6, appears in section 3 and in the noise experiments.

  • Method: one deterministic run, seed 42. Confidence intervals are paired bootstraps over queries only, so they capture query sampling and nothing else.


Do the metrics disagree on which system wins?

Mostly no: BM25 against the dense or hybrid system gave the same winner on every metric, on both datasets. The exception is bge-base against the hybrid (RRF) system on SciFact, where the winner depends on the metric.


Tables are transposed, with metrics as rows (k is 10 or 100 as written in each row).


SciFact, 300 queries

BM25

bge-base

RRF k=60

Recall@100

0.9280

0.9667

0.9727

Hit@10

0.8333

0.8833

0.8867

MRR@10

0.6483

0.7034

0.7030

nDCG@10

0.6838

0.7404

0.7399


NFCorpus, 323 queries

BM25

bge-base

RRF k=60

Recall@100

0.2464

0.3367

0.3286

nDCG@10 (linear gain)

0.3271

0.3735

0.3630

MRR@10

0.5314

0.5626

0.5628


On NFCorpus the MRR@10 gap between BM25 and bge-base is -0.031 with a 95% interval of [-0.067, +0.004]. It spans zero, so MRR@10 alone would not separate them. For the same pair, the intervals for nDCG@10, P@10, MAP@100 and recall@100 all exclude zero. I did not bootstrap Hit@10, recall@10 or MAP@10.


On SciFact, bge-base against RRF is where the metrics split. Seven of nine metrics favour bge-base, while Hit@10 and Recall@100 favour RRF. The nDCG@10 difference is +0.0005 with an interval of [-0.021, +0.021], so the "winner" is noise. In this one pair, Hit@10 and Recall@100 named a different winner only where the nDCG@10 interval spans zero. The 0.0005 here comes from the E1 fusion run; a later run used in the noise experiments below gave 0.0004 for the same pair, because the two fusion runs differ slightly.


Per-metric bars for BM25, bge-base and fusion on SciFact and NFCorpus
Figure 2. Each metric for three systems on SciFact (300 queries) and NFCorpus (323 queries). BM25 is last on every metric in both datasets; only its NFCorpus MRR@10 gap to bge-base has an interval that spans zero.

Recall@100 or nDCG@10: which one picks the better retriever?

Recall@100 and nDCG@10 named opposite winners on 56 of the 169 NFCorpus queries where BM25 and bge-base-en-v1.5 scored differently on both metrics, which is 33%. NFCorpus has 323 test queries. I count a query only if both metrics show a non-zero difference between the two systems, so ties are excluded and the percentage is higher than it would be over all 323. The same count for BM25 against reciprocal rank fusion (k=60) is 40 of 129 (31%), and for bge-base against fusion it is 50 of 111 (45%). These are descriptive counts from one deterministic run with no multiple-comparison correction, and I do not claim the 33% holds on other datasets. Recall@100 describes the candidate pool a first-stage retriever hands on, and nDCG@10 describes the order at the top, so one number cannot rank both. A recall win does not mean the ranking is better.


On SciFact only 15 queries (BM25 against bge-base) had a difference on both metrics, and 1 of them disagreed. That is too few to read anything into.


A model comparison shows the same thing at the level of means. MiniLM-L6, a smaller dense model and a fourth system here, tied BM25 on SciFact recall@100 (0.925 against 0.926) yet scored 0.035 lower on nDCG@10 (0.6451 against 0.680; 95% bootstrap interval [-0.071, +0.00005], 2000 resamples, so the interval just reaches zero). The BM25 in this comparison is the Anserini variant (k1 0.9, b 0.4), whose recall@100 is 0.926; the train-selected BM25 in the tables above (k1 1.2, b 0.8) scores 0.928. As a candidate generator MiniLM matched BM25 here, and its top-10 ordering scored lower, though that gap only just clears zero.


Where do precision, MRR, MAP and hit rate mislead?

Each one hides something specific, and on SciFact most of them hide it because the data has about one relevant document per query.


Precision@10 is capped by the data. With about 1.1 relevant documents per query, the best possible P@10 sits near 0.1 (computed from the definition: one relevant document over ten slots). The observed P@10 across systems on SciFact was 0.0893 to 0.0987, so the metric hardly separates anything. P@10 and recall@10 also cannot tell rank 1 from rank 10. Take two SciFact BM25 rankings, q100 and q1279, each with one relevant document, at rank 1 and rank 10. Both have P@10 of 0.1, but MRR@10 is 1.0 against 0.1 and nDCG@10 is 1.0 against 0.289.


Hit rate saturates. On SciFact, Hit@10 is 0.8333 to 0.8867 across the three systems, and it only says whether a relevant document appeared somewhere in ten.


MRR sees only the first hit. On SciFact query q261 (BM25 against bge-base, k=10), P@10 (0.1 against 0.2), recall@10 (0.5 against 1.0) and MAP@10 (0.167 against 0.208) all favour bge-base, while MRR@10 (0.333 against 0.167) favours BM25. Across the BM25 against bge-base comparison, P@10 and MRR@10 named opposite winners on 2 of 42 queries, and MRR@10 and nDCG@10 on 2 of 124.


MAP and nDCG are close to interchangeable. On binary SciFact labels, MAP@10 and nDCG@10 disagreed on 0 of 131 queries (BM25 against bge-base); for bge-base against fusion it was 1 of 103. On graded NFCorpus labels they did disagree, on 6 of 212 queries (BM25 against bge-base), 7 of 179 (BM25 against fusion) and 7 of 201 (bge-base against fusion), about 3 to 4%. Pick either, and say which.


Why do two correct nDCG numbers differ?

Because nDCG has more than one correct definition, and the ideal ranking can be built two ways. The Wikipedia worked example (hand-built, not a retrieval run) gives 0.7850 when the ideal DCG (8.7403 at six positions) comes from the full judged set, and 0.9608 when it comes from only the six ranked documents (7.141). Both are correct under their own convention.


The gain function is the second fork. For a toy ranking at k=5 (computed from the formulas, not a retrieval run), nDCG@5 is 0.7655 with linear gain and 0.7183 with exponential gain. For the same toy, P@5 is 0.4, R@5 is 0.6667 and AP is 0.3333, or 0.5 if you divide by hits found instead of relevant documents.


One ranking scored two ways: nDCG 0.7655 with linear gain and 0.7183 with exponential gain
Figure 3. One toy ranking, two correct nDCG@5 values (computed, not measured on a retrieval run).

On real data the choice mattered less than the toy suggests. On SciFact the labels are binary, so linear and exponential nDCG@10 are identical for all 300 queries. On NFCorpus the BM25 mean moved from 0.3271 (linear) to 0.3282 (exponential), a shift of 0.001, and the system order did not change. The table above uses linear gain, which is why 0.3271 appears there.


Per query, the variant does matter. For bge-base on NFCorpus the gap reached 0.132, and 80 of the 323 queries differed by more than 0.01. Across the three system pairs, 6 query-pair cases had linear and exponential nDCG@10 name opposite winners.


Strip chart of per-query differences between linear and exponential nDCG@10 on NFCorpus
Figure 4. Per-query gap between the two nDCG@10 variants on NFCorpus (323 queries). Means barely move, individual queries do.

State the variant you used. Do not expect it to flip a headline conclusion.


How much do wrong gold labels change the answer?

Random label noise did not change the order of any pair with a gap of 0.03 or more, but noise that favours one system inflated that system's score. These results are synthetic: I corrupted the labels programmatically in 40 runs per setting across 4 systems (the three main systems plus MiniLM-L6) on SciFact and NFCorpus, with rates up to 30%. There is no human or LLM judge in this experiment, and real annotation errors are not random.


With random noise (dropping or flipping labels) up to 30%, no pair with a gap of 0.03 or more changed order in any of the 40 runs per setting. The one exception was not random. I call it a BM25-pooled drop: I deleted relevant labels for documents outside BM25's top 10, as if only BM25's results had been judged. Queries left with no relevant label were removed for every system, so SciFact shrank from 300 queries to 253 at 20% and 224 at 30%, and the effect is mostly a query-subset effect. At 30% the bge-base against BM25 order flipped in 27.5% of runs, so the order held in 72.5%.


Noise that favours one system raised its score a lot but did not change those orders. On NFCorpus I added false relevant labels drawn only from bge-base's top 10. This raised nDCG@10 by +0.149 at 10% noise and +0.285 at 30% for bge-base, against +0.042 and +0.076 for BM25. The mean bge-base minus BM25 gap went from 0.051 clean to 0.158 at 10% and 0.260 at 30% (measured, synthetic, mean of 40 runs). The lead looked about three to five times larger (a ratio computed from those means), with no change in order.


Near-ties are what flip. The clean gap between bge-base and fusion on SciFact is 0.0004 in this noise experiment. Random noise flipped that pair in 35% to 53% of runs. Under the BM25-pooled drop, the bootstrap showed fusion significantly better in 87.5% of runs at 20% noise (253 queries left) and 100% at 30% (224 queries left). The pooling produced a significant result that was not real.


Bars of nDCG@10 shift under dense-biased label noise on NFCorpus, bge-base against BM25
Figure 5. Synthetic dense-biased label noise on NFCorpus (40 runs per setting). The favoured system gains far more than the other.

Random noise also lowers absolute scores, and the size depends on the dataset (means over 40 runs). On NFCorpus, a random drop cut nDCG@10 by 0.023 to 0.026 at 10% and 0.07 to 0.083 at 30%. On SciFact it cut 0.003 at 10% and 0.010 to 0.017 at 30%, mostly by removing single-label queries. The sign depends on the noise type: random false positives raised NFCorpus scores (+0.079 for BM25 at 10%) and lowered SciFact. Absolute nDCG@10 drifts, so compare systems on the same labels.


How big a gap should I believe?

A 0.05 nDCG@10 gap survived random noise up to 30%, and a 0.02 gap did not survive several noise types. Two terms first. Flip probability for a gap g is the share of noisy pair-runs in which the gap fell by more than g from its clean value, enough to erase a lead of that size. The pooled-over-pairs estimate pools those drops across all six system pairs and all runs into one number, so it describes the whole setup and is not a test for any single pair. By that estimate, a 0.02 gap became unreliable, meaning flip probability of at least 0.05, at 20% dense-biased flips on NFCorpus, at 20% random flips on NFCorpus (flip probability 0.10) and at 10% BM25-pooled drops on SciFact. A 0.05 gap held under every random scenario to 30%, with the single SciFact BM25-pooled exception above.


For real gaps, report the interval. Bge-base minus BM25 in nDCG@10 is +0.060 [+0.026, +0.094] on SciFact, from the E3 and E7 runs with the Anserini-style BM25, and +0.051 [+0.033, +0.070] on NFCorpus from the E7 run (2000 bootstrap resamples). These differ slightly from the gaps you would read off the tables above, because those runs use the other BM25 setup. Both intervals exclude zero.


Which metric for which question?

Use the table as a rule of thumb from these runs, not a law. Match the metric to the stage being judged.


Question

Report

Misleads when

Evidence here

Does the candidate pool contain the answer?

Recall@100

You also care about order

NFCorpus: opposite nDCG@10 winner on 56 of 169 queries

Is the top of the list good?

nDCG@10

Labels are graded and the variant is unstated

Mean shift 0.001, per-query up to 0.132

How fast does the user see a hit?

MRR@10

There are several relevant documents

q261 picks the other system

Did anything relevant show up at all?

Hit@10

Systems are close or hit rate saturates

Hit@10 and Recall@100 split one near-tie pair


Three free checks. First, some pairs of results are impossible, a sanity check computed from the definitions: Hit@k is never below MRR@k, nDCG@k, P@k or R@k at the same k, so a table that breaks this has a bug. Second, the unpaired 95% half-width of a hit rate is computed as:


half-width = 1.96 x sqrt(p x (1 - p) / n)

Here p is the hit rate and n is the number of queries. For a hit rate of 0.8 over 100 queries (computed) the half-width is about 0.08. That is a loose bound for comparing two systems, because a paired bootstrap on the same queries is tighter and is the right test. Third, by convention I set K to the number of chunks the downstream consumer actually sees. I did not measure that choice.


What I did not test, and how to reproduce this

Not tested

  • Cutoffs: any k other than 10 and 100.

  • Other metrics: ERR, alpha-nDCG, MMR, bpref and judged@k.

  • Noise sources: human or LLM-judge noise, and noise on FiQA.

  • Data: datasets beyond SciFact and NFCorpus, non-English corpora and enterprise corpora.

  • Systems: anything beyond stemmed BM25, bge-base-en-v1.5, MiniLM-L6 and fusion at k=60.

  • Generalisation: whether the 33% disagreement rate holds elsewhere.

  • End to end: RAG answer quality and online metrics.

  • Thresholds: what counts as a good MRR, nDCG or recall value.

  • Run-to-run variance across seeds was not tested. I ran one deterministic run, seed 42, with bootstraps over queries only.


Reproduce it

The code, tests, experiment scripts and result files are in one public repository: retrieval-metrics-benchmark on GitHub. Dataset files are not included because of licences, so the download step below fetches SciFact and NFCorpus from BEIR. The repository ships numbers and short query strings, no document text.


git clone https://github.com/trehansalil/retrieval-metrics-benchmark.git
cd retrieval-metrics-benchmark
pip install -r requirements.txt
python load_data.py scifact nfcorpus
pytest

The tests cover the metric code, including both Wikipedia nDCG values. Two of the 5 tests need the SciFact download and the bm25s package, which requirements.txt installs. Pinned versions: Python 3.12.3, numpy 2.5.4, pytrec-eval-terrier 0.5.11, ranx 0.3.21, sentence-transformers 6.2.0. For how approximate-neighbour recall differs from the relevance metrics here, see IVF vs HNSW on 200k Vectors.


FAQ

Can recall@100 tell me which retriever ranks better?

Not on its own, on this evidence. On NFCorpus (BEIR), BM25 against bge-base-en-v1.5, recall@100 and nDCG@10 named opposite winners on 56 of 169 queries (33%), counting queries where both showed a difference. That is one dataset and these systems, so I do not claim the rate generalises. Use recall for the candidate pool and nDCG for the order.


Are MAP and nDCG the same thing?

Nearly, in my runs. On binary SciFact labels, MAP@10 and nDCG@10 disagreed on 0 of 131 queries (BM25 against bge-base) and 1 of 103 (bge-base against fusion). On graded NFCorpus labels they disagreed on 6 of 212, 7 of 179 and 7 of 201 queries across the three system pairs, about 3 to 4%.


Does the nDCG variant change my ranking of systems?

Not in these runs. On NFCorpus the BM25 mean moved from 0.3271 to 0.3282 and the system order stayed the same, though 6 query-pair cases flipped. Say which variant you report.


How much label noise is too much?

In synthetic tests, random noise up to 30% flipped no pair with a gap of 0.03 or more. Dense-biased label noise on NFCorpus raised bge-base's mean lead over BM25 from 0.051 to 0.158 at 10% and 0.260 at 30% (measured, synthetic, 40 runs) without changing the order of any such pair. Bias inflates scores. Near-ties and the BM25-pooled drop on SciFact are what changed order.


Is a hit rate of 0.8 good?

I did not measure thresholds for good values. What I can say is that 0.8 over 100 queries carries an unpaired half-width of about 0.08 (computed). A paired test between two systems is tighter than that.


The same habit of checking which metric names the winner applies to model-editing claims too: Weight-space editing vs fine-tuning: 64 demos won on 0.8B.

About the author


Salil Trehan builds AI and ML systems, writes up the measurements, and runs a lot of experiments.

Code for this post: retrieval-metrics-benchmark.

Questions or corrections: LinkedIn or book a call on Topmate.


Comments


Post your queries here!

Thanks for submitting!

  • Facebook
  • Twitter
  • LinkedIn

©2026 by Salil Trehan. Proudly created in honor of Data Science

bottom of page