arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2606.02241cs.LG
收藏

BlockGen: 灵活的分块序列建模与混合采样器

BlockGen: Flexible Blockwise Sequence Modeling with Hybrid Samplers

EPFL Lausanne, Switzerland(瑞士洛桑联邦理工学院);Microsoft AI(微软人工智能)

Justin Deschenaux, Caglar Gulcehre

AI总结:

提出BlockGen框架,通过分块序列建模和AR-informed预测-校正采样,比较均匀态扩散与掩码扩散在分块生成中的性能。

摘要:

均匀态扩散框架是否为离散扩散更强大的范式?最近的研究表明情况可能如此。结合预测-校正采样器,均匀态扩散模型(USDMs)生成的样本质量高于掩码扩散模型(MDMs),并且在下游任务中USDMs与MDMs相当或更优,尽管它们表现出更大的困惑度。两个问题仍未解决。首先,现有工作比较均匀和掩码扩散时使用了无信息的校正器,这些校正器在随机位置重新注入噪声,而不是针对最可能出错的标记。其次,先前的工作比较了全序列扩散模型,因此我们不知道当逐块生成标记时是否得出相同的结论。为了解决这些问题,我们引入了BlockGen,一种分块序列模型,我们使用掩码和均匀扩散两种方式实例化它。BlockGen在混合块大小上训练,其似然性比固定块大小的模型更精细地在自回归和纯扩散之间插值。BlockGen实现了AR-informed预测-校正采样(ARPC),它结合了AR和扩散预测来重新生成不太可能的标记,而无需辅助验证器。在祖先采样下,均匀扩散在逐块设置中优于掩码扩散,尤其是在少步数情况下。在ARPC下,差距缩小并在高NFE时反转。在GSM8K上使用块大小16时,MDMs达到略高于USDMs的准确率,我们在OpenWebText上的生成困惑度中也观察到类似趋势。代码见https://github.com/jdeschena/blockgen。

英文摘要:

Is the uniform-state diffusion framework a more powerful paradigm for discrete diffusion? Recent studies indicate that this may be the case. In combination with predictor-corrector samplers, uniform-state diffusion models (USDMs) produce samples of higher-quality than masked diffusion models (MDMs), and USDMs equal or outperform MDMs in downstream tasks, even though they exhibit greater perplexity. Two issues remain unresolved. First, existing work compares uniform and masked diffusion with un-informed correctors that re-inject noise at random positions, rather than targeting tokens most likely to be wrong. Second, prior work compares full-sequence diffusion models, so we do not know whether the same conclusion holds when tokens are generated block by block. To address these issues, we introduce BlockGen, a blockwise sequence model that we instantiate with both masked and uniform diffusion. BlockGen trains on a mixture of block sizes and its likelihood interpolates between AR and pure diffusion more finely than models with a fixed block size. BlockGen enables AR-informed predictor-corrector sampling (ARPC), which combines AR and diffusion predictions to re-generate unlikely tokens without an auxiliary verifier. Under ancestral sampling, uniform outperforms masked in the block-by-block setting, especially in the few-step regime. Under ARPC, the gap closes and reverses at high NFE. With block size $16$ on GSM8K, MDMs reach slightly higher accuracy than USDMs, and we observe a similar trend in Generative Perplexity on OpenWebText. Find our code at https://github.com/jdeschena/blockgen.

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

↑