潜在精炼解码:通过精炼信念状态增强基于扩散的语言模型
Latent Refinement Decoding: Enhancing Diffusion-Based Language Models by Refining Belief States
AI总结:
针对自回归生成的高延迟,提出潜在精炼解码(LRD)两阶段框架,通过分布混合和反馈循环精炼信念状态,在编码和推理任务上提升准确率并实现高达10.6倍加速。
摘要:
自回归(AR)模型仍是自然语言生成的标准,但由于严格顺序解码而遭受高延迟。最近的扩散启发方法,如LlaDA和Dream,通过并行生成缓解了这一问题,但它们存在两个核心局限:信息丢失,即每一步都会丢弃未最终确定标记的预测分布;以及过早承诺,即局部决策缺乏足够的全局协调。我们引入了潜在精炼解码(LRD),一个包含潜在精炼和预测反馈回路的两阶段框架。第一阶段将掩码位置保持为预测标记和掩码嵌入的分布混合,使模型能够建立更全局一致的信念。第二阶段逐步最终确定置信标记,同时保留不确定标记以进行迭代反馈。KL散度动态为收敛和早停提供了原则性且可靠的标准。在编码(HumanEval +6.3,MBPP +2.6)和推理(GSM8K +2.9,MATH500 +3.8)上的实验表明,LRD提高了准确性,同时实现了高达10.6倍的加速,使其成为并行序列生成的强大且多功能的替代方案。
英文摘要:
Autoregressive (AR) models remain the dominant paradigm for natural language generation, but their strictly sequential decoding process leads to high inference latency. Recent diffusion-inspired language models, such as LLaDA and Dream, alleviate this issue through parallel generation, yet they still face two key limitations: information loss, since predictive distributions over non-finalised tokens are discarded at each step, and unstable commitment dynamics, where local token decisions are not sufficiently coordinated at the global level. We propose Latent Refinement Decoding (LRD), a two-stage decoding framework consisting of Latent Refinement and a Predictive Feedback Loop. In the first stage, LRD keeps masked positions as distributional mixtures of predicted tokens and the mask embedding, enabling the model to form more globally consistent beliefs before committing tokens. In the second stage, LRD progressively finalises confident tokens while preserving uncertain ones for further iterative refinement, with KL-divergence dynamics serving as a stable criterion for convergence and early stopping. Experiments show that LRD improves performance on both coding tasks, including HumanEval by 6.3 and MBPP by 2.6, and reasoning tasks, including GSM8K by 2.9 and MATH500 by 3.8, while achieving up to 10.6x overall speedup. Moreover, LRD is compatible with single-token decoding, multi-token threshold commitment, and system-level accelerators; when combined with Fast-dLLM, it reaches up to 18.4x speedup over vanilla decoding while further improving accuracy.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。