Chinese LLM Capability Evaluation: A Methodology and Enterprise Model Selection Guide
Public leaderboards often cluster the top Chinese LLMs within a fraction of a percentage point, which makes rankings unreliable for real selection decisions. This guide shows how to turn model selection from a leaderboard question into an engineering problem: reading benchmark scores as interval estimates, building layered evaluation sets with per-dimension capability profiles, applying confidence intervals and paired significance tests, defending against test-set contamination, and accounting for cost and latency. It includes a reproducible Python evaluation pipeline, statistical snippets, and guidance on shadow traffic, canary release, and data-driven model routing for enterprise deployment.
1. What Leaderboard Scores Actually Mean: From Rank to Confidence Interval
In a recent Chinese general-capability benchmark, the top candidates scored within less than a percentage point of one another. Technically, this tells us far more than “who is #1”: when candidates converge into a narrow band on the same test set, the ranking is mostly a product of sampling noise and test-set composition, not a stable division of capability.
The reason is not complicated. Any evaluation is an estimate of a model’s capability distribution over a finite sample, and any estimate carries error. Common leaderboards report a single aggregate mean over a test set on the order of tens of thousands of items, while real business traffic differs in topic distribution, phrasing style, and domain emphasis from that set. So the sound engineering interpretation is to treat the total score as an interval estimate, and then answer three more valuable questions: How is the capability distributed across sub-dimensions? On which of my high-frequency scenarios is it clearly better or worse? What is the effect per unit cost?
For developers and enterprise users, the correct use of public benchmarks is as the “first filtering funnel” for candidate selection: enough to rule out clearly unsuitable models, but not enough to make the final decision. The decision must rest on a self-built evaluation set.
2. What a Chinese General-Capability Evaluation Is Made Of
Any credible evaluation has three layers; drop one and the conclusion is distorted.
Test set and task layering. The test set must cover task families that correspond to capability dimensions: factual knowledge and domain QA, multi-step reasoning and math, code generation and bug fixing, long-document understanding and key-information extraction, instruction following and format constraints, multi-turn context consistency, cross-lingual understanding and generation, and content safety and refusal boundaries. Chinese scenarios need extra attention to Chinese-specific phenomena — idioms and classical Chinese, mixed simplified/traditional text, colloquial ellipsis, mixed Chinese-English, and dialect expressions. The purpose of layering is not to maximize volume but to ensure each capability dimension has enough samples so that its single-dimension confidence interval stays controllable.
Judging method. This is the layer most often cut short. Three types of judging each have their own applicable boundaries:
| Judging method | Applicable tasks | Key risk |
|---|---|---|
| Exact / normalized match | Classification, extraction, structured output | Synonymous phrasing judged wrong; high false negatives |
| Programmatic checks (unit tests, regex, schema validation, numeric tolerance) | Code, structured data, math problems | A bug in the checker itself contaminates globally |
| Human or model review | Open-ended generation, summary quality, style fit | Position bias, length bias, reviewer preference |
Evaluation protocol. You must fix sampling parameters, random seeds, prompt template version, system prompt, and retry and truncation strategies, and take multiple independent samples per item to observe variance. Any configuration change should be treated as a new version; old scores cannot be directly compared.
3. What Total Scores Hide: Per-Dimension Capability Profiles
Compressing multiple capability dimensions into a single total almost inevitably leads to wrong selection in engineering. A model can lead in reasoning and code yet lag in long-document extraction and strict format compliance; it can score higher on open-ended writing yet be more fragile in safety scenarios that demand precise refusal.
So the more valuable output is not a ranking but a mapping of capability profile + business weights. The method: first tag your real requests by intent, compute each intent’s share, then weight by the per-dimension offline scores to get the “expected return that fits my business distribution.” This step changes the ranking significantly — it is the quantity that actually matters for the selection decision.
4. Building a Self-Hosted Evaluation Pipeline: A Reproducible Code Skeleton
You do not have to construct the evaluation set from scratch. The most effective source is a desensitized sample of online logs: stratified by business intent, split by time and version, with duplicates and near-duplicates removed, forming a golden set that matches the real traffic distribution. Checkers should be registered as task-type plugins so they can be continuously expanded.
from abc import ABC, abstractmethodfrom dataclasses import dataclassfrom typing import Callable, Sequence@dataclass(frozen=True)class Case:id: strprompt: strreference: str # reference answer or assertiondimension: str # knowledge/reasoning/code/long-context/instruction-following...checker: str = "exact" # checker namerepeats: int = 3 # repeated sampling per case to observe variance@dataclassclass Sample:case_id: strdimension: strrun_index: intprediction: strcorrect: boollatency_ms: inttokens_in: inttokens_out: intclass ModelClient(ABC):"""Unified interface abstraction: one test set can evaluate any model endpoint"""@abstractmethoddef generate(self, prompt: str, **params) -> tuple[str, dict]:"""Returns (output text, metadata dict); metadata holds latency_ms/tokens_in/tokens_out"""def normalize(text: str) -> str:return "".join(text.strip().lower().split())def exact_match(pred: str, ref: str) -> bool:return normalize(pred) == normalize(ref)CHECKERS: dict[str, Callable[[str, str], bool]] = {"exact": exact_match,# extensible: regex assertions, JSON Schema validation, unit test execution, numeric tolerance comparison}def run_eval(cases: Sequence[Case], client: ModelClient,seed: int = 0) -> list[Sample]:records: list[Sample] = []for case in cases:checker = CHECKERS[case.checker]for i in range(case.repeats):pred, meta = client.generate(case.prompt, seed=seed + i, temperature=0.0 if case.repeats == 1 else 0.3)records.append(Sample(case_id=case.id, dimension=case.dimension, run_index=i,prediction=pred, correct=checker(pred, case.reference),latency_ms=meta.get("latency_ms", 0),tokens_in=meta.get("tokens_in", 0),tokens_out=meta.get("tokens_out", 0),))return records
When scoring with model review, be sure to apply three bias controls: randomly swap the presentation order of the candidate answers and repeat the review to eliminate position bias; hide the candidate identities to suppress self-preference; calibrate reviewer agreement against a human-annotated subset (for example, compute an inter-annotator agreement coefficient), and if agreement falls short, switch to a different judging method rather than forcing model review.
5. Making Conclusions Hold Up: Confidence Intervals and Paired Tests
A single-point score cannot support the claim “A is better than B.” The bootstrap requires no distributional assumptions, suits per-item 0/1 or banded scores, and is cheap and simple to implement:
import randomfrom statistics import meandef bootstrap_mean_ci(values, n_boot=2000, alpha=0.05, seed=42):rng, n = random.Random(seed), len(values)stats = sorted(mean(rng.choices(values, k=n)) for _ in range(n_boot))return stats[int(alpha / 2 * n_boot)], stats[int((1 - alpha / 2) * n_boot) - 1]def paired_diff_ci(a, b, n_boot=2000, seed=42):"""Per-case difference between two models on the same items; paired testing greatly reduces variance"""diffs = [int(x) - int(y) for x, y in zip(a, b)]rng, n = random.Random(seed), len(diffs)means = sorted(mean(rng.choices(diffs, k=n)) for _ in range(n_boot))return means[int(0.025 * n_boot)], means[int(0.975 * n_boot) - 1]
Two practice principles. First, comparing two models requires a paired comparison on the same set of items; pairing eliminates most of the variance from item difficulty and is far more sensitive than testing each independent mean separately. Second, if the confidence interval of the paired difference crosses zero, honestly report “cannot be distinguished at this sample size” rather than issuing a rank. This also explains why, when the top scores differ by a few tenths of a percent, the rational conclusion is “tied” rather than “leading.”
Also apply multiple comparison correction: the more candidate models there are, the higher the probability that a “significant” difference appears purely by luck; adjust for the number of comparisons to avoid picking a statistical false champion.
6. Defending Against Evaluation Set Contamination and Overfitting
Once a test set is public or widely circulated, it risks being covered by training data, inflating the score and disconnecting it from real capability. The mitigations are a combination:
- Private holdout set: the core evaluation set stays out of any public channel and serves as the sole gate for version release;
- Time splitting: periodically add items newly generated after release and observe how much performance decays on new items;
- Near-duplicate removal: use locality-sensitive hashing or vector similarity to detect duplication between new and historical items, preventing reskinned items from being counted repeatedly;
- Perturbation variants: apply synonymous rewriting, numeric substitution, option reordering, and condition negation to the stems, generating multiple variants per concept to test whether answers depend on surface patterns;
- Distribution monitoring: track share drift across intent categories and periodically recompute test set weights as the business changes.
7. From Offline Scores to Online Performance
Offline evaluation can only prove “correct on the sample”; online is what determines business value. A three-stage validation is recommended:
- Shadow traffic: the new model only receives real requests and computes outputs without affecting users, used to collect the latency distribution, failure rate, and the disagreement rate between the old and new models’ answers, with manual spot-checks on the disagreement samples;
- Canary release: ramp up by percentage, observing business metrics (task completion rate, manual correction rate, retry rate, timeout rate) rather than only offline accuracy;
- A/B and rollback: predefine the minimum perceptible effect and the sample size, set automatic rollback thresholds, to avoid mistaking noise for gains.
8. Cost and Latency: Putting Selection in Engineering Constraints
Effect is only half of the evaluation. What really constrains the online architecture is the combined per-request cost and tail latency. A unified accounting basis is recommended:
def unit_cost(records, price_in_per_1k, price_out_per_1k):"""records is the Sample list above; only a unified accounting basis allows cross-model comparison"""tin = sum(r.tokens_in for r in records) / len(records)tout = sum(r.tokens_out for r in records) / len(records)return (tin / 1000 * price_in_per_1k + tout / 1000 * price_out_per_1k,tin, tout)
Beyond the billing basis, also record first-byte latency, P95/P99 total latency, throughput decay under concurrency, rate limiting and error rate, and the cost amplification from retries. A common practical conclusion: a stronger model’s advantage concentrates on a small portion of difficult requests, and sending all traffic to it is not economical.
9. Model Routing and Continuous Regression
So the more reasonable architecture is layered routing: based on the capability profile and a difficulty classifier, send simple requests to a low-cost lightweight model and escalate high-difficulty or high-risk requests to a strong model.
def route(req, policy):"""policy is an ordered rule table with a fallback as the last item; rules should come from per-dimension offline evaluation conclusions"""for rule in policy:if rule.match(req):return rule.pick()return policy[-1].pick()
Routing thresholds must be driven by evaluation data, not set by guesswork. At the same time, wire the evaluation-set regression into continuous integration: whenever the model version, prompt template, parser, or retrieval strategy changes, run the golden set, compare per-dimension scores, confidence intervals, and cost metrics, and block the release if the results fall below baseline. This turns evaluation from a one-off activity into regression infrastructure.
10. Common Pitfalls Checklist
- Using a single total score instead of a capability profile, ignoring business distribution and weight differences;
- Ignoring confidence intervals, treating a few tenths of a percentage point as a capability gap;
- Drawing conclusions after comparing two models on different items and different sampling parameters;
- Over-relying on model review without position-bias and agreement calibration;
- Keeping the evaluation set public long-term, leading to contamination and inflated scores;
- Only looking at accuracy, not tail latency, error rate, and unit cost;
- Not regressing after prompt or parser changes, misjudging an engineering defect as a decline in model capability;
- Equating offline results directly with business gains, lacking shadow-traffic and canary validation.
11. Conclusion
The value of public benchmarks is to quickly establish a candidate set and a capability baseline, not to give a final ranking. When the top scores converge within less than a percentage point, the more professional response is not to keep asking who is first, but to turn to reproducible, regression-ready, traffic-fitted evaluation engineering: layered test set construction, pluggable checkers, paired significance testing, contamination defense, joint cost/latency accounting, and data-driven model routing. In practice, the container scheduling, object storage, log retention, and monitoring and alerting that this pipeline requires are all general cloud capability categories — for example, on Baidu AI Cloud, a team can build and continuously run its evaluation pipeline using only these general capabilities, without introducing any proprietary components. When “which model is better” becomes “does the current version meet the bar on my distribution under my cost constraints,” selection has truly turned from a leaderboard question into an engineering question.
