One Loss Change in Speculative Decoding: Where D-PACE Finds 8 to 9.7 Percent

Start with the contrast: on a single H200, one training step went from 173 to 177 milliseconds, a 2.3 percent increase. On Qwen3-4B, average wall-clock speedup across six benchmarks rose by 8.0 to 9.7 percent. Only one thing changed: the drafter training loss.

That is D-PACE, Dynamic Position-Aware Cross-Entropy, from Harvard and MIT, arXiv:2605.18810, accepted as a NeurIPS 2026 Spotlight, co-first authors Tianyu Wu and Yu Yao, advised by Ju Li and Yilun Du. The 2026-11-30 report from Machine Heart carries the full numbers and the production story: section 7.2 of Meta's Muse Glimmer 30B technical report, arXiv:2610.24628, says its DFlash drafter was trained with D-PACE; NVIDIA Model Optimizer and DFlash 2 made it the default; vLLM Speculators and SGLang SpecForge support it.

Two more papers landed on arXiv the same period, DMTP (2611.37561, submitted 11-27) and PaPaSpec (2611.37439, same day). Together they carve up the remaining latency in speculative decoding.

One rejection throws away the whole block

Speculative decoding splits the work: a small drafter proposes a block of tokens, a large target model verifies them in one forward pass with no change to output distribution. Speed depends on two things, how fast the drafter runs and how long the accepted prefix is.

The two drafter families pay differently. Autoregressive ones such as EAGLE model token dependencies but run serially, so networks stay shallow. Block diffusion drafters such as DFlash condition on target hidden states and predict the entire block in one pass; cost barely grows with block size, so the same latency budget buys 3 or 5 layers and a longer block.

The bottleneck moved to verification. The parallel block is still checked left to right, and a mismatch at position k discards everything after it. DFlash training computes a cross-entropy term per position and multiplies it by a fixed positional decay, lower for later positions, unchanged throughout training. That wastes work in two specific ways:

Late in training the first positions are already accurate and the ones limiting accepted length are further back, but fixed weights never move. For an individual sample, if an early position is wrong, later positions are never verified, so their gradient is wasted.

Writing expected accepted length as a differentiable target

D-PACE derives weights from expected accepted length. With q_i as the pass rate at position i, the probability of accepting at least k is the product of the first k terms, and expected accepted length sums those probabilities from k=1 to B:

E[tau] = sum over k=1..B of (product over i=1..k of q_i)

Training does not have the target model's true pass rate, so D-PACE follows EAGLE-2 and uses the drafter's probability on the correct token. On MATH-500 the rank correlation between this proxy and measured accepted length is 0.84, versus 0.79 for simply summing per-position confidences.

Differentiating that proxy yields a weighted cross-entropy: each position's CE times a weight built from two factors. Cumulative confidence multiplies pass rates from position one to the current one, approximating "everything before survived". Continuation value counts the current token plus how many more are expected afterwards. The first automatically suppresses later weights for samples that already went wrong; the second shifts signal toward the new bottleneck once earlier positions are trained. Only the drafter's own probabilities are used, so the target model never runs extra passes.

One detail cannot be dropped: asymmetric smoothing. Early in training confidences are low and their product collapses toward zero, leaving almost no weight for later positions. D-PACE pulls each confidence halfway toward one when computing weights, so 0.2 becomes 0.6, while the cross-entropy term keeps the original probability. Smoothing touches only the weights, which are detached from backpropagation. Run this standard-library implementation to see all three effects:

def weights(q, smooth):
    hat = [x + smooth * (1.0 - x) for x in q]
    prefix = []
    run = 1.0
    for x in hat:
        run *= x
        prefix.append(run)
    out = []
    for i in range(len(hat)):
        tail = 1.0
        rest = 0.0
        for j in range(i + 1, len(hat)):
            tail *= hat[j]
            rest += tail
        out.append(prefix[i] * (1.0 + rest))
    total = sum(out)
    return [x / total for x in out]


early = [0.20, 0.30, 0.35, 0.40]
late = [0.99, 0.99, 0.85, 0.96]
for name, q in (("early", early), ("late ", late)):
    qs = " ".join(format(x, ".2f") for x in q)
    ws = " ".join(format(x, ".3f") for x in weights(q, 0.5))
    print(name, "q =", qs, " w =", ws)
fixed = [1.0, 0.8, 0.64, 0.512]
total = sum(fixed)
flat = " ".join(format(x / total, ".3f") for x in fixed)
print("DFlash fixed decay w =", flat)
flat0 = " ".join(format(x, ".3f") for x in weights(early, 0.0))
print("no smoothing early w =", flat0)
early q = 0.20 0.30 0.35 0.40  w = 0.495 0.288 0.154 0.063
late  q = 0.99 0.99 0.85 0.96  w = 0.408 0.301 0.195 0.096
DFlash fixed decay w = 0.339 0.271 0.217 0.173
no smoothing early w = 0.695 0.215 0.071 0.020

The last position rises from 0.063 to 0.096, so signal really moves backward; even late in training D-PACE stays more front-loaded than fixed decay at 0.173, getting the prefix right first. Without smoothing the last position gets 0.020 and barely learns.

Why not just maximize accepted length

The paper tried. Training collapsed: with a 3-layer drafter and greedy decoding, mean accepted length was 1.03, almost every proposal was rejected, and speedup was 0.77 times, slower than no speculative decoding at all. D-PACE without smoothing collapsed too.

The reason is that "guess the token right" and "this position's contribution to accepted length" land in the same gradient, and a low-confidence prefix crushes the signal behind it. D-PACE separates them cleanly: the proxy only decides weights; the model is still updated by ordinary per-token cross-entropy. That is the most portable design here. When a differentiable proxy correlates with the real objective but is not identical to it, let the proxy decide how much to learn, not what to learn.

