Skip to main content
QUICK REVIEW

[Paper Review] Question Answering Infused Pre-training of General-Purpose Contextualized Representations

Robin Jia, Michael Lewis|arXiv (Cornell University)|Jun 15, 2021
Topic ModelingComputer Science9 citations
TL;DR

This paper introduces Question Answering Infused Pre-training (QuIP), a novel pre-training objective that enhances general-purpose contextual representations by training bi-encoder models to match predictions of a cross-encoder on 80 million synthesized QA pairs. QuIP improves zero-shot and few-shot performance across multiple NLP tasks, outperforming RoBERTa-large by up to 14 F1 points on few-shot NER and 5 accuracy points on zero-shot sentiment analysis.

ABSTRACT

We propose a pre-training objective based on question answering (QA) for learning general-purpose contextual representations, motivated by the intuition that the representation of a phrase in a passage should encode all questions that the phrase can answer in context. To this end, we train a bi-encoder QA model, which independently encodes passages and questions, to match the predictions of a more accurate cross-encoder model on 80 million synthesized QA pairs. By encoding QA-relevant information, the bi-encoder's token-level representations are useful for non-QA downstream tasks without extensive (or in some cases, any) fine-tuning. We show large improvements over both RoBERTa-large and previous state-of-the-art results on zero-shot and few-shot paraphrase detection on four datasets, few-shot named entity recognition on two datasets, and zero-shot sentiment analysis on three datasets.

Motivation & Objective

  • To improve the utility of general-purpose contextual representations in zero-shot and few-shot learning settings without extensive fine-tuning.
  • To address the limitation of masked language modeling, which optimizes for uncontextualized embeddings rather than contextually rich, immediately useful representations.
  • To explore whether training on question-answer pairs can produce representations that encode semantic content relevant to diverse downstream tasks.
  • To investigate whether knowledge distillation from a more accurate cross-encoder to a bi-encoder can yield robust, transferable representations.
  • To demonstrate that QA-based prompts and representations can serve as a unified interface for few-shot adaptation across multiple NLP tasks.

Proposed method

  • Synthesize 80 million question-answer pairs using a question generation model trained on a large corpus of passages.
  • Train a cross-encoder QA model to serve as a teacher, generating high-accuracy predictions on the synthesized QA pairs.
  • Use knowledge distillation to train a bi-encoder model that independently encodes passages and questions, matching the cross-encoder’s predictions.
  • Optimize the bi-encoder using a contrastive loss that maximizes similarity between passage span representations and question representations they answer.
  • Leverage the bi-encoder’s token-level representations for downstream tasks via prompt-based fine-tuning or feature extraction.
  • Apply question prompts to downstream tasks such as sentiment analysis and NER, enabling zero-shot and few-shot adaptation without task-specific fine-tuning.

Experimental results

Research questions

  • RQ1Can pre-training on question-answer pairs produce contextual representations that are immediately useful in zero-shot and few-shot settings?
  • RQ2Does knowledge distillation from a cross-encoder to a bi-encoder improve the quality of contextual representations for downstream tasks?
  • RQ3Can QA-based prompts effectively initialize or guide downstream models in few-shot learning scenarios?
  • RQ4How does QuIP compare to RoBERTa-large and other SOTA methods in zero-shot and few-shot settings across diverse NLP tasks?
  • RQ5What components are essential for QuIP’s success—real questions, strong teacher model, bi-encoder architecture, or question generation strategy?

Key findings

  • QuIP improves few-shot paraphrase detection by 9 F1 points over prior work across four datasets, using BERTScore-based features.
  • QuIP combined with question embedding initialization achieves 14 F1 points higher than RoBERTa-large on two few-shot NER datasets.
  • For zero-shot sentiment analysis, QuIP with question prompts improves accuracy by 5 points over RoBERTa-large using MLM-style prompts.
  • The method extracts interpretable rationales for sentiment predictions, demonstrating model transparency as a side benefit.
  • Ablation studies confirm that real questions, a strong teacher model, and the bi-encoder architecture are essential for QuIP’s success.
  • Question generation decoding strategies and other design choices do not qualitatively affect performance, indicating robustness and stability of the approach.

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.