How to Objectively Evaluate New-Generation Large Language Models: Capability, Pricing, and Selection Strategy
This article explains how engineering teams can evaluate large language models beyond public leaderboard rankings. It covers four core dimensions: task capability, cost structure, latency and throughput, and engineering fit. It also describes tiered model routing with fallback rules, and how to build an internal evaluation set to compare models on real business tasks.
1. Why Launch Rankings Are Not Enough
When a new model is released, people usually look first at leaderboard positions and head-to-head comparison results. A leaderboard shows how a model performs on a specific test set. It does not answer the questions engineering teams care about most: Can this model complete tasks reliably on our own business data? How much does each call cost? How long does a response take? Evaluation should start from business goals. Public benchmarks are useful reference points, but they should not be the only basis for a decision.
2. Four Core Dimensions for Evaluating LLMs
1. Task Capability
Task capability refers to a model’s accuracy and stability on the target task. General benchmarks cover a wide range of skills, but their fit with a specific business is limited. When evaluating, focus on three points: whether the output is correct, whether repeated calls to the same prompt produce consistent results, and whether the model responds reasonably to edge-case inputs or ambiguous instructions.
2. Cost Structure
Most model services charge separately for input tokens and output tokens, and the output price is usually higher than the input price. As a result, the cost of a task depends on prompt length, the length of the generated content, and the number of calls. You can estimate the cost of a single call with the following formula:
Cost per call = input tokens / 1,000,000 × input price + output tokens / 1,000,000 × output price
The example code below uses placeholder prices. Replace them with the provider’s actual rates before use.
def estimate_cost(input_tokens: int, output_tokens: int,price_in: float, price_out: float) -> float:"""price_in and price_out are the prices per million tokens, in the same currency unit as the official price list."""return (input_tokens / 1_000_000) * price_in + (output_tokens / 1_000_000) * price_out# Example: 10,000 calls per day, with 2,000 input tokens and 800 output tokens per calldaily_calls = 10_000per_call = estimate_cost(2_000, 800, price_in=1.0, price_out=4.0) # placeholder pricesprint(f"Estimated daily cost: {per_call * daily_calls:.2f}")
Cost estimates should cover retries and failed calls. If the system automatically retries after a format validation failure, the actual spend will be higher than the theoretical value. Include the retry rate in the calculation.
3. Response Speed and Throughput
Time to first token (TTFT) determines the interactive experience. Overall generation speed determines how long long-form tasks take. The concurrency limit affects batch processing efficiency. The same model can perform very differently at different times of day and in different regions. For this reason, test with real traffic rather than relying on a single test run.
4. Engineering Fit
Engineering fit covers API compatibility, whether the context length meets your needs, how reliable structured output is, whether content safety policies match your business requirements, and the boundaries of data compliance. These factors often decide whether a solution can go live earlier than any single capability does.
3. Price and Capability Are Not Linearly Related
A more expensive model is not always worth using for every task. If a task is simple, the extra capability of a high-end model does not turn into business value. It only raises cost. For complex reasoning, multi-step planning, and long-document understanding, the capability gap directly affects result quality, so paying for capability makes more sense in these cases.
The core question in model selection is therefore how high the quality requirements for the task are, and how costly an error would be. Scenarios where errors are costly justify a high-capability model. Scenarios where errors are cheap and can be checked automatically suit a low-cost option.
4. Tiered Model Selection by Task Complexity
One practical approach is to divide requests into three tiers:
- Tier 1: Tasks that a rule set or a small model can handle, such as format conversion, keyword extraction, and fixed-template filling.
- Tier 2: Tasks that need some understanding but involve short reasoning chains, such as general Q&A, text rewriting, and summarization.
- Tier 3: Complex reasoning, code generation and debugging, multi-step tool calling, and specialized domain analysis.
Once tasks are tiered, routing can be implemented at the gateway layer. The following is a simplified example:
from dataclasses import dataclass@dataclassclass Request:task_type: strprompt: strSIMPLE_TASKS = {"format_convert", "keyword_extract", "template_fill"}COMPLEX_TASKS = {"code_debug", "multi_step_plan", "long_doc_analysis"}def choose_model(req: Request) -> str:if req.task_type in SIMPLE_TASKS:return "small_model" # Low-cost tier, placeholder nameif req.task_type in COMPLEX_TASKS:return "large_model" # High-capability tier, placeholder namereturn "medium_model" # Default mid-tierdef handle(req: Request, call_model):model = choose_model(req)return call_model(model, req.prompt)
A real system also needs a fallback rule. When the output of a lower-tier model fails validation, the request should automatically escalate to a higher-tier model and retry. Validation can use JSON parsing, required-field checks, or business rule judgments. This approach controls average cost while preventing simple tasks from failing because a model lacks the needed capability.
5. How to Judge the Gap Between Two Models
Public leaderboards have problems such as test set leakage and overfitting, so a single score is not enough to show the real difference between models. A more reliable approach is to build an internal evaluation set with the following steps:
- Sample real business data, covering common requests and edge cases, and label the expected results.
- Design automatic check functions for each task type, and keep manual spot checks.
- Call each candidate model with the same prompts and parameters, and record accuracy, cost, and latency.
- Classify the failed samples to determine whether the cause is missing knowledge, reasoning errors, failure to follow the format, or misreading the instruction.
A simple evaluation framework can look like this:
def run_eval(model_fn, cases):results = {"total": len(cases), "passed": 0, "failed": []}for case in cases:output = model_fn(case["prompt"])if case["check"](output): # check is the judgment function defined for each caseresults["passed"] += 1else:results["failed"].append(case["id"])results["accuracy"] = results["passed"] / results["total"]return results
Model versions change quickly, so evaluation conclusions have a limited shelf life. Rerun the evaluation after each model upgrade or price change, and keep historical results so you can compare trends over time.
6. Assessing the Gap Between Chinese and International LLMs
Over the past one to two years, the gap between Chinese and international large language models has shown signs of narrowing in several capabilities. However, “the gap is narrowing” and “when it will be surpassed” are two different claims. The first can be tracked through ongoing evaluation. The second requires longer time-series data to support it. Engineering teams should not adjust long-term technical direction based on predictive conclusions.
A safer approach is to decouple the business layer from specific models. With a unified calling abstraction layer, switching models only requires a configuration change, not changes to business code. This way, whichever model leads in which task in the future, the team can verify it quickly with evaluation data and adjust accordingly.
7. Implementation Recommendations
- Define the task list and success criteria before discussing model choice.
- Build an internal evaluation set and include it in the continuous integration pipeline.
- Route requests by task complexity, and set fallback rules, cost caps, and alerts.
- Apply structured validation to model outputs to reduce the risk of bad information entering downstream systems.
- Review changes in price, capability, and latency on a regular basis, and update routing rules in time.
