Learn
Evaluations & benchmarks

How to Build Your Own Custom Eval Suite for Reasoning Models

The short answer

A custom eval suite is a small, versioned set of tasks drawn from your own distribution, each with a grader you trust. Build it from real traffic, logs and repository history; keep it private; measure it with paired comparisons and confidence intervals. Two hundred well-chosen tasks will predict production behaviour better than any public leaderboard.

On this page

Why you need a private suite

Public benchmarks answer a question about the average model on the average task. You have a specific question about your model on your tasks, and the two have been diverging for years. The popular benchmarks are saturated, contaminated or both, and the ones that are neither tend to measure a distribution nobody actually ships against.

A private suite fixes the distribution problem and the contamination problem at once. The tasks come from your own traffic, tickets and repository, so they are drawn from the distribution you care about. They have never been published, so no model has memorised them, and their scores mean what they appear to mean. The cost is that you have to build and maintain them, which is real work but bounded: a usable suite is a week of effort and an hour a month thereafter.

The suite also becomes an organisational asset. It is the thing that lets you say, with evidence, that a prompt change helped, that a model upgrade is safe, or that a fine-tune did not generalise. Without it, every such decision is an argument from vibes and a handful of cherry-picked examples.

Start from the decision the suite must support

An eval is a measuring instrument, and instruments are designed against a question. Before collecting a single task, write down the decisions the suite will inform. Most teams need three or four, and they impose different requirements.

Model selection asks whether model A is better than model B for your workload. It needs breadth, so tasks should cover every task family you serve, and it needs enough statistical power to separate models that are close. Regression gating asks whether a change broke something that used to work. It needs coverage of the specific behaviours you have already fixed, and it needs to run fast enough to sit in CI. Prompt iteration asks whether a wording change helped. It needs sensitivity: many tasks where the current prompt is near the decision boundary, and a paired design so noise cancels. Fine-tune acceptance asks whether training generalised beyond its training set. It needs a held-out slice that was never in the training data, and preferably a slice from a later time period.

Writing these down prevents the most common failure: a suite assembled from whatever was easy to collect, which then measures something nobody needed to know and gets ignored.

Where tasks come from

The best source is production traffic, with consent and redaction handled properly. Sample real requests, strip personal data, and keep the input plus the output your system actually produced, including the ones users complained about. Complaint-derived tasks are gold because they encode a real failure your current system has, which makes them sensitive to fixes.

The second source is version control. Reverted commits are natural bug tasks: the revert tells you the change was wrong, and the surrounding tests tell you why. Pull requests that fixed a bug and added a regression test give you a task, a reference patch and a grader in one artefact. Issue trackers paired with merged fixes work the same way, and they are the closest private analogue of SWE-bench.

The third source is the people who use the system. Ask support engineers and domain experts to write down twenty cases they see repeatedly, with the correct answer. This produces small numbers of high-value tasks that no log scrape would surface, particularly for edge cases and refusals.

Aim for 100 to 300 tasks in the first version, stratified across task families in proportion to production volume, with a deliberate oversampling of the families that cause incidents. Do not let one easy family dominate the average; either weight families explicitly or report them separately.

Anatomy of a task

A task is more than a prompt. At minimum it needs a stable identifier, the input as the model will see it, any context or files it is allowed to use, the grading specification, a reference answer where one exists, tags for task family and difficulty, and provenance so a reviewer can find the original case. If the task came from a repository, record the commit hash; if it came from a ticket, record the date, because both affect reproducibility.

Store tasks as individual files in version control, one YAML or JSON document each, rather than rows in a spreadsheet. Individual files make diffs reviewable, let you attach fixtures next to the task, and avoid the silent edits that spreadsheets invite. A task that changes should show up as a pull request with a reason.

Every task should also declare what counts as failure, not just what counts as success. For a code task, does a patch that fixes the bug but breaks an unrelated test count as a fail? For a summarisation task, is a missing caveat a failure or a minor deduction? Writing the failure taxonomy down front-loads the arguments that otherwise happen after the scores are in, when everyone has an incentive to reinterpret the rubric.

Choosing a grader

Graders form a ladder from cheap and objective to expensive and judgemental, and the rule is to climb only as far as the task requires.

Exact match and regex are the bottom rung: good for classification labels, extracted fields, numeric answers and structured output. They are brittle to formatting, so normalise before comparing, and never use them for prose. Schema validation is the next rung: parse the output as JSON, check required keys and types. This catches the most common production failure in tool-calling systems without judging content at all.

Execution-based grading is the rung that matters for code and reasoning with checkable answers. Run the generated program against tests in a sandbox, or compare the final numeric answer to a reference. Execution is objective, but it inherits every weakness of the tests, so the test quality is the real work. Prefer tests written by a human who knew the failure mode over tests generated alongside the task.

Rubric-based grading with a language-model judge is the top rung before human review. It is the only option for open-ended prose, summarisation quality and tone, and it is covered in detail in the companion entry. Treat it as a measurement with bias and variance, calibrate it against human labels, and never let it be the only grader on a task family that matters commercially.

Human review is the reference standard and the most expensive option. Use it to validate the other graders on a sample, not to grade every run. A hundred human-labelled examples per task family is usually enough to estimate how much you can trust the automatic grader.

How many tasks, and how precisely can you measure

The precision of a pass rate is governed by the binomial formula, and the numbers are humbling. With 100 tasks, the standard error at 70 percent accuracy is about 4.6 points, so a 95 percent interval spans roughly plus or minus 9 points. With 300 tasks it narrows to about plus or minus 5.2 points; with 1,000, to about plus or minus 2.8.

