# TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehension

Trivia questions reveal reading comprehension gaps that current models still miss

Mandar Joshi, Eunsol Choi, Daniel S. Weld, Luke Zettlemoyer · arXiv · 2017-5-9

- **Problem** Reading comprehension models are usually tested on short passages written around the questions, which hides how hard it is to find answers phrased differently or spread across several sentences. TriviaQA tests these difficulties together.
- **Method** TriviaQA pairs trivia questions, written without seeing any passage, with automatically gathered web and Wikipedia evidence. The authors then score a feature-based entity classifier and BiDAF on it.
- **Results** BiDAF reaches 40.26 exact match on the Wikipedia development set, while human accuracy is 79.7%.

## Why trivia questions make a harder test

Reading comprehension systems are expected to answer any question that a reference text can answer, and three difficulties make this hard: the questions can be compositional, the answer may require combining several sentences or background knowledge, and the supporting fact may be worded differently from the question. Lexical and syntactic variation is the third difficulty, so a supporting sentence can be hard to recover even when the answer is present.

Recent large datasets each target one of these difficulties, either through crowdsourced questions or through cloze-style sentences in place of questions. Systems have improved quickly on each new resource, with the best models approaching human level within months or a year, which keeps the need for harder datasets alive.

TriviaQA is built to test all three difficulties at once, and its questions come from trivia enthusiasts who wrote them without seeing the evidence. Because question writing is separated from evidence collection, the question style is not tied to a chosen passage. The dataset has three times as many questions that need inference over multiple sentences as SQuAD does.

## Pairing questions with distantly supervised evidence

Each example is a question, a correct answer string and a set of documents, and the answer string is assumed to appear as a substring of at least one document. Because the documents are gathered automatically, they are not guaranteed to hold every fact needed, so the answer string is treated as a signal of distant supervision rather than proof.

The authors find this assumption holds in over 75% of cases they checked.

Web search results are handled as independent question-answer-document tuples, since the same answer is expected to recur across many pages. Wikipedia pages are pooled per question, with 1.8 evidence documents on average, because most facts there are stated only once.

Questions with fewer than four tokens were dropped from 14 trivia and quiz-league websites. Each question was sent as a search query without its answer, and the top 50 result URLs were collected, with trivia sites and URLs containing trivia, question or answer removed. The top 10 pages were then crawled. Wikipedia entities in each question were found with the TAGME entity linker, and their pages were added as evidence.

Documents that lacked the answer string were filtered out, leaving 650K training examples from web results and 78K examples for the Wikipedia domain.

The filtered dataset has 95,956 question-answer pairs, 662,659 evidence documents, and questions averaging 14 words. Separately, a clean subset of 1975 question-document-answer triples was checked by a human annotator to contain the facts needed to answer.

## What the questions and evidence demand

On 200 sampled questions, 73.5% contain a phrase naming a fine-grained answer category, and 15.5% hint at a coarse category. The questions average 1.77 entities each, so most of them mention several entities. Answers are mostly Wikipedia titles at 92.85%, numerical expressions at 4.17%, and the remaining answers are open-ended phrases.

A human annotator found the evidence contained the answer for 79.7% of Wikipedia questions and 75.4% of web questions. The annotator answered 986 development and 1345 test questions and was judged accurate on 79.6 and 75.3 percent of them, respectively. The correctly answered questions form the verified subsets, which contain 297 development and 584 test Wikipedia questions.

Among 100 Wikipedia and 100 web question-evidence pairs, 69% have a different syntactic structure from the question and 41% are lexically different. For 40% of the questions, the information needed is spread over several sentences, and 17% need world knowledge. Compared with SQuAD, more than three times as many questions require reasoning over several sentences.

Lists and tables supply the answer for about 7% of web questions.

## How the classifier and BiDAF pick an answer

The random entity baseline builds candidates from the entities of the Wikipedia pages linked to a question, on average 1.8 per question. It picks a random candidate that does not occur in the question, and falls back to any candidate when none qualifies.

