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

Rethinking Data Synthesis: A Teacher Model Training Recipe with Interpretation

Yifang Chen, David ZhuarXiv 2024

TL;DR

This paper introduces NOMAD, a novel approach to training models specifically for generating synthetic instruction data. By focusing on "no-prompt-masked training" and optimizing training set size, NOMAD significantly improves synthetic data quality, leading to better downstream model performance, especially when training data is limited.

What Problem Does This Paper Address?

The explosion of large language models (LLMs) has created a huge demand for high-quality instruction-following data. While synthetic data generation using LLMs is a promising solution to the high cost of human annotation, current methods often rely on standard instruction-finetuned models. The authors argue that these models are optimized for answering questions, not generating them, leading to limitations like a lack of novelty and contextual incompleteness in generated data. This paper questions whether a specialized approach to training data generation models is needed and, if so, how to achieve it.

Methods

The core of the proposed method, NOMAD (No Masking Data Synthesizer), lies in two key training strategies for the data generation model ($M_{synthesis}$):

  • No-Prompt-Masked Training: Unlike standard instruction fine-tuning which masks the prompt to focus on response quality, NOMAD exposes the model to complete instruction-response pairs. This allows the model to learn the characteristics of good prompts and ensures generated prompts align with the original data's domain and style. A side benefit is simultaneous generation of both prompts and responses.
  • Optimized Training Set Size: Counterintuitively, the authors found that using a smaller subset of the available training data for $M_{synthesis}$ often yields better synthetic data. This helps strike a balance between "relevance" (similarity to original data) and "novelty" (distinctiveness), preventing overfitting to the original dataset.

For generating synthetic data ($X_{synthesis}$), they use a simple prompt strategy ("User: ") to allow autonomous generation of prompts and responses, followed by filtering.

Datasets

  • Training Data for $M_{synthesis}$: TULU v2 data collection (300k samples) and a 15k randomly sampled subset of TULU v2.
  • Evaluation Benchmarks:
    • Knowledge: TriviaQA
    • Truthfulness: TruthfulQA-generation
    • Reasoning: BBH-NOCOT-FS, BBH-COT-FS, GSM8K
    • Instruction-following: IFEval

Key Insights and Ideas

  • Data Generation is Different: Training a model to generate data is fundamentally different from training a model to follow instructions or answer questions. Standard SFT models are not ideal for this task.
  • The Power of Seeing the Whole Prompt: Exposing the model to complete instruction-response pairs during training ($M_{synthesis}$) is crucial for learning what makes a good prompt, leading to more relevant and diverse synthetic data.
  • Less is More (Sometimes): For synthetic data generation, using a carefully selected subset of the training data for $M_{synthesis}$ can be more effective than using the entire dataset, especially when aiming for novelty.
  • Relevance vs. Novelty Trade-off: Synthetic data quality can be understood through "relevance" (similarity to original data) and "novelty" (distinctiveness). NOMAD's approach aims to balance these, and prompt-masked training can lead to low relevance, while using too much original data can lead to low novelty.

Key Results

  • Small Data Advantage: With a limited training set (15k samples), NOMAD (specifically, the "NoMaskedFiltered" configuration) outperforms baselines by an average of 1.5%, with notable gains of >4% in TriviaQA and >2% in GSM8K.
  • Large Data Drawback: When using a large training set (300k samples) for $M_{synthesis}$, all synthetic data methods, including NOMAD, underperform the baseline trained solely on the original data. This reinforces the idea that large datasets for $M_{synthesis}$ can lead to synthetic data that is too similar to the original, reducing its supplementary value.
  • Prompt Masking Matters: Synthetic data generated using prompt-masked training consistently underperforms compared to no-prompt-masked training, even when filtered.

Limitations and Future Work

  • Scale: The study was conducted with relatively small models (7B teacher, 3B student) and a limited dataset size (<300k). Generalizing to larger models and datasets remains an open question.
  • Domain Specificity: The study focused on general multi-task data and excluded coding data due to methodological limitations. Future work should explore performance across different data domains.
  • Multi-Choice Metrics: The proposed synthetic data generation methodology showed less effectiveness on multi-choice evaluation metrics compared to free-generation metrics.
  • Mixing with Other Data: The paper raises a future question about whether the generated synthetic data can be effectively mixed with other high-quality datasets beyond the original $X_{train}$.

Summary updated

BibTeX
@misc{chen2024rethinking,
  author = {Yifang Chen and David Zhu},
  title = {{Rethinking Data Synthesis: A Teacher Model Training Recipe with Interpretation}},
  year = {2024},
  eprint = {2410.20362},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.20362},
}
Figure