Overview
Large Language Models (LLMs) are increasingly used to generate synthetic training data, but simple prompts often produce repetitive, biased datasets that limit downstream model performance. This paper introduces AttrPrompt, a method that uses diverse attribute constraints (such as style, length, and location) to force LLMs to generate more varied and higher-quality data. The result is significantly better downstream models achieved at just 5% of the typical querying cost.
The Problem with Simple Prompts
While LLMs like ChatGPT are excellent at generating human-like text, using them as "data factories" for training smaller, task-specific models isn't as straightforward as it seems. Most current approaches rely on SimPrompt—simple, class-conditional instructions like "Generate a news article about sports."
The authors identify three major pitfalls with this approach:
- Low Diversity: LLMs tend to stay in their "comfort zone," producing redundant samples that fail to cover the full distribution of a real-world dataset.
- Systematic Bias: Without specific constraints, LLMs inherit and amplify biases. For example, when asked to generate news, ChatGPT is overwhelmingly biased toward North American contexts, largely ignoring regions like Africa or Oceania.
- High Cardinality Challenges: Simple prompts struggle with complex tasks involving dozens of fine-grained classes (e.g., distinguishing between 50 different technical sub-forums).
Methods: The AttrPrompt Framework
The authors propose AttrPrompt, a framework that shifts the focus from the training stage to the upstream data generation process. The method follows a semi-automated workflow to extract and apply diverse attributes.
- Attribute Generation: Instead of humans brainstorming every detail, they ask the LLM: "Which attribute dimensions are vital in determining the topic of a news article?" The LLM suggests dimensions like subtopic, length, location, and writing style.
- Attribute Value Selection: The LLM then suggests values for these dimensions (e.g., Location: Oceania; Style: News Analysis).
- Class-Dependent Attribute Value Filtering (CAF): To prevent ambiguity, the authors use a filtering process to ensure that class-specific attributes (like "subtopics") don't overlap between similar classes (e.g., ensuring an "Economy" subtopic isn't accidentally a better fit for "International Business").
- Diversely Attributed Prompting: Finally, the system generates data by randomly combining these attributes into a detailed prompt template. This forces the LLM to explore the "long tail" of the data distribution.
Datasets
The study focuses on challenging, high-cardinality datasets (23 to 50 classes) across various domains:
- NYT: News articles (26 classes).
- Amazon: Product reviews (23 classes).
- Reddit: Social media posts (45 classes).
- StackExchange: Technical Q&A (50 classes).
- ArXiv: Scientific abstracts (used for a novel extension into multi-label classification).
- Standard Benchmarks: IMDB, SST-2, Yelp, and AG News were used for broader validation.
Key Insights and Ideas
- Diversity is the Bottleneck: The researchers found that the primary limit on synthetic data quality isn't "label noise" (wrong labels), but rather a lack of diversity. By specifying attributes, they increased lexical diversity and reduced the semantic similarity between generated samples, bringing the synthetic data much closer to real-world distributions.
- The "North America" Bias: A striking finding was that SimPrompt-generated news was 68% focused on North America, while Africa represented only 0.69%. AttrPrompt successfully rebalanced this distribution, making the resulting models more robust and globally representative.
- Smaller Models, Better Results: Interestingly, a relatively small model (like BERT) trained on AttrPrompt data often outperformed zero-shot ChatGPT inference. This suggests that "distilling" LLM knowledge into smaller models via high-quality synthetic data is more effective and cheaper than querying a massive LLM for every single prediction.
- Plug-and-Play Compatibility: AttrPrompt isn't a replacement for existing "noisy-robust" training techniques (like SuperGen or ProGen); it's a "plug-in" that improves them by providing better raw material.
Key Results
- Performance Gain: AttrPrompt consistently outperformed SimPrompt by 6–10 percentage points in F1 score across the four main high-cardinality datasets.
- Efficiency: AttrPrompt achieved the same performance as SimPrompt while using only 5% of the querying budget. Because the quality and diversity of each sample are higher, far fewer samples are needed to train an effective model.
- Robustness: The performance gains held steady across different classifier sizes, from TinyBERT (14M parameters) to DeBERTa-V3-Large (435M parameters).
Limitations and Future Work
The authors acknowledge a few areas for improvement:
- Human-in-the-loop: While the LLM does the heavy lifting, humans are still needed to select the highest-quality attribute dimensions and perform final filtering.
- Task Modality: The current work is limited to text classification. Future research could extend this to image or audio generation.
- Hallucination: Like all LLM-based methods, there is a risk of the model generating "plausible-sounding" but factually incorrect data, which could be problematic in sensitive domains like medical or legal text.
- Automatic Optimization: Future work could involve automatically discovering the optimal distribution of attributes for a given task, further reducing human effort.
Summary updated