LLM Selection: From Overall Scores to Task-Level Evaluation

    Overall leaderboard scores are useful for shortlisting models, but production selection depends on task-specific capability, cost, engineering constraints, and business risk. This article explains a four-dimension evaluation framework, how coding, web-agent, science-reasoning, and batch workloads differ, and how routing plus a golden-set evaluation pipeline support more reliable decisions.

    1. The question has changed: from “is there a usable model?” to “which model fits which task?”

    After new international flagship models ship, domestic models often enter a period of rapid iteration. Early enterprise questions are usually about whether there is a close enough alternative. Once the gap narrows, the real question becomes: on which tasks is the model close, on which tasks does a gap remain, and can the business accept that gap?

    A single overall score can easily lead to “this model is closest.” In production, model capability is not a single scalar. Code generation, long-document understanding, web operation, tool use, scientific reasoning, and bulk text processing all demand different strengths. A leaderboard leader is not automatically best in every business scenario. A slightly lower overall score can still be a better fit on cost, latency, quota, or a specific task.

    A more reasonable approach is not to hunt for a unique “strongest” model, but to build a task-dimension evaluation system: define the business task types, break down the key capability metrics, then decide with cost, engineering stability, and operability.

    2. Value and limits of overall scores

    Overall scores give a common scale for a first pass. They usually combine multiple benchmarks into a comparable total and help teams decide whether a model belongs in the candidate pool.

    They have three clear limits.

    First, weights may not match the business. Leaderboards cover general ability; enterprise work is often vertical. A system centered on repository edits cares about long-context understanding, dependency analysis, test feedback, and patch generation. A system centered on retrieval and web operation cares about planning, page understanding, tool calling, and error recovery. General boards do not fully capture those differences.

    Second, averages hide weak spots. A model that is average on most tasks but weak on a critical one can still look strong overall. Production experience is often gated by the weakest link, so critical dimensions must be checked separately.

    Third, capability is not the same as engineering usability. Quotas, rate limits, stability, call cost, audit logs, data compliance, and failover do not show up in ability scores, but they drive total cost of ownership.

    Overall scores are a first filter, not the only basis for procurement or architecture.

    3. A four-dimension evaluation framework

    To avoid being misled by a single number, split evaluation into capability, cost, engineering, and business.

    3.1 Capability

    Score by task, not a vague “strong” or “weak.” Typical splits:

    • Code generation and repo-level edits: multi-file dependencies, defect localization, runnable patches.
    • Web agents and tool use: step breakdown, API calls, page reading, exception handling.
    • Scientific reasoning: multi-step derivation, formula transforms, experiment design, result checking.
    • Hard knowledge Q&A: long-tail, specialist questions that need careful citation.
    • Long-context understanding: keeping key facts in large materials, logs, contracts, and codebases.

    3.2 Cost

    Do not look only at price per call. Look at the cost of finishing a business task. A cheap model that fails often, retries, needs human fallback, or extra validation can cost more.

    Include:

    • Average calls per task
    • Input/output token use
    • Retry rate
    • Human review share
    • Extra cost from long context
    • Peak vs. average cost on batch jobs

    3.3 Engineering

    This decides whether a model can run stably in production:

    • Quota vs. peak load
    • Predictable rate limiting
    • Fallback options
    • Call-chain logging
    • Audit and tracing
    • Integration with identity, permissions, and logging

    3.4 Business

    This is user experience and risk:

    • Acceptable latency
    • Minimum accuracy
    • Cost of errors
    • Need for human review
    • Sensitive data
    • Explainability and traceability

    4. Task-by-task breakdown

    4.1 Programming and repo-level work: the gap has narrowed

    Coding has moved from “generate a snippet” to “understand a repo, find the issue, edit multiple files, run tests, and iterate.” That needs more than valid syntax: dependency understanding, context retention, and recovery from errors.

    On this dimension, leading domestic models have closed much of the gap with international flagships; some practical cases may even reverse it. Three reasons:

    1. Feedback is clear: compilers, unit tests, and static checks give objective signals for correction.
    2. Engineering wrappers reduce difficulty: retrieval, indexing, patch generation, and test execution can be a pipeline; the model handles key reasoning.
    3. Private code can form a closed evaluation loop that public boards miss.

    Do not only ask whether the model can write code. Ask whether it can complete a verifiable change in a given repo. Evaluation sets should include real defects, real dependencies, and real test commands.

    4.2 Web agents and tool use: close to usable, with hard boundaries

    Web agents need page structure, click planning, tool calls, and correction from feedback. Capability is close to flagship level, but production needs boundaries:

    • Only authorized pages
    • No bypassing CAPTCHAs or anti-bot mechanisms
    • Human confirmation for high-risk writes
    • Max retries on failed steps
    • Permission isolation for sensitive data

    A practical pattern is “model plans + tools execute + rules validate.” The model proposes actions; an executor runs them; a rules layer blocks dangerous ones.

    1. if action.type == "read":
    2. execute(action)
    3. elif action.type == "write":
    4. if risk_level(action) == "high":
    5. require_human_approval()
    6. else:
    7. execute(action)
    8. else:
    9. reject(action)

    That keeps flexibility without unbounded behavior.

    4.3 Scientific reasoning: still a clear weak area

    Scientific reasoning is the gap easiest to underestimate. It needs multi-step logic, symbolic work, experimental checks, and domain knowledge. Unlike code, it often lacks instant feedback; errors hide in intermediate steps.

    Here, domestic models still lag international flagships. Typical issues:

    • Early errors propagate through later steps
    • Weak grasp of specialist terms and boundary conditions
    • Unstable on terminal tasks that need strict verification
    • Hard knowledge questions that look plausible but are unreliable

    Do not rely on the model alone. Use external tools and checks: compute engines, retrieval, rule validators, and cross-model verification. The model proposes hypotheses and paths; the system verifies and corrects.

    4.4 Cost and quota: the value of mid-tier models

    Not every task needs the strongest model. Batch summarization, classification, extraction, formatting, and first-pass screening often fit cost-sensitive models. Strength is unit-task cost, throughput, and quota elasticity, not peak ability.

    A layered strategy:

    • High-value, hard tasks → high-capability models
    • Medium/low complexity → cost-optimized models
    • Offline batch → lower-cost quota models
    • Critical paths keep human review and fallback models

    That cuts total cost without a one-size-fits-all waste.

    5. Task routing is more reliable than a single model

    Mature systems rarely pin one model. They route by task type, complexity, budget, and latency—at an application gateway or inference layer.

    1. def route_model(task):
    2. if task.type in ["repo_patch", "web_agent"]:
    3. return "high_capability_model"
    4. if task.type in ["batch_summary", "classification", "extraction"]:
    5. return "cost_optimized_model"
    6. if task.type == "science_reasoning":
    7. return "flagship_with_verification_tools"
    8. if task.risk == "high":
    9. return "high_capability_model_with_human_review"
    10. return "default_model"

    The important part is the routing criteria. Log at least:

    1. {
    2. "task_id": "example-001",
    3. "task_type": "repo_patch",
    4. "risk_level": "medium",
    5. "budget_limit": 0.05,
    6. "latency_target_ms": 8000,
    7. "require_human_review": false
    8. }

    Task labels and budget caps balance capability, cost, and stability.

    6. Evaluation pipeline: replace gut feel with a business golden set

    Do not rely on subjective demos or public boards alone. Build an internal pipeline.

    1. Build a business golden set from historical tickets, real code defects, real web tasks, and real science problems—repeatable evaluation data.
    2. Stratified sampling by difficulty, length, risk, and business line so the set is not biased toward easy cases.
    3. Mix automatic metrics (pass rate, failure rate, latency, retries) with human review of correctness, usability, and risk.
    4. Regression: rerun the golden set after model, prompt, routing, or toolchain changes to catch regressions.
    5. Decision reports with per-task scores, cost estimates, failure cases, and risk notes—not a single total.

    7. Cloud engineering: turn model ability into a stable service

    The model is a capability source; production needs an engineering stack. Enterprises can use container platforms, object storage, message queues, logging, and monitoring—such as those on Baidu AI Cloud—to build a unified calling and evaluation platform.

    A workable architecture:

    • Ingress: unified auth, rate limits, quota, audit
    • Routing: choose model and tools by task
    • Execution: models, retrieval, code runners, web-agent tools
    • Data: inputs/outputs, eval results, failure samples
    • Observability: latency, failure rate, tokens, cost
    • Governance: masking, access control, human review, fallbacks
    1. request in
    2. -> auth and quota check
    3. -> task classification
    4. -> routing
    5. -> model and tool calls
    6. -> result validation
    7. -> logs and metrics
    8. -> return or human review

    Models become replaceable. Teams are not locked to one vendor and can keep adjusting capability, cost, and compliance.

    8. Conclusion: not “closest,” but “best match”

    On overall ability, the gap between domestic models and international flagships is shrinking; some practical tasks are close or locally stronger. Scientific reasoning and hard knowledge work still need stricter verification.

    Selection is not finding one “closest” model. It is matching by task:

    • Programming and web agents: prefer high-capability models plus tests and rule checks
    • Cost-sensitive batch work: cost-optimized models and routing
    • Scientific reasoning: tool verification and multi-step checks, not the model alone
    • Critical paths: human review, fallback, and audit

    What enterprises need is not a single ranking, but an evolving evaluation and routing system. Putting capability, cost, engineering, and business constraints in one frame is what makes decisions stable, repeatable, and improvable.