# MedQA (USMLE) (2020)

> Questions in the style of the US medical licensing exam, mostly short clinical cases with four options.

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

## Key facts

- Category: LLMs, Medical
- Task: Multiple-choice medical licensing exam questions
- Creators: Di Jin, Eileen Pan, Nassim Oufattole, Wei-Hung Weng, Hanyi Fang, Peter Szolovits (MIT)
- Size: 12,723 English questions (plus 34,251 Chinese and 14,123 Taiwanese); 10,178 / 1,272 / 1,273 in the 4-option English set
- Splits: train 10,178, validation 1,272, test 1,273
- Input: A clinical vignette or a science question, with four answer options
- Labels: The correct option, and the exam step (Step 1, or Steps 2 and 3)
- License: CC BY 4.0 (this copy); questions compiled from exam preparation material
- Paper: [What Disease does this Patient Have? A Large-scale Open Domain Question Answering Dataset from Medical Exams](https://arxiv.org/abs/2009.13081)
- Homepage: https://github.com/jind11/MedQA
- Hugging Face: [GBaker/MedQA-USMLE-4-options](https://huggingface.co/datasets/GBaker/MedQA-USMLE-4-options)
- Sampled at Hub revision 0fb93dd23a7339b6dcd27e241cb9b5eca62d4d18 (2026-11-08)

## Why it matters

"Passes the medical licensing exam" was the headline that made medical LLMs news. The US exam (USMLE) needs about 60% to pass. In December 2022, Google's Flan-PaLM was the first model to clear that bar on MedQA, with 67.6% (Med-PaLM, tuned from it, scored 67.2%); a few months later Med-PaLM 2 and GPT-4 scored over 85%, better than most human test takers. It became the standard medical benchmark for LLMs, and the standard example of why exam scores are not the same as being a good doctor.

## Worth knowing

- Most questions are short clinical cases. A patient with symptoms, history and test results, then a question about the diagnosis, mechanism or next step.
- The dataset came with 18 medical textbooks, so it could also test retrieval. Large models now answer without them.
- Step 1 questions test basic science (how a drug works), Steps 2 and 3 clinical decisions (what to do next).
- The questions come from exam preparation sites, so some may have leaked into web-scale training data.

## Get the data

The 4-option English version as Parquet. All languages, the 5-option version and the textbooks are linked from the authors' GitHub.

```bash
# pip install -U huggingface_hub
hf download GBaker/MedQA-USMLE-4-options --repo-type dataset \
  --local-dir medqa
```

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

ds = load_dataset("GBaker/MedQA-USMLE-4-options")
print(ds)
```

```python
import polars as pl

df = pl.read_parquet("hf://datasets/GBaker/MedQA-USMLE-4-options@~parquet/default/test/*.parquet")
print(df.shape)
```

## Related datasets

- [MMLU (medical subjects)](https://huggingface.co/datasets/cais/mmlu): 2020, clinical knowledge, anatomy and medical genetics among 57 subjects (on this site: https://mralbu.github.io/ai-datasets/d/mmlu)
- [PubMedQA](https://huggingface.co/datasets/qiaojin/PubMedQA): 2019, yes/no/maybe questions answered from research abstracts (on this site: https://mralbu.github.io/ai-datasets/d/pubmedqa)
- [MedMCQA](https://huggingface.co/datasets/openlifescienceai/medmcqa): 2022, 194,000 questions from Indian medical entrance exams
- [MultiMedQA](https://arxiv.org/abs/2212.13138): 2022, the suite Med-PaLM was evaluated on, including MedQA
- [HealthBench](https://openai.com/index/healthbench/): 2025, open-ended health conversations graded with physician-written rubrics

## Landmark papers

- [Large Language Models Encode Clinical Knowledge (Med-PaLM)](https://arxiv.org/abs/2212.13138) (2022)
- [Capabilities of GPT-4 on Medical Challenge Problems](https://arxiv.org/abs/2303.13375) (2023)
- [Towards Expert-Level Medical Question Answering with Large Language Models (Med-PaLM 2)](https://arxiv.org/abs/2305.09617) (2023)
