PathQG: Neural Question Generation from Facts

Siyuan Wang, Zhongyu Wei, Zhihao Fan, Zengfeng Huang, Weijian Sun, Qi Zhang, Xuanjing Huang

Overview

PathQG is a novel framework designed to improve neural question generation (QG) by explicitly modeling factual relationships within text as a Knowledge Graph (KG). Rather than treating input text as a flat sequence of tokens, PathQG generates questions based on "query paths"—sequences of interconnected facts. This approach produces significantly more informative and relevant questions, particularly in complex scenarios requiring multi-fact reasoning.

The Challenge: Beyond Flat Text

Traditional Neural QG systems typically employ sequence-to-sequence (seq2seq) architectures that map raw text strings directly to questions. This often leads to a "hallucination" problem: models generate generic or irrelevant questions because they lack a deep understanding of the underlying semantics. While some systems use a specific "answer entity" to guide generation, a single word is often insufficient to represent the complex web of facts required for high-quality, sophisticated questions.

Methodology

The PathQG framework integrates Knowledge Graph construction with advanced representation learning through a three-step process:

  1. Knowledge Graph Construction: Input text is converted into a KG using a scene graph parser and part-of-speech tagging to identify entities and their relational triples.
  2. Query Representation Learning: The model identifies critical entities and relations within a "query path." To capture the alternating structure of these paths, the authors utilize a Recurrent Skipping Network (RSN), which outperforms standard LSTMs in processing graph-based sequences.
  3. Query-based Question Generation: An RNN-based generator synthesizes the learned query representation and the original context to produce the final question.
Figure 1: Knowledge Graph query paths representing factual relationships between entities like Levi's Stadium and the San Francisco Bay Area.

To further refine performance, the authors introduced PathQG-V, a variational framework. This version employs a "posterior learner" during training that leverages ground-truth questions to help the "prior learner" develop a more robust internal representation. This minimizes the gap between fact selection and language generation.

Experimental Setup and Results

The researchers evaluated PathQG using KG-SQuAD, a dataset derived from the Stanford Question Answering Dataset where sentences were automatically converted into KGs. They specifically focused on a "Complex Question Set" containing over 16,000 samples where query paths involve more than three triples.

PathQG and PathQG-V consistently outperformed state-of-the-art baselines (such as NQG+, AFPA, and ASs2s):

  • Automatic Metrics: On the complex dataset, PathQG-V achieved a BLEU-4 score of 18.48, surpassing the baseline NQG+ (17.25). It also showed significant gains in SPICE, which measures semantic content.
  • Human Evaluation: Side-by-side comparisons revealed that human annotators preferred PathQG-V across all qualitative dimensions.
Figure 6: Human evaluation results showing PathQG-V consistently outperforming baselines in Fluency, Correctness, and Informativeness.

Key Insights

  • Paths over Entities: Moving to "path-aware" QG allows the model to capture the logical "connective tissue" of a sentence, which is essential for generating complex questions.
  • Structural Awareness: RSNs are better suited than standard LSTMs for the rigid Entity -> Relation -> Entity structure of Knowledge Graphs.
  • Variational Interaction: The variational approach effectively bridges the gap between structured facts and natural language generation by aligning the model's internal reasoning with target questions.

Future Directions

While PathQG represents a significant step forward, the authors identify several areas for future work. These include improving the quality of automated KG construction to reduce noise, developing new evaluation metrics that better capture semantic consistency than word-overlap scores like BLEU, and exploring more explainable symbolic reasoning methods.

Summary updated

BibTeX
@inproceedings{wang2020pathqg,
  author = {Siyuan Wang and Zhongyu Wei and Zhihao Fan and Zengfeng Huang and Weijian Sun and Qi Zhang and Xuanjing Huang},
  title = {{PathQG: Neural Question Generation from Facts}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  doi = {10.18653/v1/2020.emnlp-main.729},
}
Figure