Learning to Ask: Neural Question Generation for Reading Comprehension

Xinya Du, Junru Shao, Claire Cardie

Abstract

We study automatic question generation for sentences from text passages in reading comprehension. We introduce an attention-based sequence learning model for the task and investigate the effect of encoding sentence- vs. paragraph-level information. In contrast to all previous work, our model does not rely on hand-crafted rules or a sophisticated NLP pipeline; it is instead trainable end-to-end via sequence-to-sequence learning. Automatic evaluation results show that our system significantly outperforms the state-of-the-art rule-based system. In human evaluations, questions generated by our system are also rated as being more natural (i.e., grammaticality, fluency) and as more difficult to answer (in terms of syntactic and lexical divergence from the original text and reasoning needed to answer).

Introduction

In the field of Reading Comprehension (RC), research has primarily focused on the task of question answering. However, the inverse task—automatic question generation (QG)—is equally critical for developing educational materials, enhancing conversational agents, and automating dataset creation. Traditional QG approaches have relied on rule-based systems that perform syntactic transformations on source sentences. These methods are often brittle, requiring complex linguistic pipelines and manual rule engineering, which frequently results in questions that are grammatically rigid or overly simplistic. This paper introduces an end-to-end neural approach that treats QG as a sequence-to-sequence learning problem, allowing for more fluent and abstractive question generation.

Methodology

The proposed model utilizes a recurrent neural network (RNN) encoder-decoder architecture with a global attention mechanism. This framework allows the model to learn the mapping from a source sentence to a target question directly from data.

Model Architecture

The authors explore two primary encoder configurations:

  1. Sentence-level Encoder: Processes only the sentence containing the answer.
  2. Paragraph-level Encoder: Uses a dual-encoding strategy to capture both the immediate sentence and the broader paragraph context, aiming to generate more sophisticated questions that require external information.

To improve performance, the model incorporates pre-trained GloVe embeddings and a pointer-based heuristic to handle out-of-vocabulary words by copying relevant tokens from the input.

Experimental Results

The model was evaluated using the SQuAD dataset, which provides high-quality, human-generated question-sentence pairs. This dataset's natural language variety makes it ideal for training abstractive models.

Automatic Evaluation

The neural model was compared against several baselines, including the state-of-the-art rule-based system by Heilman and Smith (H&S). As shown in the table below, the neural approach (with pre-trained embeddings) significantly outperforms the rule-based baseline across all standard metrics, including BLEU-4, METEOR, and ROUGE_L.

Comparison of the proposed neural model against baseline systems using automatic evaluation metrics.

Human Evaluation

To assess the qualitative aspects of the generated questions, human evaluators rated them on naturalness (fluency and grammaticality) and difficulty. The neural model's questions were judged to be significantly more natural and challenging than those produced by the H&S system, as they often involved paraphrasing rather than simple word-matching.

Human evaluation results for naturalness and difficulty, highlighting the superior performance of the neural model.

Discussion and Conclusion

The results indicate that neural models can effectively learn the complex syntax and semantics required for question generation without explicit linguistic rules. While the inclusion of paragraph-level context showed promise for complex questions, it also introduced noise, suggesting that future work should focus on more selective context-gating mechanisms. Additionally, incorporating the specific target answer into the model input and adopting formal pointer-generator networks are identified as key areas for future improvement. This work marks a significant step toward more human-like, abstractive question generation for reading comprehension.

Summary updated

BibTeX
@inproceedings{du2017learning,
  author = {Xinya Du and Junru Shao and Claire Cardie},
  title = {{Learning to Ask: Neural Question Generation for Reading Comprehension}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2017},
  url = {https://openreview.net/forum?id=rkbqwneOWB},
}
Figure