Efficient and Robust Question Answering from Minimal Context over Documents

Sewon Min, Victor Zhong, Richard Socher, Caiming Xiong

Title: Efficient and Robust Question Answering from Minimal Context over Documents

Abstract

Neural models for question answering (QA) over documents have achieved significant performance improvements. Although effective, these models do not scale to large corpora due to their complex modeling of interactions between the document and the question. Moreover, recent work has shown that such models are sensitive to adversarial inputs. In this paper, we study the minimal context required to answer the question, and find that most questions in existing datasets can be answered with a small set of sentences. Inspired by this observation, we propose a simple sentence selector to select the minimal set of sentences to feed into the QA model. Our overall system achieves significant reductions in training (up to 15 times) and inference times (up to 13 times), with accuracy comparable to or better than the state-of-the-art on SQuAD, NewsQA, TriviaQA and SQuAD-Open. Furthermore, our experimental results and analyses show that our approach is more robust to adversarial inputs.

Introduction

Modern neural question answering (QA) models, while powerful, face significant challenges regarding scalability and robustness. These models often employ complex interaction mechanisms between questions and documents, making them computationally expensive for large-scale applications. Furthermore, they are susceptible to adversarial "distractor" sentences that can easily mislead the model. This research investigates the hypothesis that most questions in standard datasets can be answered using a minimal context—often just one or two sentences—and proposes a system to exploit this observation for efficiency and robustness.

The Minimal Context Hypothesis

A core insight of this work is the "Single Sentence" revelation. Human analysis of the SQuAD dataset indicates that 92% of answerable questions require only a single sentence for a correct answer. Similarly, in the more complex TriviaQA dataset, 95% of questions can be answered with just one or two sentences. This suggests that processing entire documents is often unnecessary and potentially detrimental, as it introduces irrelevant noise.

Venn diagrams illustrating the performance overlap between models using full document context versus oracle (minimal) context on SQuAD and NewsQA.

Methods: A Two-Stage Pipeline

To leverage the minimal context requirement, the authors propose a two-stage architecture: a lightweight Sentence Selector followed by a high-capacity QA Model.

  1. Sentence Selector: This module scores each sentence in a document in parallel. It utilizes a shared encoder to generate embeddings for both the question and individual sentences.
  2. Dynamic Selection: Instead of selecting a fixed number of sentences, the system uses a dynamic threshold to pass only the "minimal set" of relevant sentences to the subsequent QA engine.
  3. Optimized Training: The selector is enhanced via weight transfer from an oracle-trained model and a data modification strategy that penalizes the selection of sentences the QA model cannot successfully process. Additionally, score normalization across sentences within the same paragraph is used to improve ranking.
The proposed architecture, featuring (a) the overall pipeline, (b) the encoder details, and (c-d) the scoring mechanisms for the selector and QA model.

Experimental Results

The "MINIMAL" approach was evaluated across five diverse datasets: SQuAD, NewsQA, TriviaQA (Wikipedia), SQuAD-Open, and SQuAD-Adversarial.

  • Efficiency: The system achieved a 15x reduction in training time and a 13x reduction in inference time on NewsQA compared to processing full documents.
  • Accuracy: On TriviaQA and SQuAD-Open, the minimal context approach outperformed full-document models, setting new state-of-the-art benchmarks at the time of publication.
  • Robustness: On SQuAD-Adversarial, the approach showed a 13% improvement over previous models. By filtering out distracting sentences before they reach the QA model, the system is naturally more resilient to adversarial attacks.

Conclusion

By focusing on the minimal necessary context, QA systems can achieve dramatic improvements in speed and robustness without sacrificing accuracy. This approach demonstrates that for many current QA tasks, "less is more." While the current selector is optimized for independent sentence scoring, future work will explore extending this philosophy to multi-hop reasoning tasks where information is distributed across multiple context segments.

Summary updated

BibTeX
@inproceedings{min2018efficient,
  author = {Sewon Min and Victor Zhong and Richard Socher and Caiming Xiong},
  title = {{Efficient and Robust Question Answering from Minimal Context over Documents}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2018},
  url = {https://openreview.net/forum?id=rJWM3ngubr},
}
Figure