Deep Directed Generative Models with Energy-Based Probability Estimation

Taesup Kim, Yoshua BengioarXiv 2016

Introduction

Energy-Based Models (EBMs) offer a powerful framework for probabilistic modeling by capturing complex dependencies through a scalar energy function. However, their practical application is often hindered by the "normalization problem"—the requirement to compute an intractable partition function to obtain normalized probabilities. Traditionally, training EBMs relies on Markov Chain Monte Carlo (MCMC) sampling to estimate gradients, a process that is computationally expensive and prone to poor mixing, where the sampler fails to explore the full data distribution.

In this work, Kim and Bengio (2016) propose a hybrid framework that avoids MCMC by co-training a Deep Energy Model (DEM) with a Deep Generative Model (DGM). In this setup, the DGM acts as a fast, trainable sampler for the energy model, enabling efficient training of deep energy functions on high-dimensional data.

The Dual-Model Framework

The proposed architecture consists of two complementary neural networks that interact during training:

  1. Deep Energy Model (DEM): Represented as $E_\Theta(x)$, this model maps input data to a scalar energy value. It utilizes a "Product of Experts" architecture where features $f_\varphi(x)$ are extracted and processed through a layer that approximates the free energy of a Restricted Boltzmann Machine (RBM).
  2. Deep Generative Model (DGM): A directed generator $G_\phi(z)$ that transforms a latent noise vector $z \sim P(z)$ into a synthetic data sample $x^-$.
Architecture of the Deep Energy Model (a) and Deep Generative Model (b), illustrating the interaction between the positive and negative phases.

Training and Entropy Regularization

The training process involves a coordinated "positive" and "negative" phase:

  • Energy Model Training: The DEM is trained to minimize the energy of real training data (positive phase) while maximizing the energy of samples generated by the DGM (negative phase). By using the DGM as the source for negative samples, the model bypasses the need for slow MCMC chains.
  • Generator Training: The DGM is trained to produce samples that the DEM assigns low energy. This effectively turns the energy function into a non-saturating discriminator. Unlike standard GAN discriminators that output probabilities, the energy function provides a continuous gradient surface even when the generator is highly accurate.
  • Entropy Regularization: To prevent the generator from collapsing into a few modes (mode collapse), the authors introduce an entropy regularizer. They employ a heuristic approach by maximizing the variance parameters within the generator's Batch Normalization layers, forcing diversity in internal activations and, consequently, the output samples.

Experimental Evaluation

The framework was evaluated on synthetic 2D datasets and high-dimensional image datasets including MNIST, CelebA, and LSUN.

2D Synthetic Data

On datasets like the "four-spin" and "two-spiral" distributions, the model demonstrated an ability to capture disjoint modes and complex geometric manifolds. The energy function $E_\Theta$ successfully learned to assign low energy to the regions occupied by the data, while the generator $P_\phi$ produced samples that closely matched the true data distribution $P_D$.

Comparison of samples from the data distribution $P_D$ and model distribution $P_\phi$ (left) alongside the learned energy landscape $E_\Theta$ (right) for the 2D four-spin dataset.

High-Dimensional Image Generation

The model scaled effectively to 64x64 images from the CelebA and LSUN datasets. Qualitative results showed realistic face and scene generation using convolutional layers. Furthermore, latent space interpolation on MNIST revealed smooth transitions between digit classes (e.g., an 8 gradually turning into a 2), proving the model learned a coherent and continuous manifold rather than simply memorizing training examples.

Conclusion

By integrating energy-based estimation with directed generative modeling, this approach provides a robust alternative to traditional MCMC-based training. The energy function serves as a more informative signal for the generator than a binary classifier, while the generator provides the energy model with the efficient sampling it requires. This synergy allows for stable training of deep energy-based models on complex, high-dimensional datasets.

Summary updated

BibTeX
@misc{kim2016deep,
  author = {Taesup Kim and Yoshua Bengio},
  title = {{Deep Directed Generative Models with Energy-Based Probability Estimation}},
  year = {2016},
  eprint = {1606.03439},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1606.03439},
}
Figure