Evaluating LLM Selection: Capability Dimensions and Practical Guidance
A linear “best model” ranking often misleads engineering decisions. This article breaks LLM evaluation into measurable capability dimensions, a unit-cost-of-effective-output formula, and a scenario-based selection framework so teams can pick combinations that meet quality targets at the lowest total cost.
Why a single overall ranking is a false problem
In production, ranking large language models on one linear leaderboard often misleads technical decisions, for three reasons:
Capability is multidimensional, not a scalar. Complex reasoning, code generation, long-document understanding, multimodal parsing, and real-time information access are not stably correlated. A model that shines on contest math may be unreliable on cross-file refactoring.
Public benchmarks do not match real traffic. Leaderboard items are typically self-contained, single-turn, and auto-gradable. Production requests depend on private context, multi-turn tool use, and implicit business constraints.
Engineering constraints change the answer. Context window, concurrency quotas, time-to-first-token, structured-output stability, and the feasibility of private deployment often matter more than a 2% leaderboard gap.
A better framing is that models differ by scenario rather than dominating absolutely. Selection is not “the strongest model,” but the combination that meets quality bars at the lowest total cost in the target scenario.
Capability dimensions: turn “overall performance” into measurable items
Complex reasoning and coding
This is the hardest capability to substitute in enterprise use. Split it into four layers:
- Single-step reasoning correctness: closed tasks that can be auto-graded (math, logic puzzles, unit conversion).
- Long-context utilization: locating key constraints in hundreds of thousands of input tokens. “Supports long context” is not the same as “uses it effectively”; needle-in-a-haystack-style variants are needed.
- Tool calling and structured output: stable JSON Schema compliance, correct tool choice over multiple turns, and whether parameters are hallucinated.
- Repo-level task completion: cross-file edits, code review, dependency impact analysis—this layer stresses planning and self-correction.
A minimal automated evaluation skeleton (illustrative, Chat Completions-style):
import json, timefrom typing import Callabledef run_suite(model_client: Callable, cases: list[dict]) -> dict:"""Run layered evals; return pass rates by dimension and latency stats."""report = {dim: {"pass": 0, "total": 0} for dim in("reasoning", "long_context", "tool_call", "repo_edit")}latency = []for case in cases:t0 = time.perf_counter()resp = model_client(model=case["model"],messages=case["messages"],tools=case.get("tools"),response_format=case.get("response_format"),)latency.append(time.perf_counter() - t0)ok = case["grader"](resp) # rules / unit tests / exact matchdim = case["dimension"]report[dim]["total"] += 1report[dim]["pass"] += int(ok)for dim, r in report.items():r["pass_rate"] = round(r["pass"] / max(r["total"], 1), 4)report["latency_p50_ms"] = sorted(latency)[len(latency) // 2]return report
Keep graders objective (unit tests, schema validation, exact match) rather than using another model as a subjective judge. Fix stochastic parameters and sample repeatedly so you can separate capability variance from capability shortfall.
Long text and collaborative tasks
For long-document summarization, contract comparison, and large-scale code review, the bottleneck is usually instruction-following stability, not “whether the model can read it”: format requirements dropped mid-input, conclusions mixed across sections. Construct cases where the same constraint appears at both the start and the end and conflicts, then observe how the model resolves it.
Multimodal and ecosystem integration
Image, table, scanned-document, and audio/video understanding usually show up as one stage in a document pipeline. Decouple OCR, layout analysis, and table structuring from model reasoning so the model layer can be swapped without rebuilding the chain. Integration with office documents, search, and storage is a platform concern and can be described with generic categories (object storage, logging, monitoring/alerting, message queues) rather than a specific vendor.
Creative writing and language quality
This is the most subjective area. Use blind review, multiple raters, and a fixed rubric: hide model identity and score factuality, structural clarity, tone consistency, and editing cost. For Chinese (or any target language), separately check idioms/terminology, long-sentence rhythm, and translationese.
Real-time information and retrieval augmentation
For time-sensitive tasks, parametric knowledge is always stale. Use retrieval-augmented generation (RAG) and search tools. Evaluation then shifts from “how much the model knows” to citation accuracy, refusal rate, and handling of conflicting sources. A practical metric: whether each claim in the answer can be traced to a retrieved snippet.
Cost model: turn “value for money” into a formula
Comparing unit prices alone is meaningless. Compare cost per unit of effective output:
effective_cost = (input_tokens × input_price + output_tokens × output_price) / task_success_rate
Add three hidden costs:
- Retry cost: on a path that must succeed in one shot, 85% vs 95% success can nearly double actual call volume.
- Human rework: cheap tokens are not economical if output needs heavy editing.
- Migration and lock-in: OpenAI-style APIs and easy switching across providers affect long-term bargaining power.
Abstract model choice into configuration:
# Model routing sketch: split by task type for canaries and fallbacksrouting:reasoning: { primary: model_a, fallback: model_b, max_tokens: 8000 }long_doc: { primary: model_b, fallback: model_a, max_tokens: 32000 }structured: { primary: model_a, temperature: 0.0, schema_strict: true }cheap_class: { primary: model_c, cache_ttl_seconds: 3600 }
Semantic caching and batching often cut repeated-query cost more than haggling over list price.
Scenario-based decision framework
| Target scenario | Primary metrics | Secondary metrics | Suggested strategy |
|---|---|---|---|
| General-purpose workhorse | Task success rate, tool-call stability | Latency, ecosystem maturity | Single primary + fallback |
| Writing and long-text collaboration | Blind-review scores, instruction following | Effective context length | Primary model + human sampling |
| Multimodal documents | Layout/table reconstruction accuracy | Cost per page | Decouple parsing from reasoning |
| Budget-sensitive, language-quality-sensitive | Cost per effective output | Target-language quality | Layered routing; cheap models for simple requests |
| Strong time sensitivity | Citation traceability, reasonable refusals | Time-to-first-token | RAG required |
For enterprise deployment, also evaluate data compliance, audit logs, content safety filters, and private-network access. Cloud platforms typically offer these as generic product categories (for example, combinations of capabilities on platforms such as Baidu AI Cloud) rather than tying them to a single model.
Common pitfalls and practical advice
- Substituting a leaderboard for in-house tests. Public evals diverge from private data; build a 100–300 example regression set from real traffic.
- Treating selection as one-time. Model cycles are monthly; put the eval pipeline in CI and re-run on every change.
- Ignoring failure modes. How failures happen (truncation, format errors, overconfident claims) is more actionable than overall accuracy.
- Over-investing in long context. Retrieval plus reranking is often cheaper and more accurate than stuffing the window.
- Missing observability. Log token use, success rate, retry rate, and human acceptance so you can keep proving the choice.
Conclusion: Rewrite “who is strongest” as “under which constraints, at what cost, to what quality.” Model selection becomes a measurable, regressable, iterable engineering decision.
