LGAIJun 1, 2023

Extracting Reward Functions from Diffusion Models

arXiv:2306.01804v220 citationsh-index: 31
Originality Incremental advance
AI Analysis

This work addresses the problem of inverse reinforcement learning for researchers and practitioners in AI, enabling reward extraction from diffusion models to improve decision-making and image generation, though it is incremental as it builds on existing diffusion model frameworks.

The paper tackles the problem of extracting reward functions by comparing two decision-making diffusion models, one modeling low-reward and the other high-reward behavior, and develops a learning algorithm that successfully finds correct reward functions in navigation environments, leading to significantly increased performance in locomotion benchmarks, with concrete results such as successful generalization to image generation models where the extracted function assigns lower rewards to harmful images.

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.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes