LLM Evaluation Design: How to Build Benchmarks That Distinguish Models
An LLM benchmark can produce nearly identical scores even when the models differ substantially in capability. This article explains how to avoid ceiling and floor effects through difficulty tiers, multi-step constraints, automated scoring, blind review, repeated sampling, and confidence intervals. It also shows how to measure process quality alongside correctness and cost, turning evaluation results into practical model-selection and routing decisions.
1. A Typical Evaluation Failure: 80 Calls and “Almost a Tie”
Consider an experiment that compares two general-purpose LLMs from different capability tiers through the same chat interface. Each model receives the same prompts for 20 tasks, with two runs per task: 80 calls in total.
The tasks cover mathematical reasoning, Chinese-language writing, hallucination and honesty, instruction following, code generation, and information extraction. Objective tasks are scored automatically with scripts. Subjective tasks are compared by human reviewers, with another general-purpose model assisting the analysis.
The procedure looks reasonably rigorous. Yet the conclusion is that “the models are almost tied on correctness; the difference is mainly in detail and depth.”
A review of the questions reveals the real problem: most are so basic that both models consistently answer them correctly. The clearest difference is price—the higher-tier model costs roughly four times as much per call as the everyday-tier model.
This does not mean the models have identical capabilities. It means the benchmark has lost its ability to distinguish them.
When every task falls within the models’ shared capability range, the evaluation can establish whether they meet a minimum standard, but not how high their capabilities extend. This is a ceiling effect. Its counterpart is the floor effect: tasks are so difficult that every model fails, producing equally uninformative results.
2. Discrimination Should Come Before Aggregate Scores
In classical test theory, an item’s discrimination refers to its ability to distinguish higher-ability test takers from lower-ability ones.
For LLM evaluation, a simple operational approach is to examine the distribution of pass rates across models for each task. If every model’s pass rate is close to either 1 or 0, the task should be removed from comparative scoring or rewritten.
def discrimination_report(records, lo=0.15, hi=0.85):"""records: [{case_id, model, score}], with score normalized to 0–1"""by_case = {}for r in records:by_case.setdefault(r["case_id"], {})[r["model"]] = r["score"]keep, drop = [], []for cid, scores in by_case.items():vals = list(scores.values())spread = max(vals) - min(vals)mean = sum(vals) / len(vals)# All-pass, all-fail, or minimal cross-model differences# are treated as insufficient discrimination.if lo <= mean <= hi and spread >= 0.2:keep.append((cid, round(mean, 3), round(spread, 3)))else:drop.append((cid, round(mean, 3), round(spread, 3)))return keep, drop
This screening rule can expose the problem immediately. If 15 of 20 tasks fall into drop, the claim of a “tie” is not supported by the full benchmark. Only five tasks provided useful comparative evidence.
3. Designing Tasks That Separate Models
Use Difficulty Tiers, Not Just Harder Questions
Divide tasks into three tiers based on expected pass rates:
- Baseline: Above 0.9, used to verify minimum usability.
- Discriminative: Between 0.3 and 0.7, the main range for distinguishing capabilities.
- Challenge: Below 0.3, used to explore capability limits and failure modes.
Discriminative tasks should account for more than half of a useful comparative benchmark. Baseline tasks are not wasted effort: they help detect regressions. However, they should not drive ranking conclusions.
Prefer Long Constraint Chains to Obscure Knowledge
Higher-tier models often show their advantage not on isolated facts, but in maintaining constraints across multiple steps. A task with 8–12 requirements that must all be satisfied can be more revealing than a single obscure question.
Examples include:
- Mathematics: Multi-step word problems that require correct intermediate results and intermediate quantities that can be independently checked.
- Code generation: Requirements covering boundary conditions, error paths, complexity limits, and naming conventions.
- Information extraction: A supplied schema with at least two levels of nesting, plus an explicit requirement to mark missing fields as
nullrather than invent values. - Instruction following: A mixture of required actions, prohibited actions, word-count limits, and output-format constraints.
Test Hallucination and Honesty With Unanswerable Questions
Ask questions with false premises or questions whose answers are absent from the supplied material. Observe whether the model declines to answer, identifies the faulty premise, or fabricates an answer.
These tasks often produce near-binary outcomes, so they need an explicit scoring rubric:
- Full credit for correctly declining to answer or identifying the problem.
- Half credit for partially acknowledging uncertainty.
- Zero credit for confident fabrication.
Manually Screen Model-Generated Questions
Using a general-purpose model to generate questions in bulk is efficient, but it often produces tasks that look sophisticated while remaining basic.
A practical workflow is to generate three to five times as many candidate tasks as needed, run a small pilot with one attempt per model, remove tasks that all models pass or fail, and then proceed to the formal evaluation.
4. Scoring: Automate Objective Tasks and Blind Subjective Reviews
Objective tasks should be scored by scripts to reduce the bias introduced by visual inspection.
For mathematics, compare both final answers and intermediate quantities. For code, run unit tests. For extraction, validate the output against the schema.
import json, jsonschemadef verify_extraction(raw: str, schema: dict) -> float:try:obj = json.loads(raw)jsonschema.validate(obj, schema)return 1.0except Exception:return 0.0def verify_code(raw: str, tests) -> float:passed = sum(1 for t in tests if t(raw))return passed / len(tests) if tests else 0.0
For subjective tasks, such as Chinese-language writing, avoid assigning a single score based on overall impression. Instead, use a rubric with assessable dimensions:
- Structural completeness.
- Factual consistency.
- Terminology accuracy.
- Redundancy.
- Number of instruction constraints satisfied.
Blind review is essential: remove model identifiers, randomize output order, and have at least two reviewers score independently. Measure agreement using a statistic such as Cohen’s kappa.
Agreement below 0.6 is a warning that the rubric may be ambiguous. Revise the rubric rather than simply collecting more samples.
5. Repeated Sampling and Statistical Significance
Two runs per task and 80 calls in total do not provide enough evidence for strong claims such as “the models are tied” or “one model dominates.”
Generative outputs are stochastic. A difference observed in a single run may be noise.
Recommended practices include:
- Repeat each task three to five times. Compare pass rates rather than individual outcomes.
- Use bootstrap confidence intervals for score differences. If the interval includes zero, do not claim that one model is better.
import randomdef bootstrap_diff(a, b, n=2000):diffs = []for _ in range(n):sa = [random.choice(a) for _ in a]sb = [random.choice(b) for _ in b]diffs.append(sum(sa)/len(sa) - sum(sb)/len(sb))diffs.sort()return diffs[int(0.025*n)], diffs[int(0.975*n)]
- Keep sampling parameters, such as temperature, fixed. Also test multiple prompt templates that express the same task, so the conclusion does not depend on one particular wording.
6. Turn “More Detailed” Into a Measurable Quality Dimension
The most useful observation in the opening experiment is that the difference lies in the details. That observation can be translated into engineering metrics.
For each task the model passes, add a process-quality assessment:
| Dimension | Observable signals |
|---|---|
| Boundary coverage | Handles empty input, extreme values, and invalid input |
| Self-checking | Provides verification, complexity analysis, or testing suggestions |
| Redundancy control | Limits irrelevant setup and repeated statements |
| Constraint retention | Continues satisfying initial constraints near the end of long outputs |
| Maintainability | Provides appropriate naming, structure, comments, and error handling |
Score each dimension from 0 to 2, then report correctness and process quality as a two-dimensional matrix.
Even when correctness scores are tied, this can support a decision-oriented statement such as: “The everyday-tier model achieves 85% of the process-quality score at 60% of the cost.”
The point is to make “more detailed” or “more thorough” measurable rather than leaving it as an impression.
7. Put Cost in the Same Table as Quality
A fourfold price difference means the evaluation must include an economic assessment.
Estimate cost per task using:
unit price × (input tokens + output tokens) × number of attempts
Plot a cost–quality curve with normalized cost on the horizontal axis and weighted score on the vertical axis.
A common engineering outcome is tiered routing: assign baseline tasks to the lower-cost model and send discriminative and challenge tasks to the more capable model. This preserves access to higher-quality results while keeping total cost under control.
8. A Reusable Evaluation Skeleton
def evaluate(client_low, client_high, cases, repeats=3):result = {}for name, client in (("low", client_low), ("high", client_high)):recs = []for c in cases:for _ in range(repeats):out = client.chat(c.prompt, temperature=0.7)recs.append({"case_id": c.id, "model": name,"score": c.verify(out)})result[name] = recskeep, drop = discrimination_report(result["low"] + result["high"])return {"effective_cases": keep, "invalid_cases": drop,"detail": result}
9. Evaluation Checklist
- Inspect discrimination before scores. Exclude all-pass and all-fail tasks from ranking conclusions.
- Use long constraint chains instead of obscure questions. They are better suited to revealing differences in reasoning depth.
- Test honesty with unanswerable questions. Test instruction following with countable, explicit constraints.
- Use rubrics, blind review, and agreement checks for subjective tasks.
- Repeat tasks three to five times and report confidence intervals. If the interval includes zero, do not claim superiority.
- Score process quality separately. Make differences in thoroughness measurable.
- Report cost and quality together. Aim for a routing strategy, not simply a single winner.
The purpose of LLM evaluation is not to declare a champion. It is to turn vague impressions into reproducible engineering metrics that support regression testing, model selection, and routing.
When the questions themselves cannot distinguish the models, even a sophisticated scoring script cannot rescue the conclusion.
