Abstract
We present Unnormalized Variational Bayes (UVB), a novel approach to learning unnormalized densities by combining the structural advantages of Variational Bayes with the robust training objectives of Empirical Bayes. By parameterizing an energy-based model using the Evidence Lower Bound (ELBO) of a Variational Autoencoder (VAE) and training it with a denoising objective, UVB achieves superior capacity and sampling efficiency compared to traditional neural energy estimators.
Introduction
Learning unnormalized densities, or energy-based models (EBMs), is a fundamental challenge in probabilistic modeling. While standard approaches often rely on maximum likelihood estimation, which can be computationally expensive due to the partition function, Neural Empirical Bayes (specifically the DEEN framework) offers an alternative by learning to denoise data. However, DEEN typically employs simple Multi-Layer Perceptrons (MLPs) to represent energy functions. This paper, authored by Saeed Saremi, investigates whether the latent-space architecture of Variational Bayes can provide a more powerful parameterization for these energy functions.
Methods
The core innovation of Unnormalized Variational Bayes (UVB) lies in its unique parameterization and training strategy.
Architecture and Energy Function
UVB utilizes a standard VAE architecture consisting of an encoder and a decoder. However, instead of treating the model as a standard generative model, we define the energy function $f(y)$ of a noisy observation $y$ as the negative ELBO: $$f(y) = -\text{ELBO}(y)$$ This parameterization leverages the hierarchical structure of the latent space to represent complex data densities.
Training Objective
Unlike a standard VAE, UVB is not trained by maximizing the ELBO. Instead, it is trained using an Empirical Bayes least-squares estimator. The objective is to minimize the denoising error: $$\mathcal{L} = \mathbb{E}_{x, y} [\|x - \hat{x}(y)\|^2]$$ where the denoising "jump" $\hat{x}(y)$ is guided by the gradient of the learned energy function (the ELBO). This training regime forces the model to learn the score function of the noisy data distribution.
Walk-Jump Sampling
To generate samples, UVB employs a "Walk-Jump" procedure. First, the sampler "walks" along the smoothed noisy density using Langevin MCMC. The presence of noise facilitates fast mixing by bridging isolated modes in the data distribution. Second, the sampler "jumps" to the clean data manifold using the learned denoising estimator.
Results
The UVB framework was evaluated on MNIST and CIFAR-10, focusing on the "ultraviolet" regime characterized by extreme noise levels (up to $\sigma=1$).
- Performance: UVB consistently outperformed the MLP-based DEEN model in terms of training and test loss across various noise levels.
- Denoising Quality: At high noise levels, UVB produced significantly sharper and more accurate reconstructions than previous methods.
- Generative Mixing: The Walk-Jump sampler successfully traversed all classes of MNIST in a single MCMC chain, demonstrating the model's ability to capture the global structure of the data distribution without getting trapped in local optima.
Discussion
A key insight of this work is that UVB is fundamentally different from a standard VAE despite sharing the same architecture. The denoising objective leads to different internal statistics, such as higher KL divergence in the latent space. This suggests that the ELBO provides a high-capacity implicit parameterization that is better suited for energy estimation than flat architectures.
Despite its success, UVB exhibits a persistent "generalization gap" between training and test performance, even in high-noise scenarios where overfitting is typically less prevalent. Future work will explore more expressive priors and scaling the framework to higher-resolution datasets to further investigate this phenomenon and the scalability of latent-space energy models.
Summary updated