LLM Selection Guide: Evaluating the Three Core Capabilities That Matter Most
Choosing a large language model is an engineering decision, not a leaderboard exercise. This guide explains why aggregate benchmark rankings can be misleading, breaks model evaluation into the capability dimensions that actually affect production outcomes—hallucination control, agentic task planning, code and agentic coding, and scientific and mathematical reasoning—and shows how to reconcile conflicting aggregate and category-specific results. It also covers total cost modeling, a six-step selection and validation workflow with canary rollout and fallback design, and common pitfalls to avoid.
1. Why “Which Model Is the Best?” Is the Wrong Question
New composite LLM leaderboards appear every year, and the top five models are often separated by only a few points. But developers rarely care about rank. What they care about is whether a model will run reliably inside their own workload. A composite score is a single number produced by weighting several capability dimensions, and it inevitably hides structural differences: one model may lead by a wide margin in hallucination control and agent task planning while trailing in mathematical reasoning; another may top a single category yet be mediocre overall.
The first step in model selection, then, is to rewrite “which model is best” as “which class of capability matters most for my scenario.”
The pattern visible in public evaluations is that top models cluster within a very narrow band, and the gaps between them are smaller than the variance of the evaluation itself. Deciding on composite rank alone is therefore high risk. A more reliable approach is to build a scenario-capability-metric mapping and then validate it a second time with your own evaluation set.
2. Four Capability Dimensions That Must Be Examined Separately
2.1 Hallucination Control: The First Gate for Enterprise Deployment
A hallucination is content that looks plausible but does not match the facts. In knowledge Q&A, customer support, and compliance review, the cost of a hallucination is far higher than the cost of a less clever answer. Evaluating hallucination control means looking beyond final-answer accuracy: does the model express uncertainty when information is insufficient, and does it surface verifiable citation clues?
Common engineering mitigations include retrieval-augmented generation, structured output constraints, and dual validation using both rules and a model. A schematic validation flow looks like this:
def guarded_answer(question, retriever, llm, threshold=0.75):evidence = retriever.search(question)if not evidence or retriever.confidence < threshold:return {"answer": None, "reason": "Insufficient evidence, escalate to human"}draft = llm.generate(question, context=evidence, require_citation=True)if not verify_citations(draft, evidence):return {"answer": None, "reason": "Citations could not be verified"}return {"answer": draft.text, "citations": draft.citations}
A design that is allowed to refuse to answer fits production requirements better than one that simply maximizes answer coverage.
2.2 Agentic Task Planning: From Talking to Doing
Agent capability measures whether a model can decompose a goal into steps, select tools, handle exceptions, and converge on a result. Evaluations typically focus on three things: task completion rate, step redundancy, and error recovery. Models with strong planning loop less often across multi-turn tool calls and adjust their plans based on intermediate results.
Agent performance is highly sensitive to prompt organization, tool description quality, and context length. The same model can score noticeably differently under different frameworks, so evaluations must hold the scaffolding fixed; otherwise the conclusions are not comparable.
2.3 Code and Agentic Coding: The Most Mature Area for Quantitative Scoring
Code generation is one of the few domains where test cases can score answers automatically, which makes those leaderboards relatively more trustworthy. But “coding” covers several sub-areas: single-file completion, cross-file modification, terminal command orchestration, and defect localization and repair. A high composite coding score does not guarantee equal strength in terminal scenarios—public evaluations have featured models with unremarkable composite scores that ranked near the top in a terminal coding category.
The practical recommendation is to split code evaluation into three test classes: algorithm problems that can be scored automatically, refactoring tasks that require understanding repository structure, and debugging tasks that depend on environment feedback, and to report pass rates for each.
2.4 Scientific and Mathematical Reasoning: Stability Over Long Chains of Logic
The difficulty in reasoning evaluations lies in the process, not the answer. A model may guess the right conclusion with flawed derivation, or may destabilize in the later stages of a long chain. Evaluation should add process scoring and self-consistency checks: sample the same question multiple times and observe whether the conclusion holds steady.
3. Why Composite and Category-Specific Results Often Disagree
Composite leaderboards apply uniform weights and suit initial screening; category-specific leaderboards target a single capability and suit final selection. Disagreement between the two is normal, for three reasons: different weight settings, different language and domain distributions in the evaluation sets, and different scaffolding and call parameters. Time and scope differences also matter—the relative position of the same set of models shifts across months and across comparison ranges.
A two-stage selection method is therefore recommended:
- Use composite leaderboards to narrow candidates down to three to five.
- Use a private evaluation set drawn from your own workload distribution to produce the final ranking on the category dimensions.
4. Cost Must Be Calculated Alongside Quality
A low unit price does not mean a low total cost. Real cost has four components: input and output token pricing, the amplification factor from retries and multi-turn calls, the added engineering overhead needed to compensate for capability gaps, and the share of human fallback. Public evaluations have included models with middling composite scores but the lowest cost per question; such models fit high-concurrency, low-complexity tasks, while category leaders fit low-frequency, high-value scenarios.
A simplified cost estimate can be written as:
Total cost ≈ calls × average tokens × unit price × retry amplification factor + human fallback cost
Making the retry factor and fallback rate explicit in the formula is what prevents the “cheaper unit price, larger bill” trap.
5. A Selection and Validation Workflow You Can Actually Run
- Scenario segmentation: split the workload into knowledge Q&A, process automation, code assistance, and data analysis, and define an acceptable error rate for each.
- Metric definition: pick two or three primary metrics per scenario class, such as hallucination rate, task completion rate, test pass rate, and P95 latency.
- Private evaluation set: sample and label from historical real requests. It does not need to be large, but its distribution must match production.
- Small-traffic canary: call candidate models in parallel under shadow mode and compare quality and cost without switching the main path.
- Fallback and observability: connect logging, monitoring and alerting, and tracing, and automatically degrade or escalate low-confidence outputs.
- Periodic re-evaluation: both models and evaluations evolve, so rerun the evaluation baseline quarterly.
6. Common Pitfalls
- Looking only at the composite score: structural weaknesses go unnoticed until a critical scenario fails after launch.
- Copying public scores directly: differences in scaffolding and prompts make those numbers non-transferable.
- Ignoring long-context decay: effective use of information drops with long documents and needs separate testing.
- Overlooking compliance and data boundaries: scenarios involving sensitive data should assess deployment form and data flow first.
- Switching everything at once: without canary rollout and a rollback plan, the blast radius of a failure is uncontrollable.
7. Conclusion
LLM selection is fundamentally an engineering decision, not copying answers from a leaderboard. Break the capability dimensions apart, write the cost formula explicitly, and fix the validation process in place. Building a reusable evaluation and canary system on top of general-purpose cloud capabilities such as the container platform, logging, and monitoring and alerting offered by platforms like Baidu AI Cloud is what turns model capability into stable business returns.
