How to Evaluate the Overall Capabilities of Major Large Language Models

    Choosing a large language model is not about finding a single "best" model, but about measuring expected value under your own task distribution, latency budget, and cost constraints. This article breaks evaluation into three layers—capability, engineering, and cost—details five core dimensions such as complex reasoning, repository-level coding, creative writing, multimodal tasks, and total cost of ownership, and provides a reusable scoring implementation plus scenario-based selection and architecture guidance.

    1. Why “Which Model Is the Best” Is the Wrong Question

    When selecting a model, many teams instinctively ask which one is the best. A more effective question in engineering practice is: under my task distribution, latency budget, and cost constraints, which model delivers the highest expected return? General-purpose leaderboards measure average capability, but real business traffic follows a long-tail distribution. In your actual requests, 70% may be short question answering, 20% structured extraction, and only 10% complex multi-step reasoning. A high average does not guarantee a good P95 experience.

    Evaluation should therefore be split into three layers: the capability layer (reasoning, code, writing, multimodality), the engineering layer (context length, tool-calling stability, structured output, rate limits and availability), and the cost layer (unit price, retry overhead, cache hit rate, and human operations effort). Only a weighted total across all three layers produces a score you can actually make decisions on.

    2. Breaking Down the Five Core Dimensions

    2.1 Complex Reasoning and Long Context

    Assess multi-hop reasoning, constraint satisfaction, and localization within long documents. Use questions with verifiable answers rather than subjective scoring. Metrics include first-attempt pass rate, pass rate with two attempts, and how much answer quality degrades as context grows.

    2.2 Code and Repository-Level Collaboration

    Do not test single-function generation alone; test cross-file changes, code review, and regression fixes. Key metrics are patch applicability rate, unit test pass rate, and the minimality of changes (whether unrelated modifications are introduced).

    2.3 Creative Writing and Chinese Expression

    Generate multiple versions from the same prompt and use blind scoring (naturalness, structure, factual consistency, and editing cost). For long-form polishing, additionally check whether the original meaning is preserved after rewriting.

    2.4 Multimodality and Ecosystem Integration

    Cover image understanding, chart reading, converting UI screenshots into code, and combining documents with retrieval pipelines. The evaluation focus is end-to-end task completion rather than single-modality accuracy.

    2.5 Cost and Total Cost of Ownership

    Beyond unit price, account for failed retries, long-context premiums, cache benefits, and manual review hours. A low-price option with a low first-attempt pass rate may end up with a higher total cost.

    3. A Reusable Scoring Implementation (Illustrative)

    1. WEIGHTS = {"reasoning": 0.3, "code": 0.3, "writing": 0.15,
    2. "multimodal": 0.1, "cost": 0.15}
    3. def score(case_results, unit_cost):
    4. # case_results: first-attempt pass rate per dimension, 0~1
    5. quality = sum(WEIGHTS[k] * case_results[k] for k in WEIGHTS if k != "cost")
    6. cost_score = 1.0 / (1.0 + unit_cost) # higher unit price yields a lower score
    7. return quality * (1 - WEIGHTS["cost"]) + cost_score * WEIGHTS["cost"]

    Before launch, keep a regression set of 50–200 real business cases and run it whenever the model or prompt changes, so you build a trend curve rather than a one-time conclusion.

    4. Scenario-Based Selection Advice

    • Stable all-round primary model: choose a general-purpose option with high engineering maturity and complete tooling and observability.
    • Long documents and code collaboration: prioritize long context and patch quality.
    • Multimodality and retrieval integration: prioritize image understanding and the ability to connect external information.
    • Budget-sensitive, Chinese-first: prioritize high cost-performance and low-barrier options.
    • Strong dependence on real-time information: then consider specialized options with search features.

    5. Key Points for Architecture Implementation

    Production environments should isolate model differences behind an abstraction layer, with unified wrapping of retries, timeouts, fallbacks, and quotas; use a message queue to smooth traffic peaks; and use logging services with monitoring and alerting to track pass rate and latency. Sensitive data should go through private deployment or compliant channels. If you use general cloud capabilities (object storage, container platforms, model service gateways, and so on), relevant general product categories from Baidu AI Cloud can host them, keeping interfaces decoupled from business logic for easier replacement and canary rollout.

    Conclusion: model evaluation is a continuous engineering problem, not a one-time ranking. Building your own evaluation set and cost model is what makes selection explainable, reproducible, and evolvable.