Cadence: Regulating the Speculation Externality in LLM Inference for Fairer Acceleration

Cadence uses per-step latency caps to regulate the speculation externality of speculative decoding, balancing throughput and request fairness.
The article examines the hidden cost of speculative decoding in batched inference—the speculation externality: accelerating one request stretches the batch's step latency, borne by all, making low-acceptance-rate requests slower than pure AR decoding. It proposes Cadence, a per-step controller setting per-request latency caps, reduced to one allowed step latency with an all-or-nothing lower-bound policy and an offline acceptance curve. On Qwen3-32B under high load, Cadence achieves 1.30x AR throughput and 1.26x SGLang's default SD, cutting degradation from 31.4% to 0.53%.
Speculative Decoding (SD) is a common technique for accelerating Large Language Model (LLM) inference: a small model rapidly drafts multiple tokens, which are then verified in a single pass by the large model. This approach can significantly boost throughput, but it carries a hidden cost that is often overlooked—the speculation externality.

The Hidden Cost of Speculative Decoding
In batched inference, every request waits for the same decoding step. When a request's draft tokens are accepted, that request gains acceleration; but the step latency for the entire batch is stretched, and all requests share that overhead. The paper defines the portion of step latency exceeding a single autoregressive (AR) step as the "speculation externality."
Acceptance rates vary across requests and fluctuate over time. Requests that receive too few accepted draft tokens actually degrade and run slower than pure AR decoding. Experimental data shows that in a batch of 112 requests, SGLang's default speculative decoding (SGL-SD) improves throughput by 13% over AR decoding, but 26% of requests experience degradation.
Autoregressive (AR) decoding refers to the default way LLMs generate tokens one at a time: each step conditions on the previous output to generate the next token, which is then sampled from a normalized probability distribution. The number of steps is strictly proportional to generation length, yielding low hardware utilization but deterministic latency. Batched inference packs multiple requests into the same step for parallel computation, so all requests share the wall-clock time of a single forward pass. Consequently, the "step latency" of a single step is determined by the slowest path in the batch. Speculative decoding verifies multiple draft tokens in parallel within one step; if accepted, that step can produce multiple tokens, amortizing per-token cost. However, verifying multiple tokens increases the computation of that step, stretching step latency. This is the source of the externality: the benefit accrues to a single request, while the latency cost is shared across the entire batch.
Cadence's Core Design: Step-by-Step Latency Regulation
Cadence is a per-step controller that sets a latency cap for each request. Latency here means the time a request loses relative to an AR step. Since each step generates at least one token per request, the maximum latency a single step can add to a request is its latency beyond one AR step—a value that is knowable before drafting. Thus, all caps reduce to a single allowed step latency, determined by the request closest to its cap.
Within this limit, Cadence adopts an "all-or-nothing" lower-bound policy: as long as there is headroom, every speculative step verifies the first draft token of every request. Cadence then uses an offline acceptance curve (identical for all requests) to fill in draft tokens that yield the maximum utility within the allowed step latency, and selects the plan with the highest operator utility score for execution.
Acceptance rate refers to the proportion of draft tokens that pass verification by the target model. It depends on how closely the draft model's distribution matches the target model's, and varies with context, task type, and sampling temperature. A high acceptance rate means a speculative step can produce multiple valid tokens, increasing throughput per unit time; a low acceptance rate means the opposite, with draft computation becoming pure overhead. The offline acceptance curve is a key assumption of Cadence: during an offline phase, the empirical probability that "the k-th draft token is accepted" is measured as a decreasing curve over k, and assumed to be approximately identical across all requests. The controller uses this to estimate the marginal utility and risk of appending the k-th draft token under a given step-latency budget, then uses the operator utility score (e.g., a weighted combination of throughput and tail latency) to select the optimal plan, avoiding repeated waste of batch budget on low-acceptance-rate requests.
Performance: Throughput and Fairness Together
On the Qwen3-32B model under high load (average 33.8 requests/sec), Cadence achieves 1.30x the throughput of AR decoding and 1.26x that of SGL-SD. More importantly, the degradation rate drops from 31.4% with SGL-SD to 0.53%, greatly improving fairness across requests.
This means Cadence pursues not just average throughput but also the experience of each request. For production environments that require stable response times, this regulation mechanism effectively prevents some requests from being "slowed down."
Tail latency refers to response times at percentiles such as P95 and P99, rather than the average; in inference services with shared batching, good average metrics do not necessarily mean good individual user experience. Inter-request fairness concerns whether the acceleration each request receives within the same batch is balanced: without regulation, speculative decoding lets high-acceptance-rate requests benefit continuously while low-acceptance-rate requests bear the stretched step latency, creating a "Matthew effect." The degradation rate—the proportion of requests that become slower than pure AR decoding—is a direct measure of fairness. Production environments typically constrain both throughput and tail-latency SLOs, so scheduling policies that optimize only average throughput can mask long-tail degradation; Cadence's per-request latency caps target precisely this blind spot.
Implications and Outlook
Optimizing speculative decoding should look beyond average metrics to tail latency and inter-request fairness. By viewing through the lens of externalities, Cadence explicitly incorporates latency budgets into scheduling, offering a more refined control approach for LLM inference services. Future work could explore combining similar mechanisms with dynamic batching and multi-model collaboration.
One-line Summary
Cadence regulates the speculation externality of speculative decoding via per-step latency caps, balancing throughput and request fairness.
Paragraph Summary
The article analyzes the hidden cost of speculative decoding in batched inference—the speculation externality: although a single request's accepted draft tokens accelerate it, they stretch the step latency of the entire batch, borne by all requests, causing low-acceptance-rate requests to run slower than pure autoregressive decoding. The authors propose Cadence, a per-step controller that sets a latency cap for each request, reduces it to a single allowed step latency, and adopts an "all-or-nothing" lower-bound policy, using an offline acceptance curve to fill high-utility draft tokens within budget. On Qwen3-32B under high load, Cadence achieves 1.30x the throughput of AR decoding and 1.26x that of SGLang's default speculative decoding, while reducing the degradation rate from 31.4% to 0.53%, significantly improving inter-request fairness.
Related articles

WorkBuddy + AI Agent: A Zero-Basics Hands-On Tutorial for Building Intelligent Agents
A popular Bilibili tutorial explains how to build a WorkBuddy + AI Agent from scratch, covering installation, Skill customization, and an e-commerce workbench, with a blue book and 12 common Skills for beginners.

Five-Layer Breakdown of Multi-Tenant Isolation for AI Agents (Interview Guide)
High-frequency interview breakdown of AI Agent multi-tenant isolation: five boundary layers—identity, data, tools, runtime, and resources—to handle follow-ups and avoid the Tenant-ID-only pitfall.

AI Agent in Practice: A Complete Guide to Muse and Grok Bot for Office Work
A Bilibili hands-on course breaks down how to use Muse and Grok Bot: connect domestic model APIs via CC Switch to skip account login, use cloud Bots to organize photos, publish docs, and check email on a schedule, with real-world tests of multi-Bot collaboration and scheduled-task delays.