Answer-focused and Position-aware Neural Question Generation

Xingwu Sun, Jing Liu, Yajuan Lyu, Wei He, Yanjun Ma, Shi WangEMNLP 2018

Introduction

Question Generation (QG) is the task of automatically creating a question based on a given text and a specific answer within that text. While neural models have significantly advanced the field, state-of-the-art sequence-to-sequence (Seq2Seq) models still suffer from two persistent issues: Interrogative Mismatch and Distracted Copying.

Interrogative Mismatch occurs when a model fails to select the correct "Wh-" word (e.g., asking "Why" when the answer is a date). Distracted Copying happens when the model's copy mechanism pulls irrelevant words from distant parts of the source text that are syntactically similar but contextually unrelated to the specific answer. This paper addresses these challenges by explicitly modeling answer types and incorporating relative distance into the attention mechanism.

Methodology

The authors propose a hybrid neural architecture built upon a feature-enriched pointer-generator model. The core of their contribution lies in two specialized modules designed to anchor the generation process to the provided answer.

The hybrid neural architecture featuring the Answer-focused and Position-aware modules.

Answer-focused Module

To solve the "Wh-" word mismatch, the model introduces a specific "question word generation mode." Instead of selecting from the entire vocabulary, the model utilizes a restricted vocabulary of common question words. It determines the appropriate word by analyzing an answer embedding—the hidden state of the encoder at the answer's starting position. This forces the model to "look" at the answer before deciding whether to ask about a person, place, or time.

Position-aware Module

To mitigate distracted copying, the authors incorporated relative distance embeddings. For every word in the source text, the model calculates its physical distance from the answer. This distance is converted into an embedding and fed into the attention mechanism, encouraging the model to favor "local" context—words physically close to the answer—when deciding what to copy into the generated question.

The final Hybrid Model employs a three-way switch at each decoding step to decide whether to generate a general vocabulary word, generate a specific question word, or copy a word directly from the source text.

Experimental Results

The researchers evaluated the model on two major benchmarks: the SQuAD (Stanford Question Answering Dataset) and MS MARCO. The hybrid model demonstrated superior performance over previous state-of-the-art models, such as NQG++.

Performance comparison across SQuAD and MS MARCO datasets.

As shown in the results table, the Hybrid model achieved a BLEU-4 score of 15.64 on SQuAD and 19.45 on MS MARCO. Beyond automated metrics, the Answer-focused module improved the Same Question Word Ratio (SQWR)—a measure of how often the model picks the same question word as a human—from 71.58% to 73.91%. Qualitative analysis further confirmed that the position-aware module successfully ignores distractor phrases in long sentences, focusing instead on the clauses immediately surrounding the answer.

Conclusion

By treating the answer as the primary signal for both the structure of the question and the relevance of the context, this model effectively reduces common hallucinations in QG. While challenges remain regarding distant logical cues and semantic ambiguity, the explicit separation of question-word logic and the use of proximity-based attention represent a significant step forward in generating human-like questions.

Summary updated

BibTeX
@inproceedings{sun2018answer,
  author = {Xingwu Sun and Jing Liu and Yajuan Lyu and Wei He and Yanjun Ma and Shi Wang},
  title = {{Answer-focused and Position-aware Neural Question Generation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2018},
  doi = {10.18653/v1/d18-1427},
}
Figure