Skip to main content
QUICK REVIEW

[Paper Review] Template-Based Question Generation from Retrieved Sentences for Improved Unsupervised Question Answering

Alexander R. Fabbri, Patrick Ng|arXiv (Cornell University)|Apr 24, 2020
Topic ModelingComputer Science11 references7 citations
TL;DR

This paper proposes a retrieval- and template-based method for unsupervised question generation that improves extractive question answering by creating synthetic training data from retrieved, semantically related sentences rather than the original context. By applying templates to retrieved sentences containing the answer and matching entities, the approach achieves state-of-the-art F1 scores of 64.04 on SQuAD and 77.55 on named entity questions, outperforming prior unsupervised models by 14% relative improvement.

ABSTRACT

Question Answering (QA) is in increasing demand as the amount of information available online and the desire for quick access to this content grows. A common approach to QA has been to fine-tune a pretrained language model on a task-specific labeled dataset. This paradigm, however, relies on scarce, and costly to obtain, large-scale human-labeled data. We propose an unsupervised approach to training QA models with generated pseudo-training data. We show that generating questions for QA training by applying a simple template on a related, retrieved sentence rather than the original context sentence improves downstream QA performance by allowing the model to learn more complex context-question relationships. Training a QA model on this data gives a relative improvement over a previous unsupervised model in F1 score on the SQuAD dataset by about 14%, and 20% when the answer is a named entity, achieving state-of-the-art performance on SQuAD for unsupervised QA.

Motivation & Objective

  • To address the high cost and scarcity of labeled data in supervised question answering by enabling unsupervised training with synthetic data.
  • To improve the quality of synthetic questions for training QA models beyond simple cloze-style templates.
  • To investigate whether retrieving semantically related sentences and applying templates improves downstream QA performance.
  • To evaluate the impact of entity matching, template structure, and data size on model performance.
  • To release synthetic training data and code to support reproducibility and further research in unsupervised QA.

Proposed method

  • Retrieve a sentence from a Wikipedia corpus that contains the answer entity and shares at least one additional named entity with the context paragraph.
  • Use a pre-trained NER system (spaCy) to extract named entities from both the query context and retrieved sentences.
  • Apply a template-based question generation module to convert the retrieved sentence into a question by inserting the answer and using a wh-word based on entity type.
  • Construct templates with varying word order (e.g., Wh + B + A + ?) and wh-word types (e.g., what, who) to explore structural impact on performance.
  • Filter retrieved sentences to exclude highly similar or plagiarized ones using F1 similarity threshold (≤95%) and require at least one additional shared entity.
  • Fine-tune a BERT-large model on the synthetic question-answer pairs and evaluate on SQuAD v1.1 dev and test sets.

Experimental results

Research questions

  • RQ1Does generating questions from retrieved, related sentences instead of the original context improve downstream QA performance?
  • RQ2How does the choice of wh-word and template structure affect the quality of generated questions and model performance?
  • RQ3What is the impact of requiring additional entity matching between the retrieved sentence and the context on model generalization?
  • RQ4How much synthetic data is needed to achieve strong performance, and does performance saturate or degrade with more data?
  • RQ5Can unsupervised question generation with this method match or exceed supervised baselines in low-data regimes?

Key findings

  • The proposed template-based method achieves a SQuAD test F1 score of 64.04, representing a 14% relative improvement over the prior unsupervised model.
  • On named entity questions (SQuAD-NER), the method achieves an F1 score of 77.55, a 20% relative improvement over the prior unsupervised model.
  • Using a wh-word that matches the entity type (e.g., who for person) improves performance significantly compared to using only 'what'.
  • Requiring at least one additional shared named entity between the retrieved sentence and the context improves F1 by over 5 points compared to no matching.
  • Performance plateaus after 50,000 synthetic examples, and using 10,000 examples from the proposed method already outperforms the prior unsupervised model trained on 4 million examples.
  • The unsupervised model’s performance on 50k synthetic examples matches that of a fully supervised model fine-tuned on only 3,000 labeled examples.

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.