How to Evaluate LLM Capabilities: Building a Private Evaluation Set
This article explains how to build and operate a private LLM evaluation set, covering capability-layer design, case metadata, rotation and isolation, grader selection, statistical reporting, paired bootstrap comparison, pipeline gates, and common pitfalls. It emphasizes reproducible evaluation methodology over small total-score differences.
1. Start with the Phenomenon: Close Scores Do Not Mean Equal Capabilities
With every new generation of general-purpose large models, a batch of “private evaluation” results appears in the community: one model scores 33.2, another 33.6, and a third 34.7, with the gaps described as “within 5%.” The direct value of such numbers to developers is not ranking, but a reminder: when the total-score gap falls into the single-digit percentage range, the credibility of the ranking is often lower than the credibility of the evaluation method itself.
There are three reasons:
- Sampling error caused by insufficient sample size. If the evaluation set contains only one or two hundred questions, the weight of a single question is close to 0.5 points, and a few correct or incorrect answers can cause fluctuations of more than 1 point.
- Uneven difficulty distribution. The total score is a weighted average of item scores. If hard questions dominate, differences between models are amplified; if easy questions dominate, the ceiling effect pushes all models together.
- Scoring noise. When using LLM-as-judge, the judge model itself has position bias, length bias, and randomness. Repeated scoring of the same answer may be inconsistent.
Therefore, a more robust engineering conclusion is not “A is 0.4 points stronger than B,” but “under this evaluation set and this sampling configuration, the difference between the two does not exceed the confidence interval.”
2. Private Evaluation Sets: Put Anti-Contamination First
After public benchmarks are repeatedly trained on, their discriminative power continues to decay. The core value of a private evaluation set is that it is not public and can be continuously rotated.
2.1 Task Layering Design
Do not organize tasks along a single dimension such as “difficulty.” Instead, layer them by capability dimension and compute statistics independently for each layer:
- Instruction following and format constraints (structured output, field completeness)
- Long-context retrieval and cross-paragraph reasoning
- Code generation and defect repair (automatically judged by unit tests)
- Mathematics and multi-step logical derivation
- Tool calling and multi-turn state retention
- Safety and refusal boundaries
The benefit of layering is that when total scores are close, you can immediately see whether “code capability is on par but long-context capability lags behind,” or whether “all capabilities are on par.”
2.2 Suggested Case Structure
Each case should carry metadata, grader type, and version number to support incremental maintenance:
{"id": "code-fix-0137","layer": "code_repair","difficulty": "hard","prompt": "...","grader": "unit_test","tests": ["test_parse_empty_input", "test_timeout_branch"],"max_score": 1.0,"created_at": "2026-08-20","rotate_after": "2026-12-01"}
2.3 Rotation and Isolation
Set a rotation cycle—for example, replace 20%–30% of questions each quarter. Keep one long-term unpublished core set for longitudinal comparison, and another fluid set for horizontal comparison. Access to the evaluation set should be permission-isolated to prevent cases from being committed to public repositories together with business code.
3. Scoring System: Verifiable First, Model Judgment as Fallback
The reliability of graders from high to low is roughly: unit tests / exact match > rule validation > model judgment > human sampling. A common combination in engineering practice is:
def grade(case, answer):if case.grader == "unit_test":return run_tests(case.tests, answer) # objective, reproducibleif case.grader == "rule":return check_schema(answer, case.schema) # field/format constraintsif case.grader == "llm_judge":scores = [judge(case, answer, seed=s) for s in (11, 29, 47)]return median(scores) # multiple samples, median to reduce noisereturn human_sample(case, answer) # human spot checks for calibration
Three key details:
- Fix the judge model version and prompt, and put the prompt under version control; otherwise, data across months will not be comparable.
- Take the median of multiple samples to suppress single-judgment jitter. Record variance at the same time; questions with high variance should be reviewed or removed.
- Use human spot checks for calibration. Periodically calculate the agreement between model judgment and human scoring. A decline in agreement indicates that the judge prompt needs to be updated.
4. Aggregation and Reporting: Do Not Deliver Only a Total Score
A single score masks structural information. A report should include at least:
| Metric | Meaning | Purpose |
|---|---|---|
| Layer scores | Mean score for each capability dimension | Locate weaknesses |
| Confidence interval | Mean ± sampling error | Determine whether differences are significant |
| Pass rate / zero-score rate | Proportion of complete failures | Identify stability issues |
| Cost and latency | Cost per 1,000 calls, P95 latency | Engineering selection |
| Output compliance rate | Proportion of format/length violations | Pre-launch gate |
Paired comparison is more sensitive than independent comparison: with the same set of questions and the same sampling parameters, a paired test (such as a sign test on per-question differences or bootstrap resampling) can significantly reduce variance and give small samples some discriminative power.
def paired_bootstrap(diffs, n=10000, alpha=0.05):# diffs: per-question score of A minus score of Bmeans = [mean(resample(diffs)) for _ in range(n)]lo, hi = percentile(means, [alpha/2*100, (1-alpha/2)*100])return mean(diffs), lo, hi # if the interval crosses 0, the difference is not significant
5. Integrate into the R&D Process: Turn Evaluation into a Gate
Evaluation has long-term value only when it enters the pipeline. A typical approach is to split evaluation into two tiers:
- Fast suite (minutes): dozens of core cases, used for immediate feedback on every prompt or parameter change.
- Full suite (hours): the full private set, used for admission before a version release.
Example gate rules:
gate:fast_suite:max_regression: 0.5 # maximum layer-score regressionschema_pass_rate: 0.99 # structured output compliance ratefull_suite:min_overall: baseline - 1.0max_latency_p95_ms: 4000max_cost_per_1k: baseline * 1.2
Supporting engineering capabilities usually fall under general cloud product categories: object storage for evaluation sets and historical results, message queues to decouple batch evaluation tasks, container platforms to host elastically scalable evaluation executors, and logging and monitoring alerting to track pass rates and cost curves. Baidu AI Cloud offers corresponding categories for such general-purpose capabilities; specific selection should be based on your own load-test data.
6. Common Pitfalls
- Drawing conclusions from total scores: a 0.4-point difference is not statistically meaningful on most private sets.
- Ignoring sampling parameters: any change in temperature, maximum output length, or system prompt will change the score.
- Evaluation set leakage: once cases enter the training corpus, scores become inflated and unreproducible.
- Testing capability but not cost: at the same score, latency and invocation cost determine whether the model can go live.
- One-off evaluation: models and business requirements both evolve; without a regression baseline, you cannot tell whether things are getting better or worse.
7. Conclusion
When facing information such as “new-generation model scores are close to each other,” the right approach for developers is not to rush into ranking, but to build their own evaluation assets: layered private sets, reproducible graders, paired statistical tests, and pipeline gates. When the evaluation method is rigorous enough, a gap of less than 5% will either be proven to be noise or be localized to a specific capability dimension—both outcomes are more valuable for decision-making than a lone total score.
