Maximum Entropy Inverse Reinforcement Learning of Diffusion Models with Energy-Based Models

Sangwoong Yoon, Himchan Hwang, Dohyun Kwon, Yung-Kyun Noh, Frank C. Park
6/30/2024
cs.LGcs.AI

No official code found. Best implementation: swyoon/Diffusion-by-MaxEntIRL (33 stars, MIT, last commit 2025-03-20).

Abstract

We present a maximum entropy inverse reinforcement learning (IRL) approach for improving the sample quality of diffusion generative models, especially when the number of generation time steps is small. Similar to how IRL trains a policy based on the reward function learned from expert demonstrations, we train (or fine-tune) a diffusion model using the log probability density estimated from training data. Since we employ an energy-based model (EBM) to represent the log density, our approach boils down to the joint training of a diffusion model and an EBM. Our IRL formulation, named Diffusion by Maximum Entropy IRL (DxMI), is a minimax problem that reaches equilibrium when both models converge to the data distribution. The entropy maximization plays a key role in DxMI, facilitating the exploration of the diffusion model and ensuring the convergence of the EBM. We also propose Diffusion by Dynamic Programming (DxDP), a novel reinforcement learning algorithm for diffusion models, as a subroutine in DxMI. DxDP makes the diffusion model update in DxMI efficient by transforming the original problem into an optimal control formulation where value functions replace back-propagation in time. Our empirical studies show that diffusion models fine-tuned using DxMI can generate high-quality samples in as few as 4 and 10 steps. Additionally, DxMI enables the training of an EBM without MCMC, stabilizing EBM training dynamics and enhancing anomaly detection performance.

View on arXivView PDF

Code Implementations(1)

MIT

The official repository for NeurIPS 2024 Oral <Maximum Entropy Inverse Reinforcement Learning of Diffusion Models with Energy-Based Models>

335PythonJun 27, 20241 years agoMIT
diffusion-modelsenergy-based-modelgenerative-modelingneurips-2024

Similar Papers

Cite this paper

@article{yoon2024maximum,
  title  = {Maximum Entropy Inverse Reinforcement Learning of Diffusion Models with Energy-Based Models},
  author = {Sangwoong Yoon and Himchan Hwang and Dohyun Kwon and Yung-Kyun Noh and Frank C. Park},
  year   = {2024},
  eprint = {2407.00626},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2407.00626},
  url    = {http://arxiv.org/abs/2407.00626v2},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.00626.svg)](https://codeofpaper.com/paper/2407.00626)

Discussion