# PubMedQA (2019)

> Paper titles turned into questions, to be answered yes, no or maybe from the paper's abstract.

Page: https://mralbu.github.io/ai-datasets/d/pubmedqa

## Key facts

- Category: LLMs, Medical
- Task: Yes/no/maybe questions answered from biomedical research abstracts
- Creators: Qiao Jin, Bhuwan Dhingra, Zhengping Liu, William W. Cohen, Xinghua Lu (University of Pittsburgh, Carnegie Mellon University)
- Size: 1,000 expert-labeled questions, 61,249 unlabeled, 211,269 generated automatically
- Splits: labeled 1,000, unlabeled 61,249, artificial 211,269
- Input: A question (from a paper's title) and the abstract without its conclusion
- Labels: Yes, no or maybe, and the abstract's conclusion as the long answer
- License: MIT
- Paper: [PubMedQA: A Dataset for Biomedical Research Question Answering](https://arxiv.org/abs/1909.06146)
- Homepage: https://pubmedqa.github.io/
- Hugging Face: [qiaojin/PubMedQA](https://huggingface.co/datasets/qiaojin/PubMedQA)
- Sampled at Hub revision 9001f2853fb87cab8d220904e0de81ac6973b318 (2026-11-08)

## Why it matters

Many paper titles are questions: "Is X associated with Y?". PubMedQA takes those titles, hides the abstract's conclusion, and asks a model to answer from the background, methods and results alone. That makes it a test of reading quantitative research, not of recalling facts. Together with MedQA it was part of the benchmark suite behind Med-PaLM, and it remains a common check of biomedical reading for LLMs.

## Worth knowing

- The conclusion the model must not see is shown under "Show answer" as the long answer.
- In the labeled set, "yes" is the majority answer (about 55%), so always saying yes is a baseline to beat.
- A single human annotator reached 78% accuracy, in the "reasoning-required" setting shown here.
- The 211,000 artificial questions were generated from statement titles with simple rules, for pretraining.

## Get the data

```bash
# pip install -U huggingface_hub
hf download qiaojin/PubMedQA --repo-type dataset \
  --local-dir pubmedqa
```

```python
from datasets import load_dataset   # pip install datasets

ds = load_dataset("qiaojin/PubMedQA", "pqa_labeled")
print(ds)
```

```python
import polars as pl

df = pl.read_parquet("hf://datasets/qiaojin/PubMedQA@~parquet/pqa_labeled/train/*.parquet")
print(df.shape)
```

## Related datasets

- [BioASQ](http://bioasq.org/): 2013–, a yearly biomedical semantic indexing and QA challenge
- [MedQA (USMLE)](https://huggingface.co/datasets/GBaker/MedQA-USMLE-4-options): 2020, licensing exam questions (on this site: https://mralbu.github.io/ai-datasets/d/medqa)
- [SQuAD](https://huggingface.co/datasets/rajpurkar/squad): 2016, answers as spans of Wikipedia paragraphs (on this site: https://mralbu.github.io/ai-datasets/d/squad)
- [MMLU](https://huggingface.co/datasets/cais/mmlu): 2020, includes medical subjects (on this site: https://mralbu.github.io/ai-datasets/d/mmlu)

## Landmark papers

- [BioBERT: a pre-trained biomedical language representation model for biomedical text mining](https://arxiv.org/abs/1901.08746) (2019)
- [BioGPT: Generative Pre-trained Transformer for Biomedical Text Generation and Mining](https://arxiv.org/abs/2210.10341) (2022)
- [Large Language Models Encode Clinical Knowledge (Med-PaLM)](https://arxiv.org/abs/2212.13138) (2022)
