LLM Selection Guide: Capability-Dimension Evaluation and Matching

    Aggregate leaderboard scores are a poor basis for model selection because they use fixed weights, hide dimension-specific weaknesses, and are often measured under different protocols. This article presents a capability-dimension framework for evaluating and matching LLMs, covering six capability dimensions, evaluation methodology, end-to-end cost, scenario-based selection, and a layered routing architecture with regression baselines.

    1. Reframing the Problem: From Rankings to Dimension Matching

    When a new flagship model is released, vendors typically launch comparable versions within weeks to two months. At that point, public leaderboards show a cluster of similar scores, which can easily lead to two extreme conclusions: “it has caught up” or “it is still far behind.” Neither is rigorous.

    The reality is that model capability is not a scalar but a vector. A composite index is a weighted aggregation of multiple task sets, with weights chosen by the leaderboard maintainer and usually not aligned with your business distribution. The right question is therefore not “Who is first?” but:

    • Which capability dimensions does my task distribution fall into?
    • What are the relative positions and absolute usability of each candidate model on those dimensions?
    • What is the end-to-end cost required to reach the target quality, including retries and human fallback?

    2. Why Composite Scores Are Insufficient for Decision-Making

    Composite scores have three inherent limitations.

    First, weight mismatch. For a team focused mainly on repository-level code changes, almost all benefit comes from code and tool-calling dimensions; knowledge QA and math problems, which account for a significant share of the composite score, are noise.

    Second, aggregation masks weaknesses. Two models may differ by only a few points overall while trading wins on one dimension, or while one has a cliff-like gap on one or two critical dimensions. The latter is fatal for production systems: a capability gap that fails on only 5% of requests but has an unrecoverable failure mode is more dangerous than an overall 10% lower score.

    Third, measurement protocols are not standardized. Different leaderboards use different task sets, prompt templates, sampling counts, and rules on whether tool calls are allowed. Subtracting numbers across leaderboards is meaningless. Only results from the same evaluation framework, the same task set, and the same sampling budget are comparable.

    3. A General Breakdown of Capability Dimensions

    I recommend evaluating candidate models across the following six dimensions, with each dimension tied to an automatically verifiable acceptance criterion.

    1. General reasoning and instruction following: satisfaction rate for multi-constraint instructions, validity rate for structured output (JSON Schema), and recall of middle paragraphs in long instructions.
    2. Repository-level code engineering: locating problems in real multi-file repositories, making cross-file changes, preserving existing conventions, and passing the project’s own tests. The key metrics are “first-pass rate” and “regression introduction rate,” not single-function correctness.
    3. Tool calling and web-based agents: multi-step planning, self-correction after failure, goal retention after context compression, end-to-end task success rate, and average number of steps.
    4. Scientific and high-difficulty knowledge reasoning: questions requiring long-chain derivation, domain priors, and counterintuitive conclusions. This capability is characterized by errors that cannot be found by local checks, so manual sampling is required.
    5. Long context and stability: effective information utilization under long inputs, instruction drift in long conversations, and variance in output format.
    6. Cost and throughput: cost per task, time to first token, concurrency quota, and queueing behavior under rate limits.

    A common observation is that the ranking of different models across these six dimensions is not consistent. Some models are close to or even locally exceed flagship models on code and agent dimensions, while still showing a clear gap on science questions that require long-chain derivation. Other models have slightly lower composite scores but significantly better unit cost, making them suitable for batch scenarios. This is exactly why dimensional evaluation is necessary.

    4. Evaluation Methodology: Making the Numbers Credible

    • Fix the task set and version: version the task set and record prompt templates, decoding parameters, and tool allowlists.
    • Control the sampling budget: standardize temperature, maximum steps, and repetition count; report means and confidence intervals.
    • Sample multiple times to observe variance: a single result should not be used for model selection. Repeat the same task N times and report the success rate and failure-mode distribution.
    • Prevent data contamination: prioritize self-built, internal private task sets; use public task sets only as reference.
    • Use end-to-end judgment: use “whether the task is completed” as the sole criterion, not “whether the answer looks reasonable.”
    • Manually sample scientific questions: such questions lack reliable automatic criteria.

    Illustrative weighted scoring and scenario routing code:

    1. from dataclasses import dataclass
    2. @dataclass
    3. class Candidate:
    4. name: str
    5. scores: dict # dimension -> 0–100, from same-scope evaluation
    6. cost_per_task: float # end-to-end cost per task (including retries)
    7. WEIGHTS = {
    8. "code_repo": 0.35,
    9. "agent_tool": 0.25,
    10. "reasoning": 0.20,
    11. "science": 0.10,
    12. "long_ctx": 0.05,
    13. "stability": 0.05,
    14. }
    15. def weighted(c: Candidate) -> float:
    16. return sum(c.scores[k] * w for k, w in WEIGHTS.items())
    17. def route(cands, budget=None, hard_floor=None):
    18. hard_floor = hard_floor or {}
    19. ok = [c for c in cands
    20. if all(c.scores[k] >= v for k, v in hard_floor.items())
    21. and (budget is None or c.cost_per_task <= budget)]
    22. return max(ok, key=weighted) if ok else None

    hard_floor expresses a “non-negotiable lower bound.” For example, if the scientific reasoning dimension falls below a threshold, the model is eliminated directly, avoiding being masked by a high composite score.

    5. Calculate Cost End to End

    Unit token price is only part of the cost. Real cost should include:

    • The retry multiplier caused by first-pass rate (a 60% pass rate means an expected 1.67 calls);
    • The cost of the fallback path after failure (switching to a stronger model or escalating to a human);
    • Input token inflation caused by long context;
    • Time cost caused by rate limits and queueing.

    Therefore, comparisons should use “cost per successful task = cost per call × expected number of calls + fallback cost,” not a unit-price comparison. Batch, offline scenarios that can tolerate retries are suitable for low-cost models; interactive, low-latency scenarios should additionally weight time to first token.

    6. Scenario-Based Matching Recommendations

    • Code and repository-level modifications, web/tool-based agents: prioritize the model with the highest pass rate on the corresponding dimension and recoverable failure modes; do not insist on the highest composite score.
    • Batch processing and cost-sensitive tasks: choose the model with the lowest cost per successful task and use a small traffic evaluation to confirm the quality floor.
    • High-difficulty scientific reasoning and long-chain derivation: at this stage, it is still advisable to keep the strongest reasoning model as a fallback and not replace it entirely with a low-cost model.
    • Office and quota-sensitive scenarios: pay attention to quota policies, concurrency limits, and output stability.

    7. Engineering Implementation: Layered Routing and Regression Baselines

    A production system should not be bound to a single model. A three-layer structure is recommended:

    1. The entry layer performs task classification (using a small model or rules) and routes requests to models at different capability tiers.
    2. The middle layer standardizes structured-output validation and automatic retries; if validation fails, switch models.
    3. The fallback layer retains a high-capability model to handle low-confidence requests.

    Build observability alongside this: write the model identifier, dimension tags, pass/fail, latency, and cost of each call to the logging service, and use monitoring and alerting to track pass-rate and cost drift. Run a fixed regression baseline every time a model is upgraded; only allow ramping up if the baseline does not degrade.

    8. Common Pitfalls

    • Using composite scores as the sole basis for a decision;
    • Subtracting numbers directly across leaderboards;
    • Drawing conclusions from a single evaluation;
    • Looking only at unit price and not end-to-end cost;
    • Ignoring differences in failure modes and looking only at average quality;
    • Treating public task sets as private acceptance criteria.

    Conclusion

    “Closest” is a dimension-dependent judgment, not a global conclusion. A reusable approach is to build your own private task set and unified protocol, score each of the six dimensions separately, set non-negotiable lower bounds, compare using end-to-end cost rather than unit price, and finally combine models at different capability tiers through layered routing. This produces selection conclusions that can capture the benefits of local outperformance in code and agent scenarios while retaining the necessary fallback capability in high-difficulty scenarios such as scientific reasoning.