Model Selection Guide: How to Evaluate LLMs Beyond Leaderboard Scores

    Aggregate benchmark scores are only a starting point for choosing a large language model. This guide explains how to evaluate models against real business tasks, measure agent reliability and cost per successful task, account for long-running workloads, design model-routing strategies, and reduce upgrade risks through regression testing and gradual rollout.

    1. Aggregate Scores Are Only a Starting Point

    An aggregate benchmark score is usually a weighted average of results across multiple tasks. The benchmark provider determines both the weights and the task set. As a result, the same score can have very different implications in different use cases. A model that leads in knowledge-based question answering may not reliably handle software development tasks that require multiple rounds of tool calls.

    The same issue can occur during version upgrades. A new version may improve its overall score by several points because of significant gains in only a few task categories, while performance on other tasks remains flat or even declines. If a team bases upgrade decisions solely on the aggregate score, quality may fall in the scenarios that matter most to the business.

    The evaluation process is straightforward: after reviewing the overall score, break it down into individual metrics. Then compare those metrics with your own business task types and identify the dimensions that actually influence your results.

    2. Evaluate Models by Business Scenario

    At a minimum, evaluations should cover the following five categories:

    1. General understanding and reasoning: Accuracy in understanding requirements, extracting information, and performing logical inference.
    2. Coding agent capability: Whether the model can locate problems in a real codebase, modify code, run tests, and produce a result that is suitable for merging. These tasks depend on multi-step planning and tool use, so single-turn question-answering scores cannot fully represent performance.
    3. Long-task stability: Whether the model can maintain its objective as the number of steps increases, without repeating actions or forgetting earlier constraints.
    4. Cost structure: The separate prices for standard input, output, and cached input, as well as the approximate cache hit rate in the target workload.
    5. Response latency: Time to first token and total completion time, both of which directly affect the experience of interactive products.

    Coding-agent evaluations require particular attention to reasoning settings. The same model version may perform very differently at different reasoning-effort levels. In some cases, the highest setting may be less stable than a medium setting because longer reasoning chains create more opportunities for intermediate errors. Evaluation should therefore use fixed reasoning parameters, and the configuration used for every run should be recorded.

    3. Build an Internal Evaluation Set

    Public leaderboards cannot replace evaluations based on internal business tasks. The following process can help establish a practical evaluation set.

    Step 1: Sample real tasks. Extract tasks from the past three months of support tickets, code commits, or document-processing records. Include both frequent scenarios and edge cases. A recommended sample contains at least 100 items, each labeled with a difficulty level.

    Step 2: Define evaluation criteria. Automate tasks that can be judged automatically whenever possible, such as whether unit tests pass or whether the output follows a required format. For tasks that are difficult to evaluate automatically, such as writing quality, create detailed scoring guidelines. Two reviewers should score each result independently, with the final score based on an agreed result.

    Step 3: Run each task multiple times and calculate statistics. Model outputs are stochastic, so a single run is not reliable. Run every task at least three times, and report both the average success rate and its range of variation.

    Step 4: Fix the evaluation environment. Keep the prompt template, tool definitions, timeout limits, and reasoning parameters constant. Changing any of these factors can affect comparability.

    Example pseudocode:

    1. for version in candidate_versions:
    2. for task in evaluation_set:
    3. for run in range(3):
    4. result = run_agent(version, task, fixed_configuration)
    5. record(version, task.id, result.success, result.duration, result.usage)
    6. aggregate: calculate mean success rate, standard deviation, and average duration by version

    4. Measure Value with Cost per Successful Task

    The price of an individual API call is not sufficient for comparing models. A less expensive model may have a higher failure rate and require more retries, resulting in a higher final cost. A more useful metric is cost per successful task:

    Cost per successful task = Total spend ÷ Number of successful tasks

    The cost of one task consists of three parts:

    Single-task cost = Standard input tokens × Standard input price + Cached input tokens × Cached input price + Output tokens × Output price

    The following example uses hypothetical figures. Assume a model charges 10 currency units per million tokens for standard input, 1 currency unit per million tokens for cached input, and 40 currency units per million tokens for output. If one agent task contains 5,000 standard input tokens, 15,000 cached tokens, and 3,000 output tokens:

    • Standard input: 5,000 × 10 ÷ 1,000,000 = 0.05
    • Cached input: 15,000 × 1 ÷ 1,000,000 = 0.015
    • Output: 3,000 × 40 ÷ 1,000,000 = 0.12
    • Total: 0.185

    If the task has an 80% success rate, the cost per successful task is approximately:

    0.185 ÷ 0.8 ≈ 0.23

    A second model with a lower per-call price but only a 50% success rate may therefore have a higher cost per successful task.

    The prices above are for illustration only. Actual decisions should use the provider’s current public pricing and be reviewed regularly.

    5. Account for Cost Amplification in Long-Running Workloads

    Agent systems typically make far more calls than a human conversation. In automated office workflows, batch code review, and multi-agent collaboration, a single user request may trigger dozens of model calls. The following factors can significantly increase costs:

    • Context growth: Passing the complete conversation history into every round causes input volume to increase over time.
    • Retries and fallbacks: Tool-call failures generate repeated requests.
    • Cache misses: Frequently changing prompt prefixes prevent cache reuse.

    Recommended measures include keeping the system-prompt prefix stable to improve cache hit rates, summarizing and compressing conversation history while retaining only content relevant to the current step, and setting a maximum retry count. Retryable and non-retryable errors should also be handled differently.

    6. Use Model Routing and Tiered Deployment

    Most workloads do not require the strongest model for every request. A common approach is to route tasks by difficulty:

    1. function select_model(task):
    2. if task.type in [classification, format_conversion, simple_qa]:
    3. return lightweight_model
    4. if task.involves_multiple_file_changes or task.requires_complex_reasoning:
    5. return flagship_model
    6. return standard_model

    Routing rules should be based on evaluation data rather than assumptions. Record the success rate and cost of each task category across candidate models. Then, subject to a required quality threshold, choose the lowest-cost option. The routing rules themselves should also be included in the evaluation set and tested regularly through regression evaluations.

    7. Establish a Rollout and Regression Process

    Before upgrading a model, consider completing the following steps:

    1. Compare the old and new versions on the offline evaluation set, and confirm that performance on critical tasks has not regressed.
    2. Conduct a small-scale canary rollout, such as exposing the new version to 5% of requests first, and observe changes in success rate, latency, and cost.
    3. Monitor the results during the rollout and use the observed success rate, latency, and cost changes to guide the next deployment decision.