CoolFace
Datasetpublic

andreiaalexa/scifact-relevance-pairs

SciFact Evidence Relevance Pairs Custom (claim, document, label) pairs derived from BEIR SciFact for binary evidence relevance classification: given a scientific claim and a candidate paper field, decide whether the paper is relevant evidence for the claim. This dataset accompanies the scifact-relevance-classifier project, built as the Lab 3 / Assignment 1 deliverable for Information Retrieval 5LN712 (Master's in Language Technology, Uppsala University, 2026). Quick… See the full description on the dataset page: https://huggingface.co/datasets/andreiaalexa/scifact-relevance-pairs.

sourceHugging Facemitupdated 5mo agoView on Hugging Face
0likes41downloads
Dataset Card

SciFact Evidence Relevance Pairs

Custom (claim, document, label) pairs derived from BEIR SciFact for binary evidence relevance classification: given a scientific claim and a candidate paper field, decide whether the paper is relevant evidence for the claim.

This dataset accompanies the `scifact-relevance-classifier` project, built as the Lab 3 / Assignment 1 deliverable for Information Retrieval 5LN712 (Master's in Language Technology, Uppsala University, 2026).

Quick start

python
from datasets import load_dataset

# Three configs (one per document field variant)
ds = load_dataset("andreiaalexa/scifact-relevance-pairs", "title_abstract")
ds["train"][0]
# {
#   "claim": "...", "title": "...", "abstract": "...",
#   "document_text": "...", "label": "relevant", "label_id": 1, ...
# }

Configurations

ConfigDocument field usedTrainTestTotal
titleonly the paper title2,5379393,476
abstractonly the abstract2,5379393,476
title_abstract"{title}. {abstract}"2,5379393,476

Class balance is approximately 64% `not_relevant` / 36% `relevant` in both splits.

How it was built

BEIR SciFact (Wadden et al., 2020) is originally a retrieval benchmark — each claim has one or more abstracts marked as evidence. This dataset converts that into a classification task by emitting one row per (claim, candidate-document) pair:

  • —Positives: every (claim, doc) pair that appears in the BEIR qrels for that claim.
  • —Negatives: a mix of two kinds, sampled per claim with random_state=42:
  • —Random negatives (~2 per positive) — sampled uniformly from the corpus, excluding the claim's known positives. Teaches broad non-relevance.
  • —TF-IDF hard negatives (~2 per positive) — top-similarity documents to the claim by TF-IDF cosine, excluding known positives. Teaches the model not to rely on lexical overlap alone. Same family of technique as the BM25 hard negatives in DPR (Karpukhin et al., 2020).

The construction script lives at `scifact_dataset.py` in the GitHub repo and is fully deterministic given the same seed.

Columns

ColumnTypeDescription
splitstringtrain or test (matches BEIR's split). Redundant with the HF split but kept for traceability.
field_variantstringWhich field is used for document_text in this config (title, abstract, or title_abstract).
query_idstringBEIR query id.
doc_idstringBEIR corpus doc id.
claimstringThe scientific claim text.
titlestringDocument title (always populated for traceability).
abstractstringDocument abstract (always populated for traceability).
document_textstringThe exact text the classifier sees, depending on field_variant.
labelstringrelevant or not_relevant.
label_idint1 for relevant, 0 for not_relevant.

Intended use

  • —Training and benchmarking small embedding-based classifiers for scientific evidence retrieval / re-ranking.
  • —Educational use illustrating: (a) converting a retrieval benchmark into a classification dataset, (b) the role of hard-negative mining, (c) ablations across input field choices.

Out-of-scope use

  • —This dataset is not suitable for clinical decision-making or any high-stakes scientific judgment. Labels are derived from BEIR qrels, which are themselves expert annotations on a small biomedical claim set; they do not generalise to arbitrary scientific domains.
  • —Predictions from models trained on this dataset should be treated as a first-pass relevance signal, not as ground truth about scientific evidence quality.

License

MIT, matching the source code repository. The underlying SciFact corpus and qrels are released under CC BY-NC 2.0 by AI2 — please cite Wadden et al. (2020) when using this dataset.

Citations

If you use this dataset, please cite both the original SciFact paper and (optionally) this project:

bibtex
@inproceedings{wadden-etal-2020-fact,
    title = "Fact or Fiction: Verifying Scientific Claims",
    author = "Wadden, David  and  Lin, Shanchuan  and  Lo, Kyle  and
              Wang, Lucy Lu  and  van Zuylen, Madeleine  and
              Cohan, Arman  and  Hajishirzi, Hannaneh",
    booktitle = "Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP)",
    year = "2020",
    url = "https://aclanthology.org/2020.emnlp-main.609/",
}

@inproceedings{thakur-etal-2021-beir,
    title = "{BEIR}: A Heterogeneous Benchmark for Zero-shot Evaluation of Information Retrieval Models",
    author = "Thakur, Nandan and Reimers, Nils and R{\"u}ckl{\'e}, Andreas and Srivastava, Abhishek and Gurevych, Iryna",
    booktitle = "NeurIPS 2021 Datasets and Benchmarks Track",
    year = "2021",
    url = "https://arxiv.org/abs/2104.08663",
}

Acknowledgements

Built with Hugging Face Datasets and scikit-learn. Course taught by Birger Moëll at Uppsala University.