Learning Recurrent Span Representations for Extractive Question Answering

Kenton Lee, Tom Kwiatkowski, Ankur P. Parikh, Dipanjan DasarXiv 2016

Abstract

The reading comprehension task, that asks questions about a given evidence document, is a central problem in natural language understanding. Recent formulations of this task have typically focused on answer selection from a set of candidates pre-defined manually or through the use of an external NLP pipeline. However, Rajpurkar et al. (2016) recently released the SQuAD dataset in which the answers can be arbitrary strings from the supplied text. In this paper, we focus on this answer extraction task, presenting a novel model architecture that efficiently builds fixed length representations of all spans in the evidence document with a recurrent network. We show that scoring explicit span representations significantly improves performance over other approaches that factor the prediction into separate predictions about words or start and end markers. Our approach improves upon the best published results of Wang & Jiang (2016) by 5% and decreases the error of Rajpurkar et al.'s baseline by > 50%.

Introduction

Extractive question answering (QA) requires a system to identify a specific sequence of words, or "span," within a passage that answers a given question. Historically, researchers have approached this in two ways: selecting from pre-identified linguistic candidates (like noun phrases) or predicting the start and end boundaries of the answer independently. While the former is computationally efficient, it often fails when answers do not align with syntactic boundaries. The latter, boundary prediction, is more flexible but suffers from "search errors"—the model may select a start and end point that are locally likely but globally nonsensical together.

We propose RASOR (Recurrent Span Representations), a model that evaluates every possible text span as a single unit. By building fixed-length representations for all candidate spans and applying global normalization, RASOR provides a holistic view of the answer span, leading to significant performance gains.

The RASOR Model

The RASOR architecture processes the question and passage through a multi-stage pipeline designed to capture deep semantic relationships before scoring potential answer spans.

The RASOR model architecture, illustrating the flow from question-focused embeddings to global span scoring.
  1. Question-Focused Embeddings: For each word in the passage, the model generates an embedding enriched with question context. This includes the original word embedding, a "passage-aligned" representation (derived via attention over the question), and a "passage-independent" summary of the question.
  2. Passage-level BiLSTM: These enriched embeddings are processed by a multi-layer Bidirectional LSTM, allowing each word to incorporate the context of the entire passage.
  3. Span Representation: To represent a span from index $i$ to $j$, RASOR concatenates the BiLSTM hidden states at these two endpoints. This compact representation captures the internal content of the span as well as its immediate boundary context.
  4. Global Scoring: Instead of greedy decoding, the model scores every possible span (up to 30 words) using a feed-forward network. A global softmax is then applied across all candidates to identify the most probable answer.

By reusing BiLSTM outputs across different spans, RASOR maintains a computational complexity of $O(N^2)$, avoiding the $O(N^3)$ cost of naive span-based methods.

Experimental Results

We evaluated RASOR on the SQuAD (Stanford Question Answering Dataset), which contains over 100,000 question-answer pairs. At the time of its release, SQuAD represented a significant challenge due to its requirement for arbitrary text span extraction.

Performance comparison of RASOR against baselines and human performance on the SQuAD dataset.

As shown in the table above, RASOR achieved a new state-of-the-art for published models, reaching 67.4% Exact Match (EM) and 75.5% F1 on the test set. This represents a 5% absolute improvement in EM over the previous best-published model (Match-LSTM) and a reduction of the original baseline error by more than 50%.

Discussion and Key Insights

A primary insight of this work is that the hidden states at a span's endpoints in a BiLSTM are sufficiently informative to represent the entire span. Furthermore, global normalization over all spans enforces consistency that independent boundary prediction lacks. Ablation studies revealed that the "passage-aligned" attention mechanism is the most critical component; without it, the model's ability to localize the answer within the text degrades sharply.

Despite its success, RASOR has limitations. Qualitative analysis shows that while the model is adept at identifying the correct answer type (e.g., a date or location), it occasionally struggles with complex semantic dependencies, sometimes selecting a nearby but incorrect entity. Additionally, the $O(N^2)$ complexity necessitates a maximum span length constraint (30 words) to remain efficient.

Conclusion

RASOR demonstrates that explicit span representations are a powerful alternative to boundary-based models for extractive QA. By treating spans as holistic units, the model achieves superior performance on challenging benchmarks like SQuAD, bridging the gap toward human-level reading comprehension.

Summary updated

Abstract

The reading comprehension task, that asks questions about a given evidence document, is a central problem in natural language understanding. Recent formulations of this task have typically focused on answer selection from a set of candidates pre-defined manually or through the use of an external NLP pipeline. However, Rajpurkar et al. (2016) recently released the SQuAD dataset in which the answers can be arbitrary strings from the supplied text. In this paper, we focus on this answer extraction task, presenting a novel model architecture that efficiently builds fixed length representations of all spans in the evidence document with a recurrent network. We show that scoring explicit span representations significantly improves performance over other approaches that factor the prediction into separate predictions about words or start and end markers. Our approach improves upon the best published results of Wang & Jiang (2016) by 5% and decreases the error of Rajpurkar et al.'s baseline by > 50%.
BibTeX
@misc{lee2016learning,
  author = {Kenton Lee and Tom Kwiatkowski and Ankur P. Parikh and Dipanjan Das},
  title = {{Learning Recurrent Span Representations for Extractive Question Answering}},
  year = {2016},
  eprint = {1611.01436},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1611.01436},
}
Figure