Chinese LLM Evaluation: Methodology and Engineering Practices

    A practical framework for evaluating Chinese-language large language models across overall capability, task-specific performance, reliability, and cost. Learn how to interpret close scores, measure hallucination control and timeout rates, calculate per-task costs, and summarize evaluation records to support model selection.

    1. Why Chinese LLM Evaluation Needs a Structured Approach

    LLM evaluation should provide evidence for model selection and iteration. A single aggregate score rarely answers three practical questions: Which tasks should the model handle? Will costs stay within budget? Will it frequently time out in production?

    A reproducible evaluation framework typically covers four dimensions: overall capability, task-specific capability, engineering reliability, and cost efficiency. The following sections examine each in turn.

    2. Aggregate Scores and Tie Thresholds

    Evaluation leaderboards commonly rank models by weighted aggregate scores. When two models score similarly, the gap may fall within the sampling error of the test set. Evaluation rules therefore often define a tie threshold—for example, treating models within one point of each other as belonging to the same performance tier. This helps prevent statistical noise from being mistaken for a meaningful difference.

    To assess whether two results differ meaningfully:

    • Confirm that both evaluations use the same number of questions and the same distribution of question types.
    • Run the same questions multiple times and calculate the standard deviation of the scores.
    • Use bootstrap resampling to estimate score confidence intervals. Substantial overlap is a reason to avoid assigning a definitive ranking based on those results alone.

    3. Breaking Down Task-Specific Capabilities

    Aggregate scores can hide a model’s capability profile. Common evaluation categories include complex reasoning, software development, long-context comprehension, multimodal understanding, agent planning, and hallucination control.

    The relative importance of these categories varies by application. Knowledge-based question-answering services place greater emphasis on hallucination control, while automated operations workflows depend more on tool use and task planning.

    Hallucination control, for example, can be assessed through three metrics:

    1. Factual accuracy: The proportion of correct responses to factual questions with reference answers.
    2. Unsupported answer rate: The proportion of questions for which the model fabricates an answer when the reference material contains no answer. A lower rate indicates better recognition of knowledge boundaries.
    3. Citation traceability: Whether the evidence cited in an answer can be accurately located in the source text.

    4. Reliability in Agentic Coding: Timeout Rate

    Coding tasks often involve multiple rounds of planning, reading code, executing commands, and correcting errors. As a result, individual tasks can take considerable time.

    Timeout rate is defined as:

    1. Timeout rate = Timed-out tasks / Total tasks × 100%

    High timeout rates commonly have three causes:

    • Excessively long reasoning workflows.
    • Ineffective retry and fallback mechanisms after tool failures.
    • Context windows filled with irrelevant information.

    Corresponding engineering measures include setting step limits and total time budgets for each task, splitting large tasks into subtasks that can run in parallel, and creating structured summaries of tool outputs before adding them to the context.

    5. Calculating Cost per Task

    Meaningful cost comparisons require a consistent accounting method. The general formula is:

    1. Cost per task =
    2. (Input tokens × Input price + Output tokens × Output price) / 1,000,000

    Here, input and output prices are quoted per million tokens.

    Three considerations matter when applying this formula.

    First, tokenization differs across models, so the same text can produce different token counts. Use the actual token usage recorded by the billing system rather than estimates based on character counts.

    Second, reasoning models generate additional thinking tokens. These are typically billed as output tokens and must be included in the calculation.

    Third, comparisons of cost reductions between model versions must use the same test set and billing rules. Otherwise, the reported reductions are not directly comparable.

    6. A Reproducible Evaluation Summary Example

    The following code aggregates per-task execution records into an average score, timeout rate, and cost per task. All values and prices are fictional and used only to demonstrate the calculation.

    1. from dataclasses import dataclass
    2. @dataclass
    3. class EvalRecord:
    4. item_id: str
    5. score: float
    6. timed_out: bool
    7. input_tokens: int
    8. output_tokens: int
    9. def summarize(records, input_price_per_m, output_price_per_m):
    10. n = len(records)
    11. timeout_rate = sum(r.timed_out for r in records) / n
    12. avg_score = sum(r.score for r in records) / n
    13. total_cost = sum(
    14. r.input_tokens * input_price_per_m / 1_000_000
    15. + r.output_tokens * output_price_per_m / 1_000_000
    16. for r in records
    17. )
    18. return {
    19. "avg_score": round(avg_score, 3),
    20. "timeout_rate": round(timeout_rate, 3),
    21. "cost_per_item": round(total_cost / n, 6),
    22. }
    23. def is_tie(score_a, score_b, threshold):
    24. # The threshold is set by the evaluation rules and may vary by leaderboard.
    25. return abs(score_a - score_b) <= threshold
    26. records = [
    27. EvalRecord("q001", 1.0, False, 1200, 350),
    28. EvalRecord("q002", 0.0, True, 3000, 900),
    29. EvalRecord("q003", 1.0, False, 800, 210),
    30. ]
    31. print(summarize(records, input_price_per_m=2.0, output_price_per_m=8.0))

    In this example, the timed-out task receives a score of zero, and its token usage is included in the cost calculation. This avoids overstating performance by counting only successful tasks. The code returns the timeout rate as a fraction rather than a percentage.

    7. A Framework for Model Selection

    Evaluation dimension Core question Key metrics
    Overall capability Are the candidate models in the same performance tier? Aggregate score, tie threshold
    Task-specific capability Can the model meet requirements for core business tasks? Category scores, task success rate
    Reliability Will the model operate consistently in production? Timeout rate, unsupported answer rate, hallucination rate
    Cost efficiency Will deployment remain affordable at scale? Cost per task, cost per business operation

    In practice, start by building a small evaluation set from real business examples, covering the main scenarios and edge cases. Use public leaderboards to help create a shortlist, then base the final decision on business-specific metrics.

    8. Common Evaluation Mistakes

    • Looking only at aggregate scores and ignoring whether task-specific strengths match business requirements.
    • Excluding timed-out and failed tasks while reporting scores only for successful runs.
    • Comparing version costs using different test sets or billing rules.
    • Treating a tied result as evidence of a definitive lead.

    9. Conclusion

    The value of evaluation lies in turning “Which model is better?” into “Under what conditions, at what cost, and for which tasks is this model suitable?”

    Consistent measurement rules, complete execution records, and task-specific results interpreted according to business priorities are essential for moving Chinese LLM evaluation beyond leaderboard rankings and into engineering decisions.