This lesson pairs with The guessing machine. The worked example comes from Chapter 19 of Train Your Own LLM.
The 5 questions at a glance
| # | Question | What it answers | Red flag |
|---|---|---|---|
| 1 | What is the referee? | What grades the output, independently of the model? | The model is scoring itself, or nothing is scoring it |
| 2 | How does it score on unseen cases? | Is it learning a rule, or repeating what it has already seen? | Only a score on familiar examples |
| 3 | Where do the mistakes cluster? | What kind of error is most common, and what should you fix next? | A single average with no breakdown |
| 4 | Does it finish the whole task? | Does a good per-step rate survive a long run? | “85% accurate” with no end-to-end number |
| 5 | What claim can you defend? | What can you say that a test would support? | “Understands X” when the evidence only supports a smaller claim |
1. What Is the Referee?
A referee is anything that can grade an output exactly, and that does not depend on the same model it is meant to check. Fluency is not a referee. A second prompt that asks “are you sure?” is not a referee either. Teaching vs prompting matters here: a careful prompt can steer a model, but it cannot grade the answer. The grade has to come from outside.
Chess makes a clean lab for this because it has a perfect referee: code that lists every legal move in a position. In Chapter 19, a 1.04-million-parameter small language model was trained from scratch on 39,000 public chess games. It was never shown a board or a rulebook, only the moves. The referee could still say, for every prediction, whether the move was legal.
Your work may not be chess, but many jobs have a referee if you name it:
- API calls can be checked against a schema
- SQL can be checked by running it against a test database
- Warehouse moves can be checked against inventory
- Factual answers can be checked against the source passage, which is how you get source-linked AI rather than a confident guess
If you cannot name a referee, say so. That does not make the task hopeless. It means you are in a softer domain and will need held-out tests, cited sources, or a human review, not a false sense of certainty.
2. How Does It Score on Cases It Has Never Seen?
A high score on familiar inputs can be memorization. The number that tells you whether something rule-like was learned is the score on cases the system has never seen.
In the chess experiment, after 100 training steps the model played a legal move in 90% of positions it had already seen and only 22% of positions it had not. That gap is memorization: it could replay familiar sequences and was lost outside them. After 3,000 steps, seen positions were at 99.7% and unseen positions at 81.3%, across 1,672 move sequences that never appeared in training. About 40 times better than chance, on positions nobody had played before, is evidence of something rule-like. It is not proof that the model “understands” chess. It is a number you can check.
When someone shows you an AI result, ask the friendly follow-up: “And on new cases?” If the only score is on the examples used to build or demo the system, you do not yet have AI you can verify.
3. Where Do the Mistakes Cluster?
Do not average the mistakes. Read them. An overall score can hide a pattern that tells you what to fix, or what not to claim.
The training spec in Chapter 19 asked for 95% legal moves overall and 90% on unseen positions. The model reached 84.3% and 81.3%, so it failed the spec. Sorting the 313 illegal top moves showed where:
- 154 sent a real piece to a square it could not reach, often because something was in the way
- 67 left or kept their own king in check
- 52 moved a piece from a square that was already empty
- 31 predicted the game was over
- 9 moved the opponent’s piece
Turn order, which is just counting, was almost never broken. Tracking the whole board was where a million parameters ran short. That is a more useful finding than “84% legal.” The same habit applies to any model: group the errors by cause, and let the clusters tell you whether you need better data, a tighter scope, a smaller claim, or an independent check.
4. Does It Finish the Whole Task, or Only Each Step?
A good per-step rate is not the same as finishing the job. Errors compound. At 85% correct per step, the chance of 20 clean steps in a row is 0.85 to the 20th power, about 4%.
The chess model was legal on 84.3% of single moves. Then it played 100 games against itself. The median game lasted 15 moves, and 98 of 100 games ended on an illegal move. Even with sampling turned off, so the model always played its top choice, its best game was a calm Italian Game opening that lasted 26 legal moves and broke a rule on move 27.
The same math applies to AI agents that chain tool calls, or to any system that has to stay right for many steps. Ask for the per-step rate and the whole-task completion rate, under a realistic length. If you only have the first number, you do not yet know whether the job gets done.
5. What Claim Can You Defend?
Write the smallest claim the evidence will support, and put the raw numbers next to the system numbers.
The raw chess model could not be shipped as a sparring partner that never cheats: one move in six was still illegal. The fix was not a bigger model. It was three lines that play the model’s highest-ranked legal move. With that referee, the system is legal 100% of the time, by construction. The model supplies taste: which legal move a human would likely play. The referee supplies the rules.
Is that cheating? Not if you are honest about what each part does. The report keeps both numbers: the model alone is legal 84.3% of the time (81.3% on unseen positions); the wrapped system is legal 100% of the time. The claim you can defend is “plays legal, human-like beginner moves.” Not “understands chess.” It matches the human’s actual move 26.2% of the time on its own, and 29.4% with the referee. Beating a random player (8 checkmates, 1 loss, ahead on material in 77 of 90 unfinished games) is a cheap sanity check, not a strength test.
Small claims you can check beat big ones you cannot.
Finding a referee for your own work
Name one AI output you already rely on and say what would grade it exactly. If you are using a big chatbot for facts, the referee is often the source text, retrieved at answer time so the model has to point to a passage. If you are teaching a small language model a narrow job, the referee is a held-out test and, when the output must come from a fixed set, a checker that keeps it inside that set.
A smaller, focused model is often easier to test than a broad chatbot, but only if you actually test it. Teaching it from organized sources does not replace the five questions. It just gives you a system those questions can be asked of.
Frequently asked questions
What is a referee for an AI result?
A referee is an independent check that can grade the output exactly: a rule checker, a schema, a test database, inventory, a source passage, or a held-out set of cases. It must not be the same model that produced the answer.
Why does the score on unseen cases matter more than the overall score?
A high score on familiar examples can be memorization. The score on cases the system has never seen is what tells you whether it learned something that generalizes. In the chess experiment, the gap between seen and unseen positions was the difference between replaying training games and picking a legal move in a new position.
Is wrapping a model in a rule checker cheating?
Not if you report both numbers and do not pretend the model learned the rule on its own. The model can supply taste or ranking. The checker supplies the constraint. The claim should describe the whole system, and the raw model score should stay in the report.
How do I find a referee if my task is not as clear-cut as chess?
Start with what a correct answer would have to satisfy. If facts matter, retrieve the source and ask the model to point to the passage. If the output must be a valid call, query, or move, check it against a schema, a test database, or an inventory. If nothing can grade it exactly, say so, and use held-out tests and human review instead of a fake exact score.
Can a small language model be easier to check than a big chatbot?
Often, yes, when it is focused on one job, answers from sources you chose, and is tested on questions you can grade. A small language model is not automatically more trustworthy. It is easier to verify when you give it a referee and ask the five questions above.
Keep learning
- The guessing machine — what a language model really does
- Teaching vs prompting — where knowledge lives, and how you check it
- Sibling listicle: 7 Checks Before You Trust a Smaller AI Model
- Sibling listicle: Small Models vs Big Chatbots: 5 Ways to Get Answers You Can Check
- Sibling listicle: 5 Myths About Training Your Own AI Model
Want the full walk-through, code included? Chapter 19 of Train Your Own LLM is at ai021.ai/book.
Zafrullah Khan, Ed.D., writes about checkable AI, teaching rather than prompting, and practical small models.
Get the next lesson by email.
Short notes on how AI really works. No ads, no selling your address, unsubscribe any time.
Build with the AI community