A Diffusive Classification Loss for Learning Energy-based Generative Models
Louis Grenioux, RuiKang OuYang, José Miguel Hernández-Lobato
TL;DR
This work tackles the challenge of training energy-based generative models by addressing the limitations of score-based approaches, notably mode blindness, through the Diffusive Classification (DiffCLF) objective. By reframing log-density learning as a supervised multiclass classification problem across noise levels and combining it with the Denoising Score Matching (DSM) objective, DiffCLF consistently recovers the ground-truth distribution and avoids the mode-weight blindness inherent to pure score-based methods. The authors provide theoretical guarantees of consistency and demonstrate practical benefits on synthetic Gaussian mixtures and molecular systems, including improved energy fidelity, model composition, Boltzmann Generator sampling, and free-energy estimation. The approach offers a flexible, scalable framework that extends to non-Euclidean spaces and discrete processes, with meaningful implications for diffusion-based modeling, energy-based sampling, and physical applications such as Boltzmann sampling and free-energy calculations.
Abstract
Score-based generative models have recently achieved remarkable success. While they are usually parameterized by the score, an alternative way is to use a series of time-dependent energy-based models (EBMs), where the score is obtained from the negative input-gradient of the energy. Crucially, EBMs can be leveraged not only for generation, but also for tasks such as compositional sampling or building Boltzmann Generators via Monte Carlo methods. However, training EBMs remains challenging. Direct maximum likelihood is computationally prohibitive due to the need for nested sampling, while score matching, though efficient, suffers from mode blindness. To address these issues, we introduce the Diffusive Classification (DiffCLF) objective, a simple method that avoids blindness while remaining computationally efficient. DiffCLF reframes EBM learning as a supervised classification problem across noise levels, and can be seamlessly combined with standard score-based objectives. We validate the effectiveness of DiffCLF by comparing the estimated energies against ground truth in analytical Gaussian mixture cases, and by applying the trained models to tasks such as model composition and Boltzmann Generator sampling. Our results show that DiffCLF enables EBMs with higher fidelity and broader applicability than existing approaches.
