Essay6 min readAll writing

AI Evals for Product Managers: Lessons from Clinical ML

AI evals for product managers, with the rigor of clinical ML: confidence intervals, held-out sets, leakage checks, ceilings and a one-page eval plan.

By

AI EvalsProduct ManagementResearch MethodsLLMs

Most writing on AI evals for product managers explains what an eval is, which grader to use and why the PM should own the definition of "good". Very little of it asks how much a score can be trusted. I have worked on both sides of that question. As an Associate Product Manager at ImagineArt on ChatlyAI, a consumer AI chat product, I worked from product analytics and user feedback. As an AI researcher at the University of Alberta, I evaluated clinical prediction models, and learned to treat a result without an interval and a leakage audit as unfinished. This essay brings the second discipline to the first, and ends with a one-page eval plan a PM can fill in before the next prompt or model change.

What an AI eval is, and what the usual guides leave out

An eval is a repeatable test of an AI system's output. OpenAI's open-source Evals framework describes itself as "a framework for evaluating LLMs and LLM systems", and its README points out that you can build private evals from the patterns in your own workflow. That second part is the one that matters to a product team. Public benchmarks tell you about a model. Your eval tells you about your feature.

The results that rank for this query are mostly vendor blogs, newsletters and paid courses. They cover the vocabulary well: offline and online evals, code-based graders, LLM judges, human review, success criteria. What they rarely cover is the question clinical ML forces on you every time: if you ran this eval again with different cases, would you get the same answer?

I break that question into four parts: interval estimates, held-out data, leakage and ceilings. Each one maps to evaluation methods I used at the University of Alberta, including patient-level bootstrap confidence intervals, patient-disjoint evaluation, leakage audits and seed-noise analysis. None of them needs a statistics degree to ask about.

Lesson 1: a pass rate is an estimate, so give it an interval

When a team says "the new prompt passes 78% of our evals, up from 74%", the natural reading is that the new prompt is four points better. Whether that's true depends almost entirely on how many cases the eval has.

Anthropic's guidance on building evals tells teams to "prioritize volume over quality": more automatically graded questions beat fewer hand-graded ones. The simulation below shows why. Two prompt versions are graded pass or fail on the same cases. Over many cases, the new version is genuinely about four points better. I drew four eval sets at each size and compared the versions with a paired bootstrap, resampling whole cases so each case keeps both of its grades.

# eval_ci.py: synthetic grades only, no real model or user data
import numpy as np


def simulate_grades(n_cases, seed):
    """Pass/fail grades for two prompt versions on the same eval cases.
    Hard cases are hard for both versions, so the grades are correlated.
    Over many cases the old version passes about 73% and the new one about 77%."""
    rng = np.random.default_rng(seed)
    difficulty = rng.normal(size=n_cases)
    p_old = 1 / (1 + np.exp(-(1.4 - 1.5 * difficulty)))
    p_new = 1 / (1 + np.exp(-(1.7 - 1.5 * difficulty)))
    old = (rng.random(n_cases) < p_old).astype(float)
    new = (rng.random(n_cases) < p_new).astype(float)
    return old, new


def paired_bootstrap_diff(old, new, n_boot=5000, seed=1):
    """95% CI for (new pass rate - old pass rate), resampling whole cases
    so each case keeps its pair of grades."""
    rng = np.random.default_rng(seed)
    idx = rng.integers(0, len(old), size=(n_boot, len(old)))
    diffs = new[idx].mean(axis=1) - old[idx].mean(axis=1)
    return np.percentile(diffs, [2.5, 97.5])


for n in (50, 200, 1000):
    for draw in range(4):
        old, new = simulate_grades(n, seed=draw)
        lo, hi = paired_bootstrap_diff(old, new)
        verdict = "better" if lo > 0 else "can't tell"
        print(f"n={n:4d} draw {draw}: old {old.mean():.2f}  new {new.mean():.2f}  "
              f"diff {new.mean() - old.mean():+.3f}  CI [{lo:+.3f}, {hi:+.3f}]  {verdict}")

The output, run with NumPy 2.4.6:

n=  50 draw 0: old 0.60  new 0.68  diff +0.080  CI [-0.080, +0.240]  can't tell
n=  50 draw 1: old 0.68  new 0.86  diff +0.180  CI [+0.040, +0.320]  better
n=  50 draw 2: old 0.74  new 0.74  diff +0.000  CI [-0.160, +0.160]  can't tell
n=  50 draw 3: old 0.70  new 0.78  diff +0.080  CI [-0.060, +0.220]  can't tell
n= 200 draw 0: old 0.67  new 0.79  diff +0.120  CI [+0.055, +0.190]  better
n= 200 draw 1: old 0.76  new 0.79  diff +0.030  CI [-0.040, +0.100]  can't tell
n= 200 draw 2: old 0.74  new 0.76  diff +0.020  CI [-0.050, +0.095]  can't tell
n= 200 draw 3: old 0.76  new 0.79  diff +0.030  CI [-0.040, +0.100]  can't tell
n=1000 draw 0: old 0.76  new 0.78  diff +0.026  CI [-0.007, +0.058]  can't tell
n=1000 draw 1: old 0.75  new 0.78  diff +0.035  CI [+0.001, +0.068]  better
n=1000 draw 2: old 0.72  new 0.75  diff +0.027  CI [-0.007, +0.061]  can't tell
n=1000 draw 3: old 0.72  new 0.78  diff +0.052  CI [+0.021, +0.084]  better

