MedIR-RAG - Milestone 2

Dense retrieval, hybrid fusion (RRF) and cross-encoder re-ranking · 1,073 judged test queries · 44,128 indexed abstracts · bi-encoder bge-small-en-v1.5, re-ranker ms-marco-MiniLM-L-6-v2 · generated 2026-11-25 00:31:12 UTC
Best NDCG@10
0.8248
BM25 (Milestone 1, dev-tuned)
Best gain in MRR@10
+0.0125
BM25 + Cross-Encoder (top-50)
Best gain in Recall@100
+0.0120
Hybrid RRF (BM25 + dense, k=60)
Queries better / worse
315 / 320
BM25 + Cross-Encoder (top-50)
Wilcoxon p
0.515
two-sided signed rank
Judged queries
1,073
44,128 abstracts

Leaderboard

SystemNDCG@5NDCG@10MRR@10MAPRecall@100ΔNDCG@10better/worse
BM25 (Milestone 1, dev-tuned)0.81350.82480.87660.78390.9683+0.00000/0
Bi-Encoder zero-shot (bge-small)0.73710.73010.84580.66510.8775-0.0947230/509
Hybrid RRF (BM25 + dense, k=60)0.80440.80540.88050.76280.9803-0.0194302/328
Hybrid RRF + Cross-Encoder (top-50)0.80960.81360.88550.76730.9803-0.0112313/349
BM25 + Cross-Encoder (top-50)0.81780.82020.88920.77430.9683-0.0046315/320
Highlighted cells are the best value in that column. The baseline is the Milestone 1 dev-tuned BM25 run, so every delta and test is relative to it. On this collection the lexical baseline is already strong: the neural stages gain early precision (MRR@10) and recall at 100, not the top-10 ordering.

Experiment setup

Bi-encoderBAAI/bge-small-en-v1.5
Cross-encodercross-encoder/ms-marco-MiniLM-L-6-v2
Retrieval depth1,000
Re-ranking candidates50
FusionReciprocal Rank Fusion, k = 60
Bootstrap resamples10,000
Random seed42
ComputeCUDA
Indexed abstracts44,128
Judged test queries1,073
Relevance judgments9,478

Estimated cost per query

BM25 (Milestone 1, dev-tuned)14.6 ms
Bi-Encoder zero-shot (bge-small)3.2 ms
Hybrid RRF (BM25 + dense, k=60)17.7 ms
Hybrid RRF + Cross-Encoder (top-50)263.2 ms
BM25 + Cross-Encoder (top-50)260.1 ms

Measured on one machine, warm models; indicative only.

Verification - are these numbers right?

PASS: every metric was recomputed from the saved TREC runs with pytrec_eval and again with ir_measures, and compared with the stored values (tolerance 1e-06 and 0.0001).

SystemNDCG@5NDCG@10MRR@10MAP Recall@100diff vs saveddiff vs ir_measures
bm250.8134670.8247960.8766410.7838590.9683275.0e-071.6e-15
dense0.7371420.7301230.8458290.6650630.8775182.9e-071.1e-15
hybrid0.8044190.8054320.8805380.7628310.9802844.4e-076.7e-16
rerank0.8096450.813570.885520.7673180.9802844.5e-071.1e-15
rerank_bm250.8178120.8201560.8891870.7743090.9683274.5e-071.8e-15

Where the neural stages helped most - and where they hurt

Examples from BM25 + Cross-Encoder (top-50), the system with the largest gain in MRR@10. Each list shows the top five abstracts it returned for that question.

NDCG@10 change -1.0000 - What is Bayesian haplotyping used for?
NDCG@10 change -1.0000 - Has tocilizumab been assessed against Covid-19?
NDCG@10 change -0.7039 - What is a decoy exosome?
NDCG@10 change -0.6845 - Which disease do pathogenic NR2F1 variants cause?
NDCG@10 change -0.6335 - How effective is the dentritic cells treatment on cancer?
NDCG@10 change +0.7109 - List two medication included in the Juluca pill.
NDCG@10 change +0.7654 - Which olfactory gene senses androsterone?
NDCG@10 change +0.9675 - Has the Spanich flu virus been reconstructed?
NDCG@10 change +1.0000 - How are looped genes identified in yest?
NDCG@10 change +1.0000 - What are common complications of prematurity for babies?
Reproduce with python -m src.phase2 --stages dense,hybrid,rerank,eval. Scores measure agreement with human relevance judgments, not clinical correctness. Timing is from a single Windows machine and is indicative only.