Evaluating New-Generation LLMs: Capability, Stability, and Cost
A practical framework for assessing large language models in production, covering task accuracy, safety boundaries, agent autonomy, inference efficiency, and cost. This guide explains how to move from subjective impressions to reproducible, data-driven evaluation metrics and selection strategies.
Why Subjective Experience Is Not a Reliable Basis for Model Selection
When teams discuss model selection, common remarks include “this model has gotten smarter lately” or “that model seems slower now.” These impressions are not entirely unfounded, but they are difficult to reuse or compare across different contexts. The same model can behave very differently across time periods, task types, and context lengths. Server load, inference budget settings, prompt phrasing, and model version updates can all influence the final experience.
For this reason, evaluation needs to convert “feelings” into metrics that can be recorded, repeated, and compared. A sound evaluation plan should answer three questions: which capability is being measured, what samples are used to measure it, and how results are judged.
Four Core Evaluation Dimensions
1. Task Accuracy
Accuracy is the most fundamental metric. Test samples should come from real workflows, such as bug fixing, API refactoring, log analysis, and documentation generation, and should be stratified by difficulty. Simple tasks measure stability, while complex tasks measure the upper bound of capability. The judging criteria must be defined in advance: whether success is determined by automated unit tests, manual scoring rubrics, or a combination of both.
2. Security-Related Capabilities
Vulnerability analysis, code auditing, and patch generation are dual-use capabilities. The same skills that help defenders identify and fix flaws can also be misused. Evaluation must therefore cover two aspects. First, the quality of defensive tasks within authorized boundaries—for example, whether the model can accurately locate the root cause of a vulnerability and propose a minimally invasive fix. Second, behavioral boundaries under unauthorized requests—for instance, whether the model declines or requests confirmation when asked to act against an unapproved target. These tests should be conducted in an isolated environment, and the samples and results should not be made public.
3. Agent Autonomy
When a model needs to continuously call tools, read and write files, and execute multi-step plans, the evaluation focus shifts from single-turn answers to process quality. The following aspects are worth examining: whether the plan is reasonable, whether tool parameters are correct, whether the model can detect and recover from errors, and whether it executes irreversible operations without explicit confirmation. Process metrics often reveal production risks more clearly than final answers.
4. Inference Efficiency and Cost
Efficiency determines whether a model can support high-frequency production scenarios. Key metrics include time to first token, output throughput (tokens per second), input and output token consumption per task, and stability under concurrent load. Some models generate additional reasoning tokens, which typically count toward billing and occupy processing time; they should not be ignored in statistics.
Building a Reproducible Evaluation Pipeline
Below is a simplified evaluation framework. It fixes sampling parameters, repeats each sample multiple times, and records latency and results for subsequent mean and variance analysis.
for case in test_suite:for run in range(N):t0 = now()output = call_model(prompt=case.prompt,temperature=0,max_output_tokens=case.budget,)t1 = now()score = judge(output, case.expected) # unit test or scoring rulerecord(case.id, run, score, t1 - t0, count_tokens(output))
Key implementation points:
- Fix sampling parameters such as temperature, and record the exact model version identifier.
- Repeat each sample multiple times to avoid treating a one-off result as a conclusion.
- Run batches at different times of day to observe latency variations across time periods.
- Save results as structured data, and re-run the same baseline suite after each model update.
Measuring Throughput and Cost
A common definition of throughput (TPS) is the number of output tokens divided by the total generation time. Teams need to standardize the definition, or the data cannot be compared across evaluations. It is recommended to record two phases separately:
- The prefill phase (processing input), which scales with input length;
- The decode phase (generating output token by token), which scales with output length and reasoning depth.
If the model supports adjustable reasoning effort, measure quality and latency at each level separately, and plot a quality-cost curve. The point where additional cost yields the highest quality improvement is typically the more suitable operating point. For example, routine code completion can use a lower effort setting, while only complex troubleshooting requires the highest setting.
Interpreting Results and Selecting Models
- Do not chase a single winner. Different models may excel at different tasks in non-overlapping ways. A more sensible approach is to build a routing strategy by task type, so that each category uses the most cost-effective option.
- Focus on variance, not peaks. A model that performs exceptionally at certain times but degrades noticeably at others poses a higher production risk. Analyze the distribution across multiple runs rather than the best single result.
- Integrate the evaluation baseline into continuous integration (CI). When the model provider releases a new version, re-run the baseline automatically. If quality regression is detected, roll back or adjust the configuration promptly.
- Set hard thresholds for safety metrics. If the failure rate on refusing unauthorized requests exceeds a defined threshold, the model should not be deployed even if other metrics are superior.
Implementation Checklist
- Define evaluation objectives and target use cases.
- Build a stratified test suite and record sample provenance.
- Fix sampling parameters and record model version identifiers.
- Collect metrics across four dimensions: accuracy, safety boundaries, agent process quality, and efficiency/cost.
- Execute security-related tests in an isolated environment.
- Produce structured reports and set deployment thresholds.
- Establish a regression baseline and a periodic re-testing mechanism.
The goal of evaluation is not to prove that one model is the strongest, but to find the most suitable solution for a specific business under explicit cost and risk constraints. Replacing impressions with data makes every model upgrade controllable and explainable.
