LLM Tiered Scheduling: A Practical Guide to Cutting Costs Without Losing Quality

    This article explains how to split AI agent workloads between lightweight and high-capability large language models to reduce cost while preserving most of the quality. It covers the problem with using one expensive model end to end, the distinction between planning and execution loads, two practical collaboration patterns (advisor and orchestration) with pseudocode, where the cost savings come from, boundary conditions and common pitfalls, and a step-by-step adoption path.

    1. The Problem: Why Using the Most Expensive Model Everywhere Doesn’t Pay Off

    In agentic applications, a common mistake is handing every stage to the strongest, highest-priced model: reading requirements, breaking down tasks, writing code, running verification, and summarizing results all happen serially inside one large model. This is the simplest thing to build, but the cost structure is badly unbalanced. Only a minority of stages genuinely need deep reasoning, while the stages that consume the most tokens are the “manual labor”: retrieval, browsing, log scanning, and document comparison.

    The industry is converging on a shared conclusion: separate “thinking” from “doing,” and assign them to models of different sizes. A multi-agent setup shared in a cloud vendor’s developer community is a typical example. Its published experimental observations: on software engineering benchmarks, a combination where a lightweight model executes and a high-capability model only advises retained roughly ninety percent of the quality of the full high-capability approach, at about sixty percent of the cost; on web retrieval and verification tests, a high-capability model orchestrating while lightweight models execute in parallel reached over ninety percent of the full approach’s quality at less than half the cost.

    These numbers come from a specific experimental environment and should not be read as a universal promise. What is worth borrowing is the underlying cost structure and engineering constraints, not the exact percentages.

    2. The Core Abstraction: Planning and Execution Are Two Different Kinds of Load

    Abstract the design one level up and you see it addresses load heterogeneity:

    • Planning load: requires long chains of reasoning, trade-off decisions, and error-recovery strategy design. Token consumption is small but unit value is high, and it is extremely sensitive to model capability.
    • Execution load: high context repetition, fixed step patterns, locally verifiable. Token consumption is large but per-step difficulty is low, and it is relatively insensitive to model capability.

    The essence of tiered scheduling is to land each kind of load on a model whose capability is just sufficient, concentrating the budget where marginal returns are highest. This shares the same lineage as the classic “fast and slow paths” and “cache tiering” ideas, except the tiering dimension shifts from data to reasoning tasks.

    3. Two Collaboration Patterns You Can Actually Ship

    Pattern 1: Advisor (Worker Executes, Strong Model Decides at Specific Points)

    A lightweight model acts as the primary executor and drives the task forward autonomously. When it hits ambiguity, a fork in the approach, or consecutive failures, it makes one “consultation” call up to the higher-tier high-capability model, which returns a decision recommendation; execution control then goes back to the lightweight model.

    Illustrative pseudocode:

    1. def run_with_advisor(task, worker, advisor, max_consult=1):
    2. state = worker.plan(task)
    3. consulted = 0
    4. while not state.done:
    5. if state.is_stuck() and consulted < max_consult:
    6. advice = advisor.decide(state.summary()) # pass only a summary, not the full history
    7. state = worker.apply(state, advice)
    8. consulted += 1
    9. else:
    10. state = worker.step(state)
    11. return state.result()

    Three engineering points matter. First, a consultation must carry a structured summary rather than the full context, otherwise the high-capability model’s input cost spirals out of control. Second, cap the number of consultations so the system doesn’t degrade into escalating everything upward. Third, you must define the conditions for “when to ask,” for example a retry threshold, confidence below a set value, or an uncovered tool error.

    Pattern 2: Orchestration (Strong Model Decomposes, Multiple Executors Run in Parallel)

    The high-capability model only decomposes the task, orders dependencies, and synthesizes results. Subtasks are dispatched to multiple lightweight executors that run in parallel, each maintaining its own independent context.

    1. Planner (strong model)
    2. ├── Worker A (lightweight) ──┐
    3. ├── Worker B (lightweight) ──┼──> Synthesizer (strong model) aggregates
    4. └── Worker C (lightweight) ──┘

    The key design is orthogonality of task splitting: subtasks should share as little mutable state as possible, which reduces conflict-resolution cost at the merge stage. Also set a clear completion criterion for each subtask, otherwise the synthesis stage is forced into a lot of rework reasoning.

    4. Where the Cost Advantage Comes From: Token Distribution and Cache Reuse

    The secret to throttling cost is not unit price but the weighted token distribution. Let the high-capability model’s unit price be p_h and the lightweight model’s be p_l. If a fraction α of input tokens in the combined design goes through the lightweight rate, the average unit price is approximately α·p_l + (1−α)·p_h. When α lands around ninety percent, overall spend drops by several multiples, which matches the intuition of routing the vast majority of requests to the cheap tier.

    The second, often overlooked lever is context caching: each sub-agent keeps its own context cache, so repeated prefixes are not billed as brand-new input, saving money and lowering time to first token. In practice, keep the prompt prefix stable (system instructions, tool definitions, and fixed examples at the front) and put volatile content at the end to raise the cache hit rate.

    5. Boundary Conditions and Common Pitfalls

    • Delegation depth limit: a coordinator typically delegates only one level down; deeper nesting is ignored or degrades into serial execution, so flatten the task tree explicitly in your design.
    • Concurrency ceiling: a single session holds only a limited number of independent agents (commonly on the order of twenty); beyond that you need your own task queue and merge batches.
    • Context consistency: parallel executors see the same initial information, so if the task has implicit dependencies, conclusions can conflict; add validation at the orchestration stage.
    • Cases not suited to splitting: narrow problems, single-step deep reasoning, and strongly serial-dependent tasks, where the communication and merge overhead of splitting may exceed the benefit.
    • Observability: the chain gets longer after tiering, so add unified instrumentation for call counts, token usage, and failed retries at each layer, and use log services plus monitoring alerts to pinpoint which layer is burning money.

    6. Selection Guidance and Adoption Path

    Step one, profile your tasks: measure the ratio and token share of planning versus execution requests in real traffic. Step two, run a small-traffic canary: pilot in high-token-consumption scenarios like retrieval verification, document review, and log analysis. Step three, set guardrails: caps on consultation count, concurrency, and per-task budget are all mandatory. Step four, compare the quality gap and cost gap between “full strong model” and “tiered combination” on the same evaluation set before deciding whether to expand scope.

    If your organization already has a unified model gateway or a containerized inference platform, you can bake the tiering strategy into the platform as a capability, adjusting each layer’s model tier and budget thresholds through configuration instead of reimplementing it in business code. The capabilities Baidu AI Cloud offers in model services and cloud-native infrastructure can serve as a general foundation reference for carrying this kind of tiered scheduling and observability system.

    The conclusion is straightforward: when your system is still forcing the most expensive model to handle every stage, separating “planning” from “execution” first usually delivers more certain cost reduction than swapping models or squeezing parameters.