Skip to content

Two Ways to Stop Wasting the GPU: Adaptive Layer Depth and Parallel Drafting

#speculative-decoding #inference-latency #layer-skipping #llm-serving #kv-cache #model-optimization

Two ways to stop wasting the GPU: adaptive layer depth and parallel drafting ​

Autoregressive decoding runs a serial algorithm on a parallel machine. One token per step. One layer after another. Most of the ALUs sit out the entire process while the memory bus does all the work.

Two papers in this cluster attack different parts of that waste. AVERT lets different tokens execute different numbers of layers inside a single request. Parallel drafting lets several transformer layers of the draft model run at once instead of in sequence. They aren't competitors. One decides how much compute each token gets. The other decides how that compute gets issued. You can run both.

AVERT: a budget is a mean, not a cap ​

A request budget in AVERT is a continuous number, and it specifies the average depth the request should run at, not the depth of every token. That distinction is the whole design.

At each routed layer, a small router reads the current token state plus the request's budget and decides whether to execute the Transformer block for this token at this layer. Skip the block and the token passes through a lightweight residual adapter. It writes no key/value entry at that layer. Tokens that do execute write one. A single checkpoint serves every budget, so a batch can hold a request asking for 50% depth next to one asking for 90%.

Two consequences fall out of that. The compute saving is real but memory-bound, so you shouldn't expect it to scale linearly with skipped layers. The KV cache saving is different. A token that skips a layer writes nothing, which means cache growth tracks executed depth rather than context length alone. On a long-context workload that second effect is the one that shows up in your p99.

Quick take: AVERT turns a continuous depth budget into a request-level dial that lands within about 1.15 percentage points of whatever mean depth you ask for, and it does it without a separate checkpoint per budget.

Reading 206 out of 234 ​

Three LLaMA backbones, six quality metrics, thirteen budgets. That's 234 cells. AVERT is best or tied in 206 of them.

88% sounds like a clean sweep. It isn't one. "Best or tied" is doing quiet work in that sentence, and a tie against the baseline is not a win. The 28 remaining cells are where I'd want the breakdown before committing this to a production tier, because the aggregate hides whether the losses cluster at aggressive budgets, at a specific backbone, or at a specific metric.

Six quality metrics is also not a downstream task. Perplexity can stay flat while instruction-following degrades, and a router trained to match a mean depth has every incentive to spend layers where perplexity notices. Test on the thing you're actually serving.

DimensionAVERT (adaptive depth)Parallel drafting
What it shortensExecuted layers per tokenSerial dependency in the draft stage
Retraining neededYes, router is trainedNo, plug-and-play
KV cache effectShrinks for low-depth requestsUnchanged
Batching constraintNone, budgets mix freelyNone
Reported gain4.3 to 21.2% lower TPOTUp to 1.65x faster drafting
New knob you ownBudget per requestDivergence threshold

Parallel drafting keeps the verifier fed ​

Speculative decoding works by having a small draft model propose several tokens that a larger verifier checks in one forward pass. The pitch is that it uses idle compute. The catch is that drafting is itself autoregressive, so during the draft stage the verifier sits idle and the GPUs go back to being underutilized. That's the bottleneck this second paper targets.

The method starts each draft step from a shared hidden state and evaluates multiple transformer layers in parallel rather than in sequence. It then checks how far the parallel layer outputs diverge in hidden-state space. Small divergence means the layers were redundant enough that the parallel result is trustworthy, and the layer-wise draft states get accepted. Large divergence triggers a correction step.

The appeal here is deployment cost. No architecture change, no retraining, just a modified drafting loop. If you already run speculative decoding, this is a swap rather than a migration. Reported speedup on the drafting stage reaches 1.65x with what the authors describe as minimal accuracy degradation and the same output quality as standard speculative decoding.

What these numbers do to your p99 ​

Start with the budget error. A worst-case mean absolute error of 1.15 percentage points means that if you ask for 60% depth, you get somewhere between 58.85% and 61.15%. That's tight enough to put in a latency SLA. You can sell a tier as "runs at 60% depth" and actually deliver it.

