Deep Energy Estimator Networks

Saeed Saremi, Arash Mehrjou, Bernhard Schölkopf, Aapo HyvärinenarXiv 2018

Introduction

Learning the probability density of complex, high-dimensional data is a cornerstone of modern machine learning. However, traditional approaches often encounter significant obstacles. Kernel-based methods suffer from the "curse of dimensionality," while latent variable models frequently face the "curse of inference," requiring computationally intensive and often unstable Markov Chain Monte Carlo (MCMC) sampling to navigate complex probability landscapes.

Energy-Based Models (EBMs) offer a compelling alternative by defining an unnormalized log-density, known as the energy. While expressive, EBMs typically struggle with the "partition function"—a normalization constant that is practically impossible to calculate for deep architectures. Deep Energy Estimator Networks (DEEN) provide a hierarchical framework that sidesteps these pitfalls by parameterizing the energy function directly and optimizing it through a denoising score matching objective.

Methodology

DEEN utilizes a Multilayer Perceptron (MLP) to represent the energy function $E(x; \theta)$. To avoid the partition function, the authors employ Score Matching, which learns the gradient of the log-density (the score function) rather than the density itself.

Architectural and Objective Choices

  • Parzen Score Matching: By matching the score of a "smoothed" version of the data (using Parzen windows), the training objective is transformed into a supervised denoising task. This allows the model to learn the vector field that points from noisy samples back toward the high-probability data manifold.
  • Energy-First Parameterization: Unlike models that estimate the score function directly, DEEN estimates the scalar energy and derives the score via the gradient. This ensures the learned vector field is "conservative," meaning it always corresponds to a valid scalar energy function and is free from the instabilities of non-zero "curl."
  • Product of Experts (PoE): With a linear last layer, the MLP naturally acts as a Product of Experts. Each hidden unit contributes to the global energy landscape, enabling the model to represent intricate, multi-modal distributions.

Experimental Results

The efficacy of DEEN was demonstrated through experiments on synthetic 2D data, MNIST, and natural image patches.

Synthetic 2D Landscapes

In tests using spiral and Mixture of Gaussians (MoG) datasets, DEEN successfully reconstructed intricate energy landscapes. Unlike Contrastive Divergence (CD), which often suffers from mode collapse in these scenarios, DEEN accurately captured the underlying geometry of the data.

Spiral energy landscape learned by DEEN, demonstrating its ability to capture non-linear manifolds.
Mixture of Gaussians energy landscape, showing the model's capacity for multi-modal density estimation.

High-Dimensional Performance

On natural image patches from the van Hateren database, DEEN achieved a lower denoising error per pixel (0.0106) compared to standard signal processing baselines (0.0174). This performance validates the model's ability to scale to the complexities of real-world data.

Discussion

A key finding is the inherent stability of the energy-first approach. Direct score matching (DSM) can result in unstable score fields with high curl, which do not integrate to a single energy function. DEEN’s architecture guarantees stability by deriving the score from a scalar potential. Additionally, the denoising formulation avoids the $O(N^2)$ cost of computing the full Hessian of the energy, making the training of deep energy networks computationally feasible.

Conclusion

Deep Energy Estimator Networks represent a significant step forward in scalable density estimation. By leveraging score matching and a conservative energy parameterization, DEEN provides a stable and efficient alternative to traditional EBMs. Future research will focus on applying these learned energy landscapes to generative tasks and exploring the specialization of individual experts within the network hierarchy.

Summary updated

BibTeX
@misc{saremi2018deep,
  author = {Saeed Saremi and Arash Mehrjou and Bernhard Schölkopf and Aapo Hyvärinen},
  title = {{Deep Energy Estimator Networks}},
  year = {2018},
  eprint = {1805.08306},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1805.08306},
}
Figure