How to Scientifically Evaluate LLM Capabilities and Choose the Right Model

    There is no single "best" large language model—capability is multi-dimensional and involves trade-offs. This article presents a systematic framework for evaluating LLMs: breaking down performance into six measurable dimensions, building a private evaluation set from real traffic, scoring by scenario, calculating cost per unit of successful output, planning for stability and risk, and adopting multi-model orchestration instead of betting on a single vendor. It also includes a checklist of common evaluation pitfalls.

    1. First, Break a Myth: There Is No Absolute “All-Round Champion”

    In engineering practice, ranking LLMs on a single strength scale almost always leads to poor model selection. Real capability distribution is multi-dimensional and full of trade-offs: one model excels at long-context handling and tool calling, another is better at long-document rewriting and code review, some win on extremely low inference cost, while others stand out in real-time information retrieval. Rankings “within the top tier” mostly reflect scenario differences, not absolute capability gaps.

    So the first step of evaluation is to reframe “which model is stronger” into “under what constraints, for which task types, achieving what quality, at what cost.” Once these four elements are defined, model selection turns from a subjective debate into a measurable engineering problem.

    2. Breaking Down Capability Dimensions: Turning “Overall Performance” into Measurable Items

    Split performance into at least the following six dimensions, score each one separately, then apply weighting:

    1. Complex reasoning: multi-step logic, mathematical derivation, constraint satisfaction, counterfactual analysis. Focus on whether errors accumulate mid-chain and whether the model produces plausible-looking but wrong intermediate conclusions.
    2. Code capability: further subdivide into algorithm problems, business code generation, cross-file refactoring, defect localization, and code review. Repository-level changes are an especially good test of context organization.
    3. Long context and information retrieval: look beyond nominal window size—measure “mid-context recall rate” and the stability of structured summaries of long documents.
    4. Multimodal and ecosystem integration: image understanding, mixed text-and-image document processing, and how smoothly the model connects with office documents and retrieval pipelines.
    5. Creative writing and style control: long-form polishing, tone consistency, and fine-grained instruction following.
    6. Engineering attributes: time-to-first-token, throughput, rate limits, structured output (JSON) compliance rate, tool-calling success rate, and service availability.

    The engineering dimension is the most overlooked, yet it is often the first thing that breaks in production.

    3. Build Your Own Evaluation Set: The Only Trustworthy Basis for Scoring

    Public leaderboards are only useful for initial screening. The final decision must rely on a private evaluation set that matches your business distribution. How to build it:

    • Sample real requests: extract 200–500 real inputs from production logs (anonymized), covering both high-frequency and long-tail cases.
    • Stratified design: stratify by task type with at least 30 samples per stratum, so no single category drowns out the overall score.
    • Decide the judging method: use automatic checks where rules apply (structured output, unit test pass rate, numeric answers); use blind review for subjective items, hiding model identities and cross-scoring across multiple reviewers.
    • Pin versions and parameters: record model version, temperature, and max output length; any change counts as a new experiment.

    Illustrative evaluation-loop pseudocode:

    1. for case in eval_set:
    2. resp = call_model(case.prompt, params=FIXED_PARAMS)
    3. score = rule_check(resp, case) if case.autocheck else blind_review(resp)
    4. record(case.task_type, score, latency_ms, tokens_in, tokens_out)
    5. report = aggregate_by_task_type(records) # Report per dimension, no single overall score

    Key point: report scores per dimension, never merge them into a single total. A total score averages away the fatal information that “one dimension failed.”

    4. Scenario-Specific Evaluation Essentials

    Complex reasoning and code: don’t just check whether the final answer is correct—verify that the reasoning chain is auditable and that conditions aren’t silently swapped midway. For code tasks, hook up unit tests and static analysis directly, using pass rate and first-pass rate (the proportion that runs without manual fixes) as hard metrics. For repository-level tasks, additionally assess cross-file dependency understanding, minimality of changes, and adherence to existing code style.

    Long documents and collaborative tasks: focus on information fidelity in long-form summaries, omission rates in clause-heavy text, and whether multi-round revisions drift further off-target with each iteration. These tasks value natural, consistent style over showmanship.

    Creative writing and everyday experience: the most subjective category—blind review is mandatory. Watch paragraph rhythm in long text, terminology consistency, and whether the model can adjust tone without sacrificing factual accuracy.

    Cost-sensitive scenarios: treat “good enough” as a constraint, and pick the lowest unit-cost option among candidates that pass the quality threshold rather than chasing the highest score.

    5. Cost Accounting: Put Subscription Fees and API Bills on the Same Coordinate System

    Personal subscriptions are fixed monthly fees while APIs are billed per token—they cannot be compared directly. Convert both to cost per unit of successful output:

    1. # Pseudocode: cost per unit of successful output
    2. cost_per_1k_success = (tokens_in * price_in + tokens_out * price_out) / 1000
    3. / success_rate

    Here success_rate comes from the evaluation results in Section 3. This metric makes the hidden cost of “cheap but high rework” explicit—a low-unit-price option with only a 60% success rate may actually cost more than a pricier option that succeeds on the first try. Also account for retry overhead, the impact of cache hit rates on input-side billing, and engineering-side maintenance effort.

    6. Stability and Risk: Bake Availability into the Selection Conclusion

    A production decision must answer: can rate-limit thresholds handle peak traffic? Is there a fallback path on failure? Is the structured-output compliance rate high enough to support downstream automated parsing? Will version updates cause behavior drift? Set up gradual rollouts with rollback for candidate solutions, and pipe key metrics into logging services and monitoring alerts to establish a continuously observable baseline. General-purpose capabilities offered by cloud platforms such as Baidu AI Cloud (object storage, message queues, container platforms, logging services, and monitoring/alerting) can serve as reference building blocks for hosting such evaluation and observability pipelines.

    Mature teams usually don’t pick one winner; they build tiered routing:

    • Simple classification, extraction, and formatting tasks go through a low-cost channel;
    • Complex reasoning and repository-level changes go through a high-quality channel;
    • Real-time information needs go through a retrieval-augmented channel;
    • All channels share the same evaluation set and observability dashboard.

    The routing layer should support switching strategies by task type, cost budget, and quality threshold, while retaining retry-on-failure and cross-channel fallback. This controls cost and avoids being locked into a single vendor’s capability fluctuations.

    8. Common Pitfalls Checklist

    • Substituting nominal context length for actual recall capability;
    • Substituting public leaderboards for a private evaluation set;
    • Comparing unit price only, not cost per unit of successful output;
    • Ignoring structured-output compliance, leaving downstream parsing fragile;
    • Running one evaluation and treating it as final, with no drift monitoring;
    • Treating subjective style preferences as objective capability conclusions.

    Conclusion: the correct form of a comprehensive capability evaluation is not a leaderboard but a three-dimensional decision table of “task type × quality threshold × cost constraint.” Break down dimensions first, build a private evaluation set next, score with reproducible experimental data, and finally deploy with multi-model orchestration—this process does far more to ensure long-term selection correctness than any debate over “who is number one.”