D-PACE: Dynamic Position-Aware Cross-Entropy for Parallel Speculative Drafting
Tianyu Wu, Yu Yao, Zhenting Qi, Han Zheng, Chengxi Zhang, Zhuohan Wang, Haoran Ma, Zichun Liao, Himabindu Lakkaraju, Ju Li, Yilun Du
NeurIPS page · OpenReview · alphaXiv · Open on the map
Category: Efficient LLM Inference & Training › Speculative Decoding Optimization · Type: new method · Keywords: speculative decoding, parallel drafting, position-aware loss, LLM inference, token acceptance
Summary
D-PACE introduces a dynamic position-aware cross-entropy loss that adapts per-position training weights to the drafter's bottleneck, improving speedup and accepted length in parallel speculative decoding.
Explained to a 5-year-old
A big computer that writes text can be made faster by guessing words ahead of time. It uses a smaller helper to guess a whole block of words at once. The helper learns which guesses are most important for the big computer to accept. By focusing on the important guesses, the helper makes the whole process faster and gets more words right. This helps the big computer write faster without changing how it works.
Explained to a 5-year-old, longer
When a computer writes long text, it can be slow because it has to think about each word one by one. To make it faster, people let a smaller computer help by guessing many words at the same time. This helper predicts a whole block of words before the big computer checks them. The problem is that the helper might waste time learning to guess words that don't matter much. The new idea looks at how many words are usually accepted and decides which guesses are most useful. It gives more learning attention to the guesses that are most likely to be the bottleneck. This way, the helper learns to focus on the words that really affect whether the block is accepted. As the helper gets better at the important guesses, the whole process speeds up. The helper also gets longer blocks of words accepted, meaning more text is generated in less time. All of this works without changing the big computer's design or the way the helper is built. It also adds very little extra work when training the helper. So the big computer can write faster and more efficiently, just by using a smarter helper.
For a technical reader
In speculative decoding, a lightweight drafter proposes token sequences that a larger target model validates, accelerating inference. Existing training losses assign uniform importance to each position in the proposed block, which does not reflect where the drafter is most likely to fail. The proposed method computes per-position loss weights based on the expected accepted block length, dynamically emphasizing positions that contribute most to acceptance. By integrating this loss as a drop-in replacement, the drafter automatically shifts its learning focus to its current bottleneck, improving both wall-clock speedup and accepted length without altering the architecture. The solution incurs negligible training overhead and is broadly applicable to any parallel speculative drafting scheme.
Problem
Parallel speculative drafters currently use fixed per-position loss weights, which do not account for where the drafter is most likely to fail, limiting speedup and accepted token length.
Method
The approach derives per-position training weights from the expected accepted block length, automatically identifying the bottleneck positions and shifting the training signal accordingly. It can be used as a drop-in replacement for existing loss functions without altering the drafter architecture or inference pipeline.
Results
The approach yields higher wall-clock speedup and longer accepted token blocks across various benchmarks, with negligible additional training cost.
Contributions
It provides a dynamic, position-aware loss that adapts training weights to the drafter's bottleneck and can be applied broadly to any parallel speculative drafter without architectural changes.
Practical relevance
It enables faster LLM inference on existing hardware by improving speculative decoding efficiency without redesign.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction