Skip to main content
QUICK REVIEW

[Paper Review] OneStop QAMaker: Extract Question-Answer Pairs from Text in a One-Stop Approach

Shaobo Cui, Xintong Bao|arXiv (Cornell University)|Feb 24, 2021
Topic ModelingComputer Science39 references11 citations
TL;DR

This paper proposes OneStop QAMaker, a one-stop neural sequence-to-sequence model that jointly generates questions and extracts answer spans from documents in a single unified framework, overcoming the incompatibility issues of pipeline methods. The model achieves state-of-the-art performance on SQuAD, NewsQA, and DuReader with a human evaluation score of 1.67 and significantly improved efficiency, reducing model complexity and deployment overhead compared to multi-model pipelines.

ABSTRACT

Large-scale question-answer (QA) pairs are critical for advancing research areas like machine reading comprehension and question answering. To construct QA pairs from documents requires determining how to ask a question and what is the corresponding answer. Existing methods for QA pair generation usually follow a pipeline approach. Namely, they first choose the most likely candidate answer span and then generate the answer-specific question. This pipeline approach, however, is undesired in mining the most appropriate QA pairs from documents since it ignores the connection between question generation and answer extraction, which may lead to incompatible QA pair generation, i.e., the selected answer span is inappropriate for question generation. However, for human annotators, we take the whole QA pair into account and consider the compatibility between question and answer. Inspired by such motivation, instead of the conventional pipeline approach, we propose a model named OneStop generate QA pairs from documents in a one-stop approach. Specifically, questions and their corresponding answer span is extracted simultaneously and the process of question generation and answer extraction mutually affect each other. Additionally, OneStop is much more efficient to be trained and deployed in industrial scenarios since it involves only one model to solve the complex QA generation task. We conduct comprehensive experiments on three large-scale machine reading comprehension datasets: SQuAD, NewsQA, and DuReader. The experimental results demonstrate that our OneStop model outperforms the baselines significantly regarding the quality of generated questions, quality of generated question-answer pairs, and model efficiency.

Motivation & Objective

  • To address the incompatibility between question generation and answer extraction in pipeline-based QA pair generation methods.
  • To improve the quality and coherence of generated question-answer pairs by modeling question and answer jointly instead of sequentially.
  • To enhance training and deployment efficiency by replacing multi-model pipelines with a single, unified model.
  • To reduce human intervention in online deployment by minimizing error propagation and ambiguous answer selection.
  • To explore the effectiveness of end-to-end joint learning for QA pair generation in industrial NLP applications.

Proposed method

  • Proposes a one-stop, end-to-end sequence-to-sequence transformer model that jointly performs question generation and answer span extraction from a document.
  • Uses a shared encoder to encode the input document and a decoder to generate both the question and the answer span simultaneously.
  • Employs multi-task learning where the decoder is conditioned on both the document and the predicted answer span to improve alignment.
  • Introduces a soft answer extraction mechanism that allows differentiable selection of answer spans during training.
  • Utilizes a copy mechanism to improve answer span accuracy by copying exact phrases from the document.
  • Trains the model using a joint objective function that maximizes the likelihood of the correct question-answer pair given the document.

Experimental results

Research questions

  • RQ1Can a unified model jointly generate high-quality questions and extract compatible answer spans more effectively than pipeline methods?
  • RQ2Does joint learning between question generation and answer extraction improve the compatibility and coherence of generated QA pairs?
  • RQ3How does the one-stop approach compare to pipeline baselines in terms of question quality, answer accuracy, and model efficiency?
  • RQ4To what extent does incorporating BERT-based answer extraction enhance the performance of the OneStop model?
  • RQ5Can the proposed model reduce human effort and error accumulation in industrial deployment compared to multi-stage pipelines?

Key findings

  • OneStop outperforms all pipeline baselines on question generation quality, achieving a human rater score of 1.41 on the SQuAD dataset.
  • The enhanced version, OneStop + BERT-MRC, achieves a human evaluation score of 1.67, demonstrating the effectiveness of integrating stronger answer extraction components.
  • OneStop reduces model parameters to 142 million on SQuAD and 121 million on DuReader, making it one of the lightest models for QA pair generation.
  • The model shows significant efficiency gains: it uses only one model instead of multiple cascaded models, reducing training and deployment complexity.
  • Case studies confirm that OneStop's answer spans are mostly consistent with BERT-MRC, though it sometimes includes broader context, improving contextual coherence.
  • The improvement from BART-QG + BERT-MRC (1.61) to OneStop + BERT-MRC (1.67) confirms that the answer extraction module in OneStop enhances question generation quality.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.