通过信任采样提升扩散模型在约束条件下的生成质量
Constrained Diffusion with Trust Sampling
- 将生成过程视为带约束的优化问题,动态调整梯度步数
- 在不同扩散层级根据方差判断代理函数可信度,避免偏差累积
- 适用于图像与3D动作生成,尤其适合高难度约束场景
扩散模型在各类生成任务中表现出显著潜力,但往往难以满足复杂约束。本文从优化角度重新思考训练自由的损失引导扩散方法,将扩散过程中的每一步推理建模为一系列带约束的优化问题。在每个优化步骤中,允许样本沿代理约束函数梯度方向走多步,直到该代理在当前扩散层级的方差表明不可信为止。同时,我们估计扩散模型的状态流形,当样本开始偏离状态流形时提前终止。信任采样在遵循无条件扩散模型与服从损失引导之间实现有效平衡,支持更灵活、更准确的约束生成。我们在图像与3D动作生成等复杂任务上进行了广泛实验,结果表明该方法在生成质量上显著优于现有方法。代码已开源:https://github.com/will-s-h/trust-sampling。
原文摘要 · Abstract (English)
Diffusion models have demonstrated significant promise in various generative tasks; however, they often struggle to satisfy challenging constraints. Our approach addresses this limitation by rethinking training-free loss-guided diffusion from an optimization perspective. We formulate a series of constrained optimizations throughout the inference process of a diffusion model. In each optimization, we allow the sample to take multiple steps along the gradient of the proxy constraint function until we can no longer trust the proxy, according to the variance at each diffusion level. Additionally, we estimate the state manifold of diffusion model to allow for early termination when the sample starts to wander away from the state manifold at each diffusion step. Trust sampling effectively balances between following the unconditional diffusion model and adhering to the loss guidance, enabling more flexible and accurate constrained generation. We demonstrate the efficacy of our method through extensive experiments on complex tasks, and in drastically different domains of images and 3D motion generation, showing significant improvements over existing methods in terms of generation quality. Our implementation is available at https://github.com/will-s-h/trust-sampling.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。