How to Evaluate Large Language Models: A Practical Framework for Model Selection

    This article explains why a single leaderboard is not enough for choosing a large language model, and how to build a repeatable evaluation and selection process. It covers the dimensions measured by comprehensive intelligence benchmarks, how to compare capability against per-task cost using a Pareto frontier, and why agentic evaluations better reflect performance in real workflows. It also outlines a three-layer evaluation funnel—public leaderboards, a private business test set, and canary deployment with cost regression—along with common pitfalls and engineering recommendations. The goal is to help teams validate models on their own workloads instead of relying on rankings alone.

    1. Why a Single Leaderboard Is Not Enough for Model Selection

    In real engineering practice, selection teams often run into an awkward situation: a model ranks near the top of a public leaderboard, but once it is integrated into a business workflow, it turns out to be unstable on long-horizon tasks. Another model with a slightly lower overall score achieves a higher completion rate in real agent workflows. The reason is that model capability is a multi-dimensional vector, and a leaderboard is only the projection of that vector onto a particular evaluation set.

    For this reason, understanding the design logic of an evaluation system is more valuable than memorizing a single ranking. Comprehensive intelligence index evaluations typically cover the following high-difficulty dimensions:

    • Complex reasoning: multi-step logic chains, constraint satisfaction, and counterfactual inference;
    • Code generation and debugging: cross-file understanding, error localization, and minimal patches;
    • Tool calling: function selection, argument filling, retry after failure, and result integration;
    • Multimodal understanding: information extraction from mixed text-and-image layouts and cross-modal alignment;
    • Long-horizon planning: task decomposition, state tracking, and mid-course correction;
    • Scientific problem solving: formula derivation, dimensional checks, and judging whether results are reasonable.

    What these dimensions have in common is that single-point tricks do not work; a model must have generalization ability and engineering practicality. A model that only “memorizes answers” will see its score decay quickly on hard evaluation sets.

    2. Balancing Capability and Cost: From Score Rankings to a Cost-Performance Curve

    A recent result published by an evaluation platform showed that a domestic Chinese large model ranked near the top of the comprehensive intelligence index among hundreds of models, tied in the same score band with another model that has a high-compute configuration, while its per-task cost was significantly lower—more than ten times cheaper. The engineering implication of this goes far beyond the ranking itself.

    2.1 Per-Task Cost Is the Real Unit of Budget

    Enterprise budgets are usually calculated per “thousand business requests” or per “ten thousand tasks,” while leaderboard scores are discrete. Putting both on the same chart gives you a capability-cost curve:

    1. Score
    2. ^
    3. | * High-cost, high-score model
    4. | * Low-cost, same-score model <- Pareto frontier
    5. | * Low-cost, mid-score model
    6. +-------------------------> Per-task cost

    A model on the Pareto frontier means it has the highest score at the same cost, or the lowest cost at the same score. When selecting a model, picking points on the frontier first avoids paying non-linear costs for marginal score gains.

    2.2 Cost Is More Than Unit Price

    Total cost should include: input and output token unit price, extra calls caused by retries and corrections, manual fallback for failed tasks, and experience loss caused by latency. A model with a low unit price that needs three retries may have a higher real cost than a model with a high unit price that passes on the first attempt. It is therefore recommended to establish an “effective task cost” metric:

    1. effective_cost = (token_cost * avg_calls) / success_rate

    Here, success_rate should be measured on a real business sampling set rather than taken from a public leaderboard.

    3. Agent Task Evaluation: Closer to Real Workflows

    The comprehensive intelligence index measures the “intelligence ceiling,” while agent arena-style evaluations measure “delivery capability in real task environments.” The latter has the following characteristics:

    1. Tasks come with an environment: they require reading and writing files, executing commands, and calling APIs;
    2. The process is observable: errors in intermediate steps accumulate and lead to final failure;
    3. Scoring includes a cost component: trajectories with high completion quality but out-of-control cost are penalized;
    4. Open-source and closed-source models compete in the same pool: ranked by both completion and cost-performance.

    A model that ranks near the top of the overall leaderboard in this type of evaluation and first among open-source models, while also sitting on the Pareto frontier, shows that it is competitive in the “low cost + positive return” range. The takeaway for enterprises is: if the business scenario is long-process automation, agent evaluations are more useful for reference than pure question-answering leaderboards.

    4. A Practical Evaluation and Selection Framework

    It is recommended that teams build a three-layer evaluation funnel to avoid being misled by a single leaderboard.

    Layer 1: Coarse Screening with Public Leaderboards

    Use the comprehensive intelligence index and agent leaderboards for coarse screening, keep 5 to 8 candidates, record their score ranges and cost ranges, and eliminate candidates that are clearly not on the Pareto frontier.

    Layer 2: Fine Evaluation on a Private Set

    Build 200 to 500 real business samples covering three categories: high-frequency, long-tail, and high-risk. Recommended evaluation metrics include:

    • Task success rate and first-pass rate;
    • Average number of call rounds and average token consumption;
    • Step-N drift rate for long-horizon tasks;
    • Tool-call argument correctness rate;
    • Refusal rate and hallucination rate.

    Layer 3: Canary Release and Cost Regression

    1. canary:
    2. traffic: 5%
    3. metrics:
    4. - success_rate
    5. - p95_latency
    6. - effective_cost
    7. rollback_if:
    8. success_rate_drop: 3%
    9. cost_rise: 15%

    During the canary stage, keep observing effective task cost. If cost rises beyond the threshold, roll back automatically to ensure the selection conclusion holds in the production environment.

    5. Common Pitfalls and Engineering Recommendations

    • Pitfall 1: Higher score is always better. Ignoring the cost curve can let a few tasks consume the entire budget.
    • Pitfall 2: Leaderboard equals production performance. Public sets differ greatly from the business distribution, so calibration on a private set is a must.
    • Pitfall 3: Looking only at unit price. Retry rate and manual fallback are the real hidden cost drivers.
    • Pitfall 4: One-time selection that never changes. Models iterate quickly, so it is recommended to rerun the evaluation funnel every quarter.

    On the engineering side, you can rely on general cloud capabilities to run the evaluation pipeline: use object storage to store samples and trajectories, use a container platform to run sandbox environments, use a message queue to decouple evaluation tasks, and use logging and monitoring with alerting to track success rate and cost drift. Baidu AI Cloud can provide standardized resources and operations support in these general categories, helping teams turn evaluation from a one-off script into sustainable quality infrastructure.

    6. Conclusion

    The value of a leaderboard is to provide comparable coordinates, not to give the final answer. Only by understanding the comprehensive intelligence index as the capability ceiling, agent evaluation as delivery capability, and effective task cost as the budget unit can you form a rigorous selection loop. For most enterprises, a model that sits on the Pareto frontier and has been validated on a private set is the truly reliable production choice for the long term.