Energy-Based Models (EBMs) offer a flexible framework for modeling complex probability distributions by defining an unnormalized energy function. However, their practical application has been hindered by the intractability of the partition function $Z_\theta$, which normalizes the distribution. Traditional training methods often rely on computationally expensive and potentially unstable Markov Chain Monte Carlo (MCMC) sampling. This paper introduces Self-Normalised Log-likelihood (SNL), a novel variational objective that simplifies EBM training by introducing a single learnable parameter to estimate the normalizer.
The SNL Objective
The core innovation of SNL lies in a mathematical linearization of the logarithm. By utilizing the variational identity $\log z = \min_{\lambda \in \mathbb{R}} (ze^{-\lambda} + \lambda - 1)$, the authors transform the standard log-likelihood into a more manageable objective. They introduce a scalar parameter $b$, which learns to approximate the log-partition function $\log Z_\theta$.
This approach offers several key advantages:
- Joint Concavity: For exponential family distributions, the SNL objective is jointly concave in both the model parameters $\theta$ and the bias $b$, leading to more stable optimization.
- Unbiased Gradients: Unlike MCMC-based methods, SNL allows for unbiased gradient estimation using a simple proposal distribution $q$.
- Implicit Normalization: As the model trains, the parameter $b$ naturally converges to the true log-partition function, effectively "self-normalizing" the model.
Experimental Results
The researchers evaluated SNL across various domains, including 2D toy densities, high-dimensional tabular data (UCI), and regression tasks.
Regression and Density Estimation
In image regression tasks, such as predicting cell counts or face attributes, SNL-trained EBMs demonstrated superior performance and stability compared to Noise Contrastive Estimation (NCE). As shown in the performance plots, SNL consistently provides tighter and more stable bounds on the likelihood as the number of samples increases.
On standard UCI tabular datasets (Power, Gas, Hepmass), SNL achieved results competitive with state-of-the-art flow-based models like RealNVP and MAF. This is significant given that EBMs are often simpler to implement and more flexible in their architecture than constrained flow models.
Generative Modeling
The authors also extended SNL to Variational Autoencoders (VAEs) by introducing the SNELBO objective. Using an EBM as a prior for a VAE on binary MNIST resulted in improved evidence lower bounds (ELBO) compared to standard Gaussian priors, reaching -87.09 versus -89.10.
Conclusion
SNL provides a robust and efficient alternative to traditional EBM training methods. By bypassing the need for MCMC and offering a stable, concave optimization landscape, it opens new avenues for applying EBMs to high-dimensional and complex data. Future work may focus on improving the choice of proposal distributions to further reduce gradient variance in extremely high-dimensional spaces.
Summary updated