Generalizing Energy-based Generative ConvNets from Particle Evolution Perspective

Liang LinarXiv 2019

Introduction

Energy-Based Models (EBMs) represent a powerful class of generative models that define probability distributions through a learned energy function, typically parameterized by a deep neural network. The training of these models traditionally relies on "particle evolution," where initial noise samples are iteratively refined to match the target data distribution. However, standard approaches often struggle with stability and convergence. This paper introduces OT-EBM, a novel framework that reframes EBM learning as an optimal transport problem. By shifting from traditional Kullback-Leibler (KL) divergence-based flows to a second-order Wasserstein gradient flow, the authors provide a more robust and efficient path for generative modeling.

The Challenges of Traditional EBM Training

Standard EBM training typically utilizes Stochastic Gradient Langevin Dynamics (SGLD) to push particles toward low-energy regions. This methodology faces three primary obstacles:

  1. KL Vanishing and Asymmetry: The use of KL divergence can lead to vanishing gradients when the model and data distributions lack sufficient overlap, often resulting in particle collapse.
  2. Stochastic Inefficiency: SGLD relies on random diffusion. This inherent noise necessitates a high number of particles and sampling steps to accurately approximate the target distribution, increasing computational costs.
  3. Non-smooth Transportation: The paths taken by particles during SGLD are often jagged and unstable. This lack of smoothness frequently leads to mode collapse, where the model fails to capture the full diversity of the data manifold.

The OT-EBM Framework

To address these limitations, the authors propose a "near-optimal" numerical scheme based on Optimal Transport (OT). The core of OT-EBM lies in the transition from KL discrete flow to the Jordan-Kinderlehrer-Otto (JKO) scheme, which utilizes the Wasserstein metric. This approach treats the learning process as moving mass along the most efficient paths (geodesics) on the data manifold.

Theoretical Foundations

The framework is built upon several key innovations:

  • Fokker-Planck Bridge: The authors utilize the Fokker-Planck equation to link individual particle dynamics with the global evolution of probability density.
  • Second-Order Approximation: To make Wasserstein gradient flow computationally tractable for high-dimensional deep learning, the authors derive a second-order approximation. This results in a parameter update rule for the energy function ($\theta$) that incorporates a "convexity correction" term.
  • Deterministic Particle Evolution: Unlike the stochastic nature of SGLD, OT-EBM derives a deterministic update rule. This makes the forces acting on particles more predictable, leading to more stable training trajectories.
  • Lipschitz Regularization: By enforcing an $L$-Lipschitz constraint on the energy function, the model prevents gradient explosions and ensures that particle velocity remains bounded.

Experimental Evaluation

The authors evaluated OT-EBM across a diverse range of datasets, from toy manifolds to high-resolution images and structural data.

Image Synthesis

On the CIFAR-10 benchmark, OT-EBM demonstrated superior performance compared to standard EBMs in terms of both Inception Score (IS) and Fréchet Inception Distance (FID). Notably, the framework enabled the stable generation of high-resolution (256x256) images from the CelebA-HQ and FFHQ datasets—a task where traditional sampling-based EBMs often fail due to the curse of dimensionality. The model also showed significant robustness to high learning rates, maintaining sample quality where standard EBMs typically collapsed.

Graph Inference

Beyond images, OT-EBM was applied to discrete graph inference using the Cora citation network. By treating a Graph Convolutional Network (GCN) as an energy function, the model achieved a training accuracy of 0.64, nearly doubling the 0.34 accuracy achieved by traditional EBM approaches. This suggests that the OT-EBM framework generalizes well to non-Euclidean data structures.

Key Insights and Convergence

A critical insight of this work is that "smoothness is king." By leveraging the Wasserstein metric, the model avoids the "shattering" of the energy landscape common in KL-based models. The derived update rule effectively acts as a two-step lookahead algorithm, considering not just the current particle positions but their projected future states. Convergence analysis via Mean Absolute Energy Error (MAEE) curves indicates that OT-EBM converges faster and maintains greater stability than the erratic spikes observed in SGLD-based training.

Conclusion and Future Work

OT-EBM provides a theoretically grounded and practically effective alternative to traditional EBM training. While the second-order numerical approximation introduces some computational overhead compared to simple Maximum Likelihood Estimation (MLE), the gains in stability and sample quality are substantial. Future research may explore integrating the deterministic forces of OT-EBM with advanced optimizers like Adam or applying the framework to multi-modal data distributions.

Summary updated

BibTeX
@misc{lin2019generalizing,
  author = {Liang Lin},
  title = {{Generalizing Energy-based Generative ConvNets from Particle Evolution Perspective}},
  year = {2019},
}
Figure