Exploring Bidirectional Bounds for Minimax-Training of Energy-Based Models

Cong Geng, Jia Wang, Li Chen, Zhiyong Gao, Jes Frellsen, Søren Hauberg · DOI

TL;DR

This paper tackles the notorious training instability of Energy-Based Models (EBMs) by introducing a novel "bidirectional bounds" approach. Instead of just minimizing a lower bound on the data log-likelihood (which can lead to issues), they propose simultaneously maximizing a lower bound and minimizing an upper bound. This "sandwiching" technique stabilizes training and leads to improved density estimation and sample generation.

What Problem Does This Paper Address?

Energy-Based Models (EBMs) are powerful tools for modeling probability distributions and estimating densities. However, training them is notoriously difficult, primarily due to the intractable normalization constant (partition function). A common approach to circumvent this is to link EBM training to Generative Adversarial Networks (GANs) by using a minimax game based on a variational lower bound of the log-likelihood. While this has shown promise, minimizing only a lower bound can lead to training instabilities, such as mode collapse or the objective diverging to negative infinity. This paper aims to address these instabilities by proposing a more robust training strategy.

Methods

The core contribution is the bidirectional bounds framework. Instead of a single lower bound, they propose to bound the negative log-likelihood $L(\theta)$ from both above and below: $[\underline{L(\theta)}] \le L(\theta) \le [\overline{L(\theta)}]$. The training then involves a minimax game:

  1. Minimize the lower bound $[\underline{L(\theta)}]$ with respect to the model parameters $\theta$.
  2. Maximize the upper bound $[\overline{L(\theta)}]$ with respect to the proposal distribution $p_g$.

They introduce and investigate four specific bounds:

  • Lower Bounds:
    • Singular Values of Generator Jacobian: Leverages the Jacobian of the generator network to bound the entropy of the proposal distribution. This method requires an iterative solver for the smallest singular value.
  • Mutual Information: Expresses the generator entropy in terms of mutual information, using a Jensen-Shannon divergence estimator. This requires an additional discriminator network.
  • Upper Bounds:
    • Gradient Penalty-like Bound: Inspired by WGAN-GP, this bound penalizes the gradient of the energy function. They prove this can act as an upper bound on the KL divergence between the proposal and true distributions.
  • Diffusion Process Bound: Utilizes a diffusion process (specifically, a Variance Exploding SDE) to create an upper bound on the KL divergence.

The paper also details algorithms for evaluating these bounds, particularly focusing on efficient computation of singular values and gradient penalties.

Datasets

The paper uses a variety of datasets for evaluation:

  • Toy Data: 25-Gaussians and Swiss-roll datasets for initial demonstrations.
  • Standard Datasets: MNIST, CIFAR-10, ANIMEFACE, and CelebA for benchmarking against state-of-the-art generative models.
  • LSUN Church: A large-scale dataset for evaluating scalability.

Key Insights and Ideas

  • The "Sandwich" Principle: Bounding the objective from both above and below provides a more stable training target than just a lower bound. This "sandwiching" effect is hypothesized to prevent the model from optimizing towards undesirable regions.
  • Gradient Penalties as Theoretical Bounds: The paper provides theoretical justification for using gradient penalties, not just as empirical heuristics for stabilization, but as actual upper bounds on the log-likelihood. This connects engineering practices to probabilistic principles.
  • Trade-offs in Lower Bounds: The singular value-based lower bound offers computational efficiency by avoiding extra networks but requires an iterative solver. The mutual information bound uses an extra network but is time-efficient. This allows for choosing bounds based on specific training constraints.
  • Bidirectional Bounds Stabilize Training: Empirically, the proposed bidirectional bounds consistently lead to stable training curves, avoiding the divergence seen with standard minimax training on a single lower bound.

Key Results

  • Stable Training: Bidirectional bounds consistently lead to stable training across various datasets and model configurations, as visualized by smooth loss curves.
  • High-Quality Samples: The methods achieve competitive or superior sample generation quality compared to state-of-the-art GANs and EBMs on datasets like CIFAR-10, ANIMEFACE, and CelebA. For instance, on CIFAR-10, their EBMs capture nearly all modes, and EBMSV+GP achieves the smallest KL divergence.
  • Improved Density Estimation: The models demonstrate improved density estimation capabilities, as evidenced by metrics like FID and Inception Score.
  • Scalability: The approach scales to high-dimensional datasets like ImageNet and LSUN Church, producing reasonable results.
  • Capacity Usage: Bidirectional bounds encourage the generator to increase its entropy and capacity usage, leading to better distribution coverage.

Limitations and Future Work

  • Diffusion Bound Heuristic: The diffusion-based upper bound relies on a heuristic approximation for the energy function $E_\theta(x,t)$ to satisfy the Fokker-Planck equation, lacking a strict theoretical guarantee.
  • Iterative Solver for Singular Values: The singular value-based lower bound requires an iterative solver, which, while efficient, might not always converge perfectly in practice. The authors note that they stop prematurely for fast computation, which empirically works well.
  • Parameter Tuning: The performance of the gradient penalty upper bound can be sensitive to parameter choices, particularly the entropy regularizer weight $\lambda$.
  • Future Work: The authors suggest exploring better network architectures, fine-tuning parameters, and specialized optimization strategies for improved performance on complex datasets. They also mention the potential for further improvement by integrating EBMs with diffusion processes.

Summary updated

BibTeX
@article{geng2025exploring,
  author = {Cong Geng and Jia Wang and Li Chen and Zhiyong Gao and Jes Frellsen and Søren Hauberg},
  title = {{Exploring Bidirectional Bounds for Minimax-Training of Energy-Based Models}},
  journal = {Int. J. Comput. Vis.},
  year = {2025},
  doi = {10.1007/s11263-025-02460-0},
}
Figure