Three things in that output are worth a product manager's attention.

  • Fifty cases can say almost anything. The same four-point improvement showed up as zero in one draw and eighteen points in another. A 50-case eval is a smoke test, not a decision.
  • "Better" can be a lucky draw. At 200 cases, one draw reported a twelve-point gain with an interval that excluded zero. The interval was honest about its own width; the point estimate was the misleading part.
  • Small real gains need large sets. Even at 1,000 cases, a true four-point gain was only distinguishable from no change in half the draws.

It is the same idea I walk through for AUC in comparing two models with DeLong and the bootstrap, applied to a pass rate. The ask is simple: every eval number in a review should come with an interval, and a comparison should come with an interval on the difference.

Lesson 2: keep a held-out set you never tune against

The discipline I learned in clinical ML is that the test set is touched once, at the end. Everything before that happens on training and validation data. LLM product work breaks this rule constantly and without noticing, because the "eval set" is also the set the team iterates on. Someone edits the prompt, reruns the eval, looks at the failures, edits again. After twenty rounds, the prompt has been fitted to those cases, and the pass rate measures how well it memorized them.

The fix costs nothing but discipline:

  • Split the cases. A development set for iteration, where anyone can read the failures. A held-out set that only runs before a release decision, and whose failures nobody reads case by case.
  • Refresh the held-out set. Once its failures have shaped a decision, it starts drifting toward a development set. Add new cases from recent traffic on a schedule.
  • Report both numbers. A large gap between development and held-out pass rates is a sign of overfitting to the eval, the same signal a train-test gap gives in ML.

Lesson 3: audit for leakage before you trust the score

The scikit-learn documentation defines data leakage as information "that would not be available at prediction time" being used when building the model. In medical data, the classic case is the same patient on both sides of the split, which I cover in the data leakage audit checklist. LLM evals have their own versions:

  • Near-duplicate cases. If the development and held-out sets contain the same question in slightly different words, they are one set. Deduplicate before you split.
  • The same user on both sides. Cases pulled from product logs cluster by user. Split by user or conversation, not by message, for the same reason clinical work splits by patient.
  • Examples in the prompt. A few-shot example that also appears in the eval set is the answer key. Check every example against the eval cases.
  • A grader that sees the reference. An LLM judge given the expected answer and a loose rubric can reward surface overlap. Spot-check its grades against human grades before trusting it at volume.

Lesson 4: slice the results and accept ceilings

An aggregate pass rate hides where a feature fails. In the clinical work, combining ECG and clinical text substantially improved cardiovascular outcome prediction, but for rare stroke and bleeding outcomes the results pointed to information ceilings: the inputs carried only so much signal about those outcomes, and a better architecture couldn't add signal that wasn't there.

Product features have ceilings too. If a request is ambiguous enough that two careful humans disagree on the right answer, no prompt will push the pass rate on those cases to 100%. Anthropic's guidance lists "ambiguous test cases where even humans would find it hard to reach an assessment consensus" among the edge cases to include. Include them, label them, and report them as their own slice, so a roadmap doesn't promise a number the task can't support.

Run-to-run noise deserves its own slice as well. In research I ran seed-noise analysis because a model trained twice gives two different scores. An LLM sampled at a non-zero temperature does the same. Run the eval more than once before you call a small change real.

Lesson 5: connect offline evals to the product metrics

An offline eval predicts quality. Product analytics measures what users do with it. On ChatlyAI I implemented end-to-end event tracking from GTM to Mixpanel with real-time dashboards, and synthesized more than 3,000 user feedback points a month into product strategy. Those are the signals an offline eval should be checked against. If the held-out pass rate rises and retention, retries or complaints don't move, either the eval measures the wrong thing or the change didn't matter to users. I describe what moves those numbers in the AI features that retain users.

The one-page AI eval plan

This is the template I'd ask for before any prompt, model or retrieval change goes into a release review.

Field What to write The question it answers
Decision The change and the ship or no-ship rule What will this eval decide?
Success criteria What a pass means, per case type What does "good" look like?
Cases Count, source, dev vs held-out split, dedup and user-level split Is the set big enough and clean?
Grader Code, LLM judge or human; judge agreement with humans Can the grades be trusted?
Result Pass rates and the difference, each with a 95% interval Is the change real?
Slices Ambiguous cases, rare intents, long inputs, repeat runs Where does it fail, and is that a ceiling?
Live check The product metric expected to move, and by when Did users notice?

How to apply this next week

Pick the eval your team trusted most in the last release and ask three questions about it. How many cases did it have, and what was the interval on the difference? Has anyone tuned a prompt while looking at its failures? Could the same user, question or example appear on both sides? If any answer is "I don't know", that is the first thing to fix, before adding another grader or another dashboard.