NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning Energy-Based Models by Cooperative Diffusion Recovery Likelihood

Yaxuan Zhu, Jianwen Xie, Ying Nian Wu, Ruiqi Gao

Cooperative Diffusion Recovery Likelihood (CDRL) is a novel framework designed to significantly improve the training and sampling efficiency of Energy-Based Models (EBMs). By jointly training a sequence of EBMs with learned "initializer" models that amortize the cost of Markov Chain Monte Carlo (MCMC) sampling, CDRL achieves state-of-the-art image generation quality for EBMs while cutting sampling time in half.

The Challenge with Energy-Based Models

Energy-Based Models are a flexible class of generative models that define a probability distribution through an unnormalized "energy" function. While theoretically elegant—allowing for easy composition of models and out-of-distribution detection—they are notoriously difficult to train.

The primary bottleneck is sampling. To train an EBM or generate images from it, one typically relies on MCMC methods like Langevin dynamics. On high-dimensional data like images, MCMC is slow, computationally expensive, and often fails to explore the complex "energy landscape" effectively. Recent advances like Diffusion Recovery Likelihood (DRL) improved this by training a sequence of EBMs on increasingly noisy data, but a significant performance gap remained between EBMs and leading frameworks like GANs or Diffusion Models.

The CDRL Method

To bridge this gap, the authors introduce CDRL, which combines the sequential denoising approach of diffusion models with a "cooperative" training strategy.

  1. Sequential EBMs: Similar to DRL, CDRL trains a series of EBMs, each responsible for modeling the transition from a noisier state to a cleaner one.
  2. The Initializer (Amortized Sampling): The key innovation is pairing each EBM with an initializer model (a generator). Instead of starting MCMC from scratch at each noise level, the initializer predicts a starting point that is already close to the data manifold.
  3. Cooperative Training: The two models are trained jointly in a "chasing game." The initializer provides a sample, the EBM refines it with a few MCMC steps, and then:
  4. The EBM is updated to assign lower energy to the refined samples.
  5. The initializer is updated to mimic the EBM's refinement, essentially learning to skip the MCMC steps in the future.

Key Insights: Amortization and Guidance

EBMs as Refiners: CDRL treats the EBM as a fine-tuner. The initializer does the heavy lifting of getting the global structure right, while the EBM's energy function polishes the details. By training the initializer to predict the outcome of MCMC, the authors effectively "amortize" the sampling cost. This allows them to use only 15 MCMC steps per noise level, compared to the 30 required by previous state-of-the-art EBMs.

Classifier-Free Guidance (CFG) for EBMs: The paper demonstrates that the CFG trick—popularized by diffusion models to trade off diversity for sample quality—works exceptionally well with EBMs. By combining gradients from conditional and unconditional energy functions, they can significantly sharpen generated results.

Effect of Classifier-Free Guidance on sample quality and FID/Inception scores.

State-of-the-Art Results

CDRL was evaluated on standard generative modeling benchmarks, including CIFAR-10 (32x32) and ImageNet (32x32).

  • Generation Quality: CDRL achieved an FID score of 3.68 on CIFAR-10, the best reported for any EBM-based framework to date, making it competitive with many GANs and diffusion models.
  • Efficiency: It achieves these results with half the MCMC steps of its predecessor. The authors also show that steps can be reduced even further (down to 3-5 steps) during inference with only minor quality loss.
  • Downstream Versatility: Because energies are additive, the model excels at compositional generation (e.g., combining multiple attributes). Furthermore, it outperforms many explicit density models in identifying out-of-distribution samples.
Generated samples from CDRL on CIFAR-10 and ImageNet 32x32 datasets.

Limitations and Future Work

Despite the impressive speedups, CDRL still relies on iterative MCMC sampling, which remains slower than the single-step generation of GANs or the highly optimized ODE solvers used in modern diffusion models. Scaling EBMs to very high resolutions (like 1024x1024) remains a significant challenge due to the memory and compute costs of MCMC on large feature maps. Future work will likely focus on further reducing the MCMC burden and exploring more complex initializer architectures.

Summary updated

BibTeX
@inproceedings{zhu2024learning,
  author = {Yaxuan Zhu and Jianwen Xie and Ying Nian Wu and Ruiqi Gao},
  title = {{Learning Energy-Based Models by Cooperative Diffusion Recovery Likelihood}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=AyzkDpuqcl},
}
Figure