LLM Selection and Evaluation: A Rational Framework from Scenario Matching to Execution Efficiency
Choosing the right large language model is rarely about picking the highest-ranked one. Model capability is a multi-dimensional vector, while most business scenarios depend on only one or two of those dimensions. This article explains how to break scenarios into three task types—divergent, high-difficulty reasoning, and execution—then assign weights, quantify efficiency, run layered test sets, validate with a small traffic rollout, and adopt layered routing instead of betting on a single model. It also lists common evaluation pitfalls and shows how to keep the decision process reproducible, auditable, and iterable.
1. The Starting Point: Why the “Strongest Model” Is Often Not the “Most Suitable Model”
A pattern that keeps recurring in engineering practice is this: teams invest heavily in benchmarking a wide range of large language models, only to find that the model used most often after launch is not the one at the top of the leaderboard. The reason is straightforward—model capability is a multi-dimensional vector, while a business scenario usually falls on only one or two of those dimensions. When evaluation dimensions do not overlap with business dimensions, “strongest” degrades into a marketing concept.
An even more common difficulty is scenario mismatch: using a model that excels at divergent generation for highly deterministic transactional execution, or the reverse, using a model built for stable output for open-ended creative exploration. Both mismatches raise costs and degrade the user experience. So the first step in selection is not comparing models, but decomposing the scenario.
2. Breaking Down the Scenario: Three Fundamentally Different Task Types
2.1 Divergent Tasks: Brainstorming and Solution Exploration
The goal here is not “correctness” but “coverage.” Users need a large volume of candidate ideas, entry points from different angles, and rough drafts that can be refined further. The right metrics are idea diversity, extensibility, and interaction smoothness—not the rigor of a single-turn output.
A typical mistake is measuring brainstorming by factual accuracy, which yields a safe but entirely unoriginal answer. For these tasks, the reasonable approach is to allow multiple rounds of probing, accept a certain proportion of ineffective output, and shift the filtering cost to a later stage.
2.2 High-Difficulty Reasoning Tasks: Mathematical Proofs and Long-Chain Deduction
The opposite of divergent tasks, these are extremely sensitive to single-turn accuracy. If one link in a long reasoning chain breaks, everything after it is void. The capabilities that truly matter include: information retention over long contexts, standardized expression of symbols and formulas, self-verification and backtracking, and adaptability when “the problem itself has no ready-made answer.”
One easily overlooked criterion here is whether the model can reason “without relying on existing conclusions.” If a problem already has a complete solution in community material, the model’s performance may be nothing more than retrieval and restatement; only when a problem has no ready-made answer can you see the real depth of reasoning. Evaluations should deliberately construct such “no reference solution” problems.
2.3 Execution Tasks: Code Generation, Data Cleaning, Batch Conversion
This is the largest category on the engineering side. Its core metrics are throughput efficiency and unit cost; accuracy only needs to clear an acceptable threshold. A common misjudgment is choosing a slower, higher-priced model to chase a few percentage points of accuracy, only to lengthen the overall delivery cycle.
3. The Efficiency Dimension Must Be Quantified: The Structural Impact of Speed Differences
A key observation from the original text is worth expanding: when two models are close in capability but one responds nearly an order of magnitude faster, the selection conclusion becomes clear almost immediately.
Suppose a batch job must process 100,000 records, at 2 seconds and 18 seconds per record respectively:
Serial total time (slow model): 100000 × 18s ≈ 500 hoursSerial total time (fast model): 100000 × 2s ≈ 55 hours
Even with concurrency, the gap still shows up in queueing latency, timeout retry rates, and resource consumption. A more realistic impact is the interactive experience: in conversational scenarios, a first-token latency of more than a few seconds noticeably lowers user satisfaction. Speed, therefore, is not a nice-to-have metric but a first-class citizen that determines architectural form.
The engineering recommendation is to split efficiency metrics into three separately measured items: first-token latency, throughput per unit of output, and stability under long-running tasks (whether there is noticeable degradation). Only when all three pass is a model suitable for the execution path.
4. A Reusable Selection and Evaluation Framework
Step 1: Build a Scenario Inventory with Weights
Break the business into several task types and annotate each with three weights: accuracy requirement, latency requirement, and cost sensitivity. The weights sum to 1 to make later scoring straightforward.
Step 2: Construct a Layered Test Set
- Divergent: open-ended questions, with human evaluation of idea diversity;
- Reasoning: deduction problems with no ready-made reference solution, evaluated for completeness and self-verification;
- Execution: real business samples, directly measuring throughput and error rate.
Step 3: Scoring and Thresholds
score = w_acc * accuracy + w_lat * latency_score + w_cost * cost_score# If any dimension falls below a hard threshold (e.g., accuracy < threshold), eliminate immediately
Step 4: Small-Traffic Canary Rollout
Do not switch everything at once. Roll out to 5%–10% of traffic, observe three core metrics—error rate, timeout rate, and manual takeover rate—then decide whether to scale up.
5. Architecture Recommendation: Layered Routing Instead of a Single Bet
Mature engineering practice is usually not “pick one model to do everything,” but building a routing layer:
Request entry├─ Divergent/creative → long chain-of-thought, strong generation model├─ High-difficulty reasoning → reasoning depth first, higher latency acceptable└─ Execution/batch → high throughput, low latency, low cost model
On Baidu AI Cloud, this kind of architecture can be implemented with general-purpose capabilities: use a container platform to host routing and business services, use a message queue for peak shaving and decoupling of batch tasks, use object storage to hold datasets and artifacts, and use logging services with a monitoring and alerting system to track latency, error rate, and call volume. The model layer is integrated through a unified abstraction interface, keeping replacement costs controllable.
It is worth stressing that the value of the routing layer is not only cost reduction but also risk isolation: when a certain class of model shows quality fluctuation, the impact is confined to the corresponding branch.
6. Common Pitfalls Checklist
- Replacing scenario-based evaluation with a single leaderboard ranking;
- Testing only accuracy, not latency and stability;
- Evaluating reasoning ability on problems that have reference solutions, which distorts conclusions;
- Ignoring performance degradation under long-running tasks;
- Switching everything at once without a canary rollout;
- Treating model capability as a static constant, ignoring drift from version iteration, and lacking a regression test set.
7. Conclusion
The essence of selection is projecting a multi-dimensional capability vector onto the few dimensions the business truly cares about. First decompose the scenario, then set weights, quantify efficiency, validate with a canary rollout, and finally use layered routing to place different capabilities where they fit. This process relies on no specific product, yet it makes the decision process reproducible, auditable, and iterable—which is the real certainty the engineering side needs.
