arXiv:2507.07050cs.CLcs.LG2025-07被引 3

用扩散模型生成文本,速度更快但压缩效果略差

Discrete Diffusion Models for Language Generation

  • 将扩散模型应用于离散文本生成,打破传统自回归顺序
  • 最高每秒处理3.97批,是现有自回归模型的数倍
  • 适合需要快速生成的场景,如实时对话系统

扩散模型在图像和视频等连续数据生成中表现卓越,其核心机制为逐步将数据转化为高斯分布,再通过反向过程重建。然而,将其应用于自然语言等离散数据仍面临词元依赖与生成顺序的挑战。本文评估了离散去噪扩散概率模型(D3PM)在语言生成中的可行性,并与传统自回归(AR)模型对比。采用比特/词元(BPT)、负对数似然(NLL)、困惑度(PPL)和批量处理速度进行评估。结果显示,最优D3PM模型达到5.72的BPT,均值为8.05;而自回归模型在压缩性能上更优,均值为4.59。但D3PM最大可实现每秒3.97批的处理速度,表明其具备并行生成潜力。所有实验在相同条件下进行:每模型生成10万词元,批次大小为4。研究揭示了扩散模型与自回归模型在生成质量与效率间的权衡,支持非自回归语言生成的未来发展。

原文摘要 · Abstract (English)

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.

扩散模型语言生成非自回归

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。