Extracting Reward Functions from Diffusion Models
Felipe Nuti, Tim Franzmeyer, João F. Henriques
Abstract
Diffusion models have achieved remarkable results in image generation, and have similarly been used to learn high-performing policies in sequential decision-making tasks. Decision-making diffusion models can be trained on lower-quality data, and then be steered with a reward function to generate near-optimal trajectories. We consider the problem of extracting a reward function by comparing a decision-making diffusion model that models low-reward behavior and one that models high-reward behavior; a setting related to inverse reinforcement learning. We first define the notion of a relative reward function of two diffusion models and show conditions under which it exists and is unique. We then devise a practical learning algorithm for extracting it by aligning the gradients of a reward function -- parametrized by a neural network -- to the difference in outputs of both diffusion models. Our method finds correct reward functions in navigation environments, and we demonstrate that steering the base model with the learned reward functions results in significantly increased performance in standard locomotion benchmarks. Finally, we demonstrate that our approach generalizes beyond sequential decision-making by learning a reward-like function from two large-scale image generation diffusion models. The extracted reward function successfully assigns lower rewards to harmful images.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
6 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Forward KL Regularized Preference Optimization for Aligning Diffusion Policies cites Denoising Diffusion Implicit Models
- High-Resolution Image Synthesis with Latent Diffusion Models cites Diffusion Models Beat GANs on Image Synthesis
- High-Resolution Image Synthesis with Latent Diffusion Models cites Denoising Diffusion Probabilistic Models
- High-Resolution Image Synthesis with Latent Diffusion Models cites Denoising Diffusion Implicit Models
- Diffusion for World Modeling: Visual Details Matter in Atari cites High-Resolution Image Synthesis with Latent Diffusion Models
- Diffusion for World Modeling: Visual Details Matter in Atari cites Diffusion Models Beat GANs on Image Synthesis
- Diffusion for World Modeling: Visual Details Matter in Atari cites Denoising Diffusion Probabilistic Models
- EDELINE: Enhancing Memory in Diffusion-based World Models via Linear-Time Sequence Modeling cites High-Resolution Image Synthesis with Latent Diffusion Models
- EDELINE: Enhancing Memory in Diffusion-based World Models via Linear-Time Sequence Modeling cites Diffusion for World Modeling: Visual Details Matter in Atari
- EDELINE: Enhancing Memory in Diffusion-based World Models via Linear-Time Sequence Modeling cites Diffusion Models Beat GANs on Image Synthesis
- EDELINE: Enhancing Memory in Diffusion-based World Models via Linear-Time Sequence Modeling cites Denoising Diffusion Probabilistic Models
- EDELINE: Enhancing Memory in Diffusion-based World Models via Linear-Time Sequence Modeling cites Denoising Diffusion Implicit Models
- Diffusion-Reward Adversarial Imitation Learning cites Diffusion Models Beat GANs on Image Synthesis
- Diffusion-Reward Adversarial Imitation Learning cites Denoising Diffusion Probabilistic Models
- Diffusion-Reward Adversarial Imitation Learning cites Denoising Diffusion Implicit Models
- Diffusion Models Beat GANs on Image Synthesis cites Learning Transferable Visual Models From Natural Language Supervision
- Diffusion Models Beat GANs on Image Synthesis cites Denoising Diffusion Probabilistic Models
- Diffusion Models Beat GANs on Image Synthesis cites Denoising Diffusion Implicit Models
- 4D Visual Pre-Training for Robot Learning cites High-Resolution Image Synthesis with Latent Diffusion Models
- 4D Visual Pre-Training for Robot Learning cites Denoising Diffusion Probabilistic Models
- Denoising Diffusion Implicit Models cites Denoising Diffusion Probabilistic Models
Cited by top-tier papers6
- Diffusion for World Modeling: Visual Details Matter in AtariEloi Alonso, Adam Jelley, Vincent Micheli, Anssi Kanervisto et al.NeurIPS 2024 · 359 citations
- Diffusion-Reward Adversarial Imitation LearningChun-Mao Lai, Hsiang-Chun Wang, Ping-Chun Hsieh, Yu-Chiang Frank Wang et al.NeurIPS 2024 · 28 citations
- Forward KL Regularized Preference Optimization for Aligning Diffusion PoliciesZhao Shan, Chenyou Fan, Shuang Qiu, Jiyuan Shi et al.AAAI 2025 · 8 citations
- EDELINE: Enhancing Memory in Diffusion-based World Models via Linear-Time Sequence ModelingJia-Hua Lee, Bor-Jiun Lin, Wei-Fang Sun, Chun-Yi LeeNeurIPS 2025 · 4 citations
- 4D Visual Pre-Training for Robot LearningChengkai Hou, Yanjie Ze, Yankai Fu, Zeyu Gao et al.ICCV 2025 · 1 citation
Builds on18
- Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
- Denoising Diffusion Probabilistic ModelsJonathan Ho, Ajay Jain, Pieter AbbeelNeurIPS 2020 · 35,902 citations
- Diffusion Models Beat GANs on Image SynthesisPrafulla Dhariwal, Alexander Quinn NicholNeurIPS 2021 · 13,211 citations
- High-Resolution Image Synthesis with Latent Diffusion ModelsRobin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser et al.CVPR 2022 · 13,123 citations
- Denoising Diffusion Implicit ModelsJiaming Song, Chenlin Meng, Stefano ErmonICLR 2021 · 11,743 citations
Related papers
- Training Diffusion Models with Reinforcement LearningKevin Black, Michael Janner, Yilun Du, Ilya Kostrikov et al.ICLR 2024 · 816 citations
- Fine-Tuning Discrete Diffusion Models via Reward Optimization with Applications to DNA and Protein DesignChenyu Wang, Masatoshi Uehara, Yichun He, Amy Wang et al.ICLR 2025
- Training Diffusion Models Towards Diverse Image Generation with Reinforcement LearningZichen Miao, Jiang Wang, Ze Wang, Zhengyuan Yang et al.CVPR 2024 · 12 citations
- Ranking-based Preference Optimization for Diffusion Models from Implicit User FeedbackYi-Lun Wu, Bo-Kai Ruan, Chiang Tseng, Hong-Han ShuaiNeurIPS 2025 · 3 citations
- Dynamic Inverse Reinforcement Learning for Characterizing Animal BehaviorZoe Ashwood, Aditi Jha, Jonathan W. PillowNeurIPS 2022 · 50 citations
