LLM Model Selection: A New Approach to Splitting Tasks and Costs by Workflow Stage
As model providers offer tiered options—some built for long-chain reasoning and complex engineering, others for efficient, low-cost everyday tasks—the real challenge is mapping capability differences to specific business stages rather than asking which model is strongest. This article introduces a practical method: decompose a workflow into routine, multi-step tool, and difficult problem-solving stages, then match each stage to the right model. It also presents a three-ledger cost model (regular input, cache-hit input, and output) to avoid miscalculating expenses, explains how to use public benchmarks as prior assumptions rather than final answers, and outlines a small-scale controlled experiment with three common tasks. The goal is to make model selection verifiable instead of intuition-based.
1. The Problem: Choosing Models in a Tiered Supply Landscape
The industry has recently seen a tiered supply of models designed for different workload profiles. One category emphasizes sustained performance in long-chain reasoning, complex engineering, and research scenarios. The other emphasizes response efficiency and cost advantages for everyday tasks. Both are typically offered through API-based access, making them easy to integrate into existing systems.
For developers and enterprise users, the real difficulty is not “which model is stronger,” but how to map capability differences to your own business stages. A single benchmark score usually comes from a limited evaluation set and may diverge from the complexity of real codebases, real documents, and real toolchains. Relying on rankings alone leads to two kinds of waste: using expensive models for routine work, or using underpowered solutions for hard problems that require repeated rework.
A more robust approach is therefore: decompose tasks first, match at the stage level second, and validate the payoff with a cost ledger last.
2. The Core Method: Break Tasks into Stages, Not Just a Total Score
A typical engineering workflow can be split into three types of stages:
- Routine execution stages: format conversion, template-based generation, single-point bug fixes, log summarization, and similar work with clear paths and low verification cost.
- Multi-step tool stages: work that requires retrieval, tool invocation, and chaining multiple steps, where stability and process control matter.
- Difficult problem-solving stages: cross-service fault localization, reconstructing an evidence chain from large volumes of material, long-cycle refactoring, and similar work that requires maintaining context consistency over a long period.
Once split this way, the selection logic becomes intuitive: prioritize efficiency-oriented models for routine stages; focus on tool invocation and process stability for multi-step stages; hand difficult stages to deep reasoning models. The key is not to replace the entire pipeline at the outset. Instead, let the efficiency-oriented model handle the routine parts, explicitly surface the steps where it repeatedly gets stuck, and then upgrade those steps in a targeted way.
Illustrative routing logic (pseudocode):
def route(task):if task.type == "routine":return efficient_model(task) # everyday coding / multi-step tasksif task.requires_long_context and task.difficulty == "high":return reasoning_model(task) # complex engineering / researchreturn efficient_model(task)
3. Cost Structure: The Three-Ledger Accounting Method
The cost of LLM calls is usually made up of three parts: input, cache-hit input, and output. The unit prices of the three differ significantly, and cache-hit input is often far cheaper than regular input. Estimating by “total token count” alone can seriously misjudge cost.
It is recommended to set up three ledgers:
- Ledger A: regular input—new material that must be read again each time.
- Ledger B: cache-hit input—the same material processed repeatedly (such as a fixed codebase or long-term documents).
- Ledger C: output—generated results, usually with the highest unit price.
This shows that two business profiles have completely different cost structures. A business that repeatedly processes the same material has a high cache-hit ratio, so its actual cost is significantly diluted. A business that reads new material every time is dominated by input cost. When selecting models, “whether context can be reused” should be treated as a first-class evaluation factor.
4. Using Benchmarks Correctly: Check Whether Tasks Transfer
Industry benchmarks (such as those targeting real codebase modifications and checking whether changes meet maintainer merge standards, or those covering multiple task types and reporting both scores and cost) offer reference value, but transferability must be considered:
- On real codebase modification benchmarks, the score gap between efficiency-oriented and deep reasoning models may be small, while the cost per task may differ by several times. This shows that routine coding tasks do not need to default to the most expensive model.
- Once the task shifts to a hard-to-localize cross-service fault, or reconstructing an evidence chain from mixed material, the conclusion may reverse. Benchmark scores cannot replace testing on your own tasks.
The correct usage is to treat public benchmarks as prior assumptions, not final conclusions.
5. Implementation Steps: A Controlled Experiment on Three Common Tasks
If a workflow already exists, start by choosing three high-frequency tasks for comparison:
- Fix a known bug;
- Answer several verifiable questions based on an old document;
- Run a multi-step task that requires tools.
For each task, record four metrics: whether the result is correct, number of human rework rounds, end-to-end latency, and actual cost (split by the three ledgers). Key points of the experiment design:
- Fix the inputs and acceptance criteria to avoid distorted conclusions caused by “different problems”;
- First run everything with the efficiency-oriented model and mark the sticking points;
- Switch only the sticking-point stages to the deep reasoning model and observe the marginal gain;
- Take averages over multiple consecutive rounds to avoid single-run fluctuations.
Illustrative record structure:
{"task": "fix_known_bug","model": "efficient | reasoning","correct": true,"human_rounds": 1,"latency_ms": 8200,"cost": {"input": 0.12, "cache_hit_input": 0.03, "output": 0.20}}
6. Common Pitfalls
- Ranking-only thinking: ignoring the distribution gap between the evaluation set and your own tasks.
- Looking at unit price only: ignoring the amplifying effect of the cache-hit ratio on total cost.
- Replacing everything at once: making it impossible to locate the source of gains, with high rollback cost.
- Missing acceptance criteria: leading to work that “looks done” but has a high rework rate.
7. Conclusion
The real value of tiered model supply is that it lets teams configure capability by stage. The recommended path is: task decomposition → stage matching → three-ledger accounting → small-sample controlled experiment → gradual rollout. With the general capabilities of cloud platforms such as Baidu AI Cloud (for example, container platforms hosting inference services, log services and monitoring alerts for observing call chains, and object storage for saving experiment datasets), this method can be engineered at low cost, turning selection from “gut feeling” into something “verifiable”.
