Chinese General-Purpose LLM Evaluation and Cost Optimization for Production Deployment

    This article explains how Chinese general-purpose LLM evaluation is moving from leaderboard scores to business-oriented engineering metrics. It covers multi-dimensional model evaluation, agentic coding, timeout rates, output token efficiency, cost per task, hallucination control, long-context handling, and precise instruction following. It also provides practical guidance for building internal evaluation, monitoring, and cost-optimization loops for production LLM applications.

    As large model applications move from demonstration and validation toward production deployment, industry attention is shifting. Early discussions focused on parameter scale, benchmark scores, or the quality of a single chat response. In real business environments, developers and enterprise users care more about whether a model can reliably complete complex tasks, remain dependable in coding, analysis, tool calling, and multi-turn interaction, and keep per-task cost and response latency under control.

    As a result, discussions around Chinese general-purpose LLM evaluation are moving away from “which model has the highest score” and toward “which model is more suitable for a specific scenario” and “which option has a lower overall engineering cost.”

    The evaluation of Chinese general-purpose LLMs is shifting from simple knowledge question answering to comprehensive, multi-task, multi-dimensional, and reproducible assessment.

    In the past, a model’s intelligence was often measured through common-sense question answering, reading comprehension, or basic generation. In real business settings, however, a model often needs to perform multiple tasks at the same time: understanding long documents, extracting structured information, following complex formats, generating executable code, calling external tools, maintaining state across multiple turns, and correcting errors when they occur.

    For this reason, modern evaluation systems usually cover the following capability areas:

    1. General reasoning: logical judgment, mathematical calculation, causal analysis, multi-step reasoning, and problem decomposition.
    2. Engineering and development: code generation, code explanation, bug fixing, interface understanding, and technical documentation summarization.
    3. Agent planning: task decomposition, tool selection, workflow execution, state maintenance, and exception recovery.
    4. Long-context processing: long-document summarization, cross-paragraph information retrieval, context consistency, and retention of key details.
    5. Precise instruction following: format constraints, field output, role settings, boundary condition compliance, and multi-turn consistency.
    6. Hallucination control: factual consistency, citation reliability, expression of uncertainty, and refusal mechanisms.
    7. Stability and cost: task completion rate, timeout rate, output token count, retry count, and cost per task.

    This evaluation approach is closer to real production environments because enterprise deployment usually does not involve calling a model only once. Instead, the model is embedded into an entire business workflow.

    Even if a model produces high-quality answers in isolated cases, it may still be difficult to enter core systems if it frequently times out, generates overly long output, produces format errors, or costs too much during complex tasks.

    2. Top Model Scores Are Converging: Model Selection Should Return to Business Scenarios

    Looking at recent rounds of Chinese general-purpose capability evaluations, the overall gap among leading models is narrowing. Some leading models may have very small total score differences, and because of how evaluation rules handle minor score gaps, they may even be considered to belong to the same tier.

    This suggests that competition among Chinese general-purpose LLMs has become fairly mature in basic language capability, common-sense understanding, general question answering, and common reasoning tasks. Relying solely on overall leaderboard rankings for technical model selection is becoming less valuable.

    For developers, a more meaningful approach is to break evaluation down by business scenario:

    • For intelligent customer service, focus on intent recognition, multi-turn dialogue, knowledge base question answering, refusal strategies, and response latency.
    • For code assistants, focus on code generation, unit test completion, defect localization, cross-file understanding, and tool calling.
    • For document analysis, focus on ultra-long context, information extraction, paragraph citation, summary consistency, and table handling.
    • For agent automation, focus on task planning, tool calling, error recovery, operation logs, and execution success rate.
    • For enterprise knowledge base question answering, focus on hallucination control, citation traceability, permission boundaries, and answer verifiability.

    In other words, leaderboards provide an overall trend, but what truly determines launch effectiveness is a model’s stability, controllability, and cost performance on target task sets.

    3. Agentic Coding: From Generating Code to Completing Tasks

    Among general LLM capabilities, coding ability no longer means simply “writing a function.”

    With the growth of agents and tool calling, coding tasks increasingly emphasize end-to-end completion. A model may need to understand requirements, read context, generate code, invoke a runtime environment, inspect errors, modify code, and finally pass tests. This type of task is often called agentic programming or autonomous programming.

    Agentic programming places much higher demands on models than ordinary code completion. The main challenges include:

    1. Understanding task boundaries: The model must determine which inputs are requirements, which are environment information, and which are constraints.
    2. Maintaining state across multiple steps: The model needs to preserve variables, file contents, error logs, and intermediate results across multiple execution turns.
    3. Accurate tool calling: If the model needs to execute commands, read files, or call APIs, it must select the correct tool and provide valid parameters.
    4. Error diagnosis: When execution fails, the model should locate the cause from logs instead of blindly retrying.
    5. Output convergence: The model should avoid infinite loops, meaningless context expansion, or repeated generation of invalid content.

    In evaluation, programming task performance often strongly influences the overall impression because it reflects a model’s reliability in real engineering workflows. If a model maintains a high completion rate, a low timeout rate, and controllable token consumption on coding tasks, it usually also indicates relatively strong capability in complex reasoning, instruction following, and state management.

    A simplified evaluation workflow can be represented as the following pseudocode:

    1. for task in eval_set:
    2. start_time = now()
    3. result = invoke_model(task)
    4. end_time = now()
    5. record(
    6. task_id=task.id,
    7. status=result.status,
    8. latency=end_time - start_time,
    9. input_tokens=result.input_tokens,
    10. output_tokens=result.output_tokens,
    11. retries=result.retries,
    12. score=score_by_rubric(task, result)
    13. )

    This process looks simple, but the real factors that affect results are evaluation set design and scoring rules. Evaluation tasks should cover the real business distribution as much as possible, including simple tasks, medium-complexity tasks, and high-complexity tasks. It is also important to record failure reasons, not only final scores.

    4. Timeout Rate and Output Tokens: Stability Matters More Than Isolated High Scores

    In complex tasks, timeout rate is a very important engineering metric. It reflects not only response speed but also whether a model can complete the full reasoning chain within limited resources.

    For tasks such as code generation, agent execution, and long-text processing, timeouts are more likely to occur when the model produces overly long output, diverges in its reasoning path, or fails to call tools correctly.

    If a model generation has a high timeout rate on difficult programming tasks, it will struggle to enter production systems even if it performs well on some samples. Production systems need predictable results, not occasional impressive outputs followed by frequent failures.

    If a newer model generation can significantly reduce the timeout rate and maintain complete execution even on difficult tasks, its engineering value may be greater than a simple leaderboard improvement.

    Closely related to timeout rate is output token count. More verbose output can create three problems:

    1. Higher cost: Output tokens are usually more expensive than input tokens, and long output directly increases expenses.
    2. Higher latency: Generation time increases with output length, which can negatively affect user experience.
    3. Higher error probability: Longer output increases the likelihood of format errors, logic drift, and repeated information.

    Therefore, both evaluation and deployment should pay attention to task completion quality and output efficiency. A high-quality model should not only be able to answer questions; it should also be concise, stable, and parseable while maintaining correctness.

    5. Cost per Task: Enterprises Must Measure the Economics Before Scaling

    Whether large model applications can scale eventually depends on cost. Many teams focus only on effectiveness during the prototype stage and later discover that invocation costs, retry costs, and human review costs can grow rapidly.

    This is especially true in agent scenarios. A single task may involve multiple model calls, multiple tool calls, and multiple rounds of context passing, making the cost much higher than a single question-answer interaction.

    Cost per task can usually be broken down as follows:

    1. cost per task = input cost + output cost + tool call cost + retry cost + external retrieval cost

    The model invocation cost itself can be expressed as:

    1. model cost = input tokens × input price + output tokens × output price

    If the system includes retrieval-augmented generation, it may also need to account for vector retrieval, document parsing, and storage or compute costs.

    If the system includes tool calling, it may also need to consider API fees, execution environment fees, or third-party service fees.

    If failed requests are retried, the number of retries should also be included in the calculation.

    A simplified cost estimation pseudocode is shown below:

    1. input_cost = input_tokens * input_price / 1000
    2. output_cost = output_tokens * output_price / 1000
    3. tool_cost = tool_calls * tool_price
    4. retry_cost = retries * average_call_cost
    5. total_cost = input_cost + output_cost + tool_cost + retry_cost + retrieval_cost

    In practice, cost optimization is not simply choosing the cheapest model. Instead, teams should build a layered strategy:

    • Use low-cost, low-latency models for simple question answering.
    • Use more capable models for complex reasoning and coding tasks.
    • Add rule validation, human review, or secondary confirmation for high-risk tasks.
    • Introduce caching, summary compression, and result reuse for high-frequency requests.
    • Use segmented retrieval and incremental summarization for long documents instead of stuffing all content into the model at once.

    This approach can help control overall cost within a reasonable range while maintaining effectiveness.

    6. Hallucination Control: From “Looks Reasonable” to “Can Be Verified”

    Hallucination is one of the core challenges in LLM deployment. It refers to content generated by a model that appears reasonable but lacks factual basis, is inconsistent with the context, or cannot be verified.

    In general question answering, hallucination may be only a user experience issue. In enterprise knowledge bases, healthcare assistance, financial analysis, legal research, and industrial operations, however, hallucination can lead to serious consequences.

    Reducing hallucination cannot rely on the model alone; it requires system-level design. Common approaches include:

    1. Retrieval-augmented generation: Retrieve relevant evidence from a knowledge base before answering and require the model to respond based on that evidence.
    2. Citation traceability: Ask the model to identify information sources so that results can be verified later.
    3. Uncertainty expression: When evidence is insufficient, the model should clearly state that it cannot confirm the answer instead of forcing a response.
    4. Tool-based validation: For critical fields such as numbers, dates, order IDs, and inventory levels, validate through APIs or rule engines.
    5. Output constraints: Use structured output, enumerated values, format validation, and post-checks to reduce free-form generation.
    6. Refusal mechanisms: Allow the model to safely refuse or escalate to a human when questions are unauthorized, low-confidence, or high-risk.

    In evaluation, hallucination control is often reflected in metrics such as factual consistency, citation accuracy, and robustness under misleading prompts.

    A model that remains stable in misleading questions, missing-context scenarios, and conflicting information scenarios is usually more suitable for enterprise-level applications.

    7. Ultra-Long Context: Not Longer Is Better, but More Accurate Is Better

    Ultra-long context capability has become an important direction in LLM evaluation in recent years. Long-document analysis, code repository understanding, meeting summary generation, and multi-turn conversation memory all depend on a model’s ability to process large amounts of context.

    In engineering practice, long-context handling is not as simple as inputting all content into the model at once. Excessively long input can lead to high costs, high latency, diluted key information, and attention decay.

    A more reasonable architecture for ultra-long context usually includes:

    • Document segmentation: Split long documents into semantically complete chunks.
    • Vector retrieval: Recall the most relevant chunks based on the question.
    • Hierarchical summarization: First summarize sections, then perform a second-level summarization on those summaries.
    • Key information extraction: Extract key elements such as people, time, amounts, entities, and conclusions.
    • Context reranking: Place the most relevant content where the model can use it more effectively.
    • Cache reuse: Cache stable documents or frequently asked questions to reduce repeated computation.

    Therefore, when evaluating ultra-long context capability, it is not enough to see how many words can be inserted. It is more important to see whether the model can accurately locate and reason over the inserted content.

    A model that can reliably find key passages in a long context, cite the correct basis, and maintain consistent conclusions has genuine engineering value.

    8. Precise Instruction Following: A Gate for LLMs Entering Production Systems

    In complex systems, models are often not used for free-form chat. Instead, they act as workflow nodes that must produce structured results.

    For example:

    • Output JSON for program parsing.
    • Output fixed fields for database writes.
    • Output classification labels for routing.
    • Output code patches for code review tools.
    • Output tool call parameters for executors.

    This requires strong precise instruction-following capability.

    Precise instruction following is not only about whether the model “listens well.” It is about whether the model can maintain consistent output under multiple constraints.

    Common constraints include field names, field types, enumerated ranges, format templates, tone requirements, boundary conditions, prohibited content, and multi-turn consistency.

    To improve precise instruction following, engineering teams can use the following methods:

    1. Clarify system prompts: Clearly define the role, task, output format, and prohibited actions.
    2. Use structured descriptions: Define output formats with tables or field lists.
    3. Provide examples: Supply a few input-output examples to help the model align with the required format.
    4. Add post-validation: Check outputs with schema validation, type checks, and business rule validation.
    5. Use failure fallback: Trigger retries or downgrade strategies when output does not meet format requirements.
    6. Reduce task complexity: Split a complex instruction into multiple simpler steps to avoid imposing too many constraints at once.

    A simplified structured-output pseudocode is shown below:

    1. response = invoke_model(prompt)
    2. if not validate_schema(response):
    3. response = retry_with_error_feedback(response, validation_errors)
    4. if not validate_business_rules(response):
    5. response = fallback_or_manual_review(response)

    By combining model generation, program validation, and automatic retry, teams can significantly reduce the production risk caused by format errors.

    9. Engineering Recommendations: Build Your Own Evaluation and Monitoring Loop

    For developers and enterprise users, public evaluations are only the first step. It is more important to build an internal evaluation loop.

    Different businesses have different task distributions, error tolerance levels, and cost budgets. Public leaderboards cannot fully replace internal evaluation.

    It is recommended to build a model evaluation system from the following aspects:

    1. Build a Business Evaluation Set

    The evaluation set should come from real business scenarios. It should cover common questions, low-frequency long-tail questions, boundary cases, and misleading-error scenarios.

    The sample size does not need to be very large at the beginning, but the samples should be representative.

    2. Define Multi-Dimensional Metrics

    In addition to accuracy, teams should also track completion rate, timeout rate, average latency, output token count, retry rate, user satisfaction, manual correction rate, and cost per task.

    3. Establish a Canary Release Process

    Before a new model is fully launched, validate it in a small-traffic scenario, observe whether key metrics remain stable, and then gradually expand the scope.

    4. Establish Monitoring and Alerting

    Set up real-time monitoring for error rates, timeout rates, sudden cost increases, sensitive word hits, format errors, and user complaints so that anomalies can be detected promptly.

    5. Establish a Version Review Process

    After each model or prompt change, retain version records and evaluation results. This makes it easier to compare performance changes and avoid tuning based on intuition alone.

    A simplified launch monitoring metric table can include the following:

    1. Metric Name Description
    2. Task success rate Percentage of tasks completed and meeting business requirements
    3. Average latency Average time from request start to result return
    4. Timeout rate Percentage of tasks exceeding the predefined timeout threshold
    5. Output tokens Average number of generated tokens per task
    6. Retry rate Percentage of retries triggered by format or execution failures
    7. Cost per task Average total cost for a single task
    8. User feedback Likes, dislikes, escalation to human support, and complaints

    10. Conclusion: Model Competition Is Shifting Toward Comprehensive Engineering Capability

    Recent trends in Chinese general-purpose LLM evaluation show that the overall gap among leading models is narrowing. The focus of competition is shifting from a single score to stability, coding capability, long-context processing, hallucination control, instruction following, and cost control.

    For developers, this means model selection should not focus only on the “strongest model.” Instead, it should focus on the “combination of models that best fits business scenarios.”

    Mature LLM applications usually do not rely on a single model to handle everything. Instead, they build sustainable system capabilities through task layering, workflow design, retrieval augmentation, tool calling, rule validation, monitoring and alerting, and cost optimization.

    Evaluation scores can reflect a model’s potential, but only when those capabilities are implemented in a business loop can they create stable value.