Better Synthetic Data by Retrieving and Transforming Existing Datasets

Saumya Gandhi, Ritu Gala, Vijay Viswanathan, Tongshuang Wu, Graham Neubig
4/22/2024
cs.CL

Official code: neulab/prompt2model (2,018 stars, Apache-2.0, last commit 2024-12-29).

Abstract

Despite recent advances in large language models, building dependable and deployable NLP models typically requires abundant, high-quality training data. However, task-specific data is not available for many use cases, and manually curating task-specific data is labor-intensive. Recent work has studied prompt-driven synthetic data generation using large language models, but these generated datasets tend to lack complexity and diversity. To address these limitations, we introduce a method, DataTune, to make better use of existing, publicly available datasets to improve automatic dataset generation. DataTune performs dataset transformation, enabling the repurposing of publicly available datasets into a format that is directly aligned with the specific requirements of target tasks. On a diverse set of language-based tasks from the BIG-Bench benchmark, we find that finetuning language models via DataTune improves over a few-shot prompting baseline by 49% and improves over existing methods that use synthetic or retrieved training data by 34%. We find that dataset transformation significantly increases the diversity and difficulty of generated data on many tasks. We integrate DataTune into an open-source repository to make this method accessible to the community: https://github.com/neulab/prompt2model.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

prompt2model - Generate Deployable Models from Natural Language Instructions

2,018182Python, Jupyter NotebookMar 27, 20231 years agoApache-2.0

Cite this paper

@article{gandhi2024better,
  title  = {Better Synthetic Data by Retrieving and Transforming Existing Datasets},
  author = {Saumya Gandhi and Ritu Gala and Vijay Viswanathan and Tongshuang Wu and Graham Neubig},
  year   = {2024},
  eprint = {2404.14361},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.14361v3}
}

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/2404.14361.svg)](https://codeofpaper.com/paper/2404.14361)

Discussion