arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.06848cs.LGcs.CLcs.CV
收藏

扩散模型推理时缩放与引导的通用框架

A General Framework for Inference-time Scaling and Steering of Diffusion Models

Department of Computer Science, New York University(纽约大学计算机科学系);Columbia University(哥伦比亚大学);Center for Data Science, New York University(纽约大学数据科学中心)

Raghav Singhal, Zachary Horvitz, Ryan Teehan, Mengye Ren, Zhou Yu, Kathleen McKeown, Rajesh Ranganath

AI总结:

本文提出 Feynman-Kac 引导框架,通过在推理时对多个扩散粒子进行基于势函数的重采样,无需训练即可利用奖励函数引导扩散模型,在文本到图像和文本生成任务上取得了优于微调模型的质量与可控性。

摘要:

扩散模型在从图像、视频到蛋白质设计和文本等多种模态中产生了令人印象深刻的结果。然而,生成具有用户指定属性的样本仍然是一个挑战。最近的研究提出微调模型以最大化捕获期望属性的奖励,但这些方法需要昂贵的训练,并且容易发生模式坍缩。在这项工作中,我们提出了 Feynman-Kac(FK)引导,这是一个利用奖励函数在推理时引导扩散模型的框架。FK 引导通过采样一个由多个相互作用的扩散过程(称为粒子)组成的系统来工作,并在中间步骤基于使用称为势函数的函数计算的分数对粒子进行重采样。势函数使用中间状态的奖励来定义,并且其选择方式使得高值表示该粒子将产生高奖励样本。我们探索了势函数、中间奖励和采样器的各种选择。我们在文本到图像和文本扩散模型上评估了 FK 引导。对于使用人类偏好奖励引导文本到图像模型,我们发现 FK 引导一个 0.8B 参数模型在提示保真度上优于一个 2.6B 参数的微调模型,同时采样更快且无需训练。对于使用文本质量和特定文本属性奖励引导文本扩散模型,我们发现 FK 引导生成了更低的困惑度、更具语言可接受性的输出,并实现了对诸如毒性等属性的无梯度控制。我们的结果表明,扩散模型的推理时缩放和引导——即使使用现成的奖励——也能提供显著的样本质量增益和可控性优势。代码可在 https://github.com/zacharyhorvitz/Fk-Diffusion-Steering 获取。

英文摘要:

Diffusion models produce impressive results in modalities ranging from images and video to protein design and text. However, generating samples with user-specified properties remains a challenge. Recent research proposes fine-tuning models to maximize rewards that capture desired properties, but these methods require expensive training and are prone to mode collapse. In this work, we present Feynman-Kac (FK) steering, an inference-time framework for steering diffusion models with reward functions. FK steering works by sampling a system of multiple interacting diffusion processes, called particles, and resampling particles at intermediate steps based on scores computed using functions called potentials. Potentials are defined using rewards for intermediate states and are selected such that a high value indicates that the particle will yield a high-reward sample. We explore various choices of potentials, intermediate rewards, and samplers. We evaluate FK steering on text-to-image and text diffusion models. For steering text-to-image models with a human preference reward, we find that FK steering a 0.8B parameter model outperforms a 2.6B parameter fine-tuned model on prompt fidelity, with faster sampling and no training. For steering text diffusion models with rewards for text quality and specific text attributes, we find that FK steering generates lower perplexity, more linguistically acceptable outputs and enables gradient-free control of attributes like toxicity. Our results demonstrate that inference-time scaling and steering of diffusion models - even with off-the-shelf rewards - can provide significant sample quality gains and controllability benefits. Code is available at https://github.com/zacharyhorvitz/Fk-Diffusion-Steering .

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

↑