arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.16834stat.MLcs.CLcs.LG
收藏

通过估计数据分布比率进行离散扩散建模

Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution

Stanford University(斯坦福大学);Pika Labs(匹卡实验室)

Aaron Lou, Chenlin Meng, Stefano Ermon

AI总结:

本文提出得分熵损失函数,将得分匹配扩展到离散空间并构建 SEDD 离散扩散模型,在语言建模上超越现有扩散方法且优于 GPT-2,同时支持高效生成与可控填充。

摘要:

尽管扩散模型在许多生成建模任务中取得了突破性表现,但在自然语言等离散数据领域仍存在不足。关键问题在于,标准扩散模型依赖成熟的得分匹配理论,但将该理论推广到离散结构的努力尚未带来同等的实证收益。本文通过提出得分熵(score entropy)来弥合这一差距。得分熵是一种新颖的损失函数,能够自然地将得分匹配扩展到离散空间,无缝集成以构建离散扩散模型,并显著提升性能。在实验方面,我们在标准语言建模任务上测试了所提出的得分熵离散扩散模型(SEDD)。在可比的模型规模下,SEDD 优于现有的语言扩散范式(将困惑度降低 25%-75%),并且与自回归模型具有竞争力,特别是优于 GPT-2。此外,与自回归模型相比,SEDD 能够生成忠实的文本,无需温度缩放等分布退火技术(生成困惑度比未退火的 GPT-2 好约 6-8 倍),可以在计算量与质量之间进行权衡(以少 32 倍的网络评估次数达到相似质量),并支持可控的文本填充(在匹配核采样质量的同时,支持除从左到右提示之外的其他策略)。

英文摘要:

Despite their groundbreaking performance for many generative modeling tasks, diffusion models have fallen short on discrete data domains such as natural language. Crucially, standard diffusion models rely on the well-established theory of score matching, but efforts to generalize this to discrete structures have not yielded the same empirical gains. In this work, we bridge this gap by proposing score entropy, a novel loss that naturally extends score matching to discrete spaces, integrates seamlessly to build discrete diffusion models, and significantly boosts performance. Experimentally, we test our Score Entropy Discrete Diffusion models (SEDD) on standard language modeling tasks. For comparable model sizes, SEDD beats existing language diffusion paradigms (reducing perplexity by $25$-$75$\%) and is competitive with autoregressive models, in particular outperforming GPT-2. Furthermore, compared to autoregressive mdoels, SEDD generates faithful text without requiring distribution annealing techniques like temperature scaling (around $6$-$8\times$ better generative perplexity than un-annealed GPT-2), can trade compute and quality (similar quality with $32\times$ fewer network evaluations), and enables controllable infilling (matching nucleus sampling quality while enabling other strategies besides left to right prompting).

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

↑