Asking Questions Like Educational Experts: Automatically Generating Question-Answer Pairs on Real-World Examination Data

Fanyi Qu, Xin Jia, Yunfang Wu

Abstract

Automatically generating high-quality question-answer (QA) pairs from educational texts is a significant challenge. Traditional systems often rely on simple span extraction, which fails to capture the reasoning and summarization required in real-world exams. We present a unified framework that utilizes an iterative, multi-agent communication model to refine keyphrases and questions. By treating the task as a joint generation of a Keyphrase-Question-Answer triplet, our system significantly outperforms standard generative baselines on the challenging RACE dataset.

The Challenge of Educational QAG

Most existing Question-Answer Generation (QAG) systems are optimized for datasets like SQuAD, where answers are typically literal "spans" (continuous strings of text) found directly in the passage. However, educational domains require "inference-based" questions where answers often summarize or paraphrase ideas rather than quoting them directly.

Comparison of question types in SQuAD vs. RACE datasets.

As shown in the distribution of question types, the RACE dataset contains a much higher proportion of complex "why" and "how" questions compared to SQuAD. In RACE, only about 14% of answer trigrams appear in the original text, highlighting the need for generative rather than extractive approaches.

Proposed Framework: Iterative Generation

The proposed framework is built on ProphetNet and introduces a three-stage process to generate Keyphrase-Question-Answer triplets. The core innovation lies in the iterative refinement of the question and its corresponding keyphrase, treating them as mutually dependent agents.

Detailed architecture of the proposed iterative QAG framework, illustrating the three stages: rough keyphrase generation, iterative refinement, and final answer generation.
  1. Rough Keyphrase Generation: Instead of simple extraction, the model generates potential keyphrases that capture the "essence" of the passage, providing a semantic anchor for the model to aim for.
  2. Iterative Question-Keyphrase Generation: This "multi-agent" stage involves a Question Generation (QG) agent and a Keyphrase Generation agent. The QG agent uses a keyphrase to write a question; then, the Keyphrase agent uses that new question to refine and optimize the keyphrase. The authors found that two iterations ($m=2$) provide the best balance of quality and efficiency.
  3. Answer Generation: Finally, the optimized question and keyphrase are fed back into the model to guide the generation of the final, natural-language answer.

Key Results

The iterative model showed substantial improvements over the "ProphetNet base" (which generates questions and answers independently):

  • Question Generation: Achieved a 11.55 BLEU-4 score (up from 7.20 for the base model).
  • Answer Generation: Achieved a 6.87 BLEU-4 score (up from 3.78).
  • Human Evaluation: In a blind test, human annotators rated the model's "Answerability" at 2.64/3.0, a significant jump from the base model's 1.68. This suggests the iterative process makes the generated questions much more logical and grounded in the text.

Conclusion

By moving beyond extractive spans and employing an iterative refinement process, this framework bridges the gap between simple fact-retrieval and complex educational assessment. While the model occasionally struggles with "Information Mismatch" in numerically dense passages, it represents a major step forward in generating high-quality educational content automatically.

Summary updated

BibTeX
@inproceedings{qu2021asking,
  author = {Fanyi Qu and Xin Jia and Yunfang Wu},
  title = {{Asking Questions Like Educational Experts: Automatically Generating Question-Answer Pairs on Real-World Examination Data}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.emnlp-main.202},
}
Figure