esc
  • WorkflowsPages
  • Case studiesPages
  • Machine Learning FoundationsLearn
  • AI EngineeringLearn
  • AI Guardrails & Red TeamingLearn
  • UI/UXLearn
  • Design SystemsLearn
  • Production System DesignLearn
  • AI papersPages
  • Interview KitPages
  • Book a callContact
  • Download ResumeContact
Let’s talk

I’ll build the agent for it.

Synthetic Data for Fine-Tuning

Where made-up training examples come from, why they can quietly make a model worse, and how to check them, for your AI interview.

In short

Synthetic data is training material made by a model or a script. It helps a fine-tuned model learn a task when real examples are scarce, but errors and sameness creep in, so people must check it against real cases.

10 min readIntermediateCommon · estimateFacts checked 26 November 2026

Say it out loud

Read it once, then say it without looking. Start with the short one; use the long one when they ask you to go deeper.

Synthetic data is training material that a model or a script makes, instead of people collecting it. I would use it when we have few real examples, because a stronger model can write many more. But I never trust it blindly. Copied mistakes and repeated sameness can make the fine-tuned model worse. So I run code checks, have people read a sample, and keep real examples back as a test. Real cases decide whether it worked.

What is synthetic data for fine-tuning, in plain words?

Fine-tuning means training a model a little more on examples of the job you want it to do. Real examples are often few, private or slow to label. So teams make more: a stronger model writes new examples from a few real ones, or a script fills in templates. Those made-up examples are synthetic data.

Think of a senior bank teller who writes practice case files for new hires. The files look like real customers, and the new hires learn from them. If the teller gets one fee wrong, every new hire learns the wrong fee. Synthetic data works the same way: it teaches whatever its writer knows, mistakes included.

Key words

Synthetic data
Training text that a model or a script writes.
Teacher model
The stronger model that writes or labels the new examples.
Distillation
Training a smaller model on a larger model's answers.
Model collapse
The rare parts of the original data vanish when models keep training on model output.
Held-out set
Real examples kept back from training, so the test is fair.

Where does synthetic data come from?

Three routes are common. Each one is a different answer to the question of who writes the first examples.

  • Distilling a bigger model

    The teacher answers your prompts, and its answers become training pairs for a smaller model.

  • Self-instruct

    The model writes its own tasks and answers, then filters out invalid or similar ones.

  • Textbook-style data

    Clean lessons and exercises written by a model. The Phi-1 model was trained this way, next to web data picked for textbook quality.

How a synthetic training set gets built

Real chats

Past bank chats, private details removed

Teacher model

Writes new question and answer pairs

Checks before training

Code rules

Drops duplicates and wrong fees

Human sample

A reviewer reads a random batch

Training set

Only pairs that passed the checks

Fine-tuned model

Judged on real chats it never saw

  1. 1Real chats are the examples the teacher starts from.
  2. 2The teacher's new pairs go to the code rules.
  3. 3The same new pairs go to a reviewer's sample.
  4. 4Pairs that pass the code rules move on.
  5. 5Sampled pairs the reviewer accepts go on.
  6. 6The model trains, then is graded on real chats it never saw.
A teacher model writes new pairs from real chats. Code rules and a human sample check them before training, since skipping either lets bad pairs in. The finished model is judged on real chats it never saw.

The phi-4 technical report says synthetic data runs through its training, and OpenAI's supervised fine-tuning guide describes distilling a large model for a smaller one:

  • “phi-4 strategically incorporates synthetic data throughout the training process.”

    phi-4 technical report

  • “One way to build a training data set for a smaller model is to distill the results of a large model to create training data for supervised fine tuning.”

    OpenAI, supervised fine-tuning guide

Why can synthetic data make a model worse?

Three problems show up again and again. Each one is a reason to check the data before you train.

  1. 1

    Copied mistakes

    The student learns the teacher's errors, such as a wrong fee, and repeats them with confidence.

  2. 2

    Less variety

    Generated examples often repeat the same shapes, so the odd cases real customers bring get little room.

  3. 3

    Model collapse

    Train on model output over and over, and the rare parts of the original data disappear.

  • “use of model-generated content in training causes irreversible defects in the resulting models, where tails of the original content distribution disappear.”

    Shumailov and colleagues, The Curse of Recursion

The same paper argues that data about genuine human interactions will become more valuable as generated content grows. That is why real chats stay the anchor in the plan.