The entity classifier ranks candidates so that the true answer scores above any other candidate in the same document. Candidates are n-grams of length one to five that appear in sentences sharing a word with the question and that are Wikipedia article titles. Scores come from LambdaMART, a boosted tree ranking algorithm, using context and Wikipedia catalog features.

BiDAF is adapted from its SQuAD setting, where it reads context tokens at character, token and phrase levels, attends from question to context, and outputs the start and end of the answer span. Since TriviaQA does not give answer spans, the training span is the first match of the answer string in the document. Training uses only documents whose answer appears in the first 400 tokens.

BiDAF was built for single paragraphs averaging 122 words, so each evidence document is cut to its first 800 words. Splitting documents into smaller sub-documents was tried and worsened results, because most sub-documents lack the answer. With several documents per question, BiDAF predicts for each document and sums the confidences of identical candidates, as the formula below expresses.

\\\[ score(A\_i) = \\sum\_k c\_{i,k} \\\] Here A\_i is a candidate answer predicted from n documents with confidences c\_{i,1} to c\_{i,n}, and the candidate with the highest score is selected.

## Distant supervision results

Exact match and F1 over answer words follow the SQuAD setup, with Wikipedia scored per question and web scored per document. On the Wikipedia development set, the random entity baseline reaches 12.72 exact match, the entity classifier 23.42, and BiDAF 40.26. On the web development set, the entity classifier reaches 24.64 exact match and BiDAF 41.08.

BiDAF scores above the entity classifier in both domains, with the test scores following the same order.

The oracle score counts a question as answerable only when the correct answer is present in the evidence or, for the classifier, in its candidate set. On the Wikipedia development set the BiDAF oracle is 82.55, so most of its errors come after the answer is in view. The human accuracy is 79.7% on Wikipedia and 75.4% on the web, far above the BiDAF scores.

On the verified Wikipedia development subset, BiDAF reaches 47.47 exact match, and on the verified web development subset it reaches 51.38. The verified subsets are much smaller than the full splits, so these numbers rest on fewer questions. The classifier and BiDAF were trained on different amounts of data, with 50,000 training questions for the classifier and 80,000 web documents for BiDAF.

## Question length and error analysis

On the Wikipedia development set, BiDAF accuracy falls from 50% for questions of five or fewer words to 32% for questions of twenty or more words. The authors read this as evidence that longer compositional questions are harder for current methods.

Another 12 predictions were partially correct, such as Napoleonic for Napoleonic Wars.

The remaining errors were labelled with one or more categories: paraphrasing at 29, reasoning over multiple sentences at 18, answer missing from the clipped document at 15, distractor entities at 11, and prediction from an incorrect document at 7. The categories overlap because one example can fall into several of them. In one case the answer is a stepfather's surname given only in passing, so the question and the evidence share no wording that would expose it.

## Limitations

BiDAF does not scale to long documents, so evidence is truncated to the first 800 words, and answers located after that point are lost. Of the sampled errors, 15 falls into the category where the answer is not in the clipped document.

Training data is restricted to documents with the answer in the first 400 tokens, and scalable training on the full data is left to future work. Distant supervision is valid in over 75% of checked cases, so the remaining cases carry incorrect labels.

The formulation assumes every document contains the answer string when it is included, and abstaining when no document answers is not tested. Multi-instance learning and other distant supervision formulations were not tested in these experiments.

## Paper info

