Contents12 of 15
Download the PDF (892 KB)Before You Blame the ModelPart IV · The Truth: knowing if anything worked
Chapter 11Evals
The placebo beat my fix
I give every fix a placebo now. It started the day a placebo won.
The fix was a good idea on paper: remind the model of the test results and the code's contract right at the moment it picks its next action. The placebo was a message of the same length that said nothing useful. Same position, same voice, same everything except substance.
I took three decision points saved from real runs, replayed each one four times with the fix, with the placebo, and with nothing, and scored whether the model's next action was correct.
Does the placebo really beat the fix? Probably not. Those twelve samples are really three recorded moments, each replayed four times, so it's even thinner than it looks, and all three numbers are within noise of each other. That's the lesson. Without the placebo I'd have compared 8 of 12 against 9 of 12, shrugged, and kept tweaking. With it, I could see the whole spread was noise and walk away from an idea I liked.
#Small samples flip
Another idea went from 2 of 4 to 3 of 4 in a pilot. Exciting. The follow-up with 8 samples went from 5 of 8 down to 3 of 8. Same idea, opposite sign. If your sample fits on one hand, the result can't tell you which direction it went.
#Judges have moods
When you use a model to judge outputs, run every comparison in both orders and include controls: two identical outputs, which should tie, and one deliberately degraded output, which should lose. In one of my evaluations, only 29 of 108 reported ties held up as real ties once I checked them that way. The rest were the judge leaning on position.
#Passing isn't winning
My local page agent passed 704 of 768 objective checks, nearly matching a frontier model's 718 and well ahead of the plain small model's 659. Then I ran blind preference votes with two judges, both orders, and controls the judges passed 20 out of 20. The frontier model won all 16 briefs. The judges kept citing the same things: what the page said first, and how the information was organized. My checks measured whether requirements were met. Nobody had checked whether the page was any good to read. Your eval only sees what you told it to look for.
#Check the plumbing of the experiment too
- Check your labels. In one comparison, the file named for one model held a different model's output. I only caught it by tracing file hashes.
- Validate the task first. Early on, about half my "model failures" were the task or the test setup: tests that couldn't pass, a missing package, a broken path. A task belongs in an eval only if the reference solution passes in the same environment and the broken version fails.
- Void infrastructure deaths. A run killed by a crash or a timeout isn't a model failure. Drop it from both sides and report it separately.
- Write the prediction down first. I once predicted that a prompt design would overtake plain chat history past about 80,000 tokens of context. I wrote it down, measured, and I was wrong, because with a warm cache the history's per-step cost barely grew. If I hadn't written it down, I'd have remembered predicting the right thing.
| Retry until green | 1 try | 2 tries | 3 tries |
|---|---|---|---|
| Chance a bug that fails 10% of the time fails your CI | 10% | 1% | 0.1% |
| Zero failures in n runs | n = 20 | n = 100 | n = 300 |
| The true failure rate could still be up to (95% confidence) | 13.9% | 2.95% | 0.99% |
That table assumes each try fails independently, and real flaky failures often cluster, so treat it as the optimistic case. It's still why "it passed on retry" and "it passed 20 times" don't mean what they feel like they mean. Retries launder flaky bugs into green builds, and a clean streak is weaker evidence than it looks.
def max_failure_rate(clean_runs: int, confidence: float = 0.95) -> float:
"""Upper bound on the true failure rate after N runs with zero failures."""
return 1 - (1 - confidence) ** (1 / clean_runs)
max_failure_rate(20) # 0.139: twenty clean runs still allows ~14%
max_failure_rate(100) # 0.0295