Abstract
Question Generation over Knowledge Bases (KBQG) aims to transform structured triples into natural language questions. Traditional approaches often suffer from sparse input information and "semantic drift," where the generated question loses track of the answer's type. This paper introduces KTG, a novel framework that enriches input subgraphs with external metadata, constrains the decoder with word-type predictions, and employs a grammar-based reinforcement learning reward. Experimental results on SimpleQuestion and PathQuestion benchmarks demonstrate that KTG significantly outperforms state-of-the-art models in terms of fluency, diversity, and semantic accuracy.
Introduction: The Challenges of KBQG
Knowledge Base Question Generation is a critical component for developing advanced Question Answering (QA) systems and conversational agents. The task involves taking a set of structured triples—such as <LeBron James, educated_at, St. Vincent-St. Mary High School>—and generating a coherent, natural question.
Despite recent progress, two major hurdles persist:
- Information Sparsity: KB subgraphs are often minimal. Relying solely on raw triples leads to repetitive, "robotic" questions that lack the descriptive richness of human speech.
- Semantic Drift: Models frequently fail to align the interrogative word with the answer's semantic type. For instance, if the answer is "Ohio," a model might incorrectly generate a question starting with "When" instead of "Where" because it lacks a deep understanding of the answer entity's nature.
The KTG Framework
To address these limitations, the authors propose the KTG model, which integrates three innovative components into a unified encoder-decoder architecture.
1. Knowledge Enrichment
To overcome subgraph sparsity, the encoder is augmented with auxiliary metadata retrieved from Wikidata. This includes entity descriptions (e.g., "American basketball player") and domain information. By incorporating these external features, the model can generate more descriptive and contextually relevant questions, moving beyond simple template-like outputs.
2. Typed Decoder
Rather than directly predicting the next token in a sequence, the KTG decoder first estimates a distribution over word types: interrogative, entity word, relation word, or ordinary word. The final word selection is then conditioned on this predicted type. Crucially, the model initializes the decoder with the answer entity's embedding rather than a generic start token. This "answer-awareness" ensures the model selects the correct interrogative (e.g., "Who" for a person, "Where" for a location), effectively mitigating semantic drift.
3. Grammar-guided Reinforcement Learning
Standard training objectives often rely on n-gram overlap metrics like BLEU, which can penalize valid but diversely phrased questions. KTG introduces the Dependency Parse Tree Similarity (DPTS) reward. By comparing the grammatical structure of the generated question against the ground truth using dependency trees, the model is incentivized to maintain syntactic correctness without being forced into rigid, word-for-word replication of the training data.
Experimental Evaluation
The KTG model was evaluated on two prominent benchmarks: SimpleQuestion (single-triple questions) and PathQuestion (multi-hop reasoning paths). Entities were linked to Wikidata to provide the necessary descriptive metadata for the enrichment module.
Key Results
KTG demonstrated superior performance across both automatic and human evaluation metrics, establishing a new state-of-the-art for the KBQG task.
As shown in the results table, KTG achieved a BLEU-4 score of 38.05 on SimpleQuestion, a substantial improvement over the previous best of 31.12 (BiGraph2Seq). Similar trends were observed in METEOR and ROUGE-L scores.
In human evaluations, KTG was rated significantly higher for Naturalness, Diversity, and Correctness. The diversity score, in particular, saw a notable increase from 2.4 to 3.2 on a 5-point scale, highlighting the effectiveness of the knowledge enrichment and grammar-guided RL components.
Insights and Future Directions
Ablation studies confirmed that the "Knowledge" component is the primary driver of naturalness and diversity. Furthermore, the use of a Global Relation Encoder (utilizing Tree-LSTM) allowed the model to capture hierarchical relationships between KB properties, providing a more structured understanding of the input facts.
While KTG represents a significant step forward, it remains dependent on the quality of external knowledge bases like Wikidata. Future work may explore methods to handle incomplete metadata or adapt the framework for generating clarification questions in interactive dialogue systems. By prioritizing semantic alignment and grammatical structure over simple sequence matching, KTG provides a robust blueprint for more human-like machine communication.
Summary updated