DEV Community

Cover image for Synthetic data is a multiplier on real data, not a replacement (Wednesday AI Opinion)
M.T.Ramkrushna
M.T.Ramkrushna

Posted on

Synthetic data is a multiplier on real data, not a replacement (Wednesday AI Opinion)

Every few weeks I see a team decide their data problem is solved: "we'll just have the big model generate it." Fine-tuning set, eval set, test cases for the RAG bot, all synthetic, all generated in an afternoon.

My take: synthetic data is a multiplier on real data, not a replacement for it. Used on top of a real-data anchor, it is one of the best tools we have. Used instead of real data, it quietly removes exactly the cases you most needed to see.

Here is the evidence I'm basing that on, and the rules I'd follow.

The case for synthetic data is real

I'm not anti-synthetic. Two well-known results show how far it can go:

  • Self-Instruct (Wang et al., 2022) generated instructions, inputs and outputs from vanilla GPT-3, filtered out invalid or too-similar ones, and fine-tuned GPT-3 on the result. The paper reports a 33% absolute improvement on Super-NaturalInstructions, on par with InstructGPT-001, and only a 5% absolute gap behind InstructGPT-001 in human evaluation on expert-written novel tasks.
  • phi-1 (Gunasekar et al., 2023, "Textbooks Are All You Need") is a 1.3B code model trained on ~6B tokens of "textbook quality" web data plus ~1B tokens of synthetic textbooks and exercises generated with GPT-3.5. It reached 50.6% pass@1 on HumanEval and 55.5% on MBPP.

Notice what both have in common: synthetic data with a filter, and in phi-1's case mixed with a larger amount of curated real data. Neither is "generate and ship."

The case against replacing real data

Model collapse (Shumailov et al., Nature, 2024) is the result people cite, and the key word in it is indiscriminate. The authors find that "indiscriminate use of model-generated content in training causes irreversible defects in the resulting models, in which tails of the original content distribution disappear." They show this in LLMs, VAEs and Gaussian mixture models, and conclude that data about genuine human interactions becomes more valuable as model-generated text spreads.

Then the important nuance. Gerstgrasser et al., 2024 ("Is Model Collapse Inevitable?") re-ran the question with a more realistic setup:

  • If each generation's synthetic data replaces the real data, models do tend toward collapse.
  • If synthetic data accumulates alongside the original real data, collapse is avoided, across model sizes, architectures and hyperparameters. In their analytical linear-model setting, test error stays under a finite bound no matter how many iterations you run.

Put those two papers together and you get my whole argument in one line: replace and you lose the tails; accumulate on a real anchor and you're fine.

Why "the tails disappear" is the part that hurts in production

The tails are your edge cases: the oddly-phrased support ticket, the user mixing two languages, the PDF with a broken table, the request your product was never designed for. Those are exactly where AI features fail, and exactly what a model is least likely to generate when you ask it for "100 realistic user questions."

This is my opinion, not a result from the papers above, but I think it is the practical consequence:

  • An all-synthetic eval set grades your system on the distribution the generator finds typical. It can look green while real users hit failures it never sampled.
  • An all-synthetic fine-tuning set teaches the model the generator's style and blind spots, and removes the rare cases from what it learns.

Rules I'd follow

  1. Start from a real anchor. Pull real inputs (logs, tickets, user queries, with consent and PII handled) before generating anything. Even 50-100 real examples changes what you can trust.
  2. Accumulate, don't replace. Add synthetic data on top of the real set. Never swap the real set out for a "cleaner" synthetic one. This is the direct engineering version of the Gerstgrasser result.
  3. Filter like Self-Instruct did. Drop invalid outputs, near-duplicates and examples that fail your own checks. Unfiltered generation is the "indiscriminate" case.
  4. Generate toward the tails on purpose. Seed generation with your real failures and rare cases ("write 10 variants of this ticket"), instead of asking for "typical" examples.
  5. Label provenance. Tag every row real or synthetic and which model generated it, so you can measure them separately.
  6. Keep the final judge real. Hold out a human-sourced test set and report your numbers on it. If synthetic and real scores diverge, believe the real one.

Bottom line

Synthetic data scales what you already have. It cannot invent the distribution you never collected. Collect the real anchor first, then multiply it.

Where has synthetic data helped or hurt you: evals, fine-tuning, or both?

References

Top comments (0)