Generative Data Augmentation using LLMs improves Distributional Robustness in Question Answering

Arijit Ghosh Chowdhury, Aman Chadha

TL;DR

This paper tackles the problem of question-answering (QA) models failing on naturally shifted data distributions. They propose a method using Large Language Models (LLMs) to generate synthetic QA data, which, when combined with real data, significantly improves model robustness to these unseen shifts.

What Problem Does This Paper Address?

State-of-the-art Natural Language Processing (NLP) models, particularly in Question Answering (QA), often struggle when faced with data that deviates from their training distribution. This phenomenon, known as "distributional shift," is a major hurdle for real-world deployment. While domain adaptation methods exist (which assume knowledge of the target domain), this paper focuses on domain generalization, where the target domain is completely unknown. The authors investigate how generative models, specifically LLMs, can be leveraged to create synthetic data that helps QA models generalize better to these unpredictable, "in-the-wild" distribution shifts.

Methods

The core of the paper's methodology is a two-step generative data augmentation process:

  1. Context Generation: They start with a question from the SQuAD dataset and prompt a GPT-3.5 model to generate a relevant context paragraph. This ensures the generated context is topically consistent with the question and aims to mimic the informative trivia style of SQuAD. The generated contexts are clipped to an average length of 250 words.
  2. Question-Answer Generation: The generated context is then fed into a T5-based question generation model (trained on SQuAD) to produce new question-answer pairs. These pairs are filtered for round-trip consistency to maintain quality.

This generated dataset is then used to augment existing real datasets for training QA models. The authors experiment with different ratios of real to generated data.

Datasets

  • Training Data: The primary training dataset used is the Stanford Question Answering Dataset (SQuAD) V1.1.
  • Evaluation Datasets (Natural Distribution Shift Benchmarks):
    • New Wikipedia: Newer QA pairs from Wikipedia articles.
  • New York Times (NYT): QA pairs annotated from New York Times articles.
  • Reddit: QA pairs created from Reddit posts (title + body).
  • Amazon Product Reviews: QA pairs from user-generated reviews in the "Home and Kitchen" category.

These datasets are designed to represent various natural distribution shifts in terms of text genre, style, topics, and vocabulary.

Key Insights and Ideas

  • LLMs as Robustness Boosters: The most significant insight is that LLM-generated data, when strategically combined with real data, can dramatically improve a QA model's ability to handle unseen distribution shifts. This goes beyond simple data augmentation; it's about exposing the model to diverse linguistic and stylistic variations.
  • The Importance of Context Generation: Generating both contexts and questions is crucial. Simply generating questions for existing contexts leads to overfitting on the original distribution and reduces robustness. Generating new contexts provides the necessary diversity.
  • The "Sweet Spot" for Augmentation: There's an optimal balance for combining real and generated data. While solely training on generated data can improve robustness, it often sacrifices absolute performance. A 50-50 split between real and generated data appears to offer the best of both worlds: diversity from generated data and grounding from real data.
  • "In-the-wild" Generation Matters: The paper emphasizes the value of generating data that mimics real-world text variations, rather than relying on traditional, more controlled synthetic data generation methods.

Key Results

  • Models trained solely on SQuAD show significant performance drops on the Natural Distribution Shift (NDS) datasets.
  • Models trained exclusively on generated data exhibit substandard performance on both SQuAD and NDS datasets, but show low performance gaps between the real validation set and its NDS counterparts, indicating improved robustness.
  • A model trained on a combination of real and generated data (specifically a 50-50 split) either matches or exceeds the performance of models trained on only real data, while demonstrating significantly better robustness on NDS datasets. For instance, in Table 1, the "Real + Generated data" row shows F1 scores of 92.7 on SQuAD and 80.4 on New Wiki, compared to 90.4 and 79.2 for "Real data" alone.
  • Table 2 shows that increasing the amount of generated data (up to 200%) further improves performance on shifted datasets, but the gains diminish, suggesting a point of diminishing returns.

Limitations and Future Work

  • Absolute Performance Trade-off: The paper acknowledges that while generated data improves robustness, exclusive training on it can lead to a drop in absolute performance on the original in-domain dataset. The proposed solution is a blend of real and generated data.
  • API Usage: The authors chose not to prompt GPT-3.5 to generate QA pairs directly because their prompts didn't always align with the extractive nature of SQuAD, and they wanted to limit API usage.
  • Future Work: The authors suggest exploring more extensive comparisons with other question generation methods and investigating how this generative augmentation paradigm can be applied to fine-tuning larger models. They also plan to explore a wider range of generative models.

Summary updated

BibTeX
@inproceedings{chowdhury2024generative,
  author = {Arijit Ghosh Chowdhury and Aman Chadha},
  title = {{Generative Data Augmentation using LLMs improves Distributional Robustness in Question Answering}},
  booktitle = {Student Research Workshop @ EACL},
  year = {2024},
  url = {https://openreview.net/forum?id=RtysyXpr24},
}
Figure