Knowledge-enriched, Type-constrained and Grammar-guided Question Generation over Knowledge Bases

Sheng Bi, Xiya Cheng, Yuan-Fang Li, Yongzhen Wang, Guilin Qi

Abstract

Question Generation over Knowledge Bases (KBQG) is a critical task for developing conversational agents and augmenting training data for question-answering systems. However, existing models often suffer from repetitive outputs and "semantic drift," where generated questions fail to align with the answer's entity type. We present the KTG (Knowledge-enriched, Type-constrained, and Grammar-guided) model, which addresses these issues by incorporating external knowledge from Wikidata and employing a novel grammar-based reinforcement learning reward. Experimental results on SimpleQuestion and PathQuestion benchmarks demonstrate that KTG significantly outperforms previous state-of-the-art methods in both automatic metrics and human evaluation.

Introduction

The primary goal of KBQG is to transform structured data triples, such as <LeBron James, educated_at, St. Vincent-St. Mary High School>, into coherent natural language questions. Despite recent progress, two major Research Challenges (RCs) persist:

  1. Limited Information (RC-1): Standard KB subgraphs often lack the descriptive richness required to generate diverse and natural questions, leading to rigid and repetitive outputs.
  2. Semantic Drift (RC-2): Decoders frequently lose track of the answer entity's nature during generation. For instance, a model might generate a "When" question for a location-based answer like "Ohio" because it lacks a strong grounding in the answer's semantic type.

Methodology

The KTG model introduces a multi-faceted approach to overcome these challenges through three primary components:

Knowledge-augmented Fact Encoder

To address RC-1, the encoder links entities to Wikidata to retrieve auxiliary information, including entity descriptions (e.g., "American basketball player") and domain classifications (e.g., "human"). Furthermore, a Global Relation Encoder, implemented as an N-ary Tree-LSTM, is utilized to capture the hierarchical structure of relationships within the knowledge base.

Typed Decoder

To mitigate semantic drift (RC-2), KTG employs a "typed" decoding process. Before selecting a specific word, the decoder predicts a distribution over four word types: interrogative, entity word, relation word, and ordinary word. A key innovation is the "Answer-First" initialization: instead of a generic <SOS> token, the decoder is initialized with the embedding of the answer entity. This ensures the model is grounded in the answer's type from the very first token.

KTG model architecture overview.

Grammar-guided Reinforcement Learning

Standard n-gram metrics like BLEU often penalize valid but lexically diverse questions. KTG introduces the Dependency Parse Tree Similarity (DPTS) reward. This reinforcement learning objective rewards the model for generating questions that share a similar grammatical structure with the ground truth, encouraging syntactic correctness without stifling linguistic variety.

Experimental Setup

The model was evaluated on two prominent benchmarks:

  • SimpleQuestion: A large-scale dataset containing over 108,000 single-triple facts.
  • PathQuestion: A more complex dataset with over 11,700 samples involving multi-hop paths. Both datasets were enriched by mapping Freebase IDs to Wikidata to incorporate the necessary auxiliary descriptions and domain metadata.

Results and Analysis

KTG achieved state-of-the-art performance across all evaluated metrics. On the SimpleQuestion dataset, KTG reached a BLEU-4 score of 38.05, a substantial improvement over the previous best of 31.12 (BiGraph2Seq). Similar trends were observed for METEOR and ROUGE-L scores.

Comparative performance results on benchmark datasets.

Human evaluations further validated these findings, with KTG receiving significantly higher ratings for Naturalness, Diversity, and Correctness. Notably, the "Diversity" score nearly doubled compared to basic RNN models, highlighting the impact of external knowledge and the DPTS reward. Ablation studies confirmed that each component—external knowledge, word-type constraints, and the RL framework—contributes critically to the model's overall success.

Conclusion

The KTG model represents a significant advancement in KBQG by effectively leveraging external knowledge and structural constraints. While the model's performance is currently dependent on the availability of descriptions in external KBs like Wikidata and involves increased computational complexity due to Tree-LSTMs, it provides a robust framework for generating high-quality, diverse questions. Future work will focus on reducing dependency on external KBs and optimizing the training pipeline.

Summary updated

BibTeX
@inproceedings{bi2020knowledge,
  author = {Sheng Bi and Xiya Cheng and Yuan-Fang Li and Yongzhen Wang and Guilin Qi},
  title = {{Knowledge-enriched, Type-constrained and Grammar-guided Question Generation over Knowledge Bases}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.coling-main.250},
}
Figure