Abstract
Recent advances in large language models (LLMs) have intensified the need to deliver both rapid responses and high-quality outputs. More powerful models yield better results but incur higher inference latency, whereas smaller models are faster yet less capable. Recent work proposes balancing this latency-quality trade-off using model cascades, which route simpler queries to smaller models and more complex ones to larger models. However, enabling efficient cascade serving remains challenging. Current frameworks lack effective mechanisms for handling (i) the huge and varying resource demands of different LLMs, (ii) the inherent heterogeneity of LLM workloads, and (iii) the co-optimization of system deployment and routing strategy. Motivated by these observations, we introduce Cascadia, a novel cascade serving framework designed explicitly to schedule request routing and deploy model cascades for fast, quality-preserving LLM serving. Cascadia employs a bi-level optimization method: at the deployment level, it uses a mixed-integer linear program to select resource allocations and parallelism strategies based on LLM information and workload characteristics; at the routing level, it applies a Chebyshev-guided method to iteratively co-optimize the routing strategy and the system deployment produced by the deployment level. Our extensive evaluation on diverse workload traces and different model cascades (DeepSeek and the Llama series) demonstrates that Cascadia significantly outperforms both single-model deployments and the state-of-the-art cascade serving baseline, achieving up to 4x (2.3x on average) tighter latency SLOs and up to 5x (2.4x on average) higher throughput while maintaining target answer quality.
Introduction
The rapid adoption of Large Language Models (LLMs) has created a "trilemma" for service providers: balancing response quality, inference latency, and operational cost. High-capacity models like DeepSeek-671B offer state-of-the-art reasoning but suffer from significant latency. Conversely, smaller models provide near-instantaneous responses but struggle with complex tasks.
Model cascading has emerged as a promising solution, where requests are sequentially processed by a hierarchy of models. A request is only escalated to a larger, more expensive model if the preceding smaller model's output is deemed insufficient. However, existing systems often treat the routing logic and the hardware deployment as independent variables, leading to sub-optimal resource utilization and performance bottlenecks. Cascadia is the first system to tackle this "system-algorithm co-design" head-on.
The Latency-Quality Trade-off
The fundamental motivation for Cascadia lies in the stark performance gap between model sizes. As shown in Figure 1, while a large model achieves superior quality scores, its latency is orders of magnitude higher than its smaller counterparts.
Cascadia addresses this by co-optimizing the routing algorithm (who goes where) and the system deployment (how hardware is allocated). This ensures that the hardware configuration is tailored to the specific traffic patterns generated by the routing strategy.
Cascadia System Architecture
Cascadia employs a bi-level optimization framework to determine the optimal "Cascade Plan."
1. Deployment Level Optimization
At the deployment level, Cascadia determines how to distribute available GPUs across the model hierarchy. It utilizes Mixed-Integer Linear Programming (MILP) to select the optimal combination of Data Parallelism (DP), Tensor Parallelism (TP), and Pipeline Parallelism (PP) for each model in the cascade.
By using a high-fidelity performance simulator, Cascadia can evaluate thousands of potential configurations in seconds, identifying the setup that minimizes p95 latency for a given workload. This is crucial because the "optimal" parallelism strategy changes based on model size and workload characteristics (e.g., coding vs. chat).
2. Routing Level Optimization
The routing level focuses on tuning escalation thresholds. Cascadia uses a Chebyshev-guided penalty method to find the optimal balance between quality and speed. The goal is to maximize throughput and minimize latency while strictly meeting a user-defined minimum quality target. The system iteratively refines these thresholds based on hardware performance feedback from the deployment level.
Key Results and Evaluation
Cascadia was evaluated using the DeepSeek and Llama-3 model series on diverse workload traces from MT-Bench.
- Throughput Gains: Cascadia achieves up to 5x (2.4x on average) higher throughput compared to standard large-model deployments and existing cascade baselines like CascadeServe.
- Latency Reduction: The system meets 95% Service Level Objective (SLO) targets at latency deadlines that are 2.3x tighter than competitive frameworks.
- Quality Preservation: All performance gains are achieved while maintaining target answer quality, as verified by GPT-4o-as-a-judge.
- Dynamic Adaptation: A built-in re-scheduling mechanism allows Cascadia to detect workload shifts and re-optimize the entire deployment in under 60 seconds.
Conclusion
Cascadia demonstrates that the key to efficient LLM serving lies in the joint optimization of routing strategies and hardware parallelism. By automating these complex decisions, Cascadia provides a robust framework for delivering high-quality LLM responses with significantly reduced latency and increased throughput. Future work will explore non-linear routing graphs and specialized expert model hierarchies.
Summary updated