Skip to main content
QUICK REVIEW

[Paper Review] Learning to Answer by Learning to Ask: Getting the Best of GPT-2 and BERT Worlds

Tassilo Klein, Moin Nabi|arXiv (Cornell University)|Nov 6, 2019
Topic ModelingComputer Science21 references52 citations
TL;DR

The paper proposes a collaborative end-to-end framework that combines GPT-2 for question generation and BERT for question answering to improve QA and QG, demonstrating semi-supervised gains on SQuAD.

ABSTRACT

Automatic question generation aims at the generation of questions from a context, with the corresponding answers being sub-spans of the given passage. Whereas, most of the methods mostly rely on heuristic rules to generate questions, more recently also neural network approaches have been proposed. In this work, we propose a variant of the self-attention Transformer network architectures model to generate meaningful and diverse questions. To this end, we propose an easy to use model consisting of the conjunction of the Transformer decoder GPT-2 model with Transformer encoder BERT for the downstream task for question answering. The model is trained in an end-to-end fashion, where the language model is trained to produce a question-answer-aware input representation that facilitates to generate an answer focused question. Our result of neural question generation from text on the SQuAD 1.1 dataset suggests that our method can produce semantically correct and diverse questions. Additionally, we assessed the performance of our proposed method for the downstream task of question answering. The analysis shows that our proposed generation & answering collaboration framework relatively improves both tasks and is particularly powerful in the semi-supervised setup. The results further suggest a robust and comparably lean pipeline facilitating question generation in the small-data regime.

Motivation & Objective

  • Motivate automatic question generation (QG) to support and improve question answering (QA).
  • Leverage the complementary strengths of GPT-2 (generative) and BERT (discriminative QA) to create a joint QG-QA loop.
  • Enable semi-supervised learning for QG by using QA feedback to refine question generation.
  • Propose QA as a surrogate metric for evaluating QG quality beyond lexical similarity metrics.
  • Demonstrate robustness and data-efficiency of the approach on SQuAD 1.1.

Proposed method

  • Fine-tune GPT-2 to generate questions conditioned on a context and an annotated answer using special tokens to delimit answers (Eq. 2 and conditioning described in Section 2.2).
  • Fine-tune BERT for QA to predict answer spans given a context and a question, serving as a QA feedback module (Section 2.3).
  • Create an end-to-end collaborative loop where GPT-2 generates questions and receives feedback via QA; backpropagate only through GPT-2 parameters (not through BERT) to improve generation quality (Section 2.3).
  • Split data into X_a (answerable) and X_-a (unanswerable) sets and progressively shrink X_-a while replaying X_a to stabilize training (Section 2.3).
  • Use QA performance on generated questions as a surrogate measure of QG quality, complementing BLEU/ROUGE metrics (Section 3.2).
  • Pre-train GPT-2 for QG and BERT for QA on SQuAD v1.1, then conduct supervised pre-training followed by semi-supervised evaluation with varying labeling rates (Section 3).

Experimental results

Research questions

  • RQ1Can a GPT-2 based QG model benefit from feedback signals provided by a QA system (BERT) to improve question diversity and relevance?
  • RQ2Does a collaborative QG-QA framework improve QA performance and enable effective semi-supervised learning in low-label scenarios?
  • RQ3Is QA performance on generated questions a viable surrogate metric for evaluating QG quality beyond lexical similarity?
  • RQ4How does the choice of QA module (BERT vs GPT-2-style QA head) affect the effectiveness of the QG feedback loop?

Key findings

  • The proposed GPT-2/BERT collaboration yields higher BLEU/ROUGE scores than baselines for generated questions, while also achieving competitive QA performance on SQuAD 1.1.
  • QA performance trained on generated questions using the BERT feedback loop approaches ground-truth QA benchmarks, and substantially outperforms baselines relying on vanilla GPT-2 generation.
  • In semi-supervised settings, the method outperforms prior semi-supervised QA approaches across labeling rates (10%, 20%, 50%, 90%), with larger margins at higher rates.
  • Using BERT as the QA feedback module provides stronger guidance and diversity in QG than using a GPT-2 QA head, due to context-specific, bidirectional embeddings.
  • QA-based surrogate evaluation demonstrates that the generated questions can improve QA robustness and generalization even when lexical similarity to ground-truth is low.

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.