PV-Decoding:带解码门控的渐进式验证解码扩散语言模型
PV-Decoding: Progressive Verification Decoding with Decode Gating for Diffusion Language Models
AI总结:
本文针对扩散语言模型推理效率问题,提出带渐进式验证的PV-Decoding框架,通过分批次验证投机token降低前向传播次数,提升吞吐量且准确率损失极小。
摘要:
离散扩散语言模型(dLLM)通过并行更新多个token,为自回归生成提供了一种有吸引力的替代方案,但其推理效率仍受限于安全提交试探性预测的成本。特别是,dLLM的投机解码颇具挑战性,因为同一扩散块内的投机token可能相互依赖,导致激进接受易引发错误传播,而严格验证则计算成本高昂。本文提出PV-Decoding,一种用于块扩散推理的置信度驱动投机解码框架,采用渐进式验证。PV-Decoding利用两个置信度阈值将掩码位置划分为直接解码token、投机token和未解决token,随后采用逐步增强的策略验证投机token,包括单批次、双批次和多批次验证。该设计揭示了实用的准确率-效率权衡:较弱的验证可最小化开销,而较强的验证则提升接受精度与鲁棒性。在GSM8K、MBPP和HumanEval三个数据集上对三种扩散语言模型开展实验,结果显示,相较于基于置信度的解码,PV-Decoding将顺序模型前向传播次数(MFP)降低了8%至37%,同时最大观测到的准确率下降仅为1.3%。在Dream-7B-Instruct/GSM8K上,PV-Decoding(单批次)和PV-Decoding(双批次)在相同硬件预算下将吞吐量提升了7.0%至13.6%,而PV-Decoding(多批次)在当前运行时环境下速度较慢。这些结果表明,带有结构化验证的置信度引导投机是实现高效可靠dLLM推理的可行路径。
英文摘要:
Discrete diffusion language models (dLLMs) offer an attractive alternative to autoregressive generation by updating multiple tokens in parallel, but their inference efficiency is still limited by the cost of safely committing tentative predictions. In particular, speculative decoding for dLLMs is challenging because speculative tokens within the same diffusion block may depend on one another, making aggressive acceptance prone to error propagation and strict verification computationally expensive. We present PV-Decoding, a confidence-driven speculative decoding framework with progressive verification for block diffusion inference. PV-Decoding partitions masked positions into directly decoded tokens, speculative tokens, and unresolved tokens using two confidence thresholds, and then verifies speculative tokens with progressively stronger policies, including single-batch, dual-batch, and multi-batch verification. This design exposes a practical accuracy--efficiency trade-off: weaker verification minimizes overhead, whereas stronger verification improves acceptance precision and robustness. Experiments on three diffusion language models across GSM8K, MBPP, and HumanEval show that PV-Decoding reduces sequential model forward passes (MFPs) by 8%--37% relative to confidence-based decoding, while keeping the largest observed accuracy drop to 1.3%. On Dream-7B-Instruct/GSM8K, PV-Decoding (1-batch) and PV-Decoding (2-batch) improve throughput by 7.0%--13.6% under the same hardware budget, whereas PV-Decoding (multi-batch) is slower under the current runtime. These results suggest that confidence-guided speculation with structured verification is a practical path toward efficient and reliable dLLM inference.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。