The TPOT reduction of 4.3 to 21.2% only applies when grouping by budget would leave batches underfilled. At a 45ms TPOT, that's 2 to 9.5 milliseconds per token. Over a 500-token response, 1 to 4.75 seconds of wall clock. The range is wide because the benefit scales with how badly bucketing was hurting you in the first place.

The 1.65x draft-stage figure needs arithmetic before it means anything. If drafting accounts for 40% of your speculative decoding wall time, the new total is 0.6 + 0.4/1.65, which is 0.842, or a 1.19x end-to-end speedup. If drafting is only 15% of wall time, you get 0.85 + 0.15/1.65, which is 1.06x. Same technique, and the decision flips based on a number you can measure in an afternoon.

Key numbers

  • 206 of 234 comparisons where AVERT is best or tied (3 backbones x 6 metrics x 13 budgets)
  • 1.15 percentage points worst-case mean absolute per-request budget error
  • 4.3 to 21.2% TPOT reduction from mixing budgets instead of grouping them
  • 1.65x draft-stage speedup, which is 1.19x end-to-end at a 40% draft share

Common pitfalls ​

Clamping every token to the budget. AVERT matches the mean. If you implement the budget as a per-token cap you've built uniform layer skipping with extra steps and you lose the routing benefit entirely. Let individual tokens vary; that's where the quality per unit of compute comes from.

Bucketing requests by budget for clean batching. This is the intuitive move and it costs you the 4.3 to 21.2% TPOT reduction. Bucketing leaves batches underfilled at low concurrency. Mix budgets in the same batch and let the router sort it out.

Benchmarking at 512 tokens. The KV cache saving from skipped layers compounds with context length, and so does whatever quality cost the routing introduces. Short-context evals will tell you the wrong thing about both. Run at your real context length.

Reporting draft-stage speedup as end-to-end speedup. A 1.65x drafting number sounds like 1.65x on your latency graph. It isn't, and the gap between the two depends entirely on your draft share. Divide first.

Treating "no retraining" as "no tuning." Parallel drafting ships with a divergence threshold, and that threshold is now a production hyperparameter. Tune it against your eval set. Perplexity is the wrong signal, since the threshold governs hidden-state agreement, not likelihood.

Serving notes from a mixed-budget batch ​

When I profiled our speculative decoding setup, the verifier's SM occupancy collapsed during drafting and recovered during verification. Which is absurd when you think about it. The entire premise of speculative decoding is putting idle compute to work, and the draft stage was creating new idle compute to replace the old one. Parallel drafting attacks exactly that window.

The cache reduction, not the FLOP savings, drove most of the tail-latency gain. That took me a while to accept. Skipping a block saves a matrix multiply, but decode-step matrix multiplies are already memory-bound and already underutilized, so cutting them doesn't buy you much. What actually moves p99 is the KV cache shrinking for the requests that skipped layers. Under a mixed batch, short-budget requests stop competing for the same HBM bandwidth as the long-budget ones, and the tail flattens.

My instinct was to bucket requests by budget so each batch ran at uniform depth. The paper's numbers argue against it, and my own measurements agree. Bucketing is tidier to reason about and worse to serve.

One thing to remember ​

Both of these techniques are latency tools with a quality bill attached, and the bill comes due at a different time for each. AVERT's quality cost shows up immediately and is measurable per request, which makes it easy to price. Parallel drafting's cost is hidden inside a threshold you'll set once and forget, and the failure mode is a slow drift in draft acceptance that nobody notices until a user complains about hallucinated filler. Instrument both. The budget you can audit. The threshold you have to remember.

The bottom line ​

If you're serving one model to multiple latency tiers, prototype AVERT's continuous budget as the request-level knob. A worst-case error of 1.15 percentage points means you can put a depth number in a customer-facing SLA instead of hedging with "up to."

If you already run speculative decoding, measure your draft share before touching anything else. At 40% draft share, parallel drafting is worth prototyping with a budgeted 1.19x end-to-end win. Below roughly 20%, the ceiling is about 1.09x and you should spend the engineering time somewhere else.

One thing to watch: the divergence threshold is a new hyperparameter that ships inside your serving config, and there are no community defaults for it yet. Expect task-specific values to show up within six months. Until then, tune it against your own eval set and write the number down somewhere a new hire will find it.