Introduction
Automatic question generation (QG) has traditionally relied on hand-crafted heuristic rules and templates. While functional, these systems are often rigid, struggle with linguistic variety, and are difficult to port across different domains. This paper explores the "reverse" of question answering: Neural Question Generation (NQG). By treating QG as a sequence-to-sequence task—similar to machine translation—the authors aim to generate fluent, diverse, and answer-focused natural language questions from source sentences.
Methods
The proposed NQG framework utilizes an RNN-based encoder-decoder architecture with several key enhancements to make it "answer-aware." Because a single sentence can spark many different questions depending on which part is the target answer, the model must explicitly identify the answer sub-span within the text.
The architecture includes:
- Feature-Rich Encoder: Instead of processing only raw words, the encoder incorporates answer position features (using BIO tagging), lexical features (POS and NER tags), and word casing. This provides structural context and helps the model understand the grammatical role of the answer.
- Attention-Based Decoder: A GRU decoder employs a global attention mechanism to focus on relevant parts of the input sentence during generation.
- Copy Mechanism: To handle rare words or specific entities (e.g., names or dates) outside the training vocabulary, a "pointing" mechanism allows the model to copy words directly from the source text.
- NQG++ Optimizations: The advanced NQG++ model uses pre-trained GloVe embeddings and a shared embedding matrix between the encoder and decoder to improve representation learning.
Datasets
The study utilizes the Stanford Question Answering Dataset (SQuAD), flipping its original purpose. Instead of finding answers in text, the authors use (passage, answer) pairs as inputs and human-written questions as targets. The dataset consists of approximately 86,000 training triples and 9,000 triples each for development and testing.
Key Insights
- Answer-Awareness is Critical: The most significant finding was that the model must know the answer's location. Removing the answer position feature caused performance to plummet, as the model essentially guesses what to ask about.
- Linguistic Metadata: Incorporating POS and NER tags provides a measurable performance boost, suggesting that "end-to-end" neural models still benefit from classical NLP features that clarify the answer's grammatical role (e.g., knowing the answer is a "Person" helps choose "Who").
- Copying for the Long Tail: The copy mechanism is essential for handling specific technical terms or obscure names found in Wikipedia that are not present in the standard vocabulary.
Results
The authors evaluated their models using BLEU-4 and human evaluation.
As shown in the results, the NQG++ model achieved a BLEU-4 score of 13.29, significantly outperforming the rule-based baseline (PCFG-Trans, 9.31) and a basic sequence-to-sequence model without extra features (3.06). Qualitatively, human raters scored NQG++ at 2.18 (on a 1-3 scale), compared to 1.42 for the rule-based system, indicating that the neural approach produces more natural and relevant questions.
Limitations and Future Work
The model currently struggles with "Why" and "Which" questions, likely due to the deeper logical reasoning required and their lower frequency in the training data. Future work may explore using these generated questions for data augmentation to improve the performance of downstream Question Answering (QA) systems.
Summary updated