Introduction
Large Language Model (LLM) deployments in production environments often face the challenge of serving heterogeneous workloads. A single instance might simultaneously handle latency-sensitive tasks like code completion and throughput-oriented tasks like document summarization. Existing serving systems, primarily relying on continuous batching, struggle to balance these competing Service-Level Objectives (SLOs).
The Challenge of Multi-SLO Serving
Current state-of-the-art systems treat all requests within a batch uniformly, processing exactly one token per request per iteration. This creates a fundamental trade-off: small batches can meet strict SLOs but sacrifice system throughput, while large batches maximize throughput at the cost of increased per-token latency, leading to SLO violations for urgent requests.
Methodology: The AdaServe Pipeline
AdaServe redefines multi-SLO serving as a constrained optimization problem, aiming to maximize total throughput (accepted tokens) while respecting a fixed compute budget and individual request SLOs. The core of the system is a speculate-select-verify pipeline that enables asymmetric resource allocation.
The pipeline consists of four distinct stages:
- Speculation: A lightweight draft model uses beam search to construct a large candidate token tree for every request in the batch.
- SLO-Customized Selection: The system calculates the minimum number of high-probability tokens required from each request's tree to satisfy its specific Time Per Output Token (TPOT) SLO.
- Throughput-Optimized Selection: Any remaining compute budget is greedily allocated to tokens across all requests that have the highest predicted acceptance probabilities, maximizing overall system efficiency.
- Verification: The target LLM performs a single parallel verification pass on the finalized draft trees.
To maintain efficiency under varying loads, AdaServe employs Adaptive Control, dynamically tuning the depth and width of speculation trees based on real-time traffic patterns.
Key Insights
- Asymmetric Resource Allocation: By leveraging speculative decoding (SD), AdaServe breaks the "one token per iteration" constraint. It can verify, for example, four tokens for a high-priority request and one for a low-priority request in the same batch.
- Draft Logits as Decision Oracles: AdaServe uses the draft model's output probabilities as a proxy for the target model's acceptance likelihood. This allows for mathematically optimized tree pruning before the expensive verification step.
- Decoupled Execution: Decoupling tree generation from selection prevents CPU-GPU bottlenecks, ensuring the GPU remains fully utilized while the scheduler performs complex optimization math.
Evaluation and Results
The system was evaluated using Llama-3.1 and Qwen-2.5 models against traces representing diverse applications (Coding Copilot, Chatbot, and Summarization).
- SLO Violation Reduction: AdaServe reduces SLO violations by up to 4.3$\times$ compared to baselines like vLLM and Sarathi-Serve.
- Goodput Enhancement: The system improves "goodput" (throughput meeting SLOs) by up to 1.9$\times$.
- Workload Resilience: In scenarios with high proportions of urgent requests, AdaServe maintains stability where traditional continuous batching systems often collapse, achieving 64% higher goodput.
Conclusion
AdaServe demonstrates that speculative decoding is not just a tool for raw speed, but a powerful mechanism for fine-grained resource management in multi-tenant LLM serving. By customizing the speculation process to individual SLOs, it achieves a superior balance between latency and throughput. Future work may involve extending these optimizations to Time To First Token (TTFT) metrics and improving draft model calibration.
Summary updated