LLM Tiered Scheduling: A Cost-Efficient Multi-Agent Practice

    This article explains how tiered LLM scheduling splits planning from execution across models of different capability levels and pricing tiers to cut token costs and latency. It covers the core logic of cognitive load separation, two common collaboration patterns (the Advisor pattern and the Orchestrator pattern), the token distribution and context caching mechanisms behind the savings, and the practical limits developers need to know before adopting the architecture.

    LLM Tiered Scheduling: A Cost-Efficient Multi-Agent Practice

    In enterprise applications and complex automation tasks, calling a large language model (LLM) to run an end-to-end workflow has become the norm. Yet many developers discover in practice that using the most capable, largest-parameter flagship model for every subtask from start to finish makes token costs climb steeply, while response latency becomes hard to control.

    In reality, most execution-type subtasks—such as localized code edits, web content extraction, and log keyword search—do not require top-tier logical reasoning. To address this pain point, the industry has proposed a “cognitive tiering” multi-agent collaboration architecture. Its core idea is to decouple “thinking and planning” from “doing the work,” assigning each to models of different capability levels and billing rates. This article analyzes this cost-effective technical practice across four dimensions: architecture principles, two mainstream collaboration patterns, the underlying cost optimization mechanisms, and engineering constraints.

    1. Core Logic: Tiering and Decoupling Cognitive Load

    In a traditional monolithic agent architecture, the model must both understand the global goal and execute specific actions. This fills the context window with large amounts of intermediate data, and every round of interaction consumes expensive top-tier model quota.

    Tiered scheduling introduces the concept of “cognitive load classification”:

    1. High-tier cognitive layer (Planner/Advisor): Responsible for understanding complex constraints, decomposing the global task, making exception decisions, and synthesizing the final result. This part consumes few tokens but demands a highly capable model.
    2. Mid-tier execution layer (Worker): Responsible for repetitive, mechanical, or localized operations under clear instructions. This part consumes a large number of tokens, but the logic paths are clear, so a more cost-effective mid-tier model is sufficient.

    According to relevant technical benchmarks (such as evaluation sets in software engineering and browser automation), a combination of a “high-tier model plus mid-tier executors” retains roughly 92% to 96% of the performance of an all-high-tier approach on complex tasks, while overall cost can be compressed to 46% to 63% of the original. In other words, sound architecture design can deliver over ninety percent of the capability for less than half the cost.

    2. Two Mainstream Collaboration Patterns

    In concrete engineering implementations, the choice of scheduling pattern usually depends on the task topology. Two mature patterns are available.

    1. Advisor Pattern: On-Demand Vertical Decision-Making

    In the Advisor pattern, the mid-tier model is the primary executor and independently drives most of the workflow. When it hits a sticking point—a logical fork, an ambiguous instruction, or something beyond its knowledge boundary—the executor proactively asks the upper layer for help, sending a summary of the current context to the high-tier model. The high-tier model outputs only a decision or a hint, after which control immediately returns to the executor.

    • Characteristics: The high-tier model is invoked very rarely, on average about once per task. The vast majority of tokens are billed at the mid-tier rate.
    • Use cases: Tasks with a relatively linear flow but a few high-difficulty decision points along the way, such as automated bug fixing or compliance review of specific documents.

    2. Orchestrator Pattern: A Parallel Divide-and-Conquer Structure

    In the Orchestrator pattern, the high-tier model sits at the absolute center of command. It first decomposes the user goal into multiple independent subtasks, then dispatches them to multiple mid-tier executors for parallel processing. Once the executors finish, they return their results, and the high-tier model performs deduplication, conflict resolution, and final aggregation.

    • Characteristics: The high-tier model is mainly consumed during task decomposition and result synthesis, while the massive information retrieval and processing in between is done in parallel by the execution layer. In breadth-first retrieval tasks, this pattern yields a substantial efficiency gain, improving overall response speed by about 3x.
    • Use cases: Tasks that require large-scale information gathering and cross-validation, such as web-wide competitor research or large-scale codebase scanning.

    3. Why It Cuts Costs and Speeds Things Up

    The cost savings of this architecture are not magic; they rest on statistical patterns of token flow and underlying caching mechanisms.

    1. The 80/20 Rule of Token Distribution

    Technical experiments (Cookbook data) show that in a well-designed combination, roughly 84% to 98% of input and output tokens occur at the execution layer and are billed at the mid-tier rate. Only a tiny fraction of critical decision tokens go through the high-tier rate. Overall, the combined cost typically drops by about 2.5x.

    2. Independent Contexts and Cache Reuse

    Under a multi-agent framework, each sub-agent maintains an independent context cache. When the orchestrator distributes similar task templates to multiple executors, or when an executor in the Advisor pattern repeatedly asks questions carrying the same background, the system can hit the cache. Cached portions are no longer billed as full-price new tokens, which further dilutes the marginal cost in long-context scenarios.

    Illustrative scheduling pseudocode:

    1. # Pseudocode: Advisor pattern scheduling logic
    2. def advisor_workflow(task):
    3. worker_context = init_worker_context(task)
    4. while not worker_context.is_done():
    5. action, confidence = worker.execute(worker_context)
    6. if confidence < THRESHOLD:
    7. # Call the high-tier model only under high uncertainty, reusing the cached prefix where possible
    8. decision = high_tier_model.advise(
    9. cached_prefix=worker_context.get_base_prompt(),
    10. query=worker_context.get_current_stuck_point()
    11. )
    12. worker_context.apply(decision)
    13. return worker_context.result

    4. Architecture Limits and Applicability Boundaries

    Despite the clear advantages, tiered scheduling is not a cure-all. Before adopting it, developers must understand its hard constraints to avoid adding system complexity just to save money.

    1. Hierarchy depth limit: Current scheduling protocols typically restrict the orchestrator to delegating only one level down. Nested calls deeper than one level (an executor spawning another executor) are ignored by the system or raise an error directly.
    2. Concurrency cap on agents: The number of independent agents in a single multi-agent session is capped (usually 20). This means it cannot scale horizontally without limit.
    3. Task filtering:
      • Not suitable: Narrow-domain single-point problems (calling a small model directly is enough), and tasks requiring very long chains of deep logical reasoning (decomposition can lose global context and add communication overhead).
      • Best suited: Wide-domain tasks with huge token consumption, such as web-wide search and validation, massive log analysis, and large-scale code refactoring.

    5. Summary and Advice for Developers

    After using top-tier models for a long time, many developers find that mid-tier models are already good enough for everyday coding and routine Q&A, while top-tier models are truly irreplaceable for macro architecture planning and complex logical debugging.

    Placing the most expensive compute precisely where “thinking” is most needed, and handing the heavy “execution” to cost-effective models, is an inevitable trend in the architecture design of future AI applications. On general-purpose LLM service platforms offered by cloud providers such as Baidu AI Cloud, developers can flexibly integrate model services of different specifications and, combined with the tiered scheduling strategy described here and general cloud capabilities such as log services and monitoring alerts, easily build enterprise-grade agent applications that are both highly capable and cost-effective. If you are still using the most expensive model to handle every stage, now is a good time to try refactoring your agent workflow.