Prompting-based Synthetic Data Generation for Few-Shot Question Answering
Maximilian Schmidt, Andrea Bartezzaghi, Ngoc Thang Vu
TL;DR
The paper addresses data scarcity in extractive MRQA by proposing prompting-based synthetic data generation that leverages the linguistic knowledge of large language models. It introduces a two-stage pipeline: sample candidate answers via NER from contexts, then generate questions conditioned on the context and answer using a seq2seq LM modeled as $p(q|c,a_c)$, followed by training a MRQA model on synthetic data plus any available labels. The approach yields competitive or superior performance in few-shot settings across multiple datasets, with notable zero-shot capabilities and, in some cases, parity with full-data baselines, demonstrating strong domain generalization. A human study on NewsQA indicates generated data can match labeled data quality with sufficient samples, supporting broader applicability and suggesting avenues for further refinement and domain expansion.
Abstract
Although language models (LMs) have boosted the performance of Question Answering, they still need plenty of data. Data annotation, in contrast, is a time-consuming process. This especially applies to Question Answering, where possibly large documents have to be parsed and annotated with questions and their corresponding answers. Furthermore, Question Answering models often only work well for the domain they were trained on. Since annotation is costly, we argue that domain-agnostic knowledge from LMs, such as linguistic understanding, is sufficient to create a well-curated dataset. With this motivation, we show that using large language models can improve Question Answering performance on various datasets in the few-shot setting compared to state-of-the-art approaches. For this, we perform data generation leveraging the Prompting framework, suggesting that language models contain valuable task-agnostic knowledge that can be used beyond the common pre-training/fine-tuning scheme. As a result, we consistently outperform previous approaches on few-shot Question Answering.
