LLM Selection in Practice: Don't Trust Leaderboards, Let Your Use Case Decide

    This article shares a hands-on evaluation of leading flagship LLMs conducted with a single task set and a single acceptance standard for a real backend project. It explains why no model wins across every dimension, how to read a capability comparison table by focusing on weak spots rather than headline strengths, and four scenario-based selection paths: terminal automation, cost-sensitive high-throughput workloads, complex agentic tasks, and large-scale codebase refactoring or multi-step review. It also covers common leaderboard pitfalls and a four-layer architecture that turns model selection into an operable engineering practice. Readers will get a reusable methodology for matching models to tasks based on success rate, latency, and cost.

    Introduction: What a Real Project Evaluation Taught Me

    When selecting a model for a real backend project, I ran a complete evaluation of several leading flagship LLMs using the same task set and the same acceptance criteria. The conclusion is not romantic: there is no all-around champion, only the best fit for a given scenario.

    To put it in one sentence: for terminal automation tasks, prioritize models that respond quickly and call tools reliably; for cost-sensitive, throughput-first scenarios, choose lightweight, high-speed models; only in high-difficulty scenarios such as complex agentic tasks, large-scale codebase refactoring, and multi-step code review do top-tier reasoning models offer advantages that are truly hard to replace.

    But treat that sentence as a starting point, not a conclusion. Below I break down the whole decision process and lay out a reusable selection methodology.

    1. The Competitive Landscape: What Rapid Iteration Really Means

    Over the past year, leading model vendors have clearly accelerated updates to their flagship versions, with new releases from different vendors sometimes arriving within a very short window. This dense iteration has two direct consequences:

    1. Leaderboards go stale fast. The “validity period” of any comparison table may be only a few weeks; yesterday’s best option may be merely passing today.
    2. Capabilities are diverging. Early comparisons focused on general Q&A and writing; today they cover agentic coding, terminal operations, GUI automation, ultra-long context, and extreme reasoning, with different models winning in different dimensions.

    So the first step in selection is not to look at overall scores, but to define your task distribution first.

    2. How to Read a Comparison Table: Breaking Down the Dimensions

    The table below is an illustrative capability distribution (the values reflect relative magnitudes commonly seen in public industry evaluations and are used only to demonstrate the “dimension divergence” phenomenon; they do not represent any specific product):

    Evaluation dimension Reasoning flagship Balanced general-purpose Lightweight high-speed High cost-efficiency
    Agentic coding (real repository level) High Medium Medium-low Medium-low
    Terminal command tasks Medium-high High Medium —
    GUI/computer automation High Medium-high Medium —
    Extreme reasoning (hard academic problems) High Medium Medium-low —
    Context window Long (million-level tokens) Medium (hundreds of thousands) Medium Long
    Input price (per million tokens) High High Low Very low
    Output price (per million tokens) High Relatively high Medium Very low
    Response speed Slow Medium Fast Medium

    Three points matter when reading the table:

    • Look at the weak spots, not the strengths. Your business will only use two or three of these dimensions; a high ceiling you never touch is useless.
    • Pay attention to the “—“. A blank means that class of model typically does not target that scenario, so don’t force it.
    • Read price and speed alongside the dimensions. Putting a slow and expensive model into a high-frequency, low-difficulty pipeline is a continuous drain on your budget.

    3. Scenario-Based Selection: Four Decision Paths

    Path 1: Terminal Automation → Choose “Fast and Stable”

    Terminal tasks are characterized by many steps, simple individual steps, retryable failures, and sensitivity to latency. The bottleneck in such pipelines is often not model intelligence but tool-call success rate and end-to-end latency. A medium-capability model that responds quickly and follows instructions reliably may complete the overall task several times faster than a top reasoning model.

    Practical advice: design idempotent commands and failure rollback for terminal pipelines, and let engineering absorb the model’s instability.

    1. # Example: make every step re-entrant to reduce the cost of model trial and error
    2. set -euo pipefail
    3. run_step() { echo "[step] $1"; shift; "$@"; }
    4. run_step "sync-deps" make deps
    5. run_step "run-tests" make test || { echo "retry once"; make test; }

    Path 2: Cost-Sensitive and High-Throughput → Choose “Lightweight and High-Speed”

    When tasks are “low-difficulty, high-frequency” work such as classification, extraction, formatting, summarization, and intent recognition, unit cost matters far more than peak intelligence. The recommended approach is tiered routing: send simple requests to a lightweight model and escalate complex requests to a flagship model.

    1. # Example: tiered routing based on heuristic rules
    2. def route(task):
    3. if task.estimated_steps <= 2 and task.risk == "low":
    4. return "light_fast_model"
    5. if task.repo_scope == "multi_module":
    6. return "reasoning_flagship_model"
    7. return "balanced_model"

    Combined with caching (reusing results for identical inputs), batching (merging requests), and output length constraints (limiting max tokens), this typically delivers an order-of-magnitude cost reduction.

    Path 3: Complex Agentic Tasks → Top Reasoning Models Are Irreplaceable

    Multi-agent collaboration, long-horizon planning, and cross-service troubleshooting are difficult because of error accumulation: at 95% accuracy per step, only about 60% remains after ten steps. Stronger planning and self-verification capabilities directly determine whether the task converges.

    Engineering focus: introduce checkpoints and verifiable intermediate artifacts to make long chains observable and rollback-able.

    Path 4: Large-Scale Codebase Refactoring and Multi-Step Review → Long Context + Strong Reasoning

    Cross-module renaming, dependency upgrades, and interface contract changes require the model to hold a large amount of file context at once and keep semantics consistent. Multi-step review requires the model to deliver conclusions layered by “correctness—security—performance—maintainability” rather than a single vague pass.

    Recommended review prompt structure:

    1. Please output in the following order, and for each layer give file:line and the minimal fix suggestion:
    2. 1) Correctness defects 2) Security and permissions 3) Performance and resources 4) Readability and test coverage
    3. If a layer has no issues, explicitly write "none"; do not omit the layer.

    4. Don’t Trust Leaderboards: Three Common Pitfalls

    1. Treating an overall score as a business score. A leaderboard is an average; your business is a specific distribution.
    2. Ignoring non-model factors. Rate limits, concurrency quotas, network stability, and SDK maturity often affect production more than a few percentage points of score difference.
    3. One-time selection. The right approach is to build a small-scale regression evaluation set (dozens to hundreds of real tasks) and run it after every model upgrade, letting data decide whether to switch.

    5. Implementation Architecture: Turning Selection into an Operable Capability

    A robust solution typically has four layers:

    • Access layer: a unified model gateway that abstracts away differences between models and supports canary rollout and fast rollback.
    • Routing layer: tiered scheduling by task difficulty, risk level, and cost budget.
    • Evaluation layer: a fixed regression set plus online sampling, continuously monitoring success rate, latency, and cost per task.
    • Governance layer: logging and alerting, sensitive-data masking, and quota and budget guardrails.

    In related practice at Baidu AI Cloud, this kind of architecture is typically carried by a combination of general capabilities such as model services, container platforms, message queues, object storage, logging services, and monitoring and alerting, making it easier for teams to turn “model selection” into a “sustainably operated engineering metric” rather than a one-off guess.

    Conclusion

    My final advice is: use it, but don’t worship it. Reserve flagship reasoning models for the truly hard 20% of tasks, use fast and cheap models for the other 80%, and then lock in this strategy with an evaluation set and a routing mechanism. The goal of selection is not to find the strongest model, but to bring the system’s success rate, latency, and cost all within an acceptable range at the same time.