# 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.

AI and LLM interview question Q299, Fine-tuning and adaptation. Intermediate, common (our estimate). From Venkat R. Murty's free Interview Kit: https://designervenkat.online/interview/ai/synthetic-data-for-fine-tuning

## Say it in 30 seconds

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.

## Say it in 2 minutes

Fine-tuning means training a model a little more on examples of the job you want it to do, such as answering a bank's fee questions in the right tone. The hard part is getting enough good examples. Real chats are scarce, private and slow to label, so teams make more. A stronger model can write new question and answer pairs from a few real ones, or a script can fill in templates. That is synthetic data.

I would start small. Say we have 400 real chats from a bank's support team. I keep 80 of them back as a test that never goes into training. The other 320 become starting examples for a teacher model, which writes many new pairs. Then code checks drop duplicates and any answer that contradicts the fee table, and a person reads a random sample of each batch.

Synthetic data has real risks. When models keep training on text that earlier models wrote, over many rounds, rare cases fade. Researchers call this model collapse. A student model also copies its teacher's mistakes, including a wrong fee. And OpenAI's Services Agreement lists using its output to develop competing AI models as a restriction, so I would read the terms before using any output.

So my answer to the interviewer is yes, when real data is short, with checks and a real test set. Real data stays the anchor, and the test decides whether the model really improved.

## 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.

- **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.

*Diagram, How a synthetic training set gets built: 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.*
1. Real chats are the examples the teacher starts from.
2. The teacher's new pairs go to the code rules.
3. The same new pairs go to a reviewer's sample.
4. Pairs that pass the code rules move on.
5. Sampled pairs the reviewer accepts go on.
6. The model trains, then is graded 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. **Copied mistakes:** The student learns the teacher's errors, such as a wrong fee, and repeats them with confidence.
2. **Less variety:** Generated examples often repeat the same shapes, so the odd cases real customers bring get little room.
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. **Hold back a real test set:** Keep 80 chats out of training. Only these decide whether the model improved.
2. **Generate from the rest:** The teacher writes 9,600 new question and answer pairs from the other 320 chats.
3. **Run the code rules:** Drop repeated questions and any answer whose fee differs from the table. This drops 1,150 pairs.
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. **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:

```text
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." Better: More 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." Better: A 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." Better: That 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?

A. Q: How do I reset my app PIN? A: Open Settings, then Security, then Reset PIN.
B. Q: What is the card replacement fee? A: A card replacement costs 50 dollars.
C. Q: Is a wire transfer free? A: A wire transfer costs 10 dollars.
D. Q: What time does the branch open? A: Branches open at 9 on weekdays.

**Answer:** B. The answer says 50 dollars, but the fee table says 15. A code rule that compares answers with the table drops it.

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

A. Train on all 10,000 pairs, then grade the model on those same pairs
B. Hold back real chats as a test set, then generate a small batch and have a person check it
C. Add more pairs until the training loss stops falling
D. Skip the real chats, since synthetic data is cheaper

**Answer:** B. Holding back real cases keeps the test fair, and a small checked batch shows errors before they multiply. Training loss and cost do not show whether the answers are correct.

## Can you answer these from memory?

**Flash cards**

- **What is synthetic data?** Training text that a model or a script writes.
- **Why use it?** Real examples are few, private or slow to label. Generated ones fill the gap.
- **What is distillation?** Training a smaller model on the answers of a larger model.
- **What is model collapse?** The rare parts of the real data vanish when models keep training on model output.
- **What must you keep back?** Real examples never used for training, to judge the model fairly.
- **What is the licence trap?** OpenAI's terms list building competing AI models from its output as a restriction. Read yours.

## Likely follow-up questions

- Q293 What is distillation? https://designervenkat.online/interview/ai/what-is-distillation
- Q294 How do you prepare a fine-tuning dataset? https://designervenkat.online/interview/ai/how-to-prepare-a-fine-tuning-dataset
- Q295 How much data do you need? https://designervenkat.online/interview/ai/how-much-data-do-you-need
- Q296 What is catastrophic forgetting? https://designervenkat.online/interview/ai/what-is-catastrophic-forgetting
- Q300 How do you evaluate a fine-tuned model? https://designervenkat.online/interview/ai/how-do-you-evaluate-a-fine-tuned-model

## Learn it in depth

- [Fine-tuning](https://designervenkat.online/learn/ai-engineering/fine-tuning)
