Why LLM Evaluations Keep Failing: Guarding Your Decisions with Golden Sets
LLM evaluations often produce conclusions that don't hold up. Rankings shift month to month, social media hype distorts judgment, and general-purpose benchmarks rarely reflect what actually matters for a specific business. This article explains why LLM evaluation keeps failing and shows how to build an evaluation system that is both clear about capabilities and reliable enough to guard real decisions. It covers a three-layer evaluation framework (capability, service, business), how to build and maintain a golden dataset, how to quantify uncertainty with sample sizes and confidence intervals, how to evaluate long-horizon agent tasks, how to route across model tiers to control cost, and how to govern models in production through canary releases and regression gates. The guiding principle throughout: the strength of a conclusion must never exceed the strength of its evidence.
Introduction: What an “Apology Table” Revealed About Evaluation
A semiconductor and AI analysis firm published a public “apology table.” As a set of checkmarks, it listed the mistakes it had made in earlier negative judgments about a series of large models:
- It had only read messages reposted on social platforms;
- It had been persuaded by the people around it that the model generation “was already done for”;
- It had not read the officially published model documentation.
The most telling part was the last action they took: instead of retracting the whole article, they struck out a single word indicating a completed state from the original headline. The verdict “already done for” became “this time they really did build something.”
What made this judgment miss the mark was not that the conclusion was too aggressive, but the reasoning behind it:
- Thin evidence: a few social media fragments were enough to support a claim about an organization’s R&D capability.
- Overreach in attribution: issues like talent attrition and internal compute allocation are organizational variables. Extrapolating them linearly onto product capability skips the most critical link—what the team can actually produce under existing resource constraints.
- Sample too small: drawing a conclusion about a curve that is still rising from a brief window has no statistical meaning to begin with.
What’s worth borrowing from this discussion for developers is not the conclusion itself, but its methodological lesson: judgments about model capability must be backed by a traceable, reproducible, regression-capable evidence chain. This article builds around that evidence chain, discussing how to construct an evaluation system that both reveals capabilities clearly and holds the decision baseline.
Part 1: Three Root Causes of Evaluation Failure
1.1 Information Bias: Reading Summaries, Not Source Material
Discussions on social platforms have the typical characteristics of high reach, high emotion, and low context. A few extreme cases are easily amplified into an overall impression, while carefully designed demos can mask real weaknesses.
By contrast, model documentation, release notes, and independent third-party leaderboards are far denser in information and easier to trace. But even these can only prove “how a model performs under a certain dataset and scoring method,” not “how it performs in your business.”
1.2 Single-Point Judgment: Treating a Ranking at One Moment as a Long-Term Trend
The capability curve of large models has three characteristics:
- Fast iteration—capability tiers can shift within a month or two;
- Non-linear—improvements in architecture, data, and training methods often bring step changes;
- Multi-dimensional—reasoning, code, multimodal, long context, and tool calling each evolve on independent schedules.
On such a curve, being behind at a given moment only indicates a gap in that dimension; it does not mean the gap will persist.
Organizational information also decays. Changes in personnel and compute allocation must pass through training, evaluation, and release before they reach the product, and both the timing and magnitude are hard to estimate precisely. On top of that, product-form improvements—render speed, context length, whether streaming output is supported—often show up before underlying capability does. For this reason, public information can serve only as an early-warning signal, not a substitute for hands-on measurement.
1.3 Goal Misalignment: Using a General Leaderboard to Decide a Business Scenario
General leaderboards measure average performance across a broad distribution, while a business cares about stable performance on specific tasks. The correlation between the two is often limited. Common mismatches include:
- Leaderboard inputs are usually single-turn question-and-answer prompts, whereas real business interactions are mostly multi-turn and context-dependent;
- Tasks are not calibrated against business samples, so the difficulty distribution doesn’t match production traffic;
- Scoring looks only at whether the final answer is correct, ignoring real constraints like format compliance, tool-call paths, cost, and latency;
- Different leaderboards vary in scoring method, sampling parameters, and prompt templates, so scores are not directly comparable.
Part 2: Building a Three-Layer Evaluation Framework
To make a conclusion stand up, the first thing to settle is “at which layer you are drawing the conclusion.” Split evaluation into three layers, each answering a different question.
| Layer | Question it answers | Main methods | Typical metrics |
|---|---|---|---|
| Capability | Where is the ceiling of the model itself? | Public leaderboards + own task sets | Accuracy, score, capability coverage |
| Service | Does the current endpoint meet engineering constraints? | Contract testing, load testing, stability testing | Success rate, P95 latency, error rate, quota headroom |
| Business | Does it actually improve business outcomes? | Shadow traffic, canary experiments | Human adoption rate, rework rate, conversion rate, cost |
The three layers should be gated top-down. If the capability layer fails, there’s no point entering the service layer; if the service layer is unstable, business-layer gains can’t materialize either.
Part 3: The Golden Set—The Foundation of the Evaluation System
Public leaderboards are good for “understanding external coordinates,” but decisions need “your own coordinate system.” The golden set is a self-built evaluation benchmark, and it should satisfy five principles:
- Representative: samples are drawn in stratified fashion according to real traffic structure, covering the main business types, difficulty tiers, and edge cases, with fixed weights for each tier.
- Contamination-resistant: use only new cases generated after a cutoff date, or proprietary non-public data; periodically rotate some cases to avoid the evaluated subject “memorizing the answers.”
- Decidable: prefer tasks with a clear ground-truth answer or programmatic verification; for those that genuinely require subjective judgment, use unified scoring rubrics, with multiple raters scoring independently and then aligning.
- Segmentable: tag each case with difficulty, type, and labels, so you can pinpoint local regressions like “overall scores rise but a critical scenario degrades.”
- Manageable: store with versioning, attach a reason to every change, and keep the size within a range that sustainable manual review can cover. Large-volume regression can run automatically, but hard cases close to the business still need human sign-off.
3.1 An Illustrative Evaluation Scaffold
The skeleton below chains golden-set cases into a reproducible evaluation pipeline. It separately records quality, latency, and token consumption, and it retries and falls back on call exceptions to keep network fluctuations from polluting results.
import jsonimport timeimport statisticsfrom dataclasses import dataclass, asdictfrom typing import Any, Callable@dataclassclass Case:case_id: strcategory: str # summary / rewrite / code / tool call ...difficulty: str # easy / medium / hardprompt: strrubric: dict # scoring rubric, to align multiple raters@dataclassclass Result:case_id: strcategory: strdifficulty: strscore: floatlatency_ms: floatin_tokens: intout_tokens: interror: str | None = None# Evaluation entry point; arguments and names are illustrative,# adjust to the protocol of the model service you use.def call_model(prompt: str, model: str, cfg: dict) -> dict:resp = client.chat(model=model, messages=[{"role": "user", "content": prompt}], **cfg)return {"text": resp.text,"in_tokens": resp.usage.prompt_tokens,"out_tokens": resp.usage.completion_tokens,}def judge(case: Case, text: str) -> float:"""Scorer: prefer programmatically verifiable rules;score subjective cases against the rubric."""return case.rubric["scorer"](text)def eval_case(case: Case, model: str, cfg: dict, retries: int = 2) -> Result:last_err = Nonefor _ in range(retries + 1):t0 = time.perf_counter()try:out = call_model(case.prompt, model, cfg)return Result(case.case_id, case.category, case.difficulty,judge(case, out["text"]),(time.perf_counter() - t0) * 1000,out["in_tokens"], out["out_tokens"],)except Exception as e:last_err = etime.sleep(0.5) # exponential backoff can be built on top of thisreturn Result(case.case_id, case.category, case.difficulty, 0.0,(time.perf_counter() - t0) * 1000, 0, 0, repr(last_err))def percentile(values: list[float], p: float) -> float:if not values:return 0.0ordered = sorted(values)idx = min(int(len(ordered) * p), len(ordered) - 1)return ordered[idx]def summarize(results: list[Result]) -> dict:"""Aggregate by category and difficulty, and output P95 latencyand average token consumption."""groups: dict[str, list[Result]] = {}for r in results:groups.setdefault(f"{r.category}/{r.difficulty}", []).append(r)report = {}for key, rows in groups.items():ok = [r for r in rows if r.error is None]report[key] = {"n": len(rows),"success_rate": round(len(ok) / len(rows), 4),"avg_score": round(statistics.mean([r.score for r in ok] or [0.0]), 4),"p95_latency_ms": round(percentile([r.latency_ms for r in ok], 0.95), 1),"avg_tokens": round(statistics.mean([r.in_tokens + r.out_tokens for r in ok] or [0.0]), 1),}return report
This code has four engineering takeaways:
- Default to deterministic output: whenever model calls are involved, set temperature to 0, fix the random seed, and pin the model version, prompt template, and scorer version. Archive the generation config together with the results—otherwise scores from two runs are simply not comparable.
- Cover call exceptions: network fluctuations, rate limiting, and timeouts should all count toward the failure rate, not be silently ignored.
- Record latency and token consumption together: the real cost of an LLM solution is usually driven by token volume, not just the number of calls.
- Segment the output: P95 latency reflects user experience better than average latency; a breakdown by type and difficulty exposes local regressions better than a single total score.
3.2 Seeing the Error Clearly: Sample Size and Confidence Intervals
The size of the golden set determines how trustworthy a conclusion is. The Wilson interval function below can plug straight into the reporting flow above:
import mathdef wilson_interval(k: int, n: int, z: float = 1.96) -> tuple[float, float]:"""Compute the 95% confidence interval for a success rateusing a binomial approximation."""if n == 0:return (0.0, 0.0)p = k / ndenom = 1 + z * z / ncenter = (p + z * z / (2 * n)) / denomhalf = z * math.sqrt(p * (1 - p) / n + z * z / (4 * n * n)) / denomreturn (max(0.0, center - half), min(1.0, center + half))# Example: 30/40 and 31/40 differ by only 2.5 percentage points# in point estimate, but their 95% confidence intervals are# (0.58, 0.89) and (0.61, 0.91), which overlap substantially.print(wilson_interval(30, 40), wilson_interval(31, 40))
When the gap falls inside the confidence interval, it isn’t enough to support a claim that “one option is better.” The situation in the introduction is similar: using a handful of cases to pass a verdict on an entire model generation is essentially mistaking sample noise for signal.
Part 4: Agent Tasks—Three Principles for Evaluating Long-Horizon Work
As models move from “answering questions” to “executing tasks,” the object of evaluation changes too. You need to assess not just the output quality of each step, but the whole task process. Four kinds of capability evaluations are worth building out:
- Tool-call correctness: are arguments extracted accurately, are tool choices reasonable, and can it retry and degrade after an error;
- Long-horizon consistency: after dozens of interactions, does it still remember the constraints and the goal;
- Intermediate artifact quality: does the code pass compilation, tests, and static checks, and is the plan reasonable;
- Stopping and reporting: can it wrap up cleanly once the task is done, rather than getting stuck in a loop or stopping midway.
Each is illustrated below with sample code.
4.1 Tool-Call Evaluation: Compare Against a Reference Call Sequence
def score_tool_call(trace: list[dict], gold_steps: list[dict]) -> dict:"""trace is the actual execution path; gold_steps is the reference path.Compare tool names and key arguments one by one to produce adistribution match ratio and a final success flag."""matched = sum(1 for i, gold in enumerate(gold_steps)if i < len(trace) and trace[i]["tool"] == gold["tool"]and all(trace[i]["args"].get(k) == v for k, v in gold.get("key_args", {}).items()))return {"match_ratio": matched / max(len(gold_steps), 1),"steps": len(trace),"success": bool(trace) and trace[-1].get("status") == "done",}
The reference path is not the only correct route, so the match ratio should be treated as a reference rather than a hard requirement; the primary criterion is whether the task is completed. The generator below synthesizes cases that require multi-step data retrieval, ensuring the regression set has enough long-horizon samples:
from datetime import date, timedeltadef gen_multi_step_cases(seed_date: date, days: int = 90, step: int = 7) -> list[dict]:cases = []d = seed_datewhile d + timedelta(days=step) <= seed_date + timedelta(days=days):cases.append({"start": d.isoformat(),"end": (d + timedelta(days=step)).isoformat(),"expected_answer": (d + timedelta(days=step)).toordinal() - d.toordinal(),})d += timedelta(days=step)return cases
4.2 Intermediate Artifact Verification: Add a “Sandbox” and “Checker” to the Agent
def verify_artifacts(artifacts: dict, sandbox_runner, static_checker) -> dict:"""artifacts holds the artifact type and content; executable artifactsmust run in an isolated sandbox. Acceptance depends on the artifacttype: code must run, text must parse, files must have the key fields."""checks = {"parse": True, "lint": [], "exec": None}if artifacts["type"] == "code":lint = static_checker(artifacts["content"])checks["lint"] = lint["violations"]if lint["passed"]:res = sandbox_runner(artifacts["content"], timeout_s=30)checks["exec"] = {"passed": res.exit_code == 0, "output": res.stdout[-2000:]}elif artifacts["type"] in ("json", "csv", "sql"):checks["parse"] = artifacts.get("schema_valid", False)return checks
Executable artifacts must run in a container or sandbox with resource limits. Evaluation sets inevitably mix in untrusted content, and the agent often holds data-access credentials. Without isolation, a single evaluation run can cause real damage.
4.3 Cost and Recovery: What Really Determines Whether It Can Ship
def score_agent_run(trace: list[dict], budget: dict) -> dict:tokens = sum(s.get("tokens", 0) for s in trace)tools = sum(1 for s in trace if s["kind"] == "tool")errors = sum(1 for s in trace if s["kind"] == "tool" and s.get("error"))recovered = sum(1 for i, s in enumerate(trace)if s.get("error") and any(not t.get("error") for t in trace[i + 1:]))return {"success": bool(trace) and trace[-1].get("status") == "done","steps": len(trace),"tool_calls": tools,"tool_error_rate": round(errors / max(tools, 1), 4),"recovery_rate": round(recovered / max(errors, 1), 4),"within_budget": tokens <= budget.get("max_tokens", 10**9)and len(trace) <= budget.get("max_steps", 10**9),}
When evaluating agent capability, none of these three questions can be skipped:
- Can the model complete the task;
- Is it within budget;
- Can it recover on its own after an error.
Part 5: The Speed–Intelligence Trade-off: Spend Compute Where It Counts via Routing
The three models referenced earlier can be understood roughly as follows:
- one focused on speed and cost, suited to high-frequency tasks like writing, formatting, and batch extraction;
- one oriented toward complex reasoning and long-horizon tasks;
- one in the middle, seeking a balance between capability and cost.
The key to productionizing is this: each tier has its own fit, and what determines overall cost is the scheduling strategy, not the strength of any single model. A practical approach is “task-tiered routing + quality fallback”:
import redef classify_task(text: str) -> str:"""Rule-based routing is illustrative only; production should traina classifier on historical labeled data."""if len(text) < 200 and not re.search(r"(refactor|migrate|root cause|why)", text):return "lite"if re.search(r"(multi-step|ongoing|auto-complete|until.*complete)", text):return "agent"return "pro"ROUTE = {"lite": {"model": "fast-tier", "max_tokens": 1024, "temperature": 0.2},"pro": {"model": "reasoning-tier", "max_tokens": 8192, "temperature": 0.0},"agent": {"model": "reasoning-tier", "max_tokens": 16384, "temperature": 0.0},}def dispatch(prompt: str, verify=None, upgrade_threshold: float = 0.9) -> dict:cfg = ROUTE[classify_task(prompt)]out = call_model(prompt, cfg["model"], cfg)# Quality fallback: if the output fails verification, auto-upgrade to a stronger tier.if verify is not None and verify(prompt, out["text"]) < upgrade_threshold:out = call_model(prompt, ROUTE["pro"]["model"], ROUTE["pro"])out["upgraded"] = Trueout["tier"] = cfg["model"]return out
The routing rules themselves are a model that needs iteration. After accumulating enough traffic, train a small classifier on real task data and decide routing by “expected benefit minus cost.” At the same time, route a fixed percentage of traffic randomly to each tier as a control sample. Otherwise, once the routing policy is live, failure samples from the lower tiers disappear from the data, and the more you optimize, the more biased you get.
Part 6: The Service Layer and Continuous Governance After Launch
6.1 Before Launch: Interface Contracts and Load Testing
No matter how strong the model is, it must hold up at the service layer. Cover at least the following:
- Streaming output: measure time-to-first-byte and full-output latency separately;
- Very long inputs: can it handle inputs near the context limit stably, and how does it degrade gracefully once the limit is exceeded;
- Concurrency and quotas: backoff and queuing strategy under rate limiting;
- Failure fallback: is there a degradation path on timeout and exceptions.
6.2 Canary Release: Validate with a Small Slice, Then Scale Up
import hashlibimport randomdef in_canary(user_id: str, percent: int, salt: str = "v1") -> bool:"""Bucket by user hash: the same user always lands in the samegroup, making effect comparison easier."""h = hashlib.sha256(f"{salt}:{user_id}".encode()).hexdigest()return int(h[:8], 16) % 100 < percentdef rollout(user_id: str, new_cfg: dict, base_cfg: dict, percent: int) -> dict:return new_cfg if in_canary(user_id, percent) else base_cfg
When bucketing, hash a stable identifier like user_id so the same user doesn’t bounce between the new and old configs, which would fragment the experience and add noise to the data.
6.3 Continuous Monitoring: Let Production Data Feed Back into Evaluation
- Core metrics: success rate, P95 latency, input/output token volume, cost per request, human adoption rate;
- Segmented stats: split by business type and model tier to avoid overall averages hiding local regressions;
- Automated alerts: trigger alerts when key metrics cross thresholds;
- Feedback loop: route failed production requests and human corrections back into the evaluation set after de-identification. Updating failure cases is itself an opportunity to harden model behavior—consistent with the “put the problem on the table” spirit mentioned in the introduction.
6.4 Regression Gate: Bake the Standard into the Release Process
Before every model-version switch or prompt change, run a fixed golden set plus differential testing, and only release once results meet the bar:
def gate(report: dict, baseline: dict, rules: dict) -> dict:"""rules looks like {"success_rate": 0.02, "p95_latency_ms": 0.15},meaning the allowed absolute drop in success rate and the allowedrelative rise in P95 latency."""violations = []for group, m in report.items():b = baseline.get(group, {})if m["success_rate"] < b.get("success_rate", 0) - rules["success_rate"]:violations.append(f"{group}: success rate dropped beyond tolerance")if m["p95_latency_ms"] > b.get("p95_latency_ms", 0) * (1 + rules["p95_latency_ms"]):violations.append(f"{group}: P95 latency rose beyond tolerance")return {"passed": not violations, "violations": violations}
The idea behind differential testing is to run the baseline and the candidate on the same set of cases and compare results case by case. It has two benefits:
- It catches overall regressions and also pinpoints the specific cases;
- It provides a quantitative basis for trade-offs like “trading local regression for overall improvement.”
Part 7: Conclusion—The Strength of a Conclusion Cannot Exceed the Strength of Its Evidence
Back to that apology table from the introduction. What it really admitted was not that “some model is strong,” but that “the earlier verdict was made too soon, on too little evidence.” The difference between the two is the difference between an engineer and a commentator.
In practice, this reduces to five principles:
- Evaluate in layers: judge capability, service, and business separately, without conflating them;
- Build your own golden set: it represents the real business distribution and makes conclusions reproducible;
- Weigh process metrics alongside outcome metrics: in agent scenarios, the process often decides whether you can ship;
- Route on demand: spend your strongest compute where it’s needed most;
- Keep regressing: evaluation is not a one-off activity but a standing mechanism bound to the release process.
The model market never lacks opinions; what it lacks is conclusions you can verify repeatedly. Before you’re ready to judge a model with a “already done for” or “this time it really worked,” ask one question first: how many reproducible evaluation cases stand behind that sentence?
