CQG: A Simple and Effective Controlled Generation Framework for Multi-hop Question Generation

Zichu Fei, Qi Zhang, Tao Gui, Di Liang, Sirui Wang, Wei Wu, Xuanjing Huang

Abstract

Multi-hop Question Generation (MQG) aims to generate complex questions requiring reasoning over multiple pieces of information. Current models often suffer from "degeneration," producing shallow questions that ignore the intended reasoning chain. We present CQG (Controlled Question Generation), a framework that utilizes a Graph Attention Network (GAT) to extract key entities and a novel "flag tag" mechanism within a Transformer decoder to enforce lexical constraints. CQG achieves state-of-the-art performance on the HotpotQA benchmark, outperforming previous models by over 5 BLEU-4 points.

Introduction

While Question Generation (QG) has seen success in "shallow" tasks involving single-fact retrieval, Multi-hop Question Generation (MQG) remains a significant challenge. Models often "cheat" by generating simple questions that can be answered using only a subset of the provided context, effectively ignoring the complex reasoning chains required for true multi-hop tasks. This tendency toward simplicity results in questions that fail to capture the "hops" necessary for sophisticated reasoning. CQG addresses this by forcing the model to incorporate key entities from the reasoning chain into the final output.

Methodology

CQG employs a two-stage approach to ensure the generation of complex, multi-hop questions.

Overview of the CQG framework including the GAT-based entity extractor and the controlled decoder.

1. GAT-based Key Entities Extractor

The system first constructs an "entity graph" from input documents. Nodes represent named entities, and edges represent relationships (e.g., co-occurrence in a sentence). A Graph Attention Network (GAT) identifies entities central to the reasoning chain, which are then treated as mandatory lexical constraints.

2. Controlled Generator with Flag Tag

To enforce these constraints, a "flag tag" mechanism is introduced. Each input token is assigned a tag: 0 (not a constraint), 1 (unfulfilled constraint), or 2 (already generated constraint). These tags are injected into the Transformer decoder as relational position embeddings. During cross-attention, the decoder tracks unfulfilled constraints (tag 1), pressuring the model to include them in the output to satisfy the training objective.

Evaluation

The model was evaluated on the HotpotQA dataset, which contains approximately 100,000 crowd-sourced questions requiring reasoning over multiple Wikipedia articles. The authors focused on "fact-supporting sentences" as the primary input for the generation task.

Results and Analysis

CQG demonstrates a substantial improvement over previous benchmarks. It achieved a BLEU-4 score of 25.09, a significant jump from the previous state-of-the-art (Strong Transformers) at 20.02.

Comparison of CQG against baseline models on the HotpotQA dataset.

Key insights from the evaluation include:

  • Hard Constraints for Soft Generation: Treating key entities as "hard" lexical constraints effectively steers the model away from shallow outputs.
  • Dynamic State Tracking: The "flag tag" updates at each decoding step, allowing the model to maintain a "to-do list" of required entities, mimicking human goal-oriented thought processes.
  • Ablation Studies: Removing the flag tag or entity graph components led to significant performance drops, confirming that the controlled generation mechanism is the primary driver of success.

Human evaluations further supported these findings, with raters judging CQG's questions as more complex and relevant than those from models like BART or UniLM, particularly in long-context scenarios.

Discussion and Future Work

The framework's performance is currently dependent on the accuracy of the initial entity extractor. Future improvements could involve integrating robust co-reference resolution to enrich the entity graphs. Additionally, exploring the generalizability of this graph-based constraint method to less structured datasets or creative tasks remains an open area for research.

Summary updated

BibTeX
@inproceedings{fei2022cqg,
  author = {Zichu Fei and Qi Zhang and Tao Gui and Di Liang and Sirui Wang and Wei Wu and Xuanjing Huang},
  title = {{CQG: A Simple and Effective Controlled Generation Framework for Multi-hop Question Generation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.acl-long.475},
}
Figure