LLM Evaluation Pitfalls: Why High Leaderboard Scores Are Hard to Reproduce
Public leaderboards are useful for comparing models, but high scores often fail to reproduce in real workloads because of sampling variance, prompt and tooling differences, benchmark contamination, and task-specific failure modes. This article explains what public benchmarks measure and miss, examines long-horizon agent tasks, repository-level coding, long-context understanding, and native multimodal capabilities, and highlights why complex tasks may look strong while simple tasks fail. It also outlines how to build regression, stress, and adversarial evaluation sets; combine rule-based, human, and model-assisted scoring; track stability and tail risk; and apply engineering controls such as structured outputs, checkpoints, multi-candidate voting, and version management.
1. Introduction: Why impressive leaderboards can disagree with real usage
Every so often, a new model is released. Some pursue scale with trillion-parameter MoE architectures, others highlight million-token context windows, native visual understanding, or long-horizon agent capabilities. The numbers published by each vendor look strong, and discussions often split quickly into two camps: one believes the model has entered the top tier, while another is disappointed after using it.
There is little doubt that a top tier exists. However, “entering the top tier” and “consistently delivering top-tier performance in every scenario” are two different things. What really affects the conclusion is often not the model itself, but how we test it and under what conditions we use it.
A more important phenomenon is that the upper bound of model capability can be high, while the lower bound is not raised at the same time. For example, the same task may produce different results across multiple runs; complex tasks may be handled impressively most of the time, while simple tasks may occasionally produce irrelevant answers. This is not contradictory. It is the joint result of the probabilistic nature of generative models, error accumulation in long-horizon tasks, and limitations of evaluation methods.
2. What public benchmarks measure, and what they miss
The value of public benchmarks is that they provide a unified ruler and make horizontal comparison easier. However, they have several inherent biases.
Distribution bias. Benchmark questions are carefully selected, have unique answers, and use clear scoring rules. Real requests are full of long tails, ambiguity, and underspecified context. For example, “Help me see why this code fails in production.” Users often do not provide full context or acceptance criteria, and the model must make reasonable assumptions with incomplete information.
Statistical bias. Leaderboard scores are highly sensitive to sampling parameters, prompt templates, and tool configurations. Averaging multiple samples for the same task can differ by several, or even more than a dozen, percentage points from a single-sample result. Looking at only one number compresses a probability distribution into a single point.
Contamination bias. Once evaluation data is public, it may enter the training corpus of later models in some form. A high score may come from memorization rather than reasoning. Dynamically updating questions and keeping private test sets can mitigate this issue to some extent, but cannot fully eliminate it.
Reproducibility bias. Different teams may use different context lengths, tool sets, and system prompts when re-testing. As a result, a gap of several percentage points between reproduced results and officially reported values is normal. It is not appropriate to conclude directly that a model is “overrated” based on this alone.
A simple formula can summarize this:
Leaderboard score ≈ real capability + sampling noise + prompt and configuration drift + data contamination gain.
The practical goal is to control the last three terms, rather than treating the last term as if it were the first.
3. Four capabilities that are closer to real productivity
3.1 Long-horizon tasks: staying on track across multiple steps
Real business work is rarely a single question and a single answer. Fixing defects, diagnosing failures, and moving data across systems often require dozens of operations: reading files, running commands, checking logs, modifying code, and verifying the result. Industry evaluations for terminal-operation agents and browser-retrieval agents are designed to test this kind of capability.
The core of long-horizon tasks is not single-step accuracy. It is whether, after each step, the model still knows where it is, what the goal is, and what remains undone. In many real-world workflows, models can fall into ineffective repetition: executing the same command repeatedly, forgetting previously rejected approaches, or continuing after the task is already complete.
Example code 1: task-structure alignment check
import jsonfrom difflib import SequenceMatcherdef normalize(text: str) -> str:"""Remove whitespace and punctuation differences to reduce surface-level noise in alignment checks."""return "".join(ch for ch in text.lower() if ch.isalnum())def check_alignment(output: dict, plan: dict) -> dict:"""Check whether the actual execution results match the plan structure: number and order of steps."""expected = [normalize(s["desc"]) for s in plan["steps"]]actual = [normalize(s["desc"]) for s in output["executed"]]# Use the planned steps as the baseline, match the actual execution sequence, and preserve order constraints.blocks = SequenceMatcher(None, expected, actual, autojunk=False).get_matching_blocks()matched = sum(b.size for b in blocks)return {"missing": [plan["steps"][i]["desc"]for i in range(len(expected)) if i >= matched],"extra": len(actual) - matched,"alignment": round(matched / max(len(expected), 1), 3),"order_ok": [b.size for b in blocks] == sorted([b.size for b in blocks], reverse=True) or matched == len(expected),}plan = {"steps": [{"desc": "Locate the error stack"},{"desc": "Read relevant source code"},{"desc": "Reproduce the issue"},{"desc": "Submit a fix and verify"},]}# output = {"executed": [...]} # Step records actually executed by the model# print(check_alignment(output, plan))
Plan alignment can answer a key question: does the model look busy while actually going in circles? This metric cannot be captured by single-turn Q&A evaluation, but it directly determines whether long-horizon tasks can be deployed.
3.2 Complex programming: from completing the next line to maintaining a repository
Coding is one of the easiest capability areas to quantify for general-purpose models. Automatically generated test cases can directly determine correctness without subjective judgment. However, coding capability can be divided into multiple levels:
| Capability level | Typical task | Main difficulty |
|---|---|---|
| Fragment completion | Complete a function | Syntax and local logic |
| Single-file implementation | Implement an algorithm from comments | Edge-case handling |
| Repository-level modification | Fix defects or add features across files | Dependencies, implicit conventions |
| Continuous debugging | Iteratively fix issues based on errors | Error localization, state recovery |
Repository-level tasks create the biggest gap. They require the model to understand module dependencies, follow existing code style, and anticipate how changes affect callers. Industry program-generation benchmarks and repository-level coding benchmarks fall into this category.
It is worth emphasizing that near-top scores on coding and agent benchmarks demonstrate substantial progress in long-horizon reasoning. They do not mean that a model will outperform others in every scenario.
3.3 Long context: a large window does not mean effective use
The context window has expanded from a few thousand tokens to the million-token level, one of the most important engineering advances in recent years. However, window capacity is a necessary condition, not a sufficient condition. Evaluating long-context capability requires at least three dimensions:
- Recall: Can the model accurately locate target information in a long text?
- Synthesis: Can it connect multiple clues scattered across different parts of a document?
- Noise resistance: Can it maintain judgment when faced with irrelevant, repetitive, or contradictory content?
Industry research generally finds that models underuse information in the middle of the context compared with information at the beginning and end. This is often called “lost in the middle.” In addition, longer inputs mean higher latency and higher cost. Therefore, context engineering should not be about stuffing everything into the prompt. It should use retrieval and summarization to place truly relevant content in the right positions.
3.4 Native multimodal: helping models understand interfaces
Native visual capability allows models to read screenshots, UI elements, and charts directly instead of relying on external parsing. It is especially valuable in two types of scenarios:
- Visual information extraction: Reconstructing page structure from design mockups or locating button positions from screenshots.
- Joint text-image reasoning: Combining screenshots and code to determine which layer a page issue comes from.
However, multimodal capability is sensitive to input quality. Resolution, compression, and cropping methods can all affect recognition results. Input specifications should be fixed during evaluation; otherwise, comparison conclusions may be unreliable.
4. Capability asymmetry: why complex tasks can be impressive while simple tasks fail
If only total leaderboard scores are compared, it is easy to conclude that one model is comprehensively superior. However, when broken down by capability dimension, the picture becomes more nuanced.
Strengths on verifiable tasks. Coding, math, and terminal-operation tasks have objective answers. During post-training, verifiable-reward methods can give models clear feedback across many attempts, making capability improvements more direct.
Hard-to-quantify capabilities. Daily conversation, writing style, instruction following, and answer quality depend heavily on subjective preferences. These capabilities are difficult to score automatically, receive weaker optimization signals, and often show uneven performance.
Simple tasks are overprocessed. The stronger a model becomes, the more likely it is to “think one step too far.” If a user wants a short conclusion, it may provide a long analysis; if only JSON is requested, it may still include explanatory text. This is typical overthinking, not a lack of capability.
The conclusion is clear: model selection should be evaluated separately by business scenario, rather than covered by a single “strongest” label.
5. High ceiling, low average: three mathematical reasons
5.1 Long-horizon tasks are multiplication, not addition
Assume a model has a single-step correctness rate of p, a task contains n independent critical steps, and an error in one step often derails all subsequent steps. The probability of completing the entire chain correctly in one run is approximately p raised to the n-th power:
| Single-step correctness p | 5 steps | 10 steps | 20 steps | 30 steps |
|---|---|---|---|---|
| 99% | 95.1% | 90.4% | 81.8% | 74.0% |
| 97% | 85.9% | 73.7% | 54.4% | 40.1% |
| 95% | 77.4% | 59.9% | 35.8% | 21.5% |
A 97% and a 99% single-step correctness rate may seem only two percentage points apart. But for a 30-step task, the one-shot completion rate differs by about 34 percentage points. This explains a common phenomenon: long-task demos look impressive, but success rates drop sharply after deployment. The engineering response is to shorten the chain and insert verification and recovery mechanisms at key nodes.
5.2 A good average can hide a bad tail
Model output is a distribution, and an average score can hide tail risk. Consider five samples for a task, as shown below:
| Task | Five scores | Average | Worst run | Issue |
|---|---|---|---|---|
| Task A | 90 / 92 / 88 / 93 / 87 | 90.0 | 87 | Stable, ready to deploy |
| Task B | 100 / 20 / 100 / 10 / 70 | 60.0 | 10 | Acceptable average, tail collapse |
| Task C | 100 / 100 / 100 / 100 / 20 | 84.0 | 20 | Best average, but one complete failure |
If only the average is considered, Task C would be chosen first. In production, however, one complete failure can be an incident.
5.3 The distribution changes with input
Model performance is not uniform across different lengths, languages, and task types. When the context approaches the window limit, effective utilization drops. When the input contains mixed formats, such as nested logs, parsing error rates increase. Conclusions measured on one input distribution may fail when applied to another type of request.
6. Building your own evaluation set: from leaderboard scores to business metrics
6.1 Three layers of evaluation sets
Regression set: 100 to 300 high-frequency requests from real business traffic, covering core paths. Run it after every model, prompt, or code change to prevent capability regression.
Stress set: Boundary scenarios such as long tasks, long documents, multi-turn conversations, and nested structured inputs. Used to probe capability limits and failure modes.
Adversarial set: Ambiguous expressions, leading questions, and inputs containing noise or contradictions. Used to test robustness and safety boundaries.
6.2 Scoring: combine three layers
Rule-based scoring. Use objective rules such as unit tests, regular expressions, and JSON Schema validation. This is low-cost and automatable.
Human spot checks. For subjective tasks, define a scoring rubric, have multiple people score independently, and check inter-rater consistency.
Model-assisted scoring. Use a relatively stronger model to score according to a unified rubric. This is suitable for large-scale initial screening. However, scoring preferences and position bias should be considered, and it is best to cross-validate with other scoring methods.
6.3 Metrics: do not look only at pass rate
Stability: Variance and worst score across repeated samples of the same task.
Tail risk: Performance on the worst 5% to 10% of requests. This has the largest impact on availability.
Cost structure: Not just the price of a single call, but also extra consumption caused by correction and retries.
Latency: Focus on P95 and P99, not the average.
Example code 2: evaluation metric calculation
import statisticsdef summarize(runs: list[float], tail: float = 0.1) -> dict:"""runs: a list of scores from repeated runs of the same task, or from multiple similar tasks.This example assumes normalized scores in the 0-1 range: rule-based results, human ratings, or model ratings."""ordered = sorted(runs)n = len(ordered)k = max(1, int(n * tail))return {"mean": round(statistics.mean(runs), 3), # Average performance"stdev": round(statistics.stdev(runs), 3) if n > 1 else 0.0, # Stability"worst": ordered[0], # Worst run"tail_mean": round(statistics.mean(ordered[:k]), 3), # Average score of the worst tail fraction of requests}# Example: scores from 20 consecutive runs of the same taskdemo = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0.6, 0]print(summarize(demo))# {'mean': 0.93, 'stdev': 0.212, 'worst': 0, 'tail_mean': 0.3}
In this example, the average score reaches 0.93, but the two worst runs score 0.6 and 0. The average score of the worst 10% of requests is only 0.3. If those requests happen to fall on critical business paths, they can offset the overall advantage.
Evaluation set size also directly determines the credibility of conclusions. With about 100 tasks, the half-width of the 95% confidence interval for the true pass rate is about 10 percentage points. That means a difference of two or three percentage points between two models may simply be noise.
7. Engineering optimization: turning “occasionally strong” into “reliably usable”
7.1 Constrain output structure
For outputs that machines need to parse, combine structured prompting, automatic validation, and error-carrying retries:
Example code 3: structured output validation and retry
import jsondef strict_json(model, prompt: str, max_retry: int = 3) -> dict:"""Require the model to output only JSON; if parsing or field validation fails, retry with the error message."""last_error = ""for attempt in range(max_retry):full_prompt = promptif last_error:full_prompt += f"\n\nPrevious output failed validation: {last_error}\nPlease output only valid JSON and do not add any explanation."raw = model.generate(full_prompt, temperature=0.2)try:data = json.loads(raw)if not isinstance(data, dict) or "action" not in data:raise ValueError("Missing required field: action")return dataexcept (json.JSONDecodeError, ValueError) as exc:last_error = str(exc)raise RuntimeError("Structured output validation failed repeatedly; escalate to a human or fall back")
7.2 Segmented execution and checkpoints
Break long tasks into stages. Persist each stage’s output to object storage and record state with task identifiers. If interrupted, execution can resume from the latest checkpoint instead of starting over. At key nodes, add independent validation: use rules or another model to review stage outputs. If a problem is found, stop immediately and roll back.
7.3 Multiple candidates and self-checking
For tasks with strong nondeterminism, sample multiple times and select the most stable result using rules or consistency voting. For critical decisions, have the model output its reasoning basis before the final conclusion, making human review faster.
7.4 System prompts and version management
Prompts, sampling parameters, and tool descriptions should all be placed under version control and mapped one-to-one with evaluation results. Only then can teams quickly determine whether online fluctuations are caused by model changes, prompt changes, or data distribution changes.
7.5 Evaluation automation and continuous regression
An evaluation process can be organized as follows:
- Run evaluation tasks on container platforms on demand.
- Archive datasets and results in object storage to form traceable historical versions.
- Collect call logs centrally to enable scenario-based analysis.
- Use monitoring and alerting to continuously track online success rate, latency, and the proportion of abnormal inputs.
Platforms such as Baidu AI Cloud also provide general cloud product categories, including containers, object storage, logging, and monitoring. These can serve as underlying resources for building such evaluation and observability systems, and teams can also implement equivalent capabilities on their existing infrastructure.
8. Common pitfalls
Leaderboard-only view: Treating benchmark scores as direct predictors of business performance.
One-shot conclusions: Drawing conclusions from a single call or a few demos.
Configuration drift: Comparing different models with different context lengths, tool sets, and prompt templates.
Mean-only view: Ignoring catastrophic tail failures, which often carry the highest cost.
Window worship: Believing longer context is always better while ignoring lost-in-the-middle effects, latency, and cost increases.
Version mismatch: Not checking model and prompt versions during re-testing and mistaking normal iteration differences for capability regression.
9. Practical recommendations
Select by scenario. Split business work into categories such as long-horizon automation, complex coding, long-document analysis, and daily Q&A. Evaluate them separately and set separate standards.
Build evaluation sets from business data. Prioritize sampling from real requests. This is closer to your own scenario than any public leaderboard.
Fix the evaluation protocol. Unify sampling parameters, context length, tool configuration, and prompt templates to ensure fair comparison.
Focus on stability and tail risk. Include the performance of the worst 5% in acceptance criteria. Add fallbacks and human takeover for critical paths.
Establish a regression mechanism. Automatically rerun the regression set after every model, prompt, or code change to prevent silent capability degradation.
Keep rational expectations. For top-tier models, it is reasonable to expect breakthroughs on complex tasks. However, evaluation and engineering methods should be used to confirm that the capability is stable and reproducible in your own scenarios.
