On the SPOT:通过提交顺序预测增强扩散语言模型的推测解码

·

研究论文 · 2026/10/28

扩散语言模型(DLM)在并行文本生成上面临速度与质量的权衡:精确解码每次只填充一个掩码位置,而多令牌解码方案则有损。投机解码是自回归模型的标准无损加速方法,但无法直接迁移到DLM,因为DLM必须同时决定生成什么和在哪里生成。我们发现这个顺序是关键:模型上一轮的预测已经在超过90%的位置上给出了正确的令牌,但没有给出下一个位置是哪个。我们提出了Speculating Positions Order Trajectory (SPOT),一个仅有0.62M参数的模型,它只读取目标模型的输出分布,预测这个顺序,并提议一个候选延续树,目标模型通过状态相等性在一次前向中验证。耦合噪声匹配(在起草器和目标模型之间共享Gumbel噪声)使得这种验证在任何温度下都是精确的。这一方法还启发了我们引入SPOT-Sets用于动态阈值解码,其中一次前向提交多个位置:SPOT-Sets同时起草整个提交集及其令牌。实验表明,SPOT在SDAR-8B上将目标前向次数减少最多6.8倍,吞吐量达到标准解码的3.4倍,在T=0和T=1下每个任务和预算中都匹配或超过校准和无训练起草基线。此外,SPOT的学习起草器可以跨模型迁移,在六个不同的DLM上成功迁移;经过轻量校准,SPOT-Sets起草器也可以迁移。在动态阈值解码之上,SPOT-Sets将SDAR-8B的吞吐量平均比仅使用阈值解码器提高了59%。

该论文解决了扩散语言模型加速中的关键瓶颈——提交顺序预测,提出了一种极轻量且无损的加速方案,实验效果显著且具有跨模型迁移能力,对推动扩散语言模型的实际应用具有重要意义。

Diffusion language models (DLMs) promise parallel text generation, but in practice face an unresolved speed-quality trade-off. Exact decoding fills in only one masked position per model pass, while faster multi-token decoding schemes are lossy. Speculative decoding is the standard lossless acceleration for autoregressive models. However, it does not transfer directly to DLMs, which must choose both what to generate and where. We show that this order is the missing piece: the model's own predictions from the previous pass already give the right token at over 90% of positions, but not which position comes next. We introduce Speculating Positions Order Trajectory (SPOT), a 0.62M-parameter model that reads only the target's output distributions, predicts this order and proposes a tree of candidate continuations, which the target verifies in a single pass by state equality. Coupled-noise match, which shares Gumbel noise between drafter and target, keeps this verification exact at any temperature. This approach also inspired us to introduce SPOT-Sets for dynamic threshold decoding, where a pass commits several positions: SPOT-Sets drafts whole commit sets together with their tokens. Our comprehensive experiments show that SPOT cuts target passes by up to 6.8times and reaches up to 3.4times the throughput of standard decoding on SDAR-8B, matching or beating the calibrated and training-free drafting baselines in every task and budget at T=0 and T=1. In addition, we show that SPOT's learned drafter transfers across models, demonstrating successful transfer across six different DLMs; with a light calibration, the SPOT-Sets drafter transfers as well. On top of dynamic threshold decoding, SPOT-Sets improves the throughput of SDAR-8B by 59% on average over the threshold decoder alone. Project page: https://eliezer318.github.io/SPOT-dLLM/

阅读原文

参与讨论