TL;DR
Chimera is a novel predictive scheduling system designed to serve multi-agent LLM workflows across heterogeneous clusters (mixes of small, fast models and large, powerful ones). By co-designing semantic routing, workflow-aware length prediction, and real-time load balancing, Chimera cuts end-to-end latency by 1.2–2.4× while boosting task performance by up to 9.5 percentage points compared to standard serving systems like vLLM.
What Problem Does This Paper Address?
As large language models (LLMs) transition from standalone chatbots to collaborative multi-agent systems, they increasingly execute tasks via multi-stage workflows (e.g., Planner $\rightarrow$ Coder $\rightarrow$ Verifier). In these workflows, the output of one stage becomes the context for the next, creating complex dependencies.
Current LLM serving infrastructure typically assumes a homogeneous cluster where identical model replicas are deployed. This ignores the reality of modern deployments, which often feature a heterogeneous mix of models varying in size, cost, and capability. While mixing models allows for fine-grained trade-offs between speed and accuracy, it introduces a massive scheduling headache. Routing a difficult query to a large, slow model might ensure a correct answer, but under heavy traffic, it can cause severe queue congestion that delays every other workflow in the system.
Methods
Chimera acts as an intelligent middleware layer sitting between multi-agent applications and backend inference engines. It coordinates four core components to optimize scheduling:
- Semantic Router: A fine-tuned transformer encoder (based on ModernBert-large) that evaluates incoming requests and predicts a confidence score for each available model, estimating how likely it is to successfully solve the task.
- Length Predictor: A lightweight, CPU-based Quantile Random Forest (QRF) regressor that estimates the total remaining output tokens for the entire workflow (the current stage plus all future stages).
- Activity Monitor: A program table that tracks in-flight requests and aggregates the predicted token volumes to estimate the real-time queue delay for each engine.
- Load Balancer: A dispatcher that routes requests using a "latency slack" rule. It identifies the fastest available model and then selects the highest-performing model whose estimated delay falls within a acceptable slack threshold of that fastest option.
Requests are prioritized using a Shortest Total Job First (STJF) policy based on the workflow's total predicted length. To prevent long-running tasks from being permanently starved, Chimera integrates an aging-based promotion mechanism.
Datasets
The authors evaluated Chimera using multi-stage agentic workflows built on the ReAct framework across two primary benchmarks:
- APPS: A challenging code generation dataset consisting of programming problems ranging from introductory to competitive-programming levels.
- MATH: A collection of competition-style mathematics problems covering topics like algebra, geometry, and probability across multiple difficulty tiers.
Key Insights and Ideas
- Routing and Congestion are Tightly Coupled: You cannot optimize routing in isolation. Choosing a more capable model for a hard prompt increases the shared GPU resource contention, meaning a smart router must account for emergent queue delays.
- Workflow-Awareness Beats Request-Level Scheduling: Traditional schedulers look at requests individually (Shortest Job First). Chimera looks at the entire remaining workflow. Prioritizing based on the total remaining job length (STJF) reduces average queue times by an additional 15–34% compared to standard Shortest Job First (SJF) methods.
- Tunable Latency Slack: The "latency slack" parameter acts as a highly practical knob for infrastructure providers. Tighter slack constraints prioritize ultra-low latency, while expanding the slack allows the system to dynamically route queries to larger models for maximum accuracy when the cluster load permits.
Key Results
- Performance & Speedups: Across diverse heterogeneous configurations (combining various Qwen, Llama, and Ministral models), Chimera consistently achieved the best Pareto frontier. It reduced end-to-end latency by 1.2–2.4× and improved task accuracy by 8.0–9.5 percentage points over baselines like vLLM.
- Negligible Overhead: Despite running a transformer-based router and a random forest predictor for every request, Chimera's asynchronous, batched design ensures that scheduling operations account for $\le$ 2.2% of total end-to-end latency.
Limitations and Future Work
While Chimera approaches near-oracle performance in several settings, the authors note that gaps still remain. Specifically, oracle studies revealed that further improvements could be made by refining the length prediction accuracy for smaller model combinations (like Qwen1.5+7B) and optimizing routing choices for larger model combinations (like Qwen1.5+14B). Future work could also explore extending this predictive scheduling framework to dynamic multi-agent workflows where the sequence of stages isn't strictly predefined.
Summary updated