- **Authors**: Mandar Joshi, Eunsol Choi, Daniel S. Weld, Luke Zettlemoyer
- **Venue**: arXiv · Preprint
- **First published**: 2017-5-9
- **Added**: 2026-11-12
- **Updated**: 2017-5-13
- **Version**: v2
- **arXiv**: 1705.03551
- **Category**: cs.CL
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1705.03551v2) · [PDF ↗](https://arxiv.org/pdf/1705.03551v2)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Mandar Joshi, Eunsol Choi, Daniel S. Weld, Luke Zettlemoyer (2017). TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehension. arXiv:1705.03551v2. https://arxiv.org/abs/1705.03551v2

**BibTeX**

```
@misc{joshi2017triviaqa,
  title = {{TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehension}},
  author = {Mandar Joshi and Eunsol Choi and Daniel S. Weld and Luke Zettlemoyer},
  year = {2017},
  eprint = {1705.03551},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1705.03551v2}
}
```

## Other paper commentary

- [Convolutional Sequence to Sequence Learning](https://refivu.com/en/papers/48e91a54-308d-4269-9616-28e683053df1-convolutional-sequence-to-sequence-learning.md)
- [LexRank: Graph-based Lexical Centrality as Salience in Text Summarization](https://refivu.com/en/papers/11b54298-bb68-4667-a225-10b7dade3a5a-lexrank-graph-based-lexical-centrality-as-salience-in.md)
- [Embedding Entities and Relations for Learning and Inference in Knowledge Bases](https://refivu.com/en/papers/d1a4fc27-43e3-48ba-b0b6-d1a50a552670-embedding-entities-and-relations-for-learning-and-inference.md)
- [Semantics derived automatically from language corpora contain human-like biases](https://refivu.com/en/papers/abf5bfd6-5402-457c-958c-81fe475605f3-semantics-derived-automatically-from-language-corpora.md)
- [Using Information Content to Evaluate Semantic Similarity in a Taxonomy](https://refivu.com/en/papers/23ad22de-7daf-406d-8e06-0f53f8035655-using-information-content-to-evaluate-semantic-similarity-in.md)
- [Thumbs Up or Thumbs Down? Semantic Orientation Applied to Unsupervised Classification of Reviews](https://refivu.com/en/papers/6e4064ce-2095-4d56-8950-560f38e43e69-thumbs-up-or-thumbs-down-semantic-orientation-applied.md)
- [Semantic Image Synthesis with Spatially-Adaptive Normalization](https://refivu.com/en/papers/7c8cce40-a7a4-49f2-a589-a9b074c36caa-semantic-image-synthesis-with-spatially-adaptive.md)
- [An Introduction to Deep Learning for the Physical Layer](https://refivu.com/en/papers/f1790a96-c7b5-4b05-9672-d9d222404a87-an-introduction-to-deep-learning-for-the-physical.md)
- [ByteTrack: Multi-Object Tracking by Associating Every Detection Box](https://refivu.com/en/papers/6d6f3415-7480-483d-afac-4b47286d13c9-bytetrack-multi-object-tracking-by-associating-every.md)
- [ViViT: A Video Vision Transformer](https://refivu.com/en/papers/4375a36b-0a1c-403c-8454-737a027ff973-vivit-a-video-vision-transformer.md)
- [Learning Important Features Through Propagating Activation Differences](https://refivu.com/en/papers/a23d41a4-f8c4-41eb-ac72-f85328d3740c-learning-important-features-through-propagating-activation.md)
- [Direct Sparse Odometry](https://refivu.com/en/papers/05fea2ab-dd17-4852-b079-020caac4ff45-direct-sparse-odometry.md)

## Terms in this paper

- [F1](https://refivu.com/en/terms/a443de87a37a-f1)
- [exact match](https://refivu.com/en/terms/f6e0295e5c92-exact-match)
- [TriviaQA](https://refivu.com/en/terms/d04d9611868e-triviaqa)
- [SQuAD](https://refivu.com/en/terms/097ea97dc6b6-squad)
- [BiDAF](https://refivu.com/en/terms/2a363204e05e-bidaf)
- [reading comprehension](https://refivu.com/en/terms/6601ee93db35-reading-comprehension)
- [distant supervision](https://refivu.com/en/terms/a1678e57d4cf-distant-supervision)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/34db6f08-4b90-47eb-a2d8-fd0c5a90bf6e-triviaqa-a-large-scale-distantly-supervised-challenge)
