Meta-CQG: A Meta-Learning Framework for Complex Question Generation over Knowledge Bases

Kun Zhang, Yunqi Qiu, Yuanzhuo Wang, Long Bai, Wei Li, Xuhui Jiang, Huawei Shen, Xueqi ChengCOLING 2022

Abstract

Complex Question Generation (CQG) from Knowledge Bases (KB) is a critical task for developing advanced question-answering systems. However, existing models struggle with the "long-tail" problem, where rare and complex query structures are underrepresented in training data. We propose Meta-CQG, a framework that leverages meta-learning to adapt to these infrequent structures. By combining a self-supervised graph retriever with Model-Agnostic Meta-Learning (MAML), Meta-CQG learns universal meta-knowledge that enables high-quality question generation even for rare queries. Our experiments on WebQSP and CWQ benchmarks demonstrate state-of-the-art performance, with significant improvements in minority query categories.

Introduction

Generating natural language questions from structured KB queries is essential for training chatbots and QA systems. While simple questions like "What is the capital of France?" are abundant, "complex" questions involving multiple relations, comparisons, or sorting are rare. This creates a "long-tail" distribution in datasets like WebQuestionsSP and ComplexWebQuestion, where a few simple patterns dominate the training signal.

Data distribution showing the long-tail problem across question types, relations, and query structures.

Standard encoder-decoder models often over-optimize for these common patterns, failing to generalize to the unique semantic structures of complex queries. Meta-CQG addresses this by mimicking human-like cognition: recognizing patterns from similar previous experiences to guide the generation of new, complex questions. By retrieving analogous queries, the model can adapt its generation strategy to the specific structure of the input rather than relying on global dataset statistics.

Methodology

Meta-CQG consists of two primary components: Query-agnostic Meta-Learning (QaML) and a Self-Supervised Graph Retriever.

Query-agnostic Meta-Learning (QaML)

Based on the MAML algorithm, QaML treats the generation of each question as a unique task. Instead of global parameter fitting, the model learns initial "meta-knowledge" that can be rapidly fine-tuned using a small "support set" of similar examples before generating the final question. This allows the model to remain flexible and prioritize the specific structure of the input query.

Self-Supervised Graph Retriever

To identify the support set, we use a retriever that encodes query graphs using Densely Connected Graph Convolutional Networks (DCGCN). Since explicit similarity labels are unavailable, we employ Similarity-based Contrastive Learning (SCL), using BERT-encoded question semantics to supervise the graph encoder. This ensures the retriever captures structural features that are linguistically relevant, recognizing that structurally different queries might require similar linguistic templates.

Example of a complex KB query in SPARQL and its corresponding graph representation.

The generator uses a graph-to-sequence architecture with a Levi graph transformation, treating both entities and relations as nodes to ensure no structural information is lost during encoding.

Experimental Results

We evaluated Meta-CQG on two benchmarks: WebQuestionsSP (WebQSP), which is heavily skewed toward simple questions, and ComplexWebQuestion (CWQ), which contains more multi-hop reasoning tasks.

  • Overall Performance: Meta-CQG achieved state-of-the-art results, improving BLEU-4 scores by 3.51 points on CWQ and 5.01 points on WebQSP over strong baselines like BiGraph2seq.
  • Dominating the Long Tail: The most impressive gains were in minority categories. For "Ring-style" query structures, which comprise less than 5% of the data, Meta-CQG improved BLEU-4 from 9.48 to 23.23—a massive leap compared to standard models.
  • Ablation Study: Removing the graph retriever significantly degraded performance, confirming that relevant meta-knowledge is crucial for successful adaptation.

Conclusion and Future Work

Meta-CQG effectively mitigates the majority bias in CQG by forcing the model to remain flexible and adaptive to specific input structures. While meta-learning introduces computational overhead during training and depends on the quality of the retriever, it represents a significant step toward robust complex question generation. Future work will explore more diverse linguistic constraints and sophisticated meta-knowledge definitions beyond structural graph similarity.

Summary updated

BibTeX
@inproceedings{zhang2022meta,
  author = {Kun Zhang and Yunqi Qiu and Yuanzhuo Wang and Long Bai and Wei Li and Xuhui Jiang and Huawei Shen and Xueqi Cheng},
  title = {{Meta-CQG: A Meta-Learning Framework for Complex Question Generation over Knowledge Bases}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2022},
  url = {https://openreview.net/forum?id=GBqflYOKzm},
}
Figure