[Paper Review] Learning Energy-Based Models by Diffusion Recovery Likelihood
This paper proposes diffusion recovery likelihood, a method to train energy-based models (EBMs) by learning a sequence of EBMs on increasingly noisy data versions via conditional likelihood maximization. Unlike standard MLE, it enables efficient training and sampling through tractable conditional sampling, achieving state-of-the-art FID 9.58 and inception score 8.30 on CIFAR-10, with stable long-run MCMC chains that remain realistic, enabling accurate density estimation.
While energy-based models (EBMs) exhibit a number of desirable properties, training and sampling on high-dimensional datasets remains challenging. Inspired by recent progress on diffusion probabilistic models, we present a diffusion recovery likelihood method to tractably learn and sample from a sequence of EBMs trained on increasingly noisy versions of a dataset. Each EBM is trained with recovery likelihood, which maximizes the conditional probability of the data at a certain noise level given their noisy versions at a higher noise level. Optimizing recovery likelihood is more tractable than marginal likelihood, as sampling from the conditional distributions is much easier than sampling from the marginal distributions. After training, synthesized images can be generated by the sampling process that initializes from Gaussian white noise distribution and progressively samples the conditional distributions at decreasingly lower noise levels. Our method generates high fidelity samples on various image datasets. On unconditional CIFAR-10 our method achieves FID 9.58 and inception score 8.30, superior to the majority of GANs. Moreover, we demonstrate that unlike previous work on EBMs, our long-run MCMC samples from the conditional distributions do not diverge and still represent realistic images, allowing us to accurately estimate the normalized density of data even for high-dimensional datasets. Our implementation is available at https://github.com/ruiqigao/recovery_likelihood.
Motivation & Objective
- To address the challenge of training energy-based models (EBMs) on high-dimensional data, where standard maximum likelihood estimation (MLE) requires expensive MCMC sampling from the marginal distribution.
- To overcome the instability of long-run MCMC chains in existing EBM methods, which often produce unrealistic samples due to non-convergent or invalid steady-state distributions.
- To enable accurate estimation of normalized data densities under the learned EBM by leveraging long-run MCMC chains from conditional distributions.
- To improve sample quality and training efficiency by learning EBMs via recovery likelihood on a sequence of diffused data levels, rather than directly on raw data.
- To demonstrate that faithful long-run MCMC sampling is achievable in EBMs when trained with diffusion recovery likelihood, enabling reliable density evaluation.
Proposed method
- The method trains a sequence of energy-based models (EBMs) on increasingly noisy versions of the data, generated via a diffusion process that adds Gaussian noise over time.
- Each EBM is trained using recovery likelihood, which maximizes the conditional probability of the clean data given its noisy version at a higher noise level, making sampling tractable compared to marginal likelihood.
- Sampling for generation starts from Gaussian white noise and proceeds through iterative conditional sampling at decreasing noise levels, effectively reversing the diffusion process.
- The method uses Hamiltonian Monte Carlo (HMC) with adaptive step size to generate long-run MCMC chains from the conditional distributions, ensuring high acceptance rates and sample realism.
- It employs annealed importance sampling (AIS) to estimate the log partition function of the clean data distribution, enabling normalized density estimation.
- The framework adapts the recovery likelihood objective from Bengio et al. (2013) to the diffusion setting, enabling efficient training without direct marginal sampling.
Experimental results
Research questions
- RQ1Can recovery likelihood on diffused data enable efficient and stable training of energy-based models without requiring expensive marginal MCMC sampling?
- RQ2Do long-run MCMC chains from the conditional distributions of a diffusion-based EBM remain realistic, indicating a valid and stable energy potential?
- RQ3Can the normalized density of data be accurately estimated under the learned EBM using long-run MCMC and importance sampling?
- RQ4How does the performance of diffusion recovery likelihood compare to denoising score matching when using gradients of explicit energy functions as score functions?
- RQ5Does increasing the number of diffusion time steps (e.g., 1000) improve the stability and quality of long-run MCMC sampling and density estimation?
Key findings
- The method achieves FID 9.58 and inception score 8.30 on unconditional CIFAR-10, outperforming most GAN-based methods and existing explicit EBM learning approaches.
- Long-run MCMC chains from the conditional distributions remain realistic even after 100,000 sampling steps, with FID 24.89, close to the 25.12 of chains from normal approximations.
- The estimated log partition function of the clean data distribution converges stably across multiple runs, indicating reliable density estimation using annealed importance sampling.
- The method enables accurate estimation of normalized data density via change of variables and AIS, with test bits per dimension reported in Table 4, though the estimate is a stochastic lower bound.
- Even with 1,000 diffusion time steps, the long-run MCMC chains remain faithful and realistic, demonstrating that the learned energy potentials are valid and well-structured.
- The approach outperforms naive denoising score matching when using gradients of explicit energy functions, highlighting the advantage of learning full EBMs over score functions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.