synodic-ai™ ML SYSTEMS
ML Systems Desk · Decode Efficiency

Paying only for work that survives: an exact acceptance-length loss, joint draft and verification budgets, and low-rank recurrent states

Three papers posted on 2026-11-10 attack the cost of a decoding step from different ends. One trains speculative drafters on an exact expression for how many tokens the target accepts, one stops parallel drafters from generating tokens that will never be verified, and one keeps the recurrent states of hybrid models in a compact low-rank form instead of rewriting them in full at every step.

Training the drafter on the quantity that sets the speedup

In speculative decoding a small drafter proposes several tokens and the target model verifies them in one pass, accepting draft tokens up to the first rejection. At a fixed draft and verification configuration, the speedup is governed by the expected acceptance length, yet drafters are usually trained with cross-entropy or KL divergence, which match distributions token by token. Recent block-level objectives such as windowed total variation try to optimize acceptance length directly by multiplying per-step acceptance rates across the proposal window.

The REAL paper shows that this product is a biased surrogate. An accepted token both extends the accepted prefix and fixes the prefix on which the next draft token is verified, so later acceptance should be weighted by the branches that actually survive verification, not averaged over continuations sampled from the target. The discrepancy is a covariance between a path weight and the next step's acceptance rate; it can take either sign and so can reverse the gradient, and in the author's runs it stayed positive throughout training. REAL reweights each target-sampled token by the path weight min(1, q/p) to recover the true propose-and-accept distribution, applies Rao-Blackwellization to the final token of each term to cut variance, and adds an auxiliary cross-entropy term for stability.

With one mixture-of-experts target, one drafter architecture and a shared training set, REAL reached a probabilistic acceptance length of 4.792 across nine task subsets and five seeds, against 4.657 to 4.749 for the compared losses, and cut aggregate gradient variance by 52% to 58%. The margins are modest, and end-to-end vLLM throughput tracks them: about 4,662 tokens per second against 4,536 to 4,649 for the other losses, with the variant without Rao-Blackwellization marginally ahead. The advantage narrows as serving temperature falls, and at temperature 0.5 a static baseline overtakes it, consistent with a loss derived for stochastic rejection sampling.

Not drafting what will not be verified

Parallel drafters propose a block of tokens in a single forward pass, and goodput-aware serving systems already truncate verification to each request's most promising drafts, because under load rejected tokens take compute from other requests. They still draft the full block. The ForeSpark paper measures what that costs: under high load drafting takes up to 40% of step time, and at 512 concurrent requests adaptive verification keeps only 3.77 of the 15 drafted tokens per request, so 75% of the drafter's work is discarded. Recent acceptance is a poor guide to the next draft, changing between consecutive steps in over 80% of cases.

Its design, work-conserving speculation, decides draft and verification lengths jointly before drafting. A lightweight estimator reads the target model's features at the last accepted token and predicts acceptance for every candidate length. The scheduler replaces each request's expected-yield curve with its upper concave envelope, which reduces the joint allocation across the batch to a single global sort; it decides a schedule for 192 requests in 88 microseconds, against 8.2 ms for an exhaustive search, with an average goodput loss of at most 0.01%. A post-draft estimator then re-scores the drafts and spends the verification budget on the most promising tokens.

Implemented on vLLM and evaluated on three targets spanning dense, mixture-of-experts and hybrid architectures from 14 billion to 744 billion parameters, ForeSpark reaches up to 1.77 times the throughput of the strongest prior goodput-aware parallel drafter and 2.49 times that of autoregressive decoding at matched per-request generation rate, without changing the output distribution, and sustains up to 1.51 times that drafter's request rate under time-to-first-token and time-per-output-token targets. At the largest batch it cuts drafting time by 67% to 76% relative to that drafter, and its estimator predicts acceptance within one token for 60% of drafts against 41% for the previous step's acceptance. At a batch of one, where full-block drafting is preferable and remains one of its schedules, it delivers 0.96 to 1.15 times that drafter's per-user speed. Most runs use greedy decoding, and the authors note that the global sort can leave a request undrafted in a step, which never changes outputs but can skew per-request speedups.

Recurrent states are low-rank, so stop storing them dense

Hybrid models interleave softmax attention with linear-attention layers that compress the whole history into fixed-size recurrent states, and serving systems read and rewrite every state in full at each decoding step, so state traffic grows with batch size. The SinkState paper finds that the queries, keys and values of these layers concentrate in a stable low-dimensional subspace, which it calls the linear attention sink. The effect holds across Mamba-2, gated delta network and a third variant with per-channel decay, and is even stronger on random tokens: the top 2 to 15 of up to 128 components carry 99% of a state, and keeping the top 2 to 16 recovers 99% of its output.

Recomputing an exact SVD every step is not an option; for one 4-billion-parameter model at a batch of 128 it takes about 4,000 ms against a 20 to 30 ms decoding step. SinkState instead buffers eight token updates, runs a small local SVD on the leading components plus the buffered updates while freezing the tail, and drops components whose singular values fall below a fraction of the largest. Frozen factors are consolidated asynchronously by an exact SVD on the CPU in round-robin layer order, and fused GPU kernels compute outputs directly from the factors without materializing dense states.

On four hybrid models from 4 billion to 120 billion parameters on one workstation GPU, SinkState cut peak recurrent-state memory by 1.6 to 2.6 times and sped up decoding by 1.25 times on average and up to 1.58 times against the dense kernels serving engines commonly use, cut state-kernel time by up to 2.41 times and served batches up to twice as large. Accuracy moved by -1.6 to +2.6 points across 24 model and benchmark pairs with no consistent direction, long-context retrieval dropped by at most 0.1%, and reasoning with up to 32K generated tokens lost at most 0.5%. Gains shrink where states are a smaller share of the step: 1.04 to 1.16 times on the largest mixture-of-experts model, and less on benchmarks whose long outputs keep batches small.

What to take into a serving stack

The three results share a discipline: measure where decode-time work is wasted, whether in a training objective that optimizes the wrong product, a drafter that produces tokens no one verifies, or a state that is stored at full rank when a few directions carry it, and pay only for the part that survives.

Sources