# How Do You Evaluate a Fine-Tuned Model?

> How to test a fine-tuned model against its base model, on data it never trained on, and why training scores alone are not enough, for your AI interview.

**In short:** Test the tuned model against the base model on held-out examples it never trained on, using real tasks and fixed scoring. Then check safety and general skills before you ship, because training scores alone do not prove it is better.

AI and LLM interview question Q300, Fine-tuning and adaptation. Intermediate, common (our estimate). From Venkat R. Murty's free Interview Kit: https://designervenkat.online/interview/ai/how-do-you-evaluate-a-fine-tuned-model

## Say it in 30 seconds

I test a fine-tuned model like a new hire. I keep real questions out of the training data, run the base model and the tuned model on the same set, and score both the same way. Then I check that nothing got worse, such as safety or the simple formats. Training scores show the model learned something. They don't show it does the job better, so I ship only when the held-out test says so.

## Say it in 2 minutes

Fine-tuning only pays off if the new model beats the base model on real work, so I decide how I'll measure that before I train anything. OpenAI's guide says good evals come first, and that you need a reliable way to tell whether the tuned model performs better than the base model.

My test set is real questions from a bank's support queue, hard cases included, kept out of training. I run the base model and the tuned model on the same questions, with the best prompt I can write for each. Simple checks come first: format, fields, the right fee. Where a rule can't decide, a grader model scores against a written rubric, and I check that grader against people before I trust it.

Then I look for regressions. Tuning can make a model forget general skills, and it can weaken safety even with harmless data. So I score each slice of questions separately, such as card disputes, and run a safety check. If one slice drops by more than two points, the release is blocked.

Last, a live test. The tuned model answers a slice of real traffic while the base model serves the rest, and I compare quality, cost and speed. Training loss is only a signal, and the live result is what decides.

## What does it mean to evaluate a fine-tuned model, in plain words?

Fine-tuning means training an existing model further on your own examples, so it behaves the way your work needs. Evaluating it means a fair test: did it get better at that work, and did it stay good at everything else?

Think of a bank that hires an experienced agent and gives them three months of training on its fee rules. Before they take live calls, the manager tests them on calls they have never seen, not on the practice sheet they studied from. A model needs the same kind of test.

In a real case, a bank's support assistant is tuned on 3,000 past chats so it quotes the right card fee. The question is whether it gets new fee questions right, and whether it still handles disputes and policy questions as well as it did before.

- **Base model:** The model before your tuning. It is the baseline you must beat.
- **Held-out test set:** Examples kept out of training and used only for scoring.
- **Regression:** A drop in something the model used to do well.
- **Grader:** What scores an answer: code rules, another model, or a person.

## How do you build a fair test set?

Build the test set from the real work, before you train. Use the questions people actually ask, the messy ones, and the edge cases: an empty input, a fee that changed last month, a question the policy never covers.

> "Good evals first! Only invest in fine-tuning after setting up evals." (OpenAI)
>
> "Design evals that mirror your real-world task distribution." (Anthropic)

Keep the test set held out. OpenAI's guide calls holdout data a control group, and says the training and holdout data should have roughly the same spread of user inputs and model responses.

Watch for leakage. If near-copies of test questions sit in the training data, the score looks better than the model really is. Search for duplicates and paraphrases before you score anything.

> **Tip:** Asked how you'd build the test set? Say real tasks first, held out from training, with the edge cases in it. Mention leakage before the interviewer does.

## How do you compare and score the answers?

Run both models on the same questions, with the best prompt you can write for the base model. Split the questions into slices, groups such as fee questions or card disputes, and score each slice on its own. Comparing a tuned model against a weak baseline proves nothing, so the base model gets its best shot too.

*Diagram, How a tuned model is compared fairly: The same held-out questions go to the base model and the tuned model, and both get the same checks. The tuned model ships only if no slice of questions gets worse.*
1. The same questions go to the base model.
2. The same questions go to the tuned model.
3. The base model's answers get the same checks.
4. The tuned model's answers get the same checks.
5. It ships only if every slice holds up.

1. **Code checks first:** Fastest and most reliable for anything with a clear right answer: exact fields, valid format, the fee in the table.
2. **A grader model for judgment:** For tone or a fair summary, a second model scores each answer against a written rubric, a checklist of what a good answer must do. Use a different model from the one that wrote the answer.
3. **People, on a sample:** Human review is the most flexible and highest quality, but slow and expensive, so sample it. Test the grader against people first, then scale it up.

Here is the release gate, the rule that blocks shipping, in plain Python, with made-up numbers for a bank's fee assistant, scored slice by slice.

```python
# Fee-answer assistant at a mid-size bank, made-up numbers: per-slice check before shipping a tuned model.
SLICES = [
    # slice, test questions, base passed, tuned passed
    ("Fee questions", 120, 96, 110),
    ("Card disputes", 80, 70, 62),
    ("Policy lookups", 100, 90, 94),
]
MAX_DROP = 2.0  # points a slice may lose against the base model
ship = True
for name, total, base, tuned in SLICES:
    b = round(100 * base / total, 1)
    t = round(100 * tuned / total, 1)
    gap = round(t - b, 1)
    verdict = "ok" if gap >= -MAX_DROP else "BLOCK"
    if verdict == "BLOCK":
        ship = False
    print(f"{name}: base {b}%, tuned {t}%, change {gap:+}, {verdict}")
print("Ship" if ship else "Do not ship: a slice got worse")
```

