Evaluating New-Generation LLMs: A Practical Method for Model Selection and Migration
This article describes a repeatable process for evaluating and migrating large language models. It covers building a private evaluation set, measuring end-to-end success for multi-step agent tasks, tracking output token efficiency, checking vendor safety frameworks, estimating costs from real traffic, and rolling out a new model gradually with a rollback plan. It also explains why every claim should be checked against official sources.
1. Why Model Selection Needs to Be Redone
Each time a new model is released, its capabilities, pricing, availability, and safety controls may all change at once. Conclusions from an earlier evaluation may not hold for the new version. Model selection should therefore be repeated on a regular cycle, not decided once and kept indefinitely.
Release schedules are also changing. More vendors run safety and alignment checks before launch, and some versions may be delayed or made available only to a limited group. For evaluators, the release date alone is not a reliable indicator of availability. The rollout scope, available channels, and access conditions also need to be confirmed.
This article covers general methods. The figures, tier names, and prices mentioned here are illustrative only. Refer to the vendor’s official documentation for actual values. Secondhand reports, social media rumors, and leaderboard screenshots should be checked against official sources first.
2. Capability Evaluation: Use a Private Eval Set Instead of Public Leaderboards
Public leaderboards give a rough reference point, but they do not reflect your business data, prompt style, or error tolerance. A more reliable approach is to build a private evaluation set.
To build an eval set, follow these steps:
- Sample from real business logs, covering high-frequency scenarios, edge cases, and past failure cases.
- Define a pass criterion for each sample that can be judged objectively, such as whether all fields are exactly correct or whether code passes unit tests.
- Have two annotators label samples independently and measure their agreement. Send disagreements to a third reviewer for a final decision.
- Save the results from the model currently in use as a regression baseline.
The required sample size depends on business risk. Each task type usually needs dozens to hundreds of samples before differences in results become meaningful. With too few samples, random variation can change the ranking.
For coding tasks, focus on three things: whether the model keeps an understanding of the overall structure of a large code repository, whether it stays consistent when editing multiple files, and whether it gets tool call function signatures and parameter types right. Report a pass rate for each item instead of relying on subjective impressions.
3. Agent Tasks: Measure End-to-End Success Rate
Evaluating multi-step agent tasks differs from evaluating single-turn Q&A. High accuracy on individual steps does not mean the full task will succeed.
Suppose each step has a 95% success rate, the task has 20 steps, and the steps are independent. The overall success rate is about 0.95^20, or roughly 36%. This approximation shows how fragile multi-step tasks can be. In practice, steps often depend on each other, and failures can be correlated. The most reliable method is still to measure the end-to-end success rate directly.
When evaluating, record which step each failure occurs at, whether a retry happened, and whether the retry succeeded. This data helps determine whether problems come from planning, tool calls, or error recovery.
The same approach applies to computer-use and embodied operation capabilities. Public benchmark results can only serve as references. Before citing such data, confirm the benchmark name, sample size, evaluation conditions, and data source. Then re-validate on your own tasks.
4. Output Token Efficiency: A Shared Driver of Latency and Cost
Output token count affects two things. First, the completion time of streamed responses roughly scales with output length, so longer outputs mean users wait longer. Second, most pricing models charge more per output token than per input token, so longer outputs cost more.
When evaluating, track two metrics on your eval set: the average number of output tokens per request at a defined quality threshold, and the parse failure rate for structured outputs. If a new model produces shorter outputs at similar quality, it may improve latency, cost, and the stability of downstream parsing at the same time.
Do not look at output length alone. Outputs that are too short may omit key information, so compare them together with quality metrics.
5. Safety and Compliance: Follow the Official Framework
Vendors typically publish safety evaluation reports or risk frameworks. These describe a model’s capability levels in high-risk areas such as cybersecurity and biochemistry, along with the controls that apply at each level. When selecting a model, read these official documents directly rather than relying on secondhand summaries.
Level names and definitions differ across vendors and cannot be compared directly. Before citing a level, confirm the framework name, version, publication date, and scope. If you cannot verify a claim, do not state it as a definitive conclusion about the model.
Regardless of a model’s built-in safety capabilities, companies should set up their own controls, including:
- Tiered access permissions that limit which features and data each role can reach;
- Auditing of prompts, with logs of key requests;
- A filtering layer on outputs to block sensitive or non-compliant content;
- Traceable logs to support incident investigation.
A model’s built-in guardrails are one line of defense, but they should not be the only one.
6. Cost Evaluation: Calculate Based on Real Traffic
Confirm pricing changes against the official pricing page, and record the effective date and billing basis. A list price per unit does not equal the actual bill. Actual spend also depends on the input-to-output ratio, cache hit rate, and reasoning effort.
Prefix caching benefits should be calculated separately. Caching usually applies only to repeated input prefixes, so the gains are largest in scenarios with long system prompts, multi-turn conversations, and repeated references to the same documents. Estimate the hit rate from sampled real traffic, then calculate the average cost per request.
Some vendors offer multiple reasoning effort levels. Higher levels mean deeper reasoning, and cost and latency usually increase as well. The tiers below are illustrative only. For the actual levels and their intended use cases, refer to the official documentation:
Illustrative tiers (refer to official documentation):- low: simple classification, format conversion, short text summarization- medium: general Q&A, single-file code generation- high: multi-step reasoning, complex debugging, data analysis
A common approach is dynamic routing. Handle requests at a low effort level first, and escalate only failed or difficult requests to a high level:
def route(request):result = infer(request, effort="low")if is_low_confidence(result) or request.requires_deep_reasoning:return infer(request, effort="high")return result
The is_low_confidence function must be defined for your business. It could rely on output probabilities, self-check results, or rule-based checks. Validate the routing strategy on your eval set as well. If too many requests are escalated, the savings can be offset.
7. Pre-release Signals: Treat Them as Leads to Verify
Leaked screenshots, user feedback, and rumors before a release may hint at new feature directions, such as multimodal capabilities or interface changes. However, this information is not confirmed by official sources and should not be used directly for decisions.
A reasonable approach is to turn these signals into test cases. For example, if a rumor says a model supports a new input type, prepare matching test samples in advance. Then verify quickly once the official documentation is published.
8. Migration: Keep Models Replaceable
The goal of migration evaluation is to switch models without changing business logic. Common practices include:
- Put model names, parameters, and prompts in configuration instead of hardcoding them;
- Wrap differences between vendor APIs behind a unified calling layer;
- Build structural validation for critical outputs, and automatically retry or fall back to a backup model on failure.
Use a gradual rollout when switching. Direct 5% to 10% of traffic to the new model first, and compare quality, latency, error rate, and cost. After the metrics meet targets, increase the share step by step. Keep a fast rollback option so you can switch back to the original model quickly if problems appear.
9. Conclusion
Model selection is not a one-time decision. Capability, safety, and cost all need ongoing evaluation, and the basis for decisions should be official documentation and your own business data. A stable evaluation process holds up better in a fast-moving environment than chasing individual releases.
