Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Job manager crashed while running this job (missing heartbeats).
Error code:   JobManagerCrashedError

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

query-id
int64
corpus-id
string
score
int64
163,803
Ukrainian_Soviet_Socialist_Republic
1
163,803
United_Nations
1
70,041
2_Hearts_(Kylie_Minogue_song)
1
202,314
New_Jersey_Turnpike
1
6,032
ABC_islands_(Lesser_Antilles)
1
130,048
Burbank,_California
1
204,575
Commodore_(rank)
1
204,575
Rear_admiral
1
164,883
Hezbollah
1
54,298
Electric_chair
1
54,298
Capital_punishment
1
219,675
Corsica
1
134,850
Ice-T
1
124,578
Gettysburg_Address
1
134,126
Jason_Bourne_(film)
1
125,577
Ron_Dennis
1
46,810
One_Dance
1
85,923
Adidas
1
1,933
Dissociative_identity_disorder
1
88,894
Zoe_Saldana
1
88,894
Leo_(astrology)
1
58,396
Konidela_Production_Company
1
150,751
Paul_von_Hindenburg
1
179,831
Vic_Mensa
1
7,429
Jenny_McCarthy
1
11,538
Mutiny_on_the_Bounty_(1962_film)
1
19,068
Color_of_Night
1
175,438
Death_Note_(2015_TV_series)
1
80,212
Westworld_(TV_series)
1
118,448
Richard_Dawson
1
106,308
Pink_(singer)
1
83,527
Blue_Dog_Coalition
1
119,227
Mount_Hood
1
8,404
Chesley_Sullenberger
1
8,404
US_Airways_Flight_1549
1
85,093
Louie_(season_1)
1
89,521
Mom_(TV_series)
1
35,804
Cyprus
1
132,874
Daredevil_(TV_series)
1
75,311
Moscovium
1
195,244
Kevin_Bacon
1
195,244
Sleepers
1
69,108
Maria_Theresa
1
211,019
Resident_Evil_(film)
1
44,397
The_Paper_(film)
1
52,287
The_Hunger_Games_(film_series)
1
2,961
Taarak_Mehta_Ka_Ooltah_Chashmah
1
162,206
Ding_Yanyuhang
1
195,202
Kevin_Bacon
1
178,219
Move_(Little_Mix_song)
1
49,775
Baloch_people
1
206,030
The_Office_(U.S._TV_series)
1
45,394
Phoenix,_Arizona
1
1,799
Aphrodite
1
184,285
Vera_Wang
1
209,109
Sennacherib
1
189,867
Augustus_Prew
1
211,022
Resident_Evil_(film)
1
49,169
Spider-Man_2
1
61,136
Physics
1
114,158
Adobe_Photoshop
1
175,864
Indiana_Pacers
1
175,864
Chris_Mullin_(basketball)
1
117,767
Louis_Malle
1
90,291
Color_of_Night
1
28,788
Maggie_Q
1
118,395
Netscape_Navigator
1
3,483
Brie_Larson
1
74,648
Ned_Stark
1
128,004
Monosodium_glutamate
1
129,672
Trouble_with_the_Curve
1
219,200
Species_distribution
1
195,124
Backing_vocalist
1
89,156
Doxycycline
1
47,848
Jack_Dylan_Grazer
1
158,017
Wolfgang_Amadeus_Mozart
1
61,233
Half_Girlfriend_(film)
1
105,645
Google_Search
1
133,374
Shannon_Lee
1
169,941
Japan_national_football_team
1
225,863
Revolver_(Beatles_album)
1
198,544
Catherine_Hardwicke
1
39,811
Benjamin_Franklin
1
204,556
Commodore_(rank)
1
16,079
Solanum
1
221,137
Ted_Cruz
1
78,516
Doug_Petrie
1
1,219
Vandals
1
94,252
Brown_University
1
82,580
Gray_Matters
1
174,986
The_Man_in_the_Iron_Mask_(1998_film)
1
145,707
Great_white_shark
1
135,212
Joni_Mitchell
1
121,548
Cyprus
1
54,789
Virginia
1
96,401
Globalism
1
112,137
John_Goodman
1
219,704
Corsica
1
182,902
Far_from_the_Madding_Crowd_(1967_film)
1
182,902
Nicolas_Roeg
1
End of preview.

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

FEVER Entity Retrieval Benchmark

Frozen benchmark for evaluating retrieval methods on the BEIR FEVER dataset (5.4M Wikipedia articles, 6,666 test queries). All data is pre-built so you can test a new method without re-running BM25 or dense retrieval.

Files

Core benchmark data (for testing new methods)

