arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2404.14743stat.MLcs.LG
收藏

扩散模型的梯度引导:一个优化视角

Gradient Guidance for Diffusion Models: An Optimization Perspective

Princeton University(普林斯顿大学)

Yingqing Guo, Hui Yuan, Yukang Yang, Minshuo Chen, Mengdi Wang

AI总结:

本文从优化视角研究扩散模型的梯度引导,建立数学框架证明其本质是正则化优化问题的采样解,并提出基于前向预测损失的修正引导及迭代微调方法,在凹目标下证明了O(1/K)的全局收敛率。

摘要:

扩散模型在各类应用中展现出经验上的成功,并可通过引导适应特定任务需求。本文研究了一种梯度引导形式,用于调整预训练扩散模型以优化用户指定的目标。我们为引导扩散建立了一个数学框架,以系统研究其优化理论与算法设计。理论分析揭示了引导扩散模型与优化之间的紧密联系:梯度引导扩散模型本质上是正则化优化问题的采样解,其中正则化由预训练数据施加。在引导设计方面,直接将外部目标函数的梯度作为引导会破坏生成样本中的结构。我们研究了一种基于前向预测损失的修正梯度引导形式,它利用预训练 score functions 中的信息,并可证明地保留了潜在结构。我们进一步考虑了梯度引导扩散的迭代微调版本,其中引导和 score network 均使用新生成的样本进行更新。该过程在期望下模拟一阶优化迭代,我们证明了当目标函数为凹函数时,其具有 O(1/K) 的全局最优收敛率。代码将发布于 https://github.com/yukang123/GGDMOptim.git。

英文摘要:

Diffusion models have demonstrated empirical successes in various applications and can be adapted to task-specific needs via guidance. This paper studies a form of gradient guidance for adapting a pre-trained diffusion model towards optimizing user-specified objectives. We establish a mathematical framework for guided diffusion to systematically study its optimization theory and algorithmic design. Our theoretical analysis spots a strong link between guided diffusion models and optimization: gradient-guided diffusion models are essentially sampling solutions to a regularized optimization problem, where the regularization is imposed by the pre-training data. As for guidance design, directly bringing in the gradient of an external objective function as guidance would jeopardize the structure in generated samples. We investigate a modified form of gradient guidance based on a forward prediction loss, which leverages the information in pre-trained score functions and provably preserves the latent structure. We further consider an iteratively fine-tuned version of gradient-guided diffusion where guidance and score network are both updated with newly generated samples. This process mimics a first-order optimization iteration in expectation, for which we proved O(1/K) convergence rate to the global optimum when the objective function is concave. Our code will be released at https://github.com/yukang123/GGDMOptim.git.

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

↑