arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.09790cs.CLcs.LG
收藏

受约束的离散扩散

Constrained Discrete Diffusion

University of Virginia(弗吉尼亚大学);Lawrence Livermore National Laboratory(劳伦斯利弗莫尔国家实验室)

Michael Cardei, Jacob K Christopher, Thomas Hartvigsen, Bhavya Kailkhura, Ferdinando Fioretto

AI总结:

受约束的离散扩散通过在扩散过程中直接施加约束,实现无训练的可控生成,优于现有方法。

摘要:

离散扩散模型是一类生成模型,通过逐步去噪从分类噪声分布中构建序列。除了其快速增长的能力生成连贯的自然语言外,这些模型还提供了一个新的重要机会,即对序列级约束进行强制,这一能力当前的自回归模型无法原生提供。本文利用这一机会,引入了受约束的离散扩散(CDD),一种将可微约束优化整合到扩散过程中的新方法,以确保生成序列符合约束、逻辑规则或安全要求。与传统文本生成器通常依赖事后过滤或模型重新训练进行可控生成不同,CDD直接在离散扩散采样过程中施加约束,从而得到一种无需训练的有效方法。在毒性控制的文本生成、性质约束的分子设计和指令约束的文本完成实验中,CDD在多样任务中实现了零约束违规,同时保持流畅性、新颖性和连贯性,同时优于自回归和现有离散扩散方法。

英文摘要:

Discrete diffusion models are a class of generative models that construct sequences by progressively denoising samples from a categorical noise distribution. Beyond their rapidly growing ability to generate coherent natural language, these models present a new and important opportunity to enforce sequence-level constraints, a capability that current autoregressive models cannot natively provide. This paper capitalizes on this opportunity by introducing Constrained Discrete Diffusion (CDD), a novel integration of differentiable constraint optimization within the diffusion process to ensure adherence to constraints, logic rules, or safety requirements for generated sequences. Unlike conventional text generators that often rely on post-hoc filtering or model retraining for controllable generation, CDD directly imposes constraints into the discrete diffusion sampling process, resulting in a training-free and effective approach. Experiments in toxicity-controlled text generation, property-constrained molecule design, and instruction-constrained text completion demonstrate that CDD achieves zero constraint violations in a diverse array of tasks while preserving fluency, novelty, and coherence while outperforming autoregressive and existing discrete diffusion approaches.

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

↑