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

离散扩散模型用于语言生成

Discrete Diffusion Models for Language Generation

Department of Computer and Information Science(计算机与信息科学系)

Ashen Weligalle

AI总结:

本研究探讨离散扩散模型(D3PM)在语言生成中的可行性,与自回归模型对比,发现D3PM虽压缩性能略逊但处理速度更快,具并行生成潜力。

摘要:

扩散模型已成为一类强大的生成模型,在图像和视频生成等连续数据领域取得了最先进的成果。其核心机制包括一个前向扩散过程,该过程逐步将结构化数据转换为类高斯分布,随后通过一个学习到的反向过程来重建数据。尽管在连续模态中取得了成功,但将该框架应用于离散数据(尤其是自然语言)仍然具有挑战性,原因在于词元依赖的复杂性以及缺乏明确的生成顺序。本论文研究了离散扩散模型在自然语言生成中的可行性和性能。具体而言,我们评估了离散去噪扩散概率模型(D3PM),并将其与传统的自回归(AR)语言模型进行比较。为了评估生成性能,我们使用了每词元比特数(BPT)、负对数似然(NLL)、困惑度(PPL)和批处理速度。结果显示,性能最佳的D3PM模型达到了5.72的BPT,平均值为8.05。AR模型在压缩方面表现更优,平均BPT较低,为4.59,但D3PM实现了更高的处理速度,达到每秒最多3.97个批次,表明其具有并行生成的潜力。所有评估均在一致条件下进行——每个模型生成100,000个词元,固定批大小为四——以确保公平比较。本研究对基于扩散的模型与自回归模型进行了详细分析,突出了生成质量和效率之间的权衡。研究结果强调了扩散模型在离散数据上的前景和局限性,为未来在非自回归语言生成方面的研究提供了支持。

英文摘要:

Diffusion models have emerged as a powerful class of generative models, achieving state-of-the-art results in continuous data domains such as image and video generation. Their core mechanism involves a forward diffusion process that gradually transforms structured data into a Gaussian-like distribution, followed by a learned reverse process to reconstruct the data. While successful in continuous modalities, applying this framework to discrete data-particularly natural language-remains challenging due to token dependency complexities and the lack of a defined generation order.This thesis investigates the feasibility and performance of discrete diffusion models for natural language generation. Specifically, we evaluate the Discrete Denoising Diffusion Probabilistic Model (D3PM) and compare it with traditional autoregressive (AR) language models. To assess generative performance, we use Bits Per Token (BPT), Negative Log-Likelihood (NLL), Perplexity (PPL), and Batch Processing Speed. Results show the best-performing D3PM model achieves a BPT of 5.72, with a mean of 8.05. The AR model outperforms in compression with a lower mean BPT of 4.59, but D3PM achieves higher processing speed, reaching up to 3.97 batches per sec., indicating potential for parallel generation.All evaluations were conducted under consistent conditions-generating 100,000 tokens per model with a fixed batch size of four-for fair comparison. This research presents a detailed analysis of diffusion-based vs. autoregressive models, highlighting trade-offs in generative quality and efficiency. Findings emphasize both the promise and limitations of diffusion models for discrete data, supporting future work in non-autoregressive language generation.

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

↑