Resources/Model training/Evaluation

Concept

Base vs tuned, side by side

An evaluation asks the starting model and the trained model the same held-out questions and compares their answers, so you can see whether training actually made the answers better.

Chapter 85 min read4 references

What it is

Training produces numbers — loss, accuracy on your pairs, reward — that tell you how well the model fit the training signal. None of them answers the question you actually care about: are its answers better now? A lower loss can come from the model copying phrasing more closely while getting facts wrong; a preference run can raise its accuracy on your pairs while answers grow longer and vaguer.

An evaluation measures that directly. Two models answer the same set of test questions — the model training started from, and the trained one — and the answers are compared question by question.

How it works

  1. Test questions. By default each comes from the held-out test set: a conversation kept apart from both training and validation, asked up to one of its replies. Neither model trained on it, and the provider never saw it.
  2. Reference answer. The original reply from your data. It is not a perfect answer, but it shows what your team considered right.
  3. Two answers per question. Both models answer with the same settings, so the only difference is the weights.
  4. A comparison. Usually an LLM judge picks the better answer and scores both, plus cheaper signals such as similarity to the reference, length and latency.

The comparison is paired: each question is answered by both models, and the result is about the difference on that question. That matters statistically. Some questions are easy and some are hard; scoring each model separately on different questions would mix that difficulty into the result. Comparing on the same question cancels it, so a paired evaluation needs fewer questions to detect the same improvement.

Where the questions come from

A model graded on questions it trained on looks better than it is. So before anything else, data prep keeps a test set aside: 10% of conversations, at least 3, chosen at random but fixed for that prep, and only when the dataset has at least 10 conversations. Every reply in a test conversation becomes a question, asked with the conversation up to that point. A test reply that is word for word the same as a training reply is dropped, because the model has effectively seen it. The validation set is different: it is sent to the provider to monitor training, so it is not a clean test.

SourceSeen during training?Use it for
Held-out test setNoJudging whether the model really improved (the default)
ValidationSeen by the provider, not learned fromA second opinion when there is no test set
Training sampleYes, learned fromA sanity check only; results are optimistic

Ways to compare answers

MethodGood forLimits
Exact or numeric matchClassification, extraction, calculations: anything with one right answerUseless for open-ended replies, where many answers are correct
Similarity to referenceA cheap signal of whether the model picked up your wording and structureRewards copying; a better answer phrased differently scores lower
LLM-as-a-judgeOpen-ended chat at scale: correctness, helpfulness, tone, formatHas known biases that the setup must cancel; costs judge tokens
Human reviewThe final word on quality, and checking the judgeSlow and expensive; hard to repeat for every run

Public benchmarks measure general ability. Fine-tuning is about your task, so your own held-out conversations are a much better test than a leaderboard score.

Evaluating a chain of runs

Base modelpre-trained
→evaluated vs base modelSupervised runlearns the task
→evaluated vs supervised runPreference runpolishes answers
Each link in a chain starts from the weights the previous link produced, and is evaluated against that parent, so a result always measures what this step added.

When a run continues from an earlier run — for example, a preference run on top of a supervised one — the “base” side of its evaluation is that earlier run, not the original base model. Comparing with the original would mix two steps together: you could not tell whether the preference step helped or simply inherited the supervised step's gains. Judged one link at a time, each result answers one question: did this step help?

When there is no base to compare with, or several models

  • An earlier checkpoint. Providers retire base models, and once a base can no longer be deployed a side-by-side is impossible. The final model can instead be compared with a checkpoint saved part-way through the same run. That answers “did the later training steps help?”, not “is it better than the original model?”.
  • Scoring alone. The judge reads the conversation, your reply and one answer, and gives 1–5 per criterion. There are no wins: it is an absolute quality score, useful for tracking or ranking models, but it can't show improvement over a base.
  • A model comparison. To choose between several models, they all answer exactly the same questions and face the same judge, and are ranked by average judge score. Otherwise the scores aren't on the same scale.
Worked example: what an evaluation tells you that loss can't
  1. A supervised run on 1,200 conversations finishes with validation loss falling from 1.9 to 1.1. Promising, but not proof.
  2. The evaluation uses the 120 conversations of the test set, which neither training nor validation touched. Base and tuned each answer all 120.
  3. The judge prefers the tuned answer on 68 questions, the base answer on 31, and calls 21 a tie.
  4. The tuned answers are 40% shorter and much closer to the reference. The judge's reasons mention “names the right menu path” on many tuned wins.
  5. Among the base wins, eight reasons say the tuned answer “invents a setting that doesn't exist”. That points at a gap in the data — and gives eight ready-made preference pairs.

Common mistakes

  • Treating a falling loss curve as proof that answers improved.
  • Evaluating on questions the model trained on and reading the result as real-world performance.
  • Comparing a continued run with the original base model, which hides whether the latest step helped.
  • Changing generation settings between the two sides, so the comparison measures settings rather than weights.
  • Running one evaluation and stopping: the judge's reasons are the plan for the next round of data.

References and further reading

External sources open in a new tab.

  1. 01A Survey on Evaluation of Large Language ModelsChang et al., 2023 · arXiv · arxiv.orgAn overview of what to evaluate, where and how.
  2. 02Holistic Evaluation of Language ModelsLiang et al., 2022 · arXiv · arxiv.orgWhy one number is never enough: measuring many qualities across many scenarios.
  3. 03Judging LLM-as-a-Judge with MT-Bench and Chatbot ArenaZheng et al., 2023 · arXiv · arxiv.orgThe paper that established pairwise LLM judging for open-ended answers.
  4. 04Adding Error Bars to Evals: A Statistical Approach to Language Model EvaluationsMiller, 2024 · arXiv · arxiv.orgWhy paired comparisons on the same questions are more precise.

Turn weeks of expert work into minutes

See how Scalata fits your team, your data, and your controls.