File Size What it is
beir_pool.json 31 MB BM25 top-100 candidate pool (k1=1.2, b=0.75). 6,666 queries, each with 100 candidate docids + BM25 scores. Your method re-ranks these 100 docs.
queries.jsonl 31 MB 6,666 test queries ({"_id": "...", "text": "..."} per line)
qrels/test.tsv 210 KB TREC-style relevance judgments (query-id \t doc-id \t relevance)
query_deltas.csv 2 MB Per-query NDCG@10 for every Hadith variant (used for significance testing)

Evaluation scripts

File What it does
fever_benchmark.py FEVERBenchmark().evaluate(rankings) → {"ndcg@10": float, "recall@100": float}
setup_fever_benchmark.py Regenerate pool from scratch (downloads BEIR, builds index, runs BM25)
beir_controlled_v3.py The definitive controlled ablation (6,666 queries, 0 errors)
replay_verification.py Checksums query_deltas.csv against v3 aggregate results

Analysis scripts

File What it does
significance_test.py Paired t-test + randomization test + Cohen's d
export_per_query_v2.py Exports per-query NDCG to CSV with checkpoint resume
significance_report.md Full significance report generated from the data

Reference results

File What it contains
beir_controlled_v3_results.txt Final aggregate scores (all variants)
benchmark_manifest.md Frozen configuration: dataset hashes, Pyserini version, BM25 params

Baseline Scores

System NDCG@10
BM25 (k1=1.2, b=0.75) 0.5214
MiniLM Dense 0.6497
Dense + Muttafaq (best Hadith) ~0.6461

How to test a new method

Quick start (using the frozen pool)

import json
from huggingface_hub import hf_hub_download
from fever_benchmark import FEVERBenchmark

# 1. Download the frozen BM25 pool
pool_path = hf_hub_download("Kim-el/fever-ner", "beir_pool.json")
with open(pool_path) as f:
    pool_data = json.load(f)

pool = pool_data["pool"]  # {qid: [[docid, bm25_score], ...]}
qids = pool_data["qids"]  # [qid1, qid2, ...]

# 2. Re-rank with your method
#    For each query, take the 100 candidate docs and assign your own scores.
my_rankings = {}
for qid in qids:
    candidates = pool[qid]  # [[docid, bm25_score], ...]
    
    # Replace this with YOUR scoring function:
    scored = []
    for docid, bm25_score in candidates:
        your_score = your_model.score(query_text=qid, docid=docid)
        scored.append((docid, your_score))
    
    # Sort descending by your score
    scored.sort(key=lambda x: -x[1])
    my_rankings[qid] = scored

# 3. Evaluate
bench = FEVERBenchmark()
results = bench.evaluate(my_rankings)
print(f"NDCG@10: {results['ndcg@10']:.4f}")   # Beat 0.6497?
print(f"Recall@100: {results['recall@100']:.4f}")

If you need query text or relevance judgments

# Download query text
queries_path = hf_hub_download("Kim-el/fever-ner", "queries.jsonl")
with open(queries_path) as f:
    queries = {json.loads(line)["_id"]: json.loads(line)["text"]
               for line in f}

# Download qrels
qrels_path = hf_hub_download("Kim-el/fever-ner", "qrels/test.tsv")
# TREC format: query-id \t doc-id \t relevance

# Get query text for a specific qid
query_text = queries[qid]

# Get ground truth for a specific qid
# (automatically loaded by FEVERBenchmark.evaluate())

Using the evaluation class directly

# The evaluate() method handles qrels loading and NDCG computation.
# Your input:  {qid: [(docid, score), ...]}  — sorted descending by score.
# Output:      {"ndcg@10": float, "recall@100": float, "queries_evaluated": int}

Comparing against baselines

bench.verify_reproduction({
    "BM25 (k1=1.2, b=0.75)": 0.5214,
    "MiniLM Dense": 0.6497,
    "Your Method": results["ndcg@10"],
})

Reproducibility

To reproduce the exact BM25 pool from scratch:

pip install pyserini==0.14.0
python setup_fever_benchmark.py

This downloads BEIR FEVER (3.3 GB), builds the Pyserini Lucene index (6 min), and runs BM25 retrieval (7 min). Expected BM25 NDCG@10: 0.5214 ± 0.001.

Key Research Findings

From the controlled ablation (6,666 queries, 0 errors):

  1. MiniLM Dense improves BM25 by +24.6% relative (+0.1283 NDCG@10)
  2. Hadith graph signals provide no benefit on top of dense retrieval — all variants were statistically significant but negative (Cohen's d < 0.2)
  3. 95.9% of queries are unchanged by Hadith signals; when they fire, they hurt 2:1
  4. The conditional benefit of Hadith on weak lexical systems (+4-5% on FTS5 BM25) does NOT generalize to strong dense retrieval

Requirements

  • Python 3.8+
  • pyserini>=0.14.0 (only needed for pool regeneration)
  • Java 11+ (for Pyserini/Lucene)
  • huggingface_hub (for downloading)

License

Same as BEIR FEVER — research use.

Downloads last month
54