That sounds hopeless until you remember that most comparisons are paired. If you run both models on the same tasks and count only the tasks where they disagree, task difficulty cancels and the relevant quantity is the discordance rate. With 200 tasks and a discordance rate around 20 percent, a paired test has 80 percent power to detect a difference of roughly 9 points. At 500 tasks the detectable difference falls to about 5.6 points; at 1,000, about 4 points. Detecting a 2-point improvement honestly needs thousands of tasks or a task set deliberately enriched with items near the decision boundary.

Several practical rules follow. Never report a difference smaller than your interval. Run at least three seeds when sampling is enabled, and report the spread rather than the best run. Use McNemar's test on paired outcomes rather than comparing two independent proportions, because it is far more sensitive. And when a change looks like a two-point win on 150 tasks, treat it as a tie and go and look at the individual flips: often three tasks changed, two of them for reasons unrelated to the change.

Keeping the suite clean

A private suite loses its value the moment it leaks into training or prompting. Keep it in a repository with restricted access, hash the contents so you can detect edits, and add a canary string to any task that might be pasted into a prompt during debugging. If you fine-tune, exclude the suite from the training data by identifier and check for near-duplicates, because a paraphrase of an eval task is still contamination.

Hold out a slice. Even a private suite gets used for iteration, and iteration overfits. Keep 20 percent of tasks in a locked set that is run only for acceptance decisions, never for prompt tuning. Rotate tasks out when they stop discriminating, either because every model passes them or because the product no longer does that kind of work.

Date-stamp everything. A suite built in January measures a product that existed in January; by July the traffic has shifted and the suite is measuring history. Review quarterly, retire stale tasks, and add new ones from recent incidents. The suite should look like the last six months of your product, not the last three years.

Metrics that survive contact with a product

Accuracy alone is a poor summary. Report a small dashboard instead, and make the trade-offs visible.

Per-family pass rates are the minimum, because an aggregate hides the family that regressed while another improved. Pass^k, the probability that all k attempts succeed, measures reliability rather than capability and is often the number users feel: a model that succeeds 80 percent of the time on the first try but 40 percent of the time on three consecutive tries is worse in production than its pass@1 suggests. Cost per solved task combines tokens, retries and failures into one number and frequently reorders the ranking. Latency at the 50th and 95th percentile matters for interactive use, and thinking models can spend twenty times more tokens on a task that a smaller model solves instantly.

For code, add diff size and the number of files touched, because a passing patch that rewrites half the module is not equivalent to a three-line fix. For extraction, add field-level precision and recall rather than whole-record accuracy, since one missing field should not zero the task. For prose, add a length distribution and a refusal rate, both of which catch degenerate optimisations that a quality score would miss.

Building the harness

The harness is unglamorous and decides whether the suite is trusted. Run every task in a fresh sandbox with no network access, a wall-clock timeout, and a memory limit, because generated code will occasionally fork-bomb or hang. Pin dependency versions in the image so a task that passed in March still passes in June for the same reason.

Record the full transcript for every run: the exact prompt after templating, the raw output, the parsed answer, the grader's verdict, token counts and wall-clock time. When a score moves, the transcript is how you find out why, and without it you will be reduced to re-running and guessing. Store runs immutably and key them by a hash of the task set, the model version, the prompt version and the harness version, so any number on a dashboard can be reproduced exactly.

Parallelise across tasks but keep each task isolated. Cache model responses keyed by the full request so that re-grading is free and so that a grader change can be evaluated against the same outputs. Log cost per run; a suite that costs fifty dollars a run will be run rarely, and a suite that is run rarely is not a gate.

Validating the eval itself

An eval is software, and it has bugs. The highest-value hour you will spend is checking that it measures what you think.

Start with known-bad outputs. Take twenty tasks and hand-write obviously wrong answers: an empty response, a plausible but incorrect number, a correct answer in the wrong format. Every one should fail. If any passes, the grader is too lenient, and every score the suite has ever produced is suspect.

Then check agreement with humans. Sample a hundred graded outputs, have a domain expert mark them independently, and compute agreement. For binary pass or fail, Cohen's kappa above 0.6 is workable and above 0.8 is good; for scalar rubric scores, Spearman correlation above 0.7 is a reasonable target. Disagreements are more informative than the coefficient: read them, because they usually reveal an underspecified rubric rather than a careless expert.

Finally, check stability. Run the same task set three times with identical settings. Any task that flips is either non-deterministic in the model or flaky in the grader, and both need fixing before the task can be trusted in a gate.

Operating it

Put the suite in CI and run it on every change to prompts, model version or retrieval configuration. Fail the build on a regression larger than the confidence interval, not on any regression at all, or the gate will cry wolf and get disabled. Report the diff per task family, with links to the transcripts of tasks that flipped, because that is what a reviewer needs to decide whether the change is acceptable.

Keep a baseline. The baseline is a frozen model and prompt combination whose score is recorded alongside every run, so that drift in the harness or the environment shows up as a change in a number that should not move. Re-baseline deliberately, with a note explaining why.

Review the suite quarterly with the people who use the product. Retire tasks that no longer reflect the work, add tasks from recent incidents, and re-check that the graders still agree with human judgement. The suite is a product with users, and like any product it decays if nobody owns it.

Page feedback

Was this helpful?

A quick signal helps improve these notes.

Report a mistake Straight to the lab inbox

Put it to work

See the models, datasets and gateway this lab runs.