LLM Evaluation and Cost-Based Selection for Chinese Large Language Models

    This article explains how to move beyond a single leaderboard score when selecting a Chinese large language model. It covers core capability dimensions such as complex reasoning, coding, long-context handling, agent planning, and hallucination control, and shows how to build a reusable evaluation framework that includes cost, stability, reliability, and production constraints. It also provides practical guidance on model routing, timeout and fallback design, observability, security, and a weighted scorecard for enterprise selection.

    With large models increasingly used in knowledge Q&A, coding assistance, content generation, workflow automation, and AI agents, technology selection is shifting from “highest overall score” to “best fit for the task.” In general-purpose Chinese LLM benchmarks, the scores of several leading models may be within one point of each other, creating an effective tie. This does not mean model capabilities have fully converged. Instead, it reminds developers and enterprises that a single leaderboard is only directional. A reliable selection process should evaluate models across multiple dimensions, including complex reasoning, software development, long-text processing, agent planning, hallucination control, timeout rate, and cost efficiency.

    1. The Value of Benchmarks: From Ranking to a Capability Profile

    The core value of a general benchmark is not simply to assign a rank. It is to help users understand a model’s capability boundaries. A model that performs consistently on general knowledge Q&A may not be equally reliable in long-document extraction, code generation, or multi-step agent tasks. Conversely, a model with a slightly lower overall score may offer better cost or latency advantages in specific business scenarios.

    Therefore, when reviewing benchmark results, teams should distinguish between overall rankings and sub-score capabilities. The overall score reflects average performance across a mixed task set and is useful for coarse filtering. Sub-scores are more useful for scenario matching. For example:

    • A high complex-reasoning score suggests suitability for analytical and planning tasks.
    • Strong coding ability is relevant for code completion, test generation, and script automation.
    • Better hallucination control is important for knowledge Q&A, content moderation, and decision support, where accuracy is critical.

    When multiple models are within one point of each other, it is often reasonable to treat them as tied. Benchmark results can be affected by sample selection, question difficulty, scoring methods, random sampling, and human evaluation standards. A sub-one-point difference may not reflect a meaningful capability gap, and it should not be interpreted without considering business goals. A more practical approach is to treat the benchmark as part of a capability profile and then validate it against an enterprise-specific test set.

    2. How Core Capability Dimensions Affect Real Performance

    2.1 Complex Reasoning and Engineering Development

    Complex reasoning is usually reflected in multi-hop Q&A, conditional constraints, causal analysis, logical reasoning, and structured output. For enterprise applications, a model must not only provide an answer but also provide a reliable one.

    For example, in policy or process Q&A, a model may need to synthesize multiple clauses before giving a response. In data analysis, it may need to explain results based on field meanings, business definitions, and constraints. In workflow planning, it may need to break a goal into executable steps.

    Engineering development capability goes further. A model needs to understand code structure, interface contracts, edge conditions, and debugging logic. A strong engineering-oriented model should not only generate runnable code, but also identify anomalies, supplement unit tests, explain errors, and maintain context consistency across multiple turns. When evaluating this capability, teams should look beyond whether a code snippet appears reasonable. They should also measure task completion rate, execution success rate, human review scores, and real integration cost.

    2.2 Coding Capability and Agent Coding Stability

    Coding is one of the most frequent needs in large-model applications. However, production environments evaluate coding ability far beyond “can it write code?” Developers care more about whether the code is maintainable, whether it passes tests, whether it handles exceptions, and whether it remains stable in multi-step tasks.

    In general benchmark trends, agent coding performance often reflects engineering usability better than single-turn code generation. Agent coding usually involves multiple stages: understanding requirements, decomposing tasks, generating code, executing feedback, and validating results. A failure in any stage can affect final delivery.

    In one general benchmark setup, a newer generation of models achieved 57.69 on an agent-coding task, an improvement of 15.38 points over the previous version. In earlier versions, the timeout rate for this type of task could reach 69.23%; in later tests, it dropped to 0%. These results suggest that progress in coding ability is not only about producing more accurate answers, but also about making task chains more stable. A lower timeout rate means the model is less likely to stall, loop, or fail to converge during complex tasks. This is especially important for production scenarios such as automated programming, code review, test generation, and operations support.

    2.3 Long-Context Processing and Agent Planning

    Long-context capability mainly evaluates how well a model locates information in very long contexts, reasons across paragraphs, summarizes content, and extracts structured data. In real business scenarios, long-text tasks often appear in contract review, research report analysis, customer service tickets, meeting minutes, knowledge-base Q&A, and document comparison. The key question is not simply whether the model can “remember” the full text, but whether it can accurately find critical information without missing or confusing important details.

    Agent planning focuses on whether a model can decompose a complex goal into continuous actions. For example, in an automated office workflow, the model may first need to identify user intent, then select tools, call APIs, read results, validate status, and retry or degrade if necessary. These tasks place higher demands on context consistency, state management, tool-call accuracy, and timeout control. If a model performs well only in single-turn conversation but cannot maintain stability across multi-step tasks, its production value will be limited.

    2.4 Hallucination Control and Trustworthy Output

    Hallucination control is a key indicator of model trustworthiness. A hallucination refers to content that appears plausible but is inconsistent with facts, cites nonexistent sources, contains logical errors, or exceeds the intended response boundary. In knowledge Q&A, policy interpretation, financial support, medical education, and legal review, hallucinations can create extra human verification costs and even business risks.

    When evaluating hallucination control, teams should consider multiple layers:

    • Factual accuracy
    • Citation traceability
    • Refusal behavior when evidence is insufficient
    • Boundary recognition
    • Expression of uncertainty

    A mature model should not only answer questions but also proactively warn about risk when information is insufficient, rather than fabricating an answer. For enterprises, a higher hallucination-control score usually means lower review costs and better integration readiness.

    3. Cost Efficiency: An Undervalued Selection Variable

    Cost is often treated as a secondary metric during model selection. However, in large-scale usage scenarios, cost can directly affect business feasibility. In general benchmarks, average cost per question can vary significantly across models.

    For example, in one benchmark setup, one model’s average cost per question was about CNY 1.90, a decrease of about 87% compared with its previous version. Another model’s average cost was about CNY 2.52, a decrease of about 28.5% compared with an earlier preview version. These changes show that improvements in inference efficiency, context management, and pricing strategy can significantly lower the adoption barrier.

    Cost should not be evaluated only by unit price. A more complete formula is:

    1. Total cost = call volume × (input tokens × input price + output tokens × output price)
    2. + retry cost
    3. + timeout loss
    4. + manual review cost
    5. + operations cost

    In this formula, the ratio of input tokens to output tokens can directly affect expenses. If a task requires large amounts of long-document input, input costs will increase. If a task requires generating large amounts of code or long-form text, output costs will increase. For high-frequency scenarios, teams should also consider cache hit rate, batch processing, asynchronous task handling, and fallback strategies.

    Cost optimization can usually be approached from several angles:

    1. Model tiering: Use lightweight models for simple classification, intent recognition, and summary extraction. Use stronger models for complex reasoning, code generation, and multi-step planning.
    2. Context compression: Summarize, segment, or apply retrieval augmentation to long texts to reduce unnecessary input.
    3. Cache reuse: Cache high-frequency questions, fixed templates, and similar requests to reduce repeated calls.
    4. Asynchronous processing: Move non-real-time tasks into queues and use idle capacity to smooth peak load.
    5. Timeout control: Set reasonable timeout limits to avoid wasting resources when a single task stalls.
    6. Failure fallback: Automatically switch to a backup strategy when the primary model fails, reducing the need for manual intervention.

    4. Building a Reusable Evaluation Framework

    4.1 Task Set Design

    Enterprises should not simply reuse public benchmark questions. They should build their own business evaluation set. The task set should cover high-frequency scenarios, long-tail scenarios, and high-risk scenarios.

    For example:

    • A customer service scenario should include common questions, ambiguous questions, complaints, and questions outside the knowledge base.
    • A coding scenario should include generation, completion, explanation, unit testing, refactoring, and defect localization.
    • A document scenario should include summarization, extraction, comparison, Q&A, and structured output.

    The task set should also be layered by difficulty. Simple tasks validate basic capabilities. Medium tasks evaluate stability. High-difficulty tasks reveal how models behave under complex constraints. For critical business scenarios, teams should define red-line cases, such as:

    • Do not fabricate policy clauses.
    • Do not output content beyond authorized scope.
    • Do not force an answer when evidence is insufficient.

    4.2 Metric Design

    Evaluation metrics can be grouped into four categories:

    • Effectiveness metrics: Accuracy, task completion rate, human review score, and structured-output pass rate.
    • Stability metrics: Timeout rate, failure rate, retry rate, average latency, and long-tail latency.
    • Cost metrics: Average token consumption, cost per question, retry cost, and manual review cost.
    • Trust metrics: Hallucination rate, citation accuracy, refusal accuracy, and risk-content interception rate.

    In practice, teams should record both automatic scores and human scores. Automatic scoring is suitable for large-scale screening. Human scoring is better for assessing logical soundness, expression quality, and business fit. For high-risk scenarios, manual review should not be skipped.

    4.3 Example Evaluation Flow

    The following pseudocode shows a basic evaluation workflow:

    1. cases = load_business_cases()
    2. for case in cases:
    3. start_time = current_time()
    4. try:
    5. output = call_model(case.prompt, timeout=case.timeout_limit)
    6. quality_score = score_by_rules(case.reference_answer, output)
    7. cost = calculate_cost(case.token_usage)
    8. record_result(case, output, quality_score, cost, elapsed_time)
    9. except TimeoutError:
    10. record_result(case, status="timeout")
    11. except CallFailed:
    12. record_result(case, status="failed")
    13. report = aggregate_results()

    At a minimum, this flow should record timeouts, failures, costs, and archived results. If a task involves multi-turn calls, the system should also record each turn’s input, output, tool-call result, and final status to support later tracing.

    4.4 Statistical Methods and Review Mechanisms

    To reduce bias from a single evaluation run, teams should run multiple rounds for the same model and keep temperature, sampling strategy, and scoring rules fixed. For critical metrics, teams should examine distributions rather than only average values. For example, two solutions with the same average score but different long-tail latency may perform very differently under high concurrency.

    Version control is also important. Model versions, prompt versions, evaluation-set versions, and scoring-rule versions should all be traceable. Otherwise, when production performance changes, it may be difficult to determine whether the cause is a model update, a prompt change, a shift in data distribution, or a change in evaluation standards.

    5. From Benchmark to Production: Engineering Recommendations

    5.1 Model Tiering and Task Routing

    In production, it is usually not advisable to use the same model for every task. A better approach is to define routing policies based on task difficulty and cost budget.

    Simple tasks such as intent recognition, text classification, and formatted extraction can be assigned to lightweight models. More complex tasks such as advanced reasoning, code generation, and multi-document analysis can be routed to higher-capability models. This helps control cost and improve overall response speed.

    Routing can be rule-based or model-driven. For example, a system can first determine whether a task involves complex computation, code execution, multi-document references, or high-risk content, and then decide whether to escalate to a stronger model. For critical business scenarios, a human review step should also be included.

    5.2 Timeout, Retry, and Fallback

    Timeout rate is one of the core indicators of agent application stability. Production systems should define global timeouts, step-level timeouts, and tool-call timeouts. For long-running workflows, they can also use step confirmation, checkpoint continuation, and state persistence.

    If a step fails, the system should support retry. If the retry still fails, it should fall back to manual handling or a backup model.

    Fallback strategy is both a technical and business issue. For example:

    • If code generation fails, the system can return a suggested snippet instead of a complete solution.
    • If knowledge Q&A lacks sufficient evidence, the system can ask the user to provide additional materials.
    • If an automated workflow is interrupted, the system can transfer the task to a human agent.

    Good fallback design can significantly reduce business risk caused by model uncertainty.

    5.3 Observability and Runtime Governance

    After an LLM application goes into production, teams need a complete observability system. At a minimum, they should record:

    • Request volume
    • Success rate
    • Timeout rate
    • Average latency
    • Token consumption
    • Cost
    • Failure reasons
    • User feedback

    For agent applications, teams should also record task status, tool-call chains, and key decision points.

    In engineering practice, cloud platforms can provide common infrastructure such as object storage, message queues, container platforms, log services, and monitoring alerts. For example, teams using Baidu AI Cloud may build evaluation data archives, asynchronous calls, elastic deployment, and runtime observability on top of its common infrastructure. However, the final model selection should still be based on real business validation.

    5.4 Security, Compliance, and Data Governance

    Enterprises using large models should pay special attention to data security. Input data should be classified and managed according to sensitivity. Sensitive fields should be masked or encrypted. Call chains should retain audit logs, and different roles should have different permissions. For data involving personal information, commercial secrets, or regulatory requirements, teams should assess in advance whether it can be included in the model context.

    Output compliance also matters. Model-generated content should undergo security filtering, sensitive-word detection, and manual spot checks. For high-risk scenarios, a “review before publish” mechanism should be used to prevent model outputs from entering production directly.

    6. A Scorecard for Enterprise Model Selection

    When multiple models have similar overall scores, enterprises can build their own scorecard. The scorecard does not need to be perfectly precise, but it should help the team align on what matters most. A sample scorecard is shown below:

    Dimension Suggested Weight Key Focus
    Business effectiveness 40% Task completion rate, accuracy, human satisfaction
    Stability 20% Timeout rate, failure rate, retry rate, long-tail latency
    Cost efficiency 20% Cost per question, token consumption, cache hit rate, retry cost
    Security and compliance 10% Data masking, permission control, audit capability, output compliance
    Operations and integration 10% Logging, monitoring, canary release, fallback, elastic scaling

    Weights should be adjusted according to business type. For high-concurrency customer service scenarios, latency and cost weights can be increased. For high-risk scenarios in finance, legal, or healthcare, accuracy and hallucination-control weights should be increased. For agent workflows, stability and timeout-rate weights should be increased.

    7. Conclusion

    The “tie” phenomenon in Chinese LLM benchmarks essentially reflects the continued convergence of leading models in general capabilities. For developers and enterprises, this does not make selection easier. Instead, it means selection has become more refined. The question is no longer simply “Which model is the strongest?” but “Which model is most suitable for the current task, cost budget, and risk-control requirements?”

    A mature selection approach uses benchmarks as references, business data as evidence, and a unified evaluation framework that includes cost, stability, security, and engineering readiness. Through continuous evaluation, canary releases, and runtime observability, teams can find a practical balance between effectiveness and cost, and build a large-model application system that can evolve sustainably.