Output:

```text
Fee questions: base 80.0%, tuned 91.7%, change +11.7, ok
Card disputes: base 87.5%, tuned 77.5%, change -10.0, BLOCK
Policy lookups: base 90.0%, tuned 94.0%, change +4.0, ok
Do not ship: a slice got worse
```

## What else can go wrong after tuning?

Tuning can help one task and quietly hurt another. The research name is catastrophic forgetting: the model loses what it learned earlier while it learns something new.

> "Catastrophic forgetting (CF) is a phenomenon that occurs in machine learning when a model forgets previously learned information while acquiring new knowledge" (Luo and colleagues, 2023)
>
> "Our red teaming studies find that the safety alignment of LLMs can be compromised by fine-tuning with only a few adversarially designed training examples." (Qi and colleagues, 2023)

Safety is a separate check. The 2023 red-teaming study found that a few adversarial examples could compromise safety training, and that ordinary, commonly used data can weaken it too, to a lesser extent.

OpenAI's guide adds the same warning: its own safety checks cover many categories, but you should still conduct your own evaluations of the fine-tuned model for your use case.

Keep the scores honest. A small test set gives noisy numbers, so a gain of a few points can be luck. Report each slice with its count, not one headline number.

Loss needs care too. OpenAI says the metrics saved with each checkpoint (a saved version of the model during training) help judge usefulness. Validation loss, the error on a check set during training, is still only a training signal. Pick the checkpoint on a validation set, then score the final model on a separate test set you never tuned on.

### How would you decide to ship a tuned model?

Offline scores come first. Then a small live test: the tuned model answers a slice of real traffic while the base model serves the rest, and the team compares quality, cost and speed.

1. **Offline gate:** Every slice holds up against the base model, and the safety check passes.
2. **Live slice:** A small share of real traffic goes to the tuned model, with a way to switch back fast.
3. **Cost and speed check:** Compare the price per token with the base model, then count the full cost per task, including prompt length. A tuned model may let you cut long instructions, so check that too.

## What does the interviewer want to hear?

**A strong answer covers**

- [ ] Test the tuned model against the base model, with the same prompt and the same held-out set.
- [ ] Holdout data never seen in training, with the same spread of inputs as the training data.
- [ ] Score in layers: code checks, a grader model against a rubric, and a sample of people.
- [ ] Check each slice and the regressions, including safety and general skills.
- [ ] Training loss is a signal. It does not prove the model does the job better.
- [ ] Say what happens when the gate fails: fix the data, then retrain.

**Common traps**

- Trap: "The training loss went down, so it works." Better: Loss is a training signal. Judge the model on a held-out test set it never saw in training.
- Trap: "I tested it on the examples we trained it with." Better: Those scores are inflated by leakage. Keep a holdout set that is never used for training.
- Trap: "It wins overall, so we ship." Better: An overall win can hide a slice that got worse. Gate on every slice and on safety.

## Can you spot the problem?

**Spot the problem:** A colleague posts four results in the team channel. Which one hides the real risk?

A. Held-out fee questions: base 85%, tuned 92%, same prompt.
B. Training loss, a score on the training data, fell from 0.41 to 0.19, so the model has learned the fees.
C. Overall score: tuned 92%, base 85%. Card disputes are not split out.
D. Chats were cleaned of personal data before training.

**Answer:** C. An overall score can hide a slice that got worse, such as card disputes. Split the results by slice, and gate the release on each one.

**Quick check:** A tuned model beats the base model overall. What must you check next?

A. Whether its answers are shorter than the base model's
B. Whether it still passes every slice and the safety check
C. Whether its training loss went down
D. Whether each call costs more to run

**Answer:** B. An overall win can hide a slice that got worse, or a safety regression. Length, loss and cost per call don't decide whether it is ready.

## Can you answer these from memory?

**Flash cards**

- **What is the first test of a tuned model?** Does it beat the base model on held-out examples it never trained on?
- **What is a holdout set?** Real examples kept out of training, used only for scoring.
- **Why check each slice?** An overall win can hide a slice that got worse.
- **Is training loss enough?** No. It is a training signal. It does not prove the model is better at the job.
- **How do you check a grader model?** Against people, on a sample. Trust it only once it agrees with them.
- **What must you check after a win?** Safety and general skills, to catch regressions.

## Likely follow-up questions

- Q296 What is catastrophic forgetting? https://designervenkat.online/interview/ai/what-is-catastrophic-forgetting
- Q297 How do you spot overfitting during fine-tuning? https://designervenkat.online/interview/ai/how-do-you-spot-overfitting-during-fine-tuning
- Q309 Can fine-tuning weaken safety behaviour? (full answer coming)
- Q249 What is LLM-as-a-judge? https://designervenkat.online/interview/ai/what-is-llm-as-a-judge
- Q248 What is a golden dataset, and how do you build one? https://designervenkat.online/interview/ai/what-is-a-golden-dataset
- Q256 Capability evals vs regression evals? https://designervenkat.online/interview/ai/capability-evals-vs-regression-evals

## Learn it in depth

- [LLM Evaluations](https://designervenkat.online/learn/ai-engineering/llm-evaluations)
- [A model as the judge](https://designervenkat.online/learn/ai-engineering/model-based-evals)
