Abstract
Energy-based latent variable models (EBLVMs) are more expressive than conventional energy-based models. However, its potential on visual tasks are limited by its training process based on maximum likelihood estimate that requires sampling from two intractable distributions. In this paper, we propose Bi-level doubly variational learning (BiDVL), which is based on a new bi-level optimization framework and two tractable variational distributions to facilitate learning EBLVMs. Particularly, we lead a decoupled EBLVM consisting of a marginal energy-based distribution and a structural posterior to handle the difficulties when learning deep EBLVMs on images. By choosing a symmetric KL divergence in the lower level of our framework, a compact BiDVL for visual tasks can be obtained. Our model achieves impressive image generation performance over related works. It also demonstrates the significant capacity of testing image reconstruction and out-of-distribution detection.
Introduction
Energy-Based Models (EBMs) are mathematically elegant, defining a probability distribution by assigning low "energy" to real data and high energy to everything else. When extended with latent variables (EBLVMs), they become even more powerful at capturing complex data structures.
However, training EBLVMs is a notorious challenge. Updating the model via Maximum Likelihood Estimation (MLE) requires sampling from two difficult distributions: the posterior (latents given data) and the model's joint distribution. This "doubly intractable" problem is traditionally addressed using Markov Chain Monte Carlo (MCMC) methods like Langevin dynamics. Unfortunately, MCMC is computationally expensive, requires careful tuning, and often fails to converge on high-dimensional image data, leading to unstable training where energy values explode.
Methodology: The BiDVL Framework
The authors propose BiDVL (Bi-level Doubly Variational Learning), which reframes training as a Bi-level Optimization (BLO) problem, effectively bypassing the need for slow MCMC sampling.
Bi-level Optimization
- The Lower Level (The "Chase"): Instead of MCMC, two tractable variational distributions are introduced. One approximates the posterior, and the other approximates the joint distribution. These models are trained to "chase" the current energy-based model to provide an accurate estimate of the gradient.
- The Upper Level (The "Update"): Once the lower level provides a reliable gradient estimate, the upper level updates the actual energy function parameters to better fit the data.
Innovations for Visual Stability
To handle deep EBLVMs on images, the paper introduces a Decoupled EBLVM, splitting the model into a marginal energy-based distribution and a structural posterior. This prevents the "dynamic target" problem where variational models can't keep up with a rapidly changing energy landscape. Furthermore, a Symmetric KL Divergence is used in the lower level to force the variational distributions to cover all data modes precisely, leading to significantly more stable training.
Experimental Results
BiDVL was evaluated on several standard computer vision benchmarks, including CIFAR-10, SVHN, and CelebA.
Image Generation and Reconstruction
BiDVL demonstrates impressive performance across multiple tasks. On CIFAR-10, it achieved a Fréchet Inception Distance (FID) of 20.75, outperforming other EBM-based methods like IGEBM (40.58). Unlike standard EBMs or GANs, BiDVL can reconstruct images from latent codes because it learns an explicit inference model, achieving lower Root Mean Square Error (RMSE) than standard VAEs.
Out-of-Distribution (OOD) Detection
The model is excellent at identifying "alien" data, achieving an AUROC of 1.0 on uniform noise and outperforming specialized models like JEM on the CelebA dataset.
Conclusion
BiDVL bypasses the traditional MCMC headache by using a bi-level optimization framework with "chasing" variational distributions. While the model's performance is currently tied to underlying neural architectures, it represents a major step forward in making EBLVMs efficient and scalable for high-dimensional visual data. Future work will explore integrating more sophisticated ResNet-based or Flow-based architectures to further boost stability and image quality.
Summary updated