How large is the gain, and where does it stop

The main experiment used Qwen3-4B as target with 3-layer and 5-layer DFlash drafters, six benchmarks across math, code, and chat, both greedy and sampled decoding. D-PACE beat DFlash in every setting: speedup up 8.0 to 9.7 percent, mean accepted length up 8.5 to 10.7 percent. For 3 layers greedy, speedup went 2.93 to 3.20 and accepted length 4.10 to 4.52; the best cell was 5-layer greedy MATH-500, 3.96 to 4.47. On Llama-3.1-8B-Instruct and Qwen3-8B, 3-layer greedy accepted length rose about 12.5 and 12.8 percent.

Block size makes the mechanism visible: at 8, 12, and 16 tokens, accepted-length gains were 5.2, 8.3, and 10.2 percent. Longer blocks give later positions more chance to be dragged down by an earlier error, exactly the case fixed weights handle badly.

Putting published accepted lengths into a minimal latency model shows which term each improvement attacks:

TT = 10.0
TV = 10.0
TD = 4.0


def speedup(tau, draft_ms):
    return tau * TT / (TV + draft_ms)


base = speedup(4.10, TD)
print("model: target step", TT, "ms, block verify", TV, "ms, draft", TD, "ms")
for name, tau in (("DFlash 3L T=0", 4.10), ("D-PACE 3L T=0", 4.52), ("D-PAL 3L T=0", 4.57)):
    sp = speedup(tau, TD)
    gain = (sp / base - 1.0) * 100.0
    print(name, "tau", format(tau, ".2f"), "speedup", format(sp, ".3f"), "gain", format(gain, ".1f") + "%")
hidden = speedup(4.52, 0.0)
gain = (hidden / speedup(4.52, TD) - 1.0) * 100.0
print("draft hidden behind verify:", format(hidden, ".3f"), "gain", format(gain, ".1f") + "%")
print("paper block-size sweep (accepted-length gain)")
for block, value in ((8, 5.2), (12, 8.3), (16, 10.2)):
    print("B =", block, "gain", format(value, ".1f") + "%")
model: target step 10.0 ms, block verify 10.0 ms, draft 4.0 ms
DFlash 3L T=0 tau 4.10 speedup 2.929 gain 0.0%
D-PACE 3L T=0 tau 4.52 speedup 3.229 gain 10.2%
D-PAL 3L T=0 tau 4.57 speedup 3.264 gain 11.5%
draft hidden behind verify: 4.520 gain 40.0%
paper block-size sweep (accepted-length gain)
B = 8 gain 5.2%
B = 12 gain 8.3%
B = 16 gain 10.2%

This is a toy model, not a reproduction: it gives 3.229 times against the paper's measured 3.20, and hiding drafting entirely yields a 40 percent gain where real hardware gains are far smaller. The difference is fixed overhead, contention, and different experimental setups, but the direction holds: the training loss attacks accepted length, and concurrent scheduling attacks draft latency.

What the follow-up papers attack

DMTP, arXiv:2611.37561, attacks the first token. Parallel block drafters have a structural weakness: under strict left-to-right verification, rejecting position one discards everything. DMTP has a native MTP module propose the first token, then injects its hidden state into DFlash through a lightweight residual on that token embedding. With a concrete first token, the rest of the block shifts one step forward and gets easier. On Qwen3.6-27B, 35B-A3B, and Qwen3.8-Next-120B, long-context accepted length rose up to 35.64 percent over DFlash2, and serving throughput 17.10 to 23.75 percent over DFlash.

PaPaSpec, arXiv:2611.37439, attacks drafting time itself. A prefix- and depth-causal latent conditioning scheme lets a multi-layer parallel drafter run concurrently with verification, hiding drafting latency completely; while waiting for new conditioning information it loops over intermediate layers, growing accepted length without growing the drafter. On H100 single-request decoding across seven benchmarks it averaged 3.44 to 5.98 times, 19 to 31 percent over DFlash and 9 to 18 percent over D-PACE. In vLLM it gains 5 to 10 percent over D-PACE in single-batch serving and 1.7 to 11.1 percent on SPEED-bench with up to 16 concurrent requests.

D-PAL, arXiv:2610.28355, points out one loose assumption: D-PACE weights and CE both look only at the recorded target token, treating the target as a point mass. Using 1 minus total variation between target and draft distributions as the acceptance signal, and replacing CE with Rényi-1/2 divergence, raises mean accepted length on Qwen3-4B from 4.50 to 4.57 at T=0 and 4.20 to 4.28 at T=1. Small gains, clear direction: acceptance should come from distribution overlap, not one sampled outcome.

Shipping checklist

If you already train a DFlash-style drafter, start with an A/B on the loss alone: leave architecture, inference code, and target model untouched; record accepted length and wall-clock speedup; push block size past 12 before judging the gain. For new projects, pick a stack with D-PACE built in, vLLM Speculators or SGLang SpecForge, rather than hand-writing weighted CE; smoothing and detach are easy to get wrong, and the failure is silent.

On the serving side, locate the bottleneck first. If drafting is still on the critical path, look at concurrent approaches such as PaPaSpec. Once drafting is hidden, work on first-token quality as DMTP does. And do not put paper speedups straight into capacity planning: 3.44 to 5.98 times is a single-request H100 number, and your batch size and hardware decide how much survives.

Further reading

Feedback

This site is front-end only — no backend, no accounts — so feedback goes to GitHub Issues, Discussions, or email.

Paste it into the issue or email to help track it down — it never includes anything you typed

Also:Browse existing issues · Email feedback (no GitHub account needed):278975598@qq.com