arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.09749cs.AI
收藏

原始-对偶引导解码用于受限离散扩散

Primal-Dual Guided Decoding for Constrained Discrete Diffusion

Spotify

Federico Tomasi, Dmitrii Moor, Alice Wang, Mounia Lalmas

AI总结:

本文提出原始-对偶引导解码方法,通过KL正则化优化问题在线求解,支持多约束并提供约束违反的正式界,提升生成质量。

摘要:

离散扩散模型通过逐步解掩码生成结构化序列,但生成过程中强制全局属性约束仍是一个开放性挑战。我们提出原始-对偶引导解码,是一种推理时的方法,将受约束的生成转化为KL正则化优化问题,并通过自适应拉格朗日乘数在线求解。在每个去噪步骤中,方法通过加性、约束依赖的偏置修改token logit,乘数通过镜像下降根据约束违反更新。偏置作为约束的最优KL正则化投影,因此受约束分布尽可能接近模型的无约束分布,同时满足约束。该方法无需重新训练,也不需要额外的模型评估,仅需标准采样即可,支持多个同时约束,并提供约束违反的正式界。我们在主题文本生成、分子设计和音乐播放列表生成中评估了我们的方法,显示通过领域特定评分函数实例化的单一算法在提升约束满足的同时,保持了相关领域特定质量指标。

英文摘要:

Discrete diffusion models generate structured sequences by progressively unmasking tokens, but enforcing global property constraints during generation remains an open challenge. We propose primal-dual guided decoding, an inference-time method that formulates constrained generation as a KL-regularised optimisation problem and solves it online via adaptive Lagrangian multipliers. At each denoising step, the method modifies token logits through an additive, constraint-dependent bias, with multipliers updated by mirror descent based on constraint violation. The bias arises as the optimal KL-regularised projection of the constraint, so the constrained distribution remains as close as possible to the model's unconstrained distribution while still satisfying the constraint. The method requires no retraining and no additional model evaluations beyond standard sampling, supports multiple simultaneous constraints, and provides formal bounds on constraint violation. We evaluate our approach on topical text generation, molecular design, and music playlist generation, showing that a single algorithm instantiated via domain-specific scoring functions improves constraint satisfaction while preserving relevant domain-specific quality metrics.

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

↑