# Natural Questions (2019)

> Real Google search questions, each answered by an annotator with a paragraph and a short span from Wikipedia.

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

## Key facts

- Category: Text, Retrieval
- Task: Open-domain question answering from Wikipedia
- Creators: Tom Kwiatkowski, Jennimaria Palomaki, Olivia Redfield, Michael Collins, Ankur Parikh, Chris Alberti, Kenton Lee, Kristina Toutanova, Jacob Devlin, Slav Petrov and others (Google)
- Size: 323,045 questions with their Wikipedia pages
- Splits: train 307,373, validation 7,830, test 7,842
- Input: An anonymized Google query and a Wikipedia page from the top search results
- Labels: A long answer (usually a paragraph) and a short answer (a span, or yes/no), or none
- License: CC BY-SA 3.0
- Paper: [Natural Questions: A Benchmark for Question Answering Research](https://aclanthology.org/Q19-1026/)
- Homepage: https://ai.google.com/research/NaturalQuestions
- Hugging Face: [google-research-datasets/natural_questions](https://huggingface.co/datasets/google-research-datasets/natural_questions)
- Samples on the site come from: [cjlovering/natural-questions-short](https://huggingface.co/datasets/cjlovering/natural-questions-short)
- Sampled at Hub revision 1c022733f473ab1c86b7799f1ca8e52411df5c28 (2026-11-08)

## Why it matters

Questions written by people who already see the answer, as in SQuAD, share its words. Natural Questions used what people actually asked Google, and annotators then searched a Wikipedia page for the answer. Its open-domain version (NQ-Open), with only the question and short answers, became the benchmark that started modern retrieval: ORQA, REALM, DPR and RAG all measured how well a model finds the right passage in all of Wikipedia and answers from it, which is the recipe behind retrieval-augmented LLMs.

## Worth knowing

- About half of the questions have no paragraph answer on the page, and only about a third have a short answer. The samples here come from a subset that has one.
- Queries had to be at least eight words long, and were further filtered with heuristics such as starting with "who", "when" or "where", to keep real questions.
- The development and test sets have five annotators per question, because people often disagree on what counts as the answer.
- In NQ-Open, models must find the answer in all of Wikipedia; DPR's dense retriever beat keyword search (BM25) there by 19 points (78.4% vs 59.1% top-20 retrieval accuracy).

## Get the data

The full dataset includes each Wikipedia page as HTML and tokens (about 40 GB). The samples come from cjlovering/natural-questions-short, which keeps the answer paragraph and span; the open-domain version is google-research-datasets/nq_open.

```bash
# pip install -U huggingface_hub
hf download google-research-datasets/natural_questions --repo-type dataset \
  --local-dir natural-questions
```

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

ds = load_dataset("google-research-datasets/natural_questions")
print(ds)
```

```python
import polars as pl

df = pl.read_parquet("hf://datasets/google-research-datasets/natural_questions@~parquet/default/train/*.parquet")
print(df.shape)
```

## Related datasets

- [SQuAD](https://huggingface.co/datasets/rajpurkar/squad): 2016, questions written while reading the paragraph (on this site: https://mralbu.github.io/ai-datasets/d/squad)
- [TriviaQA](https://huggingface.co/datasets/mandarjoshi/trivia_qa): 2017, trivia questions with evidence documents
- [MS MARCO](https://huggingface.co/datasets/microsoft/ms_marco): 2016, Bing queries with web passages (on this site: https://mralbu.github.io/ai-datasets/d/ms-marco)
- [NQ-Open](https://huggingface.co/datasets/google-research-datasets/nq_open): 2019, the open-domain version: question and short answers only
- [HotpotQA](https://huggingface.co/datasets/hotpotqa/hotpot_qa): 2018, questions that need two paragraphs (on this site: https://mralbu.github.io/ai-datasets/d/hotpotqa)

## Landmark papers

- [Latent Retrieval for Weakly Supervised Open Domain Question Answering (ORQA)](https://arxiv.org/abs/1906.00300) (2019)
- [REALM: Retrieval-Augmented Language Model Pre-Training](https://arxiv.org/abs/2002.08909) (2020)
- [Dense Passage Retrieval for Open-Domain Question Answering (DPR)](https://arxiv.org/abs/2004.04906) (2020)
- [Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks (RAG)](https://arxiv.org/abs/2005.11401) (2020)

## Papers on this site that use it

- [GPT-2 (2019)](https://mralbu.github.io/ai-datasets/p/gpt-2.md): A language model trained only on web text that summarizes, translates and answers questions without being trained to.
- [DPR (2020)](https://mralbu.github.io/ai-datasets/p/dpr.md): Find the passage that answers a question by comparing learned embeddings, not shared words.
- [RAG (2020)](https://mralbu.github.io/ai-datasets/p/rag.md): Let a text generator look things up in Wikipedia before it answers, and give the idea its name.
- [Chinchilla (2022)](https://mralbu.github.io/ai-datasets/p/chinchilla.md): For a fixed compute budget, train a smaller model on more data; 70 billion parameters on 1.4 trillion tokens beat models four times its size.
- [LLaMA (2023)](https://mralbu.github.io/ai-datasets/p/llama.md): Smaller models trained longer on public data alone, matching models many times their size, with the weights given to researchers.