Licence terms matter too. OpenAI's Services Agreement, which covers its API, lists using its output to develop competing AI models as a restriction, with some exceptions. Check the terms of whichever model wrote your data.

Tip

Asked about synthetic data? Name the three risks, then say how you check each one: code rules, a human sample and a real test set.

How would you build a fine-tuning set for a bank's support assistant?

A bank wants its support assistant to answer fee questions correctly. It has 400 real chats, with personal details removed. Here is the plan I would present, using made-up numbers. A customer might ask, "How much is a card replacement?", and the answer must match the fee table.

  1. 1

    Hold back a real test set

    Keep 80 chats out of training. Only these decide whether the model improved.

  2. 2

    Generate from the rest

    The teacher writes 9,600 new question and answer pairs from the other 320 chats.

  3. 3

    Run the code rules

    Drop repeated questions and any answer whose fee differs from the table. This drops 1,150 pairs.

  4. 4

    Read a random sample

    A reviewer reads 300 pairs and finds 18 wrong answers. Six of them quote a wrong fee the code missed.

  5. 5

    Fix and run again

    The team tightens the teacher's instructions, generates again and checks again before any training run.

The reviewer found what the code could not, so both checks stay. Only after that does the team compare the fine-tuned model with the original model, before training, on the 80 held-back chats, and decide from those results.

How do you check that synthetic data actually helps?

Judge the model on real cases it never saw. A tidy dataset proves little. Here is the code rule idea in plain Python, a simplified version of the checks above with a small fee table.

Python
# A simplified check on generated bank support pairs before training.
FEE_TABLE = {"card replacement": "15", "late payment": "25", "wire transfer": "10"}

generated = [
    {"q": "How much is a card replacement?", "a": "A card replacement costs 15 dollars."},
    {"q": "What does a late payment cost?", "a": "A late payment costs 35 dollars."},
    {"q": "How much is a card replacement?", "a": "A card replacement costs 15 dollars."},
    {"q": "Is a wire transfer free?", "a": "A wire transfer costs 10 dollars."},
]

def fee_ok(pair):
    for service, fee in FEE_TABLE.items():
        if service in pair["q"].lower() and f" {fee} " not in f" {pair['a']} ":
            return False
    return True

seen, kept, dropped = set(), [], []
for pair in generated:
    key = pair["q"].lower()
    if key in seen or not fee_ok(pair):
        dropped.append(pair["q"])
        continue
    seen.add(key)
    kept.append(pair)

print("kept:", len(kept))
print("dropped:", len(dropped))
for q in dropped:
    print("drop:", q)

Output

kept: 2
dropped: 2
drop: What does a late payment cost?
drop: How much is a card replacement?

The code shows what one check does. A rule only catches the errors someone thought to write down, so the reviewer and the held-out test still matter.

What does the interviewer want to hear?

A strong answer covers

  • A plain definition: training text made by a model or a script.
  • Why teams use it: real examples are few, private or slow to label.
  • The three risks: copied mistakes, less variety and model collapse.
  • Checks before training: code rules, a human sample and a real test set.
  • The licence terms of the model that wrote the data.
  • An honest limit: it helps when real data is short, and it does not replace real data.

Common traps

  • Trap"Generate a million examples and train on them."

    BetterMore pairs only help if they are right. Check a sample, and grade the model on real cases it never saw.

  • Trap"The teacher is always right, so its answers are safe."

    BetterA student copies the teacher's mistakes. Check the answers against your own source of truth.

  • Trap"Grade the model on the synthetic data it trained on."

    BetterThat tests memory. Use real cases the model never saw to test skill.

Can you spot the bad pair?

Spot the bad pair

Which generated pair should the checks drop before training?

Quick check

The team has 400 real chats and a teacher that can write 10,000 pairs. What should it do first?

Can you answer these from memory?

Flash cards · tap a card to flip it

1 / 6

What will they ask next?

  1. Q293What is distillation?11 min
  2. Q294How do you prepare a fine-tuning dataset?11 min
  3. Q295How much data do you need?9 min
  4. Q296What is catastrophic forgetting?12 min
  5. Q300How do you evaluate a fine-tuned model?11 min

Learn it in depth

Last updated on 26 November 2026

Building a fine-tuned model without much real data?

I design and build AI systems, including the data checks, test sets and evals behind them. Book a short call and tell me how much real data you have and what the model must do.