AI / ML topic How Do You Know a Model Got Better?

Evals, explained for people who ship software: test sets and the leaks that ruin them, why grading language is hard, LLM judges and their biases, and turning all of it into a gate your deploys have to pass.

· ml, evals, mlops, explainer

In the first post of this series, a new model only ships if it gets through the : an automatic check that it beats the one already running. I made it sound simple. It’s the least simple box in the diagram.

For ordinary code, a test knows the right answer: add 2 and 2, and you must get 4. For a language model, the right answer to “write a polite reply to this angry customer” is any of a million good replies. This post is about how teams measure that anyway, and the ways the measuring goes wrong.

Hold some data back

A basic rule of machine learning: never grade a model on examples it trained on. You keep a locked away, and its score is your honest estimate of how the model does on data it hasn’t seen. Google’s ML Test Score rubric treats this kind of testing as a basic requirement for production readiness.

The big threat is . Language models train on a large share of the public internet, and public test questions end up on the internet. In 2024, Scale AI researchers had a fresh set of grade-school math problems written in the style of a popular . Several model families scored up to 8% lower on the new questions, a sign they’d partly memorized the old test, though most frontier models showed little drop.

Grading the ungradeable

Some answers can be checked mechanically: a math result, code that passes its tests, a label from a fixed list. Most can’t. Is this summary faithful? Is this reply helpful, correct and in the right tone?

The gold standard is people, and people are slow and expensive. So the field leaned on public benchmarks, until models beat them. By early 2025, top models scored over 90% on MMLU, a benchmark once considered hard, so researchers built harder ones like Humanity’s Last Exam. When everyone optimizes for the same scoreboard it stops telling you much; the economist’s version is Goodhart’s law, in anthropologist Marilyn Strathern’s phrasing: “When a measure becomes a target, it ceases to be a good measure.”

Let a model grade it

The cheap alternative is an : ask a strong model which of two answers is better. It works surprisingly well. A 2023 study found GPT-4’s verdicts agreed with humans over 80% of the time, about as often as humans agree with each other.

It also has known biases. The same study measured a preference for longer answers, and saw hints, too weak to call, that judges favour their own writing. Another found position bias: just by changing the order of the answers, a small model beat ChatGPT on 66 of 80 questions, with ChatGPT as the judge. Try being the grader, then hand it to the judge:

Live · you grade, then the judge grades
The shop's actual policy (a made-up bike shop)
  • Unworn helmets can be returned within 30 days. Worn ones can't.
  • A tune-up costs $89.
  • Open Sundays 10 a.m.–4 p.m.
  • E-bikes are serviced, but batteries go back to their maker.
Can I return a helmet I've worn once?
What are your hours on Sunday?
Do you fix e-bikes?
How much is a tune-up?
Click the better answer to each question, then ask the judge.
The judge is scripted, not a live model, but its two mistakes are the ones research keeps finding in real LLM judges: it prefers longer answers, and it changes its mind when the order changes.

The fixes are dull, and most of them work. Ask twice with the order swapped and only count consistent verdicts. Don’t trust an instruction to ignore length: in the study that measured the length preference, two of three judges still preferred padded answers. Give it the facts to grade against, like the shop policy in the demo.

And spot-check it against a person, often.

Bugs you fixed stay fixed

Beyond the headline score, one of the most useful evals is also the most boring: a . Every time the model gets something embarrassingly wrong in production, the input and the correct behaviour go into the suite. Every future version must pass all of it.

Anthropic’s guidance on evals leans the same way. It says to mirror your real-world task distribution, and to “prioritize volume over quality”: many automatically graded cases beat a few perfect hand-graded ones. Public leaderboards have their own problems. A 2025 paper argued Chatbot Arena’s rankings were skewed because some providers could test many private variants and publish only the best.

Evals in CI

Put it together and an eval gate is a CI job. On every change to a prompt, a model version, a threshold or a retrieval setting, run the suite, score it with code where you can and a judge where you can’t, and fail the build if the score drops. Open-source tools already do this: promptfoo plugs into CI pipelines, and the UK AI Security Institute’s Inspect is a full evaluation framework. OpenAI open-sourced its Evals framework alongside GPT-4 in 2023.

Then keep evaluating after the deploy. samples live traffic, grades it the same way, and tells you when quality .

So how do you know it got better?

You write down what “better” means before you look. A locked test set that never leaks, a regression suite of every past failure, checks in code wherever an answer can be checked, and a judge you’ve caught being biased and corrected. None of it is glamorous, but it lets you show that a model improved instead of just believing it did, and that’s the gate’s job.

References & further reading

The testing basics first, then judges and leaderboards.

Saturation03 / 11

Humanity's Last Exam

Phan et al. · January 2025

Built because models passed 90% on MMLU. Frontier models scored low on its expert-written questions at launch.

Leaderboards08 / 11

The Leaderboard Illusion

Singh et al. · April 2025

Private testing of many variants, with only the best published, biases Chatbot Arena's rankings.

Tools09 / 11

CI/CD integration

promptfoo · docs

Run prompt and model evals automatically in your deployment pipeline.

Tools10 / 11

Inspect

UK AI Security Institute

An open-source framework for large language model evaluations.

Tools11 / 11

GPT-4

OpenAI · March 14, 2023

The launch that open-sourced OpenAI Evals, a framework for writing and running benchmarks.