NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Making Large Language Models Better Data Creators

Dong-Ho Lee, Jay Pujara, Mohit Sewak, Ryen White, Sujay Kumar Jauhar

Introduction

Large Language Models (LLMs) like GPT-4 have demonstrated remarkable capabilities across a wide range of tasks. However, deploying these massive models for every specific downstream application is often impractical due to high latency, significant costs, and privacy concerns. Consequently, engineers frequently turn to smaller, specialized models. The bottleneck for these smaller models is the requirement for large volumes of high-quality training data, which is traditionally expensive and slow to acquire through human labeling.

Researchers have recently introduced a unified pipeline that enables LLMs to function as highly efficient data creators. By using just a single formatting example, this approach can generate diverse, high-quality training datasets for under $5 per task. Remarkably, the resulting models are often more robust than those trained on human-curated data, showing performance improvements of up to 17.5% in out-of-distribution scenarios.

The Challenge of Data Curation

Previous attempts to leverage LLMs for data creation generally fell into two categories:

  1. LLMs as Labelers: This involves using an LLM to provide labels for an existing pool of unlabeled, domain-specific text. While effective, it assumes the availability of a large, relevant raw dataset.
  2. LLMs as Generators: This involves prompting an LLM to create both the input and the label from scratch. This often requires complex, task-specific prompt engineering and can fail when labels lack independent semantic meaning (e.g., "Option A" in a multiple-choice question).

The goal of this research is to provide a unified framework that overcomes these limitations, allowing for the generation of diverse data for any task—including complex domains like medical Q&A—using only a single seed example.

Methodology: Single-Formatting Example Pipeline

The core innovation is a "single-formatting example" pipeline. Instead of crafting elaborate prompts for every new task, the user provides a single instance of the desired input/output in a structured format, such as JSON.

Evolution of LLM data creation strategies from simple labeling to single-formatting generation.

Technical Components

  • Instruction-Following: The system pairs the seed example with standardized instructions to generate new, diverse instances following the same format.
  • Prompt Structuring: For tasks with fixed labels (like yes/no), the researchers found that placing the "Answer" before the "Question" in the prompt helps prevent the model from hallucinating invalid options.
  • Iterative Generation: To maintain diversity and prevent repetition, the pipeline uses a self-reference strategy where newly generated examples serve as seeds for subsequent rounds.
  • Sampling Strategies: Four strategies were evaluated for selecting the next seed: Random, Contrastive (maximizing semantic difference), Similar, and Tree (a breadth-first approach to prevent domain drift).

Evaluation and Key Results

The framework was tested across a variety of challenging tasks, including multiple-choice commonsense QA (PIQA, RiddleSense), open-book biomedical QA (PubMedQA, BioASQ), and closed-book entity knowledge tasks (StrategyQA).

Performance comparison between models trained on human-labeled data ($D_L$) and LLM-generated data ($D_G$) across various tasks.

The results highlight several key advantages of LLM-generated data:

  • Superior Robustness: Models trained on synthetic data consistently outperformed those trained on human data in Out-of-Distribution (OOD) tests. For instance, on the BioASQ dataset, the synthetic-data model achieved a 17.5% accuracy gain over the human-data baseline.
  • Cost Efficiency: Generating thousands of training examples cost less than $5 USD using the GPT-3.5 API, representing a massive reduction in cost compared to human annotation, especially in specialized domains.
  • Diversity as Regularization: While human datasets are often "cleaner," LLM-generated data tends to cover a broader semantic space. This increased diversity acts as a form of regularization, helping the trained models generalize better to new contexts.

Conclusion and Future Directions

This research demonstrates that LLMs can be transformed into powerful, cost-effective data creators with minimal human intervention. By utilizing a single-formatting example and iterative sampling, the proposed pipeline produces training data that rivals or exceeds the utility of human-labeled datasets for specialized models.

Future work may focus on reducing model dependency, as smaller open-source models currently struggle with strict JSON formatting. Additionally, incorporating a "human-in-the-loop" verification step could further refine data quality while maintaining the speed and cost benefits of the automated pipeline.

Summary updated

BibTeX
@inproceedings{lee2023making,
  author = {Dong-Ho Lee and Jay Pujara and Mohit Sewak and Ryen White and Sujay Kumar Jauhar},
  title = {{Making Large Language Models Better Data Creators}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.emnlp-main.948},
}
Figure