Evaluating LLMs without lying to yourself

Why your eval harness is the most important (and most broken) part of your LLM stack — and how to build one that gives you a real signal.

The hardest part of working with LLMs isn’t the model. It’s knowing whether a change actually made things better. Swap the prompt, bump the temperature, switch models — and suddenly “it feels better” is your only evidence.

That’s not evidence. That’s a mood.

The eval is the product

An eval harness is the thing that converts “I think this is better” into a number you can defend in a review. If your harness is weak, every decision downstream is built on sand: model selection, prompt tuning, cost tradeoffs, the whole roadmap.

A few things that quietly make evals lie to you:

  • Static datasets that get memorized. If the same 40 examples run every time, you’re not measuring generalization — you’re measuring how well the model fit your test set.
  • Judge drift. If the judge model and the model under test share a lineage, the judge has a bias you didn’t sign up for.
  • Single-run noise. One sample per prompt is a coin flip with extra steps.

The loop, drawn out

Two sets do two different jobs, and conflating them is where evals go wrong:

              model under test
                    │
        ┌───────────┴────────────┐
        ▼                        ▼
  frozen golden set        fresh rotating inputs
  (regression contract)    (real signal, n per run)
        │                        │
        ▼                        ▼
      judge                    judge   (independent, pinned)
        │                        │
        └───────────┬────────────┘
                    ▼
         report:  point estimate ± CI
                    │
                    ▼
        golden below floor?  →  ship / block

The golden set is your contract — small, frozen, and the thing you regression-gate on. The rotating set is your measurement — fresh inputs so the model can’t overfit, scored with enough samples that the number has a width. You need both; neither is the other.

Make the data move

The fix for a memorized dataset is a dynamic dataset: generate or sample fresh inputs for each run so the model can’t overfit to the exact questions. Keep the frozen golden set for regression, but run the rotating set for real signal.

eval:
  golden:
    set: frozen-120
    floor: 0.90              # hard regression gate
  rotating:
    n: 200                   # fresh inputs per run
    metric: accuracy
    report: ci95
  judge:
    lineage: independent     # not a descendant of the model under test
    seed: pinned
def score(run, golden):
    # deterministic regression gate
    if golden.accuracy < GOLDEN_FLOOR:
        raise EvalFailure("regressed on golden set")
    # statistical signal on the rotating set
    return run.rotated.ci95()

The golden set is your contract. The rotating set is your measurement. Conflating them is how teams ship “improvements” that only exist on the test set.

Ship the number, not the vibe

When you report an eval, report the confidence interval, not the point estimate. “Accuracy went from 0.82 to 0.87” means nothing without the width of the bar. “0.87 ± 0.03, n=200, golden held at 0.91” is a decision you can make.

The trade-off, stated plainly

The golden set and the rotating set pull in opposite directions, and you have to hold both:

  • Golden is stable and directly comparable run-to-run, but it’s fixed — so it’s exactly the set a model (or a prompt) can memorize, and a green golden says nothing about generalization.
  • Rotating measures what you actually care about (generalization), but it’s not comparable across runs — a different sample each time means a 0.87 today and a 0.85 tomorrow might be the same model with different luck.

So you gate on the golden (the contract) and tend the rotating (the signal), and you resist the temptation to do the reverse. The honest report always shows both, because either one alone is a half-truth.

Open questions

  • Judge independence is a spectrum, not a switch. “Not a descendant” is easier to say than to guarantee — most models share training data and evaluation blind spots. How much judge independence is enough, and how do you detect the residual bias? I don’t have a clean test.
  • The cost of n. A meaningful CI needs hundreds of samples per run; at scale that’s real money and real latency. Where’s the line where a cheaper, noisier eval is “good enough” for a decision?
  • When is a delta real? Two point estimates with overlapping CIs are not a decision. But waiting for non-overlap can mean waiting forever on a small effect. Deciding what “enough” looks like is a judgment call the harness can’t make for you.

The same discipline — report the number with its bar, gate on a floor, and don’t trust a single run — is exactly what makes an autonomous system’s output something you can prove it did rather than just claim.

The model will always sound impressive. The eval is the only thing standing between you and a confident, wrong decision.

#llm#evaluation#ai
← All posts