arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.09622cs.LGcs.AIcs.CLstat.ML
收藏

扩散语言模型的理论优势与局限

Theoretical Benefit and Limitation of Diffusion Language Model

Peking University(北京大学);Ant Group(蚂蚁集团)

Guhao Feng, Yihan Geng, Jian Guan, Wei Wu, Liwei Wang, Di He

AI总结:

本文理论分析掩码扩散语言模型 MDM,证明其在困惑度指标下可常数步接近最优,但保证序列正确需随长度线性增加采样步,从而厘清其效率优势与局限。

摘要:

扩散语言模型已成为一种很有前景的文本生成方法。由于在每个扩散步骤中可以并行采样多个 token,人们自然会期望该方法能够高效替代自回归模型。然而,其效率与准确率之间的权衡尚未得到充分理解。本文对一类被广泛使用的扩散语言模型——Masked Diffusion Model(MDM,掩码扩散模型)——进行了严格的理论分析,并发现其有效性在很大程度上取决于目标评估指标。在温和条件下,我们证明:当以困惑度作为指标时,MDM 可以在与序列长度无关的采样步骤内达到接近最优的困惑度,这表明可以在不牺牲性能的情况下实现效率。然而,当使用序列错误率时——该指标对于理解序列(例如推理链)的“正确性”非常重要——我们表明,为获得“正确”的序列,所需采样步骤必须随序列长度线性增长,从而消除了 MDM 相对于自回归模型的效率优势。我们的分析为理解 MDM 的优势与局限建立了首个理论基础。所有理论发现均得到实证研究支持。

英文摘要:

Diffusion language models have emerged as a promising approach for text generation. One would naturally expect this method to be an efficient replacement for autoregressive models since multiple tokens can be sampled in parallel during each diffusion step. However, its efficiency-accuracy trade-off is not yet well understood. In this paper, we present a rigorous theoretical analysis of a widely used type of diffusion language model, the Masked Diffusion Model (MDM), and find that its effectiveness heavily depends on the target evaluation metric. Under mild conditions, we prove that when using perplexity as the metric, MDMs can achieve near-optimal perplexity in sampling steps regardless of sequence length, demonstrating that efficiency can be achieved without sacrificing performance. However, when using the sequence error rate--which is important for understanding the "correctness" of a sequence, such as a reasoning chain--we show that the required sampling steps must scale linearly with sequence length to obtain "correct" sequences, thereby eliminating MDM's efficiency advantage over autoregressive models. Our analysis establishes the first theoretical foundation for understanding the benefits and limitations of MDMs. All theoretical findings are supported by empirical studies.

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

↑