How to Select Large Language Models by Task, Not by a Single Benchmark Score
A practical framework for enterprise LLM selection: break capability into four independently scored axes (software engineering agents, retrieval and browsing agents, scientific reasoning, and cost/throughput), evaluate each under a frozen protocol using your own production samples, and switch models only when measured pass rates and cost per successful task justify it. Includes a sample regression schema, a cost formula, a lightweight internal scorecard, and a five-step rollout process.
Start with the task, not with “which model is stronger”
Once large language models enter the engineering stack, the most common misjudgment is treating a composite index as a purchasing decision. Composite indexes do have value: with a relatively uniform question set, they compress knowledge coverage, multi-step reasoning, instruction following, and tool use into a single sortable number, which makes it easy to see whether a real gap still exists between flagship and mid-tier models. But they implicitly assume the dimensions carry similar weights. Real workloads almost never look like that. Some systems spend ninety percent of their calls editing code, running tests, and scanning documentation; some run long-chain web retrieval and then summarize; some do formula derivation and experiment design; others are massive, low-unit-price batch jobs. Change the weights and the ranking inverts.
The safer approach is to fix the task slice first and treat the composite score only as a water-level reference.
It helps to split capability into four axes that can be scored independently.
1. Software engineering and coding agents
What matters here is not single-shot completion but cross-file edits, reading failure logs, adding tests, and iterating under constraints until the suite passes. Long-horizon tasks expose planning drift, context forgetting, and the “fix one place, break another” failure mode far better than short answers.
When evaluating, fix the repository scale, the allowed tools (read files, execute tests, search symbols), and the maximum step count. Record first-pass rate, average steps, and number of regressions. A schematic record can be very simple:
task_id, repo_scale, max_steps, pass, steps_used, regressions
The same model may sit close to the flagship on short function problems yet still lag clearly on multi-hour marathon tasks. Conversely, if your agent loop, test gates, and context trimming are already strong, a mid-to-high water-level model can match or even beat a model with a higher composite score on engineering pass rate. The conclusion has to come from your own repository samples, not from simple extrapolation of external scores.
2. Retrieval, browsing, and execution agents
For web or knowledge-base scenarios, the question is not “can it talk” but whether it can open sources according to a plan, extract verifiable facts, and keep searching when information is insufficient instead of fabricating. Evaluation must separate closed-book items (the answer is in the provided material) from open retrieval (the model has to find sources itself). Metrics should include at least task completion rate, citation traceability rate, and the share of wasted clicks or wasted queries.
Tool descriptions, page summary length, and retry strategy on failure often affect results more than switching to a model with a similar composite score. So a claim like “the web agent has already overtaken” only means something when the toolchain is held fixed; swap the browser or the retrieval API and the order can change immediately.
3. Science and hard reasoning
Symbolic derivation, multi-constraint problems, and questions that need intermediate lemmas are extremely sensitive to long-chain consistency. Strength as an engineering agent does not imply strength on closed-book reasoning at PhD difficulty.
If the workload is paper review assistance, experiment plan checking, or complex quantitative problems, build a separate question set that does not depend on search, and have humans review the reasoning chains rather than only checking whether the final number is right. This tier usually converges the slowest: engineering tricks and product engineering can compensate for agent weaknesses, but they can hardly compensate for a model’s deep reasoning stability. For these tasks, keep a higher-ceiling model as the final reviewer by default instead of replacing it wholesale with a cheaper one.
4. Cost, quota, and batch throughput
Unit price, context-length billing, concurrency quota, and failed retries together determine the monthly bill. A model one tier lower on the composite index may cost only a fraction of the flagship per successful task if its pass rate on your main workload is close. Calculate with cost per successful task, not cost per thousand calls:
cost per successful task ≈ (primary calls + retries + tool-side overhead) / pass rate
A drop in pass rate eats the apparent discount. For batch scenarios, also look at rate limiting, queueing, and fallback policy: whether traffic can automatically switch to a smaller model at peak and failed samples can be replayed off-peak.
How to read “the gap is converging”
Cross-comparison is only meaningful under the same evaluation protocol: same question version, same tool permissions, same decoding parameters, and same truncation strategy. When protocols differ, a few points of difference have no explanatory power.
The industry experience is that the composite gap between flagship models and leading domestic Chinese models narrows over time, but narrowing does not mean the dimensions level out. The common shape is that engineering agents and retrieval execution converge first, while scientific reasoning and extremely hard knowledge questions stay a tier behind. Treat that shape as a hypothesis to verify, not as a purchasing slogan.
One internal scorecard is enough; there is no need to benchmark publicly against any specific model. Useful columns: composite water level (external tiering or your own sampling), engineering long-task pass rate, retrieval task completion rate, human-scored scientific reasoning, cost per successful task, and whether quota covers peak load. Express gaps relative to the flagship or relative to the previous-generation baseline. Release dates matter only for judging whether an evaluation is stale: models iterate fast, and scores more than one or two version cycles old should be re-run.
Rollout process
- Sample from production logs, not from public question banks. Pull a few dozen to a few hundred calls each for coding, retrieval, reasoning, and batch workloads by call volume, de-identify them, and freeze them as a regression set.
- Fix the agent framework: system prompt, tool list, max steps, temperature, and stop conditions all go into version control, so the scaffolding does not quietly change along with the model.
- Use blind or at least cross-review of failure cases to separate model capability problems, tool description problems, and tasks that are inherently undecidable.
- Set switching thresholds. For example, move the main traffic to a cheaper model only when the engineering pass-rate gap is smaller than the business loss you can accept and cost per successful task drops by more than a set ratio; if the scientific reasoning subset keeps trailing by a clear tier, keep the higher-capability model for sampling checks or final review.
- Put the evaluation into continuous integration. Re-run the core subset whenever the model version, the prompt, or the tool schema changes.
When pairing this with cloud engineering, keep evaluation data in object storage, use a message queue to smooth task bursts, run the workloads on a container platform, and use logs plus monitoring and alerting to track pass rate, latency, and cost anomalies. General-purpose cloud capabilities such as those from Baidu AI Cloud can carry storage, scheduling, and observability, but whether a model is “good enough” is still decided by the task sets above, not by the platform brand.
Three recommendations in short
If coding agents and web execution are the main path, prioritize long-task pass rate and citation traceability, and use the composite score only as a threshold. For batch, cost-sensitive workloads with room for error, optimize cost per successful task and prepare fallback and replay. Do not replace a higher-ceiling model with a mid-tier one for hard scientific reasoning before your own question set validates it. Matching by task dimension gets closer to the real engineering goal than chasing a single composite ranking.
Common pitfalls worth remembering
Substituting a chat impression for a regression set; declaring “aligned with the flagship” after one short-answer test; ignoring the toolchain and crediting agent results to the model; allowing web access on science questions but treating the output as closed-book reasoning; and swapping evaluation questions to make reports look good, which makes versions incomparable. Freeze the protocol, classify failures, and account for cost per successful task. Do those three things well, and whether being a dozen points behind on the composite index is worth switching models will answer itself.
