How to Choose Large Language Models: From Evaluation Data to Decision Methodology

    Vendor benchmark scores often fail to reflect real-world performance in production environments. This article introduces a reusable evaluation methodology for LLM selection, covering four core dimensions: accuracy, latency, token consumption, and cost. Using a real-world model iteration as a case study, it details how to build a customized evaluation set and supporting infrastructure to make reliable, business-driven LLM decisions.

    How to Choose Large Language Models: From Evaluation Data to Decision Methodology

    1. Why Benchmark Scores Do Not Equal Usability

    In recent years, the evolution of Large Language Models (LLMs) has been staggering: context windows are continuously expanding, reasoning capabilities are improving, and tool calling (Function Calling) and agentic (Agent) capabilities have become standard. Almost every few months, vendors release new versions accompanied by impressive benchmark scores.

    However, as experienced developers know, there is often a significant gap between official benchmark scores and actual experience in production environments. There are three main reasons for this:

    1. The dataset used for benchmarking may have a completely different distribution from your business scenario. A model scoring high on general knowledge Q&A does not guarantee the same performance in your vertical domain (such as legal, healthcare, or finance).
    2. Vendors usually only highlight metrics favorable to them, while intentionally ignoring indicators that directly impact engineering implementation, such as response speed, token consumption, and unit cost.
    3. Excellent single-call performance does not guarantee stability under real-world workloads, such as high concurrency, long conversations, or complex tool chain invocations.

    Therefore, the scientific approach is to build your own evaluation set and quantitatively compare candidate models across multiple dimensions. This article uses a real-world evaluation dataset from a domestic LLM version upgrade (comprising approximately 15,000 test questions across various sub-domains) to break down a reusable evaluation methodology.

    2. Four Core Dimensions for Model Evaluation

    A qualified LLM evaluation must cover at least the following four dimensions:

    1. Accuracy: The Capability Ceiling

    Accuracy is the intuitive reflection of a model’s capability. In the referenced evaluation, the new version’s overall accuracy improved from 66.6% to 68.7%, an increase of 2.1 percentage points, propelling its comprehensive rank among similar models from 20th to 10th.

    However, looking only at the total score is far from enough. Two models with the same total score may possess entirely different capability structures. Therefore, domain-level capability breakdown is essential:

    • Domains with significant improvement: Legal and administrative affairs increased from 72.7% to 80.3% (+7.6 percentage points), education increased from 41.2% to 46.9% (+5.7 percentage points). Healthcare and mental health, as well as reasoning and mathematical calculation, also saw improvements of over 3 percentage points.
    • Domains with regression: Language and instruction-following dropped from 66.2% to 64.6%, and Agent and tool calling dropped from 72.7% to 69.9%.

    The second point is particularly noteworthy. While official marketing emphasized “enhanced agentic capabilities,” the evaluation data showed a regression in tool calling. This reveals a common phenomenon: capability trade-offs exist during model training. Improvements in one area may come at the cost of slight degradation in another. If your core business relies heavily on Agents and tool calling, this “upgrade” might not be a good thing.

    Practical Advice: Before selection, clearly define the capability weight requirements of your business. If your scenario involves legal document analysis, prioritize accuracy in the legal domain; if you are building automated workflows, the stability of tool calling is the top priority.

    2. Response Latency: The Lifeline of User Experience

    The new version reduced the average time per call from 98 seconds to 59 seconds, an improvement of about 39.8%. This is the most impressive data point in this upgrade.

    The engineering significance of latency goes far beyond intuition: for conversational applications, user-acceptable wait times are usually measured in seconds; for Agent scenarios, a single task often involves multiple rounds of model calls, amplifying single-call latency. Assuming an agentic task requires an average of 10 model calls, saving 39 seconds per call saves 6.5 minutes for the overall task.

    Practical Advice: During evaluation, distinguish between “Time To First Token” (TTFT) and “Total Generation Latency.” The former determines when the user sees the response begin, while the latter determines when the task is completed. Applications using streaming output should focus more on the former.

    3. Token Consumption: The Underestimated Hidden Cost

    The new version reduced the average token consumption per call from 2,944 to 2,851, a decrease of about 3.2%.

    Token consumption is easily overlooked because it does not directly affect the “feel” of a single call, yet it directly determines the bill amount during large-scale invocations. A drop in token consumption usually means the model’s expression is more concise with less redundant output. This is both a cost optimization and often accompanied by an improvement in inference efficiency.

    Practical Advice: When evaluating, do not just count total tokens; break down the ratio of input tokens to output tokens. The proportion varies greatly across different business scenarios—summarization tasks have much higher input than output, while creative tasks are the opposite. Since the unit prices for input and output are usually different, breaking down the statistics is necessary to calculate the true cost.

    4. Call Cost: The Ultimate Arbiter of Cost-Effectiveness

    Combining token consumption and latency optimizations, the cost per 1,000 calls for this model dropped from 38.8 RMB to 37.6 RMB, a decrease of about 3.1%.

    The correct way to calculate cost-effectiveness is not “lowest price,” but cost per unit of accuracy:

    1. Cost-effectiveness Index = Accuracy / Cost per 1,000 calls

    Using this data as an example: 68.7 / 37.6 ≈ 1.83 (new version) compared to 66.6 / 38.8 ≈ 1.72 (old version). The new version’s cost-effectiveness improved by about 6.4%. This metric allows you to make quantitative trade-offs between “cheap but weak” and “expensive but strong” models.

    Additionally, consider the cost correction of task success rate: if Model A is cheap per call but has a low first-try success rate requiring retries, while Model B is expensive but gets it right the first time, Model B’s actual cost may be lower. During evaluation, record the “average number of calls required to achieve a qualified output,” and then calculate the true cost.

    3. How to Build Your Own Evaluation Set

    Public leaderboards can only serve as initial screening references; the final decision must be based on an evaluation set tailored to your own business. Key steps to build an evaluation set:

    1. Sample Real Business Data: Extract representative requests from historical logs, desensitize them, and use them as test samples. It is recommended to cover common scenarios, long-tail scenarios, and extreme edge cases, with a ratio of roughly 7:2:1.
    2. Design Gradeable Questions: Prioritize question types with standard answers or programmatic grading (multiple-choice, code execution result verification, regex matching) to reduce the subjectivity of manual judgment.
    3. Control Evaluation Variables: Unify sampling parameters like temperature, prompt templates, and set timeout and retry strategies to ensure models are compared under identical conditions.
    4. Record Full Metrics: In addition to accuracy, record latency, input/output token counts, and whether rate limiting or errors were triggered for each call, accumulating data for cost and stability analysis.
    5. Regular Re-evaluation: Model versions will continue to iterate, and today’s conclusions may be invalid in three months. Automate the evaluation process (scripts + scheduled tasks) to make model comparison a routine engineering practice.

    A minimal evaluation script skeleton is as follows:

    1. import time
    2. def evaluate(client, test_cases):
    3. results = []
    4. for case in test_cases:
    5. start = time.time()
    6. resp = client.chat(messages=case["prompt"])
    7. elapsed = time.time() - start
    8. results.append({
    9. "correct": judge(resp.text, case["answer"]),
    10. "latency": elapsed,
    11. "tokens": resp.usage.total_tokens,
    12. })
    13. return summarize(results) # Summarize accuracy/average latency/average tokens/cost

    4. Supporting Infrastructure for Deployment

    Selecting a model is only the first step. In a real engineering architecture, supporting capabilities must be built around the model service. Common general components include:

    • Cache Layer: Caching results for high-frequency duplicate requests can significantly reduce token consumption and call costs.
    • Message Queue: Peak shaving and valley filling to prevent sudden traffic spikes from triggering rate limits on the model service.
    • Logging Service and Monitoring/Alerting: Continuously track the latency, error rate, and token consumption of live calls, compare them against evaluation baselines, and detect “silent updates” of model versions in a timely manner.
    • Fallback Strategy: Automatically switch to a backup model when the primary model is unavailable to ensure business continuity.

    These capabilities are available as generic product categories on mainstream cloud platforms; the key lies in architectural design rather than binding to a specific service.

    5. Conclusion

    Returning to the original question: when facing an unaffordable high-end model, is a domestic alternative sufficient? The answer is never a simple “yes” or “no,” but depends on your business scenario, capability weights, and cost constraints.

    The evaluation sample shown in this article tells us that during a version upgrade, a 2.1 percentage point increase in total score, a 40% speed improvement, and a 3.1% cost reduction can be achieved simultaneously, but individual capability domains may also regress. Only by quantifying the four dimensions of accuracy, latency, token consumption, and cost, and breaking down the analysis by business capability domain, can you draw reliable conclusions tailored to your business.

    In an era of rapid model iteration, rather than chasing every new model release, it is better to establish your own sustainable evaluation system—this is the true moat in LLM selection.