Why LLM Benchmarks Differ: A Practical Guide to Building Your Own Evaluation
This article explains why different general-purpose LLMs are evaluated with different benchmark combinations, tracing the cause to three factors: task distribution, capability boundaries, and engineering constraints. It shows how to quantify and stratify task distribution, define capability and engineering thresholds, report confidence intervals, effect sizes, and minimum detectable difference, and wire regression gates into CI. A runnable Python example and a checklist are included. The content is framed entirely in general technical terms, with no third-party product references.
Why LLM Benchmarks Differ: The Short Answer
Different public benchmark combinations for the same generation of general-purpose LLMs are determined by three things: task distribution, capability boundaries, and engineering constraints. Which specific benchmark set you choose depends on your business scenario and budget. What developers really need to understand is not the scores themselves, but the task assumptions behind them. Everything below is framed in general technical terms and contains no third-party product references.
Risk note: evaluation samples may contain user privacy data, so anonymize them before ingestion. Keep off-site backups of both the evaluation set and the results to prevent data loss from making the baseline irreproducible.
How to Quantify and Stratify Task Distribution
Task distribution is the share of real requests that fall into each task type. Quantify it in three steps:
- Label: tag the last 30 days of requests by task type (for example, document QA, code modification, visual understanding, desktop operation).
- Compute the share: share = number of requests in that type / total number of requests.
- Stratified sampling: allocate sample size by share, with at least 30 items per stratum. A total of 300–500 samples is recommended, with the ratio tilted toward high-risk scenarios.
Example stratum ratios: document QA 40%, code 30%, visual 20%, operation 10%.
How to Define Capability Boundaries and Engineering Constraints
- Capability boundaries: define the minimum set the model must get right, such as structured output and long-context citation.
- Engineering constraints: fix latency, unit price, and concurrency ceilings as hard gates.
- Label uncertainty: mark conclusions as “confirmed” or “conditional” to avoid absolutes.
Metric Definitions: Confidence Intervals, Effect Size, and Minimum Detectable Difference
- Confidence interval: use Bootstrap resampling 1,000 times and take the 95th-percentile interval.
- Effect size: use Cohen’s h for classification tasks and Cohen’s d for regression tasks.
- Minimum detectable difference (MDD): MDD ≈ 2.8 × standard deviation / √sample size; if the difference is smaller than the MDD, do not declare a winner.
Example Evaluation Script
Environment: Python 3.10. Dependencies: pip install numpy scikit-learn. Input: data.jsonl (fields prompt, label). Output: report.json.
import json, numpy as npfrom sklearn.metrics import accuracy_scoredef load(p):return [json.loads(l) for l in open(p)]def bootstrap_acc(y, p, n=1000):y, p = np.array(y), np.array(p)s = [accuracy_score(y[i], p[i]) for i in(np.random.randint(0, len(y), len(y)) for _ in range(n))]return np.percentile(s, [2.5, 97.5])d = load('data.jsonl')print(bootstrap_acc([x['label'] for x in d], [x['pred'] for x in d]))
Run: python eval.py.
How to Wire Regression Gates into CI
- Integration: trigger a CI job on every model change and run the fixed stratified set.
- Threshold: pass only if accuracy drops by no more than 2 percentage points and the absolute effect size is below 0.2.
- Rollback: if the gate fails, automatically roll back to the previous baseline version and raise an alert.
Common Mistakes and Leaderboard Hallucination
Leaderboard hallucination means picking a model using a public leaderboard that is not isomorphic to your business. Common mistakes: looking at a single-point score, not stratifying samples, and ignoring confidence intervals. How to choose: first check whether the task distribution is isomorphic. What to watch: check the MDD and the gate first.
Checklist Template
- Is the sample stratification ratio recorded; does each stratum have at least 30 items?
- Are the metric definitions written down; are confidence intervals and effect sizes reported?
- Are the gate and rollback configured; are anonymization and backups complete?
