Simple or Complex? Complexity-controllable Question Generation with Soft Templates and Deep Mixture of Experts Model

Sheng Bi, Xiya Cheng, Yuan-Fang Li, Lizhen Qu, Shirong Shen, Guilin Qi, Lu Pan, Yinlin Jiang

Abstract

Question Generation (QG) systems typically produce simple, single-hop questions, which limits their effectiveness in applications like education where tailored difficulty is required. We introduce Complexity-Controllable Question Generation (CCQG), a novel framework that leverages a Deep Mixture of Experts (MoE) and latent "soft templates" to model the multimodal distribution of question structures. To overcome the scarcity of complexity-labeled data, we develop a cross-domain complexity estimator based on linguistic features. Our approach demonstrates superior performance on SQuAD and HotpotQA benchmarks, achieving high complexity consistency and naturalness.

Introduction

While neural Question Generation has seen significant progress, most models struggle to generate complex, multi-hop questions. This is primarily due to two factors: the high diversity in syntactic patterns between simple and complex questions, and the lack of complexity annotations in standard datasets like SQuAD. Existing methods often rely on single embeddings for complexity, which fail to capture distinct structural nuances.

Methodology

The CCQG framework addresses these challenges through three core components:

1. Soft Templates and Deep Mixture of Experts

Instead of rigid text templates, CCQG employs "soft templates"—sequences of latent embeddings that act as structural guides. To manage the diverse styles of questions, a Deep Mixture of Experts (MoE) architecture is used. A gating network analyzes the input passage, answer, and target complexity to select the most appropriate expert, which then provides the corresponding soft template for decoding.

The CCQG model architecture, illustrating the integration of soft templates, gating mechanisms, and the MoE framework.

2. Cross-Domain Complexity Estimator

To enable training on unlabelled datasets, we designed a rule-based estimator using five domain-independent features: clause count, dependency relations, topic coherence, entity frequency, and answer distance. This estimator allows the model to learn from datasets like SQuAD by providing pseudo-labels for complexity.

3. Training with Hard-EM

The model is optimized using a Hard-EM approach, iteratively selecting the best-performing expert for a given sample and refining its parameters to specialize in specific question distributions.

Experimental Results

We evaluated CCQG on SQuAD and HotpotQA. The model was compared against state-of-the-art baselines including NQG++, DLPH, DeepQG, and MoE.

Automatic evaluation results on SQuAD and HotpotQA datasets, showing BLEU-4 (B-4), ROUGE-L (R-L), and F1 scores for CCQG and various baselines.

As shown in the results, CCQG consistently outperforms baselines across all metrics. Ablation studies (w/o $z$ and w/o $\pi$) confirm that both the latent complexity variable and the soft templates are critical for performance. Notably, the complexity estimator achieved an F1-score of 0.958 on HotpotQA, validating its effectiveness in identifying question difficulty.

Conclusion

CCQG provides a robust framework for generating questions with controllable complexity. By combining latent structural guidance with a specialized MoE architecture and a linguistic-based complexity estimator, the model produces more natural and structurally diverse questions than previous methods. Future work will focus on improving anaphora resolution and incorporating numerical reasoning into the complexity estimation process.

Summary updated

BibTeX
@inproceedings{bi2021simple,
  author = {Sheng Bi and Xiya Cheng and Yuan-Fang Li and Lizhen Qu and Shirong Shen and Guilin Qi and Lu Pan and Yinlin Jiang},
  title = {{Simple or Complex? Complexity-controllable Question Generation with Soft Templates and Deep Mixture of Experts Model}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.findings-emnlp.397},
}
Figure