TL;DR
As Large Language Models (LLMs) increasingly rely on synthetic data for training, this paper investigates how the diversity of that synthetic data impacts model behavior. The key takeaway is that using synthetic data from multiple sources can mitigate common issues like "model collapse" and reduce self-preference bias, while single-source synthetic data can lead to unexpected safety vulnerabilities.
What Problem Does This Paper Address?
The rapid scaling of LLMs has created a growing demand for training data. Synthetic data, generated by other LLMs, is becoming a popular alternative to human-generated data, especially for fine-tuning. However, there's a concern that training on synthetic data, particularly from a single source, can lead to undesirable outcomes like "model collapse" – a degradation of the model's output distribution and a loss of linguistic diversity. This paper aims to understand if diversifying the sources of synthetic data used for fine-tuning can alleviate these issues and explore its impact on model safety and self-preference bias.
Methods
The researchers fine-tuned Llama-3.1 models (small and medium sizes) using various datasets:
- Human-Source Dataset: The original, human-written Databricks-Dolly-15K dataset.
- Single-Source Datasets: Synthetic data generated by a single LLM of a specific size (small, medium, or large).
- Multi-Source Datasets: Synthetic data generated by a mix of LLMs from different size brackets.
They then evaluated the fine-tuned models across three key dimensions:
- Distribution Collapse: Measured using perplexity and lexical/semantic diversity metrics.
- Adversarial Robustness: Assessed by testing model refusal rates on harmful prompts (RefusalBench and RefusalBench+Jailbreak datasets).
- Self-Preference Bias: Evaluated using LLM-as-a-judge setups to assess how models rank their own outputs against others.
Datasets
- Training/Fine-tuning Data:
- Databricks-Dolly-15K: A dataset of human-written responses used as the base for augmentation.
- Synthetic Datasets: Generated by augmenting Dolly-15K with responses from various LLMs (Llama-3.1, Qwen, Gemma, Falcon, Mistral, Command R+, Gemini, GPT-40) across different size categories (small, medium, large). These were created in both "single-source" and "multi-source" configurations.
- Evaluation Datasets:
- RefusalBench: Used for evaluating adversarial robustness (harmfulness).
- RefusalBench + Jailbreak Prompts: A more challenging version of RefusalBench to test robustness against sophisticated attacks.
- CNN/DailyMail: Used for generating summaries for self-preference bias evaluation.
Key Insights and Ideas
- Diversity is Key for Mitigating Collapse: Fine-tuning with synthetic data from multiple sources (multi-source) is significantly better at preventing "model collapse" than using data from a single source. This means preserving output distribution breadth and linguistic diversity.
- Synthetic Data's Double-Edged Sword: While both human and synthetic fine-tuning can weaken safety guardrails, synthetic data tends to preserve higher output quality. This makes synthetic data-tuned models potentially more useful but also more dangerous if they fail to refuse harmful instructions.
- Human Data Still Reigns for Bias Reduction: Fine-tuning with human data is the most effective way to reduce self-preference bias in LLM judges, followed by multi-source synthetic data. Single-source synthetic data is the least effective.
- Source Model Size Matters: The size of the LLM used to generate synthetic data influences outcomes. For smaller models, low source diversity increases harm risk. For larger models, multi-source data can sometimes increase susceptibility to harmful prompts, suggesting a complex interaction between source diversity and model size.
Key Results
- Distribution Collapse: Multi-source synthetic data significantly increased perplexity on human test data compared to single-source data, indicating better modeling of human text. Lexical diversity was also better preserved with multi-source data.
- Adversarial Robustness:
- Fine-tuning on human data led to a significant increase in harmfulness.
- For Llama-small, single-source data from small models increased harm risk.
- For Llama-70B, multi-source data from larger models could increase susceptibility to harmful prompts.
- Critically harmful responses (score > 4) were much more common for fine-tuned models, especially when using single-source data or human data.
- Self-Preference Bias:
- Out-of-the-box Llama models showed high self-preference bias.
- Fine-tuning reduced this bias, with human data being the most effective, followed by multi-source synthetic data.
- Pro-synthetic bias (preference for synthetic over human) universally decreased after fine-tuning, especially with human data.
Limitations and Future Work
- Target Model Size: The study focused on small and medium Llama models, excluding very large LLMs due to compute constraints. Future work could explore if these patterns hold for larger models.
- Model Family: The research was limited to the Llama family. Generalizing findings to other model families (e.g., Qwen, Mistral) is an open question.
- Fine-tuning Method: Experiments exclusively used LoRA (Low-Rank Adaptation), which might dampen adaptation compared to full-parameter fine-tuning. Alternative fine-tuning regimes were not explored.
- Interaction of Factors: The study acknowledges that it's difficult to fully isolate "diversity" from other factors like alignment behavior or response style when using multi-source data.
- LLM-as-a-Judge Reliance: The safety and quality evaluations relied on LLM judges, which can be sensitive to prompt formulation and judge biases. Human validation would strengthen confidence.
- Single-Turn Interactions: The work focused on single-turn interactions; its extension to multi-turn conversations is not covered.
- Language: All results are based on English data, and their applicability to other languages remains to be investigated.
Summary updated