A Practical Guide to Chinese LLM Evaluation and Engineering Optimization

    This guide explains why evaluating Chinese large language models requires more than a single leaderboard score, and how engineering teams should approach evaluation, optimization, and production deployment. It presents an eight-dimension evaluation framework spanning Chinese semantic understanding, complex reasoning, software engineering, agentic task planning, long-context and multimodal understanding, cost, stability, and hallucination control. It also covers why near-tied benchmark scores should not be over-interpreted, how to move from single-step answers to process-based verification, how to control timeouts and loops in agentic coding, how to reason about task-level cost instead of per-call pricing, and how to make model output more trustworthy. Finally, it outlines a platform-based evaluation-and-optimization loop and three principles for model selection: scenario fit, cost control, and risk control.

    A Practical Guide to Chinese LLM Evaluation and Engineering Optimization

    1. From Single Leaderboards to Multi-Dimensional Evaluation: Competition Now Centers on Overall Capability and Engineering Usability

    In the early days of Chinese LLM adoption, many teams focused primarily on a single leaderboard score, such as general knowledge Q&A, reading comprehension, or basic generation tasks. This kind of assessment gives you a quick, intuitive read on capability, but once models move into real business scenarios, a single score can no longer support selection, optimization, and launch decisions.

    LLM systems in real production settings usually face several constraints at once:

    1. Quality constraints: Does the model understand Chinese context, handle complex reasoning, and generate executable code?
    2. Task constraints: Can it handle long documents, multi-turn dialogue, tool calling, UI operation, and document processing?
    3. Cost constraints: You need to control input/output volume, number of calls per task, tool execution cost, and retry cost.
    4. Stability constraints: Will it time out, loop, become unavailable, repeat calls, or drop a task?
    5. Safety constraints: Will it produce factual errors, incorrect citations, or misleading conclusions, and does it have the necessary fact-checking mechanisms?

    Evaluating a Chinese LLM should therefore not be about comparing a single total score, but about building a comprehensive assessment system aimed at engineering deployment. This is especially important as the gaps between top models in general capability, coding, and reasoning keep narrowing: a systematic evaluation method is more valuable than a one-off ranking.

    Across recent public Chinese LLM evaluations, leading models have made clear progress in complex reasoning, engineering development, long-context processing, agent planning, and code generation. At the same time, models are starting to diverge in specific capabilities: some are better at factual-consistency control, some excel at code generation and task execution, and some perform better on cost efficiency. For enterprises and development teams, model selection should not hinge on “who has the higher score” alone, but on building your own evaluation baseline around the specific scenario.


    2. Building a Multi-Dimensional Evaluation System: From General Capability to Task Completion Rate

    A practical LLM evaluation system should cover four layers: capability, efficiency, cost, and risk. The following eight dimensions are a common starting point.

    2.1 Chinese Semantic Understanding

    Chinese semantic understanding is a foundational capability. The focus is on whether the model can accurately grasp intent, context, logical relationships, and cultural nuance in Chinese text. Common tests include:

    • Parsing long, complex Chinese sentences;
    • Identifying polysemous words and ambiguous sentences;
    • Resolving anaphora and references across context;
    • Summarizing Chinese official documents, emails, and reports;
    • Chinese knowledge Q&A and factual judgment.

    During evaluation, don’t just check whether an answer “looks reasonable” — check whether it is accurate, complete, and unambiguous.

    2.2 Complex Reasoning

    Complex reasoning determines whether the model can handle multi-step tasks. Key areas to assess include:

    • Mathematical and logical derivation;
    • Causal analysis;
    • Conditional judgment;
    • Planning and task decomposition;
    • Decision-making under multiple constraints.

    Complex reasoning should not rely on a single generation pass. Instead, introduce a process-based evaluation of “plan — execute — verify.” For example, at the start of a task, have the model output its execution steps first, then validate each step against expectations one by one.

    2.3 Engineering Development

    Software engineering scenarios differ substantially from general Q&A. The model must not only understand the problem but also generate, complete, refactor, localize errors, and verify against tests within the given context. Evaluation dimensions can include:

    • Code generation accuracy;
    • Code runnability;
    • Edge-case handling;
    • Understanding of dependencies;
    • Error-log localization;
    • Refactoring suggestion quality;
    • Test coverage suggestions.

    In a real engineering environment, code generation can’t be judged only on whether it “looks like correct code” — it must pass compilation, tests, static analysis, and business acceptance.

    2.4 Agentic Task Planning

    Agent-style tasks typically require the model to autonomously complete multi-step operations. The focus of evaluation is:

    • Whether it decomposes the task correctly;
    • Whether it selects appropriate tools;
    • Whether it handles retries after failure;
    • Whether it keeps execution within bounds;
    • Whether it stays aligned with the goal across multiple turns;
    • Whether it can stop or roll back under exceptional conditions.

    Agent evaluation shouldn’t look only at the final output — it must also examine whether the intermediate process is sound, and whether there are ineffective loops, repeated calls, or wasted resources.

    2.5 Long-Context and Multimodal Understanding

    As business scenarios grow more complex, models must handle long documents, code repositories, meeting notes, contracts, technical manuals, and similar material. Evaluation should focus on:

    • Extracting key information from long text;
    • Cross-paragraph reasoning;
    • Comparing multiple documents;
    • Understanding structured information such as charts, tables, and images;
    • Understanding visual UI operation tasks.

    Long-context ability shouldn’t be reduced to “the longer the context, the better.” You also need to assess whether the model suffers information loss, internal contradictions, or dropped key details within a long context.

    2.6 Cost and Resource Consumption

    LLM applications can’t be discussed in terms of quality alone. Cost evaluation should at least include:

    • Input volume;
    • Output volume;
    • Number of calls per task;
    • Number of tool calls;
    • Number of retries;
    • Cost of failed rollbacks;
    • Cache hit rate;
    • Cost of human review.

    In model selection, a model with slightly lower quality but significantly lower cost may offer more engineering value in some scenarios.

    2.7 Stability and Timeout Rate

    In scenarios like agentic programming, office automation, and code assistants, stability often matters more than peak single-run quality. Key metrics include:

    • Task completion rate;
    • Timeout rate;
    • Error-interruption rate;
    • Repeated-execution rate;
    • Average response latency;
    • Time to first partial result;
    • Fault tolerance under extreme inputs.

    If a model frequently times out on complex tasks, even high-quality individual answers make it hard to move into production.

    2.8 Hallucination Control and Factual Consistency

    The most easily overlooked risk is “plausible-sounding but factually wrong” output. Evaluation should focus on:

    • Factual accuracy;
    • Citation traceability;
    • Context consistency;
    • Ability to refuse when the answer is unknown;
    • Ability to ask for clarification on ambiguous questions;
    • Ability to validate tool return results.

    For enterprise knowledge Q&A, code Q&A, operations assistants, and customer-service systems, hallucination control often directly determines whether a product is usable.


    3. The “Tie” Phenomenon in Scoring Rules: Why Close Scores Can’t Be Compared Directly

    In public evaluations, you often see different models with very close scores. A threshold rule is then usually applied — for example, treating a score gap within a certain range as a tie. This isn’t about fence-sitting; it’s determined by evaluation error and model behavior characteristics.

    LLM evaluation results are affected by many factors:

    1. Prompt sensitivity: Phrasing the same question differently can change the result.
    2. Randomness: Model output can be nondeterministic; the same input run multiple times may not yield identical results.
    3. Subjectivity of scoring: Open-ended tasks often have multiple reasonable answers, and scoring can introduce differences in human judgment.
    4. Difficulty differences: Test sets vary in difficulty, so scores don’t fully represent real capability.
    5. Version changes: After an upgrade, some capabilities improve while others may regress.

    So when two models have a small score gap, the more reasonable conclusion is:

    The two are in the same performance band under the current test set, and you shouldn’t simply declare one definitively stronger.

    In engineering practice, you can introduce multiple sampling passes and statistical confidence judgments. Example logic:

    1. function evaluate_model(model, test_set, sample_count):
    2. scores = []
    3. for sample in test_set:
    4. outputs = model.generate(sample.prompt, n = sample_count)
    5. for output in outputs:
    6. scores.append(judge(output, sample.reference))
    7. return average(scores)
    8. score_a = evaluate_model(model_a, test_set, sample_count = 3)
    9. score_b = evaluate_model(model_b, test_set, sample_count = 3)
    10. if abs(score_a - score_b) <= 1.0:
    11. result = "Considered a tie"
    12. else:
    13. if score_a > score_b:
    14. result = "Model A leads"
    15. else:
    16. result = "Model B leads"

    For your own internal evaluation, you can add confidence-interval checks. For example, if the average-score difference between two models is smaller than the evaluation’s variance range, they should be treated as the same tier of capability.


    4. Complex Reasoning and Engineering Capability: From Single-Step Answers to Process-Based Verification

    Complex reasoning and engineering development are important directions for advancing Chinese LLM capability. Unlike basic Q&A, these tasks usually share the following traits:

    1. The problem contains multiple steps;
    2. Intermediate results affect the final result;
    3. Tools must be called or external knowledge referenced;
    4. Errors accumulate;
    5. Output must be verifiable.

    When evaluating complex reasoning and engineering capability, you shouldn’t look only at the final text — you should establish a process evaluation mechanism.

    4.1 Process-Based Evaluation of Complex Reasoning

    For complex reasoning tasks, you can adopt the following flow:

    1. Task input
    2. ↓
    3. Decompose subproblems
    4. ↓
    5. Gather evidence
    6. ↓
    7. Generate intermediate conclusions
    8. ↓
    9. Cross-validate
    10. ↓
    11. Form final answer

    During evaluation, you can check each step:

    • Is the subproblem decomposition complete?
    • Are key constraints missing?
    • Are the evidence sources relevant?
    • Are the intermediate conclusions self-consistent?
    • Is the final answer consistent with the intermediate reasoning?

    This reflects real capability better than looking at the final answer alone.

    4.2 Key Points of Engineering Development

    In software engineering scenarios, the model usually needs to understand code context, project structure, interface contracts, and test requirements. Evaluation should cover the following:

    • Is code completion accurate?
    • Can it identify error stack traces?
    • Can it propose a minimal fix?
    • Can it add test cases?
    • Does it understand dependencies?
    • Can it maintain consistency within a long context?

    For engineering teams, a reliable code assistant must not only “write code” but also “fix it correctly,” “make it run,” and “keep it easy to review.”

    4.3 Introducing Validators and External Execution Environments

    Complex reasoning and coding tasks should incorporate verification mechanisms wherever possible. For example:

    • Automatically run unit tests after code generation;
    • Apply rule-based checks after generating reasoning steps;
    • Perform structural checks after tool-call results;
    • Verify citations after generating the final answer.

    Example flow:

    1. Generate candidate code
    2. ↓
    3. Static analysis
    4. ↓
    5. Compile or syntax check
    6. ↓
    7. Run unit tests
    8. ↓
    9. If it fails, feed back error information and regenerate
    10. ↓
    11. If it fails repeatedly, fall back to human review

    This closed loop significantly reduces the risk introduced by hallucinations and ineffective generation.


    5. Agentic Programming and Timeout Control: From “Can Complete” to “Completes Reliably”

    Agentic programming is a hot direction in recent LLM applications. It requires the model not only to generate code but also to autonomously call tools, read the environment, execute commands, analyze logs, and fix errors. The capability ceiling is high, but the stability challenge is greater.

    5.1 Common Sources of Timeout

    In agentic programming tasks, timeouts are usually not caused by a single factor but by several factors stacking up:

    1. Overly long context: History, code files, and log snippets keep accumulating, inflating input size.
    2. Blocked tool calls: External services respond slowly, or the tool itself fails.
    3. Looping calls: The model repeats similar operations without converging.
    4. Overly long output: The model generates large amounts of explanatory text instead of advancing the task directly.
    5. Poor retry strategy: Continuous retries after failure with no backoff.
    6. Unclear task boundaries: The model tries to complete too large a task in one shot.

    5.2 Core Ideas for Timeout Control

    Agentic programming tasks should adopt a “budget control” approach, including:

    • Maximum number of execution steps;
    • Maximum number of tool calls;
    • Maximum input/output size;
    • Per-step timeout;
    • Overall task timeout;
    • Retry limit;
    • Human-takeover threshold.

    Example pseudocode:

    1. state = RUNNING
    2. deadline = now + total_budget
    3. step_count = 0
    4. while state == RUNNING:
    5. if now > deadline:
    6. state = TIMEOUT
    7. break
    8. if step_count > max_steps:
    9. state = EXCEED_STEP_LIMIT
    10. break
    11. current_context = compress_context(history, recent_files, logs)
    12. action = model.plan(current_context, tools)
    13. if action.type == "tool_call":
    14. result = tool.execute(action, timeout = action.timeout)
    15. if result.status == "failed":
    16. if retry_count < max_retry:
    17. retry_count += 1
    18. wait(backoff(retry_count))
    19. continue
    20. else:
    21. state = TOOL_FAILED
    22. break
    23. if action.type == "answer":
    24. state = DONE
    25. break
    26. step_count += 1
    27. return state, final_result

    This control mechanism prevents agentic tasks from looping indefinitely or blocking for a long time.

    5.3 Context Compression and Task Decomposition

    For large codebases or complex tasks, you can’t stuff everything into the context at once. Adopt a staged strategy instead:

    1. First retrieve relevant modules;
    2. Then load key files;
    3. Then generate local modifications;
    4. Finally verify everything together.

    Context compression can include:

    • Removing irrelevant logs;
    • Summarizing prior steps;
    • Keeping only key error information;
    • Producing function-level summaries of code files;
    • Building a structured index of long text.

    5.4 Result Acceptance and Rollback

    Agentic programming shouldn’t focus only on “what the model did” but also on “whether the task is actually complete.” Set acceptance criteria, such as:

    • Do the tests pass?
    • Have the key errors disappeared from the logs?
    • Does the code compile normally?
    • Are changes limited to the expected scope?
    • Have any new side effects been introduced?

    If acceptance fails, the system should be able to roll back to the last stable state rather than keep stacking erroneous changes.


    6. Cost Optimization: From Per-Call Cost to Total Task Cost

    LLM cost shouldn’t be judged by the per-call API price alone — you should calculate total task-level cost. In many scenarios, cost swings come from retries, long contexts, tool calls, and failed re-runs.

    6.1 Designing a Cost Model

    A reasonably complete cost model can be abstracted as:

    1. Total task cost =
    2. input cost +
    3. output cost +
    4. tool call cost +
    5. retry cost +
    6. context compression cost +
    7. human review cost +
    8. failure rollback cost

    Example code:

    1. function estimate_task_cost(task, strategy):
    2. input_cost = estimate_tokens(task.context) * input_unit_price
    3. output_cost = estimate_tokens(task.answer) * output_unit_price
    4. tool_cost = task.tool_calls * tool_unit_price
    5. retry_cost = strategy.retry_count * average_failed_cost
    6. review_cost = strategy.need_human_review * review_unit_price
    7. return input_cost + output_cost + tool_cost + retry_cost + review_cost

    6.2 Common Cost Optimization Strategies

    (1) Context Pruning

    The longer the context, the higher the cost. Reduce irrelevant information through retrieval, summarization, and chunked loading.

    (2) Output Constraints

    If a task doesn’t need a long explanation, cap the output length and require structured, concise, directly actionable results.

    (3) Task Routing

    Different tasks can use models of different capability tiers. Route simple tasks to a lightweight path, and escalate only complex tasks to a high-capability path.

    (4) Result Caching

    For repeated Q&A, common code snippets, and fixed knowledge entries, build a cache to avoid regenerating the same output.

    (5) Fast Failure

    When tool calls fail repeatedly or a task is clearly unrecoverable, stop early rather than retrying indefinitely.

    (6) Batch and Asynchronous Execution

    For non-real-time tasks, use batch processing and asynchronous queues to improve resource utilization.

    6.3 Balancing Cost and Quality

    Cost optimization shouldn’t come at the expense of critical quality as its only goal. In practice, build a tiered strategy:

    • High-value tasks prioritize accuracy;
    • Low-value tasks prioritize cost;
    • High-risk tasks require mandatory human review;
    • High-frequency tasks focus on optimizing caching and routing.

    Example strategy:

    1. if task.importance == HIGH:
    2. strategy = "high_accuracy_mode"
    3. else if task.frequency == HIGH:
    4. strategy = "cache_first_mode"
    5. else if task.risk == HIGH:
    6. strategy = "human_review_mode"
    7. else:
    8. strategy = "balanced_mode"

    7. Hallucination Control: Making LLM Output More Trustworthy

    Hallucination is a problem you must confront once LLMs enter enterprise scenarios. It’s not just “wrong answers” — it also includes:

    • Fabricating facts that don’t exist;
    • Citing sources that don’t exist;
    • Forcing an answer when context is insufficient;
    • Giving definitive conclusions to ambiguous questions;
    • Continuing to reason after a tool returns an abnormal result;
    • Contradicting itself across responses.

    7.1 Main Sources of Hallucination

    1. Insufficient or outdated training data: The model lacks reliable knowledge in some domains.
    2. Ambiguous prompts: Unclear questions lead the model to fill in its own assumptions.
    3. Context conflicts: Multiple materials contradict each other, and the model doesn’t reconcile them.
    4. Untrustworthy tool results: An external API returns an abnormal result, but the model keeps reasoning anyway.
    5. Missing verification step: There is no fact-check or citation check after generation.

    7.2 Engineering Methods for Hallucination Control

    (1) Retrieval Augmentation

    For knowledge Q&A scenarios, generate answers based on traceable sources whenever possible. Answers should include evidence snippets, source passages, or citation locations.

    (2) Structured Output Constraints

    Require the model to output in a fixed structure to reduce room for free elaboration. For example:

    1. Answer:
    2. Evidence:
    3. Confidence:
    4. Needs human confirmation:

    (3) Confidence and Refusal Mechanisms

    When evidence is insufficient or the question is ambiguous, the model should be able to express uncertainty rather than force a definitive conclusion.

    Example logic:

    1. if evidence_score < threshold:
    2. answer = "Current information is insufficient to reach a reliable conclusion"
    3. else:
    4. answer = generate_answer(evidence)

    (4) Cross-Validation

    For key conclusions, introduce multi-source validation:

    • Compare consistency across multiple generations;
    • Run cross-checks with different prompts;
    • Verify facts against tool results;
    • Use a rules engine to check format and logic.

    (5) Citation Verification

    If an answer contains citations, check whether the citations actually exist and whether their content supports the conclusion.

    Example code:

    1. function verify_citation(answer, source_materials):
    2. claims = extract_claims(answer)
    3. for claim in claims:
    4. evidence = find_supporting_evidence(source_materials, claim)
    5. if evidence == null:
    6. return false
    7. return true

    7.3 Hallucination Control Metrics

    You can establish the following metrics:

    • Factual accuracy rate;
    • Citation coverage rate;
    • Unsupported-answer rate;
    • Contradiction rate;
    • Correct refusal rate;
    • Incorrect refusal rate;
    • Key-fact omission rate.

    These metrics are closer to business usability than a single total score.


    8. Platform-Based Implementation: Building a Sustainable Evaluation and Optimization Loop

    LLM capability evolves fast — model versions, prompts, toolchains, and knowledge bases all keep changing. Enterprises therefore need a platform-based evaluation and optimization system, not a one-off assessment.

    8.1 Offline Evaluation Platform

    An offline evaluation platform should support:

    • Dataset management;
    • Test-case version management;
    • Model version management;
    • Scoring-rule configuration;
    • Multi-turn task replay;
    • Result comparison;
    • Error-sample attribution.

    Example flow:

    1. Import test set
    2. ↓
    3. Select model version
    4. ↓
    5. Run tasks
    6. ↓
    7. Record outputs and latency
    8. ↓
    9. Auto-score
    10. ↓
    11. Human spot-check
    12. ↓
    13. Generate evaluation report

    8.2 Online Monitoring and Feedback

    Online systems need to continuously collect runtime data, including:

    • Task success rate;
    • Average latency;
    • Timeout rate;
    • Distribution of failure causes;
    • User feedback;
    • Human-takeover rate;
    • Cost trends;
    • Hallucination complaint rate.

    This data should flow back into the offline evaluation set to form a continuous optimization loop.

    8.3 Composing General Cloud Capabilities

    When building an evaluation and runtime platform, you can compose general cloud service categories, such as:

    • Object storage: storing test data, logs, and sample model outputs;
    • Message queues: decoupling task scheduling from result processing;
    • Container platform: hosting model calls, tool execution, and evaluation services;
    • Logging service: recording call chains and error information;
    • Monitoring and alerting: tracking timeouts, failure rates, and cost anomalies;
    • Configuration management: managing prompts, policies, and model versions.

    This platform-based approach helps turn LLM capability from a “one-off call” into a “sustainably operated system capability.”


    9. Selection Recommendations for Enterprises: Don’t Chase the Highest Score, Chase the Best Fit

    For enterprises and development teams, Chinese LLM selection should follow three principles.

    9.1 Scenario First

    A high general leaderboard score doesn’t mean the best fit for your business scenario. Code assistants, knowledge Q&A, contract review, customer-service Q&A, and agentic programming all place different demands on the model and must be evaluated separately.

    9.2 Controllable Cost

    Build a task-level cost model rather than looking only at unit price. For many tasks, the real cost comes from long contexts, retries, tool calls, and human review.

    9.3 Controllable Risk

    High-risk scenarios must include validation, citation, refusal, human review, and rollback mechanisms. No matter how strong the model is, it cannot replace necessary engineering guardrails.

    A practical selection flow:

    1. Define the business scenario
    2. ↓
    3. Build a business evaluation set
    4. ↓
    5. Compare multiple models and strategies
    6. ↓
    7. Measure quality, cost, and stability
    8. ↓
    9. Run a small-scale canary
    10. ↓
    11. Monitor in production
    12. ↓
    13. Iterate continuously

    10. Summary

    Competition among Chinese LLMs has shifted from comparing single scores to an all-around contest of overall capability, engineering stability, cost efficiency, and risk control. For development teams and enterprise users, truly valuable evaluation isn’t about chasing a leaderboard ranking, but about building an assessment system that fits your own business.

    This system should at least include the following capabilities:

    1. Multi-dimensional capability evaluation;
    2. Process-based verification of complex reasoning;
    3. Closed-loop engineering code tasks;
    4. Timeout and loop control for agents;
    5. Task-level cost accounting;
    6. Hallucination control and fact-checking;
    7. Online monitoring and continuous feedback;
    8. Unified management of models, prompts, tools, and knowledge.

    When multiple models perform closely in public evaluations, pay more attention to how well they fit your specific business scenarios. A stable, controllable, reasonably priced, and traceable LLM system often has more engineering value than a high score on a single leaderboard.

    By building a “evaluate — optimize — deploy — monitor — feed back” loop, teams can gradually turn LLM capability into sustainable business productivity rather than stopping at a concept demo or a one-off comparison.