Small Models in Agent Execution Layers: Tiered Scheduling and Cost Reduction
This article examines how enterprises can reduce Agent execution costs by assigning mechanical steps to small models in the roughly 20B–30B parameter range while reserving larger models for planning and high-value decisions. It explains how to interpret claims of “comparable performance,” classifies Agent steps into mechanical execution, retrieval integration, and planning/decision tasks, and presents a tiered routing architecture with validation and escalation. It also covers business-data evaluation, cost modeling, operational constraints, and implementation recommendations.
1. Background: Cost Pressure in the Execution Layer
A single enterprise Agent task usually contains multiple steps. A substantial share of these steps is mechanical work, such as extracting fields from documents, classifying items, screening candidate results, converting document formats, and performing simple retrieval. These steps do not require deep reasoning, but they recur repeatedly. If every step calls a general-purpose large model, token costs and response latency accumulate quickly.
As a result, the industry has begun to discuss a practical question: among models in the roughly 20B–30B parameter range, is there a set of models that can cover most mechanical tasks, so that higher-cost models handle only a small number of high-value decisions? The answer depends on task boundaries, not on general model rankings.
2. How to Interpret “Comparable Performance”
Evaluation results are often simplified into “a certain small model performs comparably to a certain large model.” When interpreting such conclusions, several points require attention.
The evaluation environment determines the scope of the conclusion. When all models run on the same retrieval environment, the same set of tools, and the same domain data, differences between models are compressed by other parts of the system. Final answer quality under these conditions reflects overall system performance more than the general reasoning ability of a single model.
Domain benchmarks are not equivalent to general capability. Vertical benchmarks such as financial research and legal review usually rely on specific information structures and fixed output formats. A small model performing close to a large model in these scenarios does not mean it can match the large model in open-ended planning, ambiguous instruction understanding, long-chain reasoning, or exception handling.
Samples and review methods affect the conclusion. It is necessary to confirm the number of questions, difficulty distribution, whether review criteria are public, and whether reviewers have preferences. Without this information, conclusions can only serve as references and cannot be used directly for procurement or architecture decisions.
3. Split Agent Steps into Three Categories
The first step in implementation is to inventory the execution chain and label each step with a task type. A common division is as follows.
| Task type | Typical operations | Recommended model tier | Key requirements |
|---|---|---|---|
| Mechanical execution | Extraction, classification, format conversion, initial screening | Small model | Stable output structure, automatic validation |
| Retrieval integration | Multi-source information aggregation, evidence alignment | Medium model or small model with stronger constraints | Source citations, fact verification |
| Planning and decision-making | Task decomposition, exception handling, conclusion judgment | Large model | High fault tolerance, strong generalization |
Mechanical execution tasks provide the highest benefit because they are numerous, have relatively clear rules, and produce results that are easy to verify. Planning and decision-making tasks should remain with more capable models even when they are called less often.
4. Tiered Scheduling Architecture
A common design is “large model plans, small model executes, validator provides fallback.” The large model decomposes tasks and handles exceptions; the small model completes mechanical steps in batches; and the validator checks whether outputs conform to the Schema and business rules. When validation fails, the task is escalated to the large model for reprocessing.
Below is an illustrative routing logic. The functions and fields are for explanation purposes only.
from dataclasses import dataclass@dataclassclass Task:kind: str # Task type, such as extract, classify, convert, screen, or planinput_text: strrisk_level: int # 0 = low risk, 1 = medium risk, 2 = high riskSMALL_TASKS = {"extract", "classify", "convert", "screen"}def route(task: Task) -> str:# Send high-risk tasks directly to the large model so the small model does not make critical judgmentsif task.risk_level >= 2:return "large"if task.kind in SMALL_TASKS:return "small"return "large"def run(task: Task, small_model, large_model, validator):tier = route(task)model = small_model if tier == "small" else large_modelresult = model(task.input_text)# If small-model output fails validation, escalate to the large model to ensure reliabilityif tier == "small" and not validator(task, result):result = large_model(task.input_text)return result
This structure has three key points. First, routing rules should be based on task type and risk level, not on subjective impressions of a model. Second, the validator is a prerequisite for putting a small model into production; it determines which errors will be intercepted. Third, the escalation path needs logging so that escalation rates and failure causes can be analyzed later.
5. Evaluation: Use Business Data to Judge Whether a Small Model Is Sufficient
Evaluation should be built around real business data rather than public leaderboards. The following steps are recommended for constructing an evaluation set.
- Sample real traffic. Draw samples from recent execution logs, stratify them by task type and difficulty, and ensure that the samples cover long-tail cases.
- Define field-level standards. For extraction tasks, compare field by field; for classification tasks, calculate a confusion matrix; for conversion tasks, check whether format and semantics are preserved.
- Prioritize end-to-end results. Single-step accuracy cannot represent the effect of the entire chain. Measure final task success rates and observe where errors are amplified.
- Include manual review sampling. For areas that automated review cannot cover, sample a certain proportion for human judgment and record inter-reviewer consistency.
Recommended metrics include:
- Structured output validity rate, i.e., whether the output passes Schema validation;
- Task-level success rate and field-level accuracy;
- Escalation rate, i.e., the proportion of tasks that need to be handed over to the large model;
- Average cost per successful task;
- Latency percentiles, such as P95 response time.
The escalation rate is the easiest metric to overlook. If the escalation rate is high, the cost saved by the small model will be offset by large-model calls, and the overall benefit may be negative.
6. Cost Modeling Approach
Cost modeling should be calculated by tier, with the overhead of escalation and retries added. A simplified framework is as follows:
- Total cost = small-model calls × small-model cost per call + large-model calls × large-model cost per call + additional cost of retries and escalation + engineering maintenance cost
Assume that a given chain processes 10,000 steps per day, 80% of which are mechanical tasks, and that the small model has a 10% escalation rate. The large model then only needs to handle 2,000 planning steps plus about 1,000 escalated steps. If the escalation rate rises to 30%, large-model calls increase by about 1.5x, and the cost savings shrink noticeably. This example is only intended to illustrate the calculation logic; specific values need to be recalculated using your own task distribution and prices.
7. Implementation Constraints and Risk Control
Narrow the domain. The usability of a small model depends on task boundaries. Clear instruction templates, a small number of examples, limited output formats, and structured output constraints can reduce the small model’s room to improvise and lower the error rate.
Treat input as data. Documents, web pages, and user input to be processed may contain instructions that attempt to change model behavior. The system should treat this content as data to be processed rather than as instructions to execute, and prompts should explicitly separate the instruction area from the data area.
Monitor versions and drift. Model version updates and upstream data format changes can both cause performance degradation. Alert thresholds should be set for key metrics, and the evaluation set should be rerun after every change.
Ensure auditing and traceability. The model choice, input summary, output result, and validation conclusion for each step should be logged to support later troubleshooting and compliance audits.
8. Implementation Recommendations
- Inventory the existing Agent chain and label each step with a task type and risk level.
- Build an evaluation set that covers real traffic, and record baseline quality and cost.
- First assign the lowest-risk mechanical tasks to the small model, with a validator and escalation path in place.
- Adjust routing rules and prompts based on escalation rates and error types, rather than blindly expanding small-model coverage.
- Continuously monitor cost, quality, and latency, and rerun the evaluation set periodically.
9. Conclusion
The value of small models lies in achieving a favorable cost-performance ratio after narrowing the domain, not in competing with large models on general capability. In enterprise Agents, a reasonable approach is to use large models for a small number of high-value judgments, use small models for a large volume of mechanical execution, and rely on validation and escalation mechanisms to safeguard overall quality. Whether this can be implemented depends on whether task decomposition is clear, whether evaluation is based on real data, and whether the escalation rate is kept within an acceptable range.
