扩散模型在从图像、视频到蛋白质设计和文本等多种模态中产生了令人印象深刻的结果。然而,生成具有用户指定属性的样本仍然是一个挑战。最近的研究提出微调模型以最大化捕获期望属性的奖励,但这些方法需要昂贵的训练,并且容易发生模式坍缩。在这项工作中,我们提出了 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 .
Steering Masked Discrete Diffusion Models via Discrete Denoising Posterior Prediction
Université de Montréal(蒙特利尔大学);Mila(米拉计算科学研究所);Dreamfold(Dreamfold公司);Duke University(杜克大学);McGill University(麦吉尔大学);Allen Institute for AI(艾伦人工智能研究所);Oxford University(牛津大学);Aithyra(Aithyra公司)
TunerDiT: Training-free Progressive Steering of Diffusion Transformer for Multi-Event Video Generation
Ludwig Maximilian University of Munich(慕尼黑路德维希-马克西米利安大学);Technical University of Munich(慕尼黑技术大学);MCML;University of Hamburg(汉堡大学);Huawei European Research Institute(华为欧洲研究院)
Steering Dynamical Regimes of Diffusion Models by Breaking Detailed Balance
Institute of Fundamental and Frontier Sciences, University of Electronic Science and Technology of China(电子科学与技术大学基础与前沿科学学院);University of Electronic Science and Technology of China(电子科学与技术大学);School of Physics, University of Electronic Science and Technology of China(电子科学与技术大学物理学院);Key Laboratory of Quantum Physics and Photonic Quantum Information, Ministry of Education, University of Electronic Science and Technology of China(量子物理与光子量子信息重点实验室);Non-classical Information Science Basic Discipline Research Center of Sichuan Province, University of Electronic Science and Technology of China(四川省非经典信息科学基础学科研究中心)
Semantic Steering for Controllable Generation: Tuning-Free Concept Erasure in Multimodal Diffusion Transformers
Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络空间安全学院)
MUSE: Unlocking Timestep as Native Task Steering for One-Step Dense Prediction
Agricultural Information Institute, Chinese Academy of Agricultural Sciences, Beijing, China(中国农业科学研究院农业信息研究所,北京,中国);Key Laboratory of Agricultural Big Data, Ministry of Agriculture and Rural Affairs, Beijing, China(农业大数据重点实验室,农业农村部,北京,中国)
MidSteer: Optimal Affine Framework for Steering Generative Models
University of Basel(巴塞尔大学);University of California, Berkeley(加州大学伯克利分校);ETH Zurich(苏黎世联邦理工学院);University of Cambridge(剑桥大学);University of Washington(华盛顿大学)