Your LLM eval is overfitting. Here is how we caught it

One model had 879 recordings, the others 53 or fewer. A fair scorer flipped the ranking and a locked holdout made it a tie. Here are the three rules we use now.

Method
Sample
89 cases, 36 locked holdout
Data
Synthetic, recorded and replayed
Models
Gemini 3.1 Flash-Lite vs Claude Haiku 5.5
Metric
Pass rate, paired comparison

We had run many evals with many models, and an older Gemini Flash-Lite model kept winning. That should have been good news. Instead it was a warning: a cheap, older model should not beat newer models on every comparison for weeks.

The suspicious winner

The first thing we checked was how much data each model had. The answer explained a lot:

  • 879 recordings for Gemini. Every other model had 53 or fewer.
  • 17 record runs on Gemini while the dataset went from v1 to v8 and the MCP instructions went through about nine versions.
  • Each other model ran once, at the end, on a prompt that was tuned for Gemini.

We had no true holdout. The golden cases grew while we tuned the prompt against them. Every improvement we measured was partly an improvement in fitting our own test.

What the scorer actually rewarded

Next, we re-scored the saved answers. The scorer checked only the first tool call. That rewarded one habit: acting at once.

All six of Haiku’s “failures” were cases where it read the record first or asked a clarifying question. In one case, Gemini passed by guessing a required field and inventing a description. The other models correctly asked the user.

Scoring Gemini 3.1 Flash-Lite Claude Haiku 5.5
Old scorer 92.5% 88.7%
Fair scorer, same cases 94.3% 98.1%
36 unseen holdout cases 91.7% 88.9%
All 89 cases, paired 93.3% 94.4%
Discordant pairs 3 vs 2 on all 89 cases: a statistical tie.

With the fair scorer, the order flips. Most of the gap came from the scorer, not from the models.

Three rules we use now

1. Fix the scoring rules before you re-score. We wrote two general rules and applied them to every model: “look up first” and “ask when a required input is missing”. A lookup only counts if it reads the exact record that the case is about. A question only counts on cases where an input is really missing. Refusal cases stay strict.

scorers.tsthe frozen rule set, from the eval suite
function isLookupFirst(expected: CallExpected, output: McpToolsOutput): boolean {
  const ids = output.toolName ? LOOKUP_IDS[output.toolName] : undefined;
  if (!ids || output.toolName === expected.tool || !output.args) return false;
  const args = output.args;
  return ids.every(
    (key) => key in expected.args && deepEqual(expected.args[key], args[key])
  );
}

function isClarifyingQuestion(expected: CallExpected, output: McpToolsOutput): boolean {
  return (
    expected.clarifyOk === true &&
    output.toolName === null &&
    (output.text ?? '').includes('?')
  );
}

function acceptedAlternative(expected: CallExpected, output: McpToolsOutput): string | null {
  if (isLookupFirst(expected, output)) return 'lookup-first';
  if (isClarifyingQuestion(expected, output)) return 'clarified';
  return null;
}

2. Write holdout cases before you see any output. We wrote 36 new cases. A separate reviewer checked them for hints that leak the answer. Then we froze them in a commit.

I did not change that rule after seeing the answers, because doing so would be overfitting again.

3. Compare in pairs, and report each set separately. Golden, tuning and holdout results each get their own row. A single blended number hides exactly the problem we had.

Before you trust an eval

Count recordings per model. Check what the scorer rewards. Keep a holdout set that nobody tuned on. If one cheap model wins everything, suspect the eval first.

What we shipped

We did not crown a winner. We split the roles. Gemini keeps the classification and generation jobs. Claude Haiku 5.5 runs the assistant agent that can change data, because there “ask before you guess” matters most.

The whole fairness study cost about $1.35 in model calls. Shipping the wrong model would have cost much more.

For the full model comparison that came before this study, read We compared 23 LLMs on our own evals. If you want an eval that you can trust before you choose a model, see how we run evals.

Tadej Polajnar

Founder of TianSphere. Builds agents, eval harnesses and MCP servers for SaaS products, from Hong Kong.

Contact

Start a project.

Tell us about your product and where you want AI to help. We reply within one working day.

Or email us directly at [email protected]

Reply within 1 working day

We use your details only to reply. Privacy →