# SQuAD 2.0

SQuAD 2.0 is a reading comprehension benchmark dataset that extends the Stanford Question Answering Dataset by adding unanswerable questions, requiring models to both extract answers and abstain when no answer exists.

SQuAD 2.0 (Stanford Question Answering Dataset, version 2.0) is a widely used benchmark for evaluating the reading comprehension capabilities of natural language processing systems. Released in 2018 by researchers at [Stanford University](https://www.wikiprompt.org/wiki/stanford-ai-lab), it builds upon the original SQuAD 1.1 dataset by introducing a critical challenge: unanswerable questions. In SQuAD 2.0, each paragraph is paired with questions, some of which have no answer present in the text, forcing models to not only extract correct spans but also recognize when a question is unanswerable. This design directly tests a system's ability to reason about the presence or absence of information, moving beyond simple pattern matching.

The dataset consists of over 100,000 question-answer pairs derived from more than 500 Wikipedia articles. Specifically, it contains roughly 50,000 answerable questions (retained from SQuAD 1.1) and an additional 50,000 unanswerable questions that were adversarially written by crowdworkers. These unanswerable questions are crafted to be plausible and similar in style to answerable ones, often using related but incorrect entities or facts, making the task significantly more difficult. The evaluation metric for SQuAD 2.0 is the Exact Match (EM) score, which requires a model's predicted answer to match the ground truth exactly, and the F1 score, which measures the overlap of tokens between the prediction and the true answer. For unanswerable questions, a model receives credit only if it predicts "no answer" (an empty span).

## Background and Motivation

The original SQuAD 1.1, released in 2016, became the de facto standard for extractive question answering, where models are given a paragraph and a question and must select a contiguous span of text as the answer. However, this setup had a significant limitation: every question was guaranteed to have an answer in the provided context. This allowed models to exploit the dataset's structure, often relying on superficial lexical cues rather than genuine comprehension. To address this, the SQuAD 2.0 creators, led by Pranav Rajpurkar and Percy Liang, introduced unanswerable questions. The goal was to create a more realistic evaluation that reflects real-world scenarios where users may ask questions that have no answer in the available documents, and a robust system should be able to say "I don't know" rather than hallucinate a response.

## Dataset Construction

The construction of SQuAD 2.0 involved a two-stage process. First, the answerable questions were taken directly from SQuAD 1.1, which were generated by crowdworkers who were shown a paragraph and asked to write questions that could be answered by a span in the text. Second, for each paragraph, additional crowdworkers were tasked with writing unanswerable questions. They were instructed to create questions that were grammatically correct, relevant to the paragraph's topic, and plausible, but for which no span in the paragraph provided a correct answer. To ensure quality, the workers were given examples of good and bad unanswerable questions. The final dataset was then filtered and validated, resulting in a balanced split of answerable and unanswerable questions per paragraph. The paragraphs themselves are sourced from Wikipedia articles covering a diverse range of topics, including history, science, and culture.

## Impact on Model Development

SQuAD 2.0 had a profound impact on the field of [machine learning](https://www.wikiprompt.org/wiki/machine-learning) and [natural language processing](https://www.wikiprompt.org/wiki/natural-language-processing). It quickly became a standard benchmark for evaluating reading comprehension models, and its introduction spurred significant research into handling unanswerable questions. Early models, such as those based on [recurrent neural networks](https://www.wikiprompt.org/wiki/recurrent-neural-network) and attention mechanisms, struggled with the new challenge, often predicting an answer even when none existed. The benchmark drove the development of more sophisticated architectures, including those that incorporate a "no-answer" classifier or use a threshold on the confidence score of the answer span. The release of [Transformer](https://www.wikiprompt.org/wiki/transformer)-based models, particularly [BERT](https://www.wikiprompt.org/wiki/bert) (Bidirectional Encoder Representations from Transformers) in late 2018, led to rapid improvements on SQuAD 2.0. BERT's pre-training on a large corpus allowed it to achieve near-human performance on the answerable questions and significantly better performance on the unanswerable ones, setting a new state of the art.

## Evaluation and Significance

SQuAD 2.0 is considered a more challenging and realistic benchmark than its predecessor. The inclusion of unanswerable questions tests a model's ability to perform logical reasoning and to distinguish between relevant and irrelevant information. A model that simply guesses an answer for every question will score poorly, as it will fail on all unanswerable instances. The benchmark has been used to compare a wide range of models, from traditional feature-based systems to modern [large language models](https://www.wikiprompt.org/wiki/large-language-model). As of 2024, the best-performing models on SQuAD 2.0 achieve EM scores above 90%, surpassing human performance, which is estimated at around 86.8% EM. However, even with these high scores, researchers note that models can still be brittle and may fail on adversarial examples or out-of-distribution data. SQuAD 2.0 remains a foundational resource for evaluating reading comprehension and continues to be cited in research papers and used in academic courses on [artificial intelligence](https://www.wikiprompt.org/wiki/artificial-intelligence).

## Limitations and Future Directions

Despite its widespread use, SQuAD 2.0 has limitations. The dataset is extractive, meaning answers must be a contiguous span from the text, which does not reflect the generative nature of many modern question-answering systems. It also relies on Wikipedia articles, which have a particular style and structure, potentially limiting generalization to other domains. Furthermore, the unanswerable questions, while carefully crafted, may not fully capture the complexity of real-world queries, which can be ambiguous or require synthesis of information from multiple sources. In response, newer benchmarks such as Natural Questions and RACE have been introduced, but SQuAD 2.0 remains a key reference point. Future research directions include developing models that can handle open-ended questions, provide explanations for their answers, and robustly detect when they lack sufficient information, building on the foundation laid by SQuAD 2.0.

---
Source: https://www.wikiprompt.org/wiki/squad-2-0
License: CC BY-SA 4.0 (https://creativecommons.org/licenses/by-sa/4.0/)
Last updated: 2026-09-12T16:26:46.671494+00:00
