How to Evaluate Chinese LLMs: Key Benchmark Dimensions and Building Your Own Test Set
A single composite leaderboard score rarely matches your actual workload, because it is a weighted blend of sub-dimensions chosen by the benchmark authors. This article breaks down five core evaluation dimensions for Chinese large language models—knowledge QA, long-document handling, code generation, math reasoning, and multi-turn dialogue—along with their common pitfalls, then walks through a practical process for building an in-house evaluation set, re-weighting scores to your business, and wiring evaluation into CI, plus cost and stability considerations for production integration.
1. Why “First on the Leaderboard” Is Not the Same as Best for Your Business
A recent comprehensive benchmark of Chinese large language models drew attention: a model series from an international research team led the overall ranking, a domestic assistant-style model ranked first among Chinese offerings, and several general-purpose models followed. For developers, the useful signal is not the ranking itself but the dimension design behind it.
A single composite score is a weighted result of multiple sub-dimensions, and those weights are set by whoever runs the benchmark—almost certainly different from your own traffic distribution. A company focused on long-document review that simply follows the overall ranking may end up with a model that is excellent at short-form Q&A but mediocre at long-context retrieval and citation grounding. The right approach is to treat the leaderboard as a candidate filter, not the final decision maker.
2. Five Core Dimensions: Technical Meaning and Common Pitfalls
2.1 Knowledge QA
This measures factual accuracy, the boundary of time-sensitive knowledge, and refusal behavior. Benchmarks typically mix general knowledge, domain-specific questions, and long-tail entities. The pitfall: when memorization-style items dominate, the score reflects corpus coverage rather than reasoning ability. In engineering terms, what matters is whether the model refuses reliably when it does not know—this directly determines your online hallucination rate.
2.2 Long-Document Processing
This covers context window size, effective attention coverage, and citation grounding. Window length is a nominal spec; the real question is mid-context recall. The widely observed “lost in the middle” effect means a critical clause sitting in the center of a long document gets ignored. Build an evaluation set where answers sit at different relative positions.
2.3 Code Generation
This spans completion, cross-file dependency understanding, and debugging. Beyond pass rate, track first-pass rate and average retry count, because retries directly inflate cost and latency per call.
2.4 Math Reasoning
This distinguishes “can compute” from “can set up the problem.” A high-quality benchmark asks for intermediate steps, so you can tell whether the model actually builds a solution path or pattern-matches to an approximate answer.
2.5 Multi-Turn Dialogue
This tests coreference resolution, constraint accumulation, and state retention after topic switches. Instruction drift is the most common failure in multi-turn settings, so you need scripts that run beyond ten turns and change constraints midway.
3. A Practical Process for Building Your Own Evaluation Set
Step 1: sample from real production logs, cluster by intent, then sample in layers so long-tail scenarios are not drowned out by averages. Step 2: label each sample with a reference answer and scoring points; for subjective items, score by rubric coverage rather than overall impression. Step 3: fix the prompt template and decoding parameters, so gains from prompt tuning are not misread as model capability differences.
A sketch of the main evaluation loop:
def evaluate(model_client, samples, judge):report = {}for dim, items in samples.items():scores = []for s in items:resp = model_client.chat(s.prompt, params=DECODE_CONFIG)scores.append(judge(s.reference, resp, rubric=s.rubric))report[dim] = sum(scores) / len(scores)return report
Step 4: re-weight the per-dimension scores using your business weights to produce your own composite score. Step 5: plug evaluation into your CI pipeline so model or prompt changes trigger automatic regression, preventing capability regressions.
4. Cost and Stability in Production Integration
Beyond benchmark scores, evaluate cost per task, time to first token, and throughput ceiling. A tiered routing strategy is recommended: send simple requests to a lightweight model and escalate complex ones to a stronger model, splitting traffic by confidence or rules. Use a message queue to smooth spikes, object storage to archive long documents, and logging plus monitoring with alerts to track failure and timeout rates, closing the loop.
If sensitive data is involved, prefer options that support private or dedicated-network deployment, and handle masking and auditing at the gateway layer. In these scenarios Baidu AI Cloud typically offers a general combination of capabilities spanning model services through data and operations components, which can be assembled flexibly to meet compliance requirements.
5. Conclusion
A leaderboard offers a horizontal reference; real business results depend on how closely the evaluation dimensions match your actual traffic distribution. Building your own evaluation set, recomputing the composite score with business weights, and making evaluation a permanent regression stage—that is the path from “the strongest model” to stable production gains.
