Reinforcement Learning Based Graph-to-Sequence Model for Natural Question Generation

Yu Chen, Lingfei Wu, Mohammed J. Zaki

TL;DR

Researchers have developed a novel "Graph-to-Sequence" model that significantly improves how AI generates natural questions from text. By representing passages as structured graphs rather than simple strings of words, and by using Reinforcement Learning (RL) to optimize for both grammar and meaning, the model achieves new state-of-the-art results on the SQuAD benchmark.

What Problem Does This Paper Address?

Natural Question Generation (QG) is the task of taking a passage and a specific answer, and automatically creating a relevant question. This capability is vital for building educational tools, improving chatbots, and generating synthetic data for training Question Answering (QA) systems.

However, existing models face three major hurdles:

  1. Ignoring Structure: Most models treat text as a simple linear sequence, missing out on the rich "hidden" structure (like syntax trees) that defines how words actually relate to one another.
  2. The "Exposure Bias" Trap: Training models solely on cross-entropy loss (predicting the next word based on ground truth) leads to issues during testing, where the model must predict based on its own previous, potentially flawed, guesses.
  3. Shallow Answer Integration: Many models fail to deeply "align" the passage with the target answer, leading to questions that are grammatically correct but irrelevant to the specific answer provided.

Methods

The authors propose an end-to-end architecture designed to overcome these limitations through three main innovations.

Model Architecture
  • Deep Alignment Network (DAN): Before encoding, the model performs a "soft-alignment" between the passage and the answer at both the word level (using GloVe/BERT embeddings) and the contextual level. This ensures the model knows exactly which parts of the passage are relevant to the target answer.
  • Bidirectional Gated Graph Neural Network (BiGGNN): Instead of a standard RNN, the encoder converts the passage into a graph. The authors tested two types of graphs: Static (based on dependency parsing) and Dynamic (learned via self-attention). The BiGGNN is unique because it fuses information from both incoming and outgoing edges at every step of the computation, rather than just at the end, allowing for a richer representation of the text.
  • Hybrid Evaluator (RL): To solve the exposure bias problem, the model is fine-tuned using Reinforcement Learning. It doesn't just look at n-gram overlap (like the BLEU metric); it also uses Word Mover’s Distance (WMD) as a reward. WMD measures semantic similarity, encouraging the model to generate questions that mean the same thing as the reference, even if they use different vocabulary.

Datasets

The model was evaluated on the SQuAD (Stanford Question Answering Dataset) benchmark. The researchers used two different data splits (Split-1 and Split-2) commonly found in previous literature to ensure a fair and comprehensive comparison against existing baselines.

Key Insights and Ideas

  • Graphs > Sequences: Representing text as a graph allows the model to capture long-range dependencies and syntactic relationships that linear models (like LSTMs) often struggle to maintain.
  • Bidirectional Fusion Matters: In Graph Neural Networks (GNNs), simply concatenating forward and backward passes at the end of the network is less effective than "interleaving" or fusing them at every hop. This step-by-step fusion allows the node embeddings to be much more holistic.
  • Semantic Rewards Work: Optimizing for BLEU alone can lead to "safe" but boring or slightly off-topic questions. Adding a semantic reward like WMD forces the model to respect the underlying meaning of the sentence.
  • Answer Awareness is the Secret Sauce: Ablation studies showed that removing the Deep Alignment Network (DAN) caused the biggest drop in performance, proving that knowing how the answer relates to the passage is the single most critical factor in effective QG.

Key Results

The proposed model, G2S$_{sta}$+BERT+RL, outperformed all existing baselines by a significant margin across multiple metrics.

Main Results on SQuAD
  • SQuAD Split-1: The model achieved a BLEU-4 score of 17.94, a substantial improvement compared to the previous best of 16.20.
  • SQuAD Split-2: It achieved a BLEU-4 score of 18.30, significantly higher than the Transformer baseline (3.09) and other specialized models like MPQG+R (14.71).
  • Human Evaluation: In blind tests, human evaluators rated the model's questions as more syntactically correct, semantically sound, and relevant than those produced by previous state-of-the-art methods.

Limitations and Future Work

Despite the impressive improvements, the authors noted some remaining challenges:

  • Syntactic Errors: The model still occasionally struggles with repeated words or generating "unknown" tokens in the output.
  • Semantic Drift: While WMD helps bridge the gap, there is still a noticeable difference between machine-generated questions and the "Gold" human-written questions in terms of overall naturalness.
  • Future Directions: The authors suggest exploring ways to automatically learn the graph structure from text more effectively, rather than relying on external parsers. They also propose applying this Graph2Seq architecture to other structured data formats, such as knowledge graphs or tables.

Summary updated

BibTeX
@inproceedings{chen2020reinforcement,
  author = {Yu Chen and Lingfei Wu and Mohammed J. Zaki},
  title = {{Reinforcement Learning Based Graph-to-Sequence Model for Natural Question Generation}},
  booktitle = {International Conference on Learning Representations},
  year = {2020},
  url = {https://openreview.net/forum?id=Z4aPlf8fz5T},
}
Figure