D-PACE: Dynamic Position-Aware Cross-Entropy for Parallel Speculative Drafting

Tianyu Wu, Yu Yao, Zhenting Qi, Han Zheng, Zhuohan Wang +5 more
5/12/2026
cs.LGcs.AI

No confident code implementation found for this paper.

Abstract

Speculative decoding accelerates LLM inference by having a small drafter propose tokens that a larger target model verifies in parallel. Recent diffusion-based parallel drafters such as DFlash predict the full B-token block in one forward pass, enabling deeper drafters and longer accepted blocks.

Show full abstract

However, existing multi-token drafter objectives often use fixed position-dependent weighting schedules, such as head-dependent weights or block-position decays, which do not adapt as the positions limiting acceptance change during training. To address this, we derive per-position training weights from a differentiable surrogate of expected accepted draft length, matching the weight of each position to its log-probability gradient contribution. The resulting loss, D-PACE (Dynamic Position-Aware Cross-Entropy), shifts training signal toward positions that currently limit acceptance as the drafter improves. Across six benchmarks, two Qwen3-4B draft depths, two decoding temperatures, and two additional target models, D-PACE consistently improves both wall-clock speedup and average emitted length, with 2.3\% measured training-time overhead and no changes to the drafter architecture or inference procedure.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wu2026dpace,
  title  = {D-PACE: Dynamic Position-Aware Cross-Entropy for Parallel Speculative Drafting},
  author = {Tianyu Wu and Yu Yao and Zhenting Qi and Han Zheng and Zhuohan Wang and Haoran Ma and Lawrence Liao and Himabindu Lakkaraju and Ju Li and Yilun Du},
  year   = {2026},
  eprint = {2605.18810},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.18810v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.18810.svg)](https://codeofpaper.com/paper/2605.18810)

Discussion