Few-Shot Question Answering by Pretraining Span Selection

Ori Ram, Yuval Kirstain, Jonathan Berant, Amir Globerson, Omer Levy
1/2/2021
104 citations
cs.CL

Official code: oriram/splinter (92 stars, Python, MIT, last commit 2021-09-29).

Abstract

In several question answering benchmarks, pretrained models have reached human parity through fine-tuning on an order of 100,000 annotated questions and answers. We explore the more realistic few-shot setting, where only a few hundred training examples are available, and observe that standard models perform poorly, highlighting the discrepancy between current pretraining objectives and question answering.

Show full abstract

We propose a new pretraining scheme tailored for question answering: recurring span selection. Given a passage with multiple sets of recurring spans, we mask in each set all recurring spans but one, and ask the model to select the correct span in the passage for each masked span. Masked spans are replaced with a special token, viewed as a question representation, that is later used during fine-tuning to select the answer span. The resulting model obtains surprisingly good results on multiple benchmarks (e.g., 72.7 F1 on SQuAD with only 128 training examples), while maintaining competitive performance in the high-resource setting.

View on arXivView PDF

Code Implementations(1)

oriram/splinterOfficial100%
MIT
9220Python, ShellJan 4, 20215 years agoMIT

Similar Papers

Cite this paper

@article{ram2021fewshot,
  title  = {Few-Shot Question Answering by Pretraining Span Selection},
  author = {Ori Ram and Yuval Kirstain and Jonathan Berant and Amir Globerson and Omer Levy},
  year   = {2021},
  eprint = {2101.00438},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2101.00438}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2101.00438.svg)](https://codeofpaper.com/paper/2101.00438)

Discussion