LangFlow: 连续扩散在语言建模中与离散模型相媲美
LangFlow: Continuous Diffusion Rivals Discrete in Language Modeling
AI总结:
LangFlow通过连接嵌入空间DLM与流匹配的Bregman散度,提出三种创新方法,实现了连续扩散在语言建模中的突破,达到与离散模型相当的性能。
摘要:
连续扩散已成为许多数据模态如图像的高保真、可控和少步生成的基础。然而,在语言建模中,先前的连续扩散语言模型(DLMs)由于稀疏数据空间和未探索的设计空间而落后于离散模型。在本工作中,我们通过将嵌入空间DLM连接到流匹配的Bregman散度,以及三个关键创新:(1)我们推导出一个基于ODE的NLL界,用于原理性评估连续流语言模型;(2)我们提出信息均匀原则来设置噪声调度,这促使基于Gumbel分布的可学习噪声调度器;(3)我们修订了先前的训练协议,通过引入自条件,发现这能提高嵌入空间DLM的似然和样本质量,效果与离散扩散不同。综合来看,LangFlow在困惑度(PPL)和生成困惑度(Gen. PPL)上与顶级离散DLMs相媲美,在LM1B上达到30.0,在OpenWebText上达到24.6。它甚至在7个基准中的4个零样本迁移中超越了自回归基线。LangFlow为连续扩散在语言建模中的前景提供了首次明确证据。Homepage: https://github.com/nealchen2003/LangFlow
英文摘要:
Continuous diffusion has served as a foundation for high-fidelity, controllable, and few-step generation across continuous data modalities such as images, videos, and molecular structures. However, in language modeling, prior continuous diffusion language models (DLMs) lag behind discrete counterparts. Existing categorical and simplex-based approaches operate over extremely large and sparse language spaces, while prior embedding-space approaches avoid this sparsity but lack a well-selected design space. In this work, we close this gap with LangFlow by connecting embedding-space DLMs to Flow Matching, alongside three key innovations: (1) we derive a novel ODE-based NLL bound for principled evaluation of continuous flow-based language models; (2) we propose an information-uniform principle for setting the noise schedule, which motivates a learnable noise scheduler based on a Gumbel distribution; and (3) we revise prior training protocols by incorporating self-conditioning, which improves both likelihood and sample quality for embedding-space DLMs and behaves differently from its use in discrete diffusion. Putting everything together, LangFlow is competitive with top discrete DLMs on generative quality, reaching a generative perplexity of 92.3 on LM1B and 36.5 on OpenWebText. It also outperforms discrete counterparts on reasoning tasks like Sudoku. As the first continuous DLM shown to rival discrete diffusion in generative quality, LangFlow provides clear evidence that continuous diffusion is a promising paradigm for language modeling. Code: https://github.com/nealchen2003/LangFlow.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。