arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2508.19982cs.CLcs.AI
收藏

扩散语言模型在解码前就知道答案

Diffusion Language Models Know the Answer Before Decoding

The Hong Kong Polytechnic University(香港理工大学);Dartmouth College(达特茅斯学院);University of Surrey(萨里大学);Sun Yat-sen University(中山大学);ELLIS Institute Tübingen(ELLIS 图宾根研究所);MPI for Intelligent Systems(马克斯·普朗克智能系统研究所);Tübingen AI Center(图宾根人工智能中心)

Pengxiang Li, Yefan Zhou, Dilxat Muhtar, Lu Yin, Shilin Yan, Li Shen, Soroush Vosoughi, Shiwei Liu

AI总结:

本文提出Prophet方法,通过早期解码收敛机制加速扩散语言模型推理,减少解码步骤并保持生成质量。

摘要:

扩散语言模型(DLMs)最近作为自回归方法的替代方案出现,提供了并行序列生成和灵活的令牌顺序。然而,其推理仍比自回归模型慢,主要由于双向注意力的成本和高质量输出所需的大量细化步骤。在本文中,我们强调并利用了DLMs的一个被忽视的属性:在许多情况下,正确答案可以在最终解码步骤前通过半步骤内部识别,无论是半自回归还是随机掩码调度。例如,在GSM8K和MMLU上,高达97%和99%的实例可以仅用一半的细化步骤正确解码。基于这一观察,我们引入了Prophet,一种无需训练的快速解码范式,使早期提交解码成为可能。具体而言,Prophet动态决定是否继续细化或

英文摘要:

Diffusion language models (DLMs) have recently emerged as an alternative to autoregressive approaches, offering parallel sequence generation and flexible token orders. However, their inference remains slower than that of autoregressive models, primarily due to the cost of bidirectional attention and the large number of refinement steps required for high quality outputs. In this work, we highlight and leverage an overlooked property of DLMs early answer convergence: in many cases, the correct answer can be internally identified by half steps before the final decoding step, both under semi-autoregressive and random remasking schedules. For example, on GSM8K and MMLU, up to 97% and 99% of instances, respectively, can be decoded correctly using only half of the refinement steps. Building on this observation, we introduce Prophet, a training-free fast decoding paradigm that enables early commit decoding. Specifically, Prophet dynamically decides whether to continue refinement or to go "all-in" (i.e., decode all remaining tokens in one step), using the confidence gap between the top-2 prediction candidates as the criterion. It integrates seamlessly into existing DLM implementations, incurs negligible overhead, and requires no additional training. Empirical evaluations of LLaDA-8B and Dream-7B across multiple tasks show that Prophet reduces the number of decoding steps by up to 3.4x while preserving high generation quality. These results recast DLM decoding as a problem of when to stop sampling, and demonstrate that early decode convergence provides a simple yet powerful mechanism for accelerating DLM inference, complementary to existing speedup techniques. Our code is publicly available at https://github.com/pixeli99/Prophet.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