[Paper Review] Training Deep Energy-Based Models with f-Divergence Minimization
This paper proposes f-EBM, a variational framework that enables training deep energy-based models using any f-divergence, not just KL divergence. By formulating a single-step minimax optimization with theoretical convergence guarantees, f-EBM achieves superior sample quality and robustness over contrastive divergence, particularly with divergences like Jensen-Shannon and Squared Hellinger in image generation and denoising tasks.
Deep energy-based models (EBMs) are very flexible in distribution parametrization but computationally challenging because of the intractable partition function. They are typically trained via maximum likelihood, using contrastive divergence to approximate the gradient of the KL divergence between data and model distribution. While KL divergence has many desirable properties, other f-divergences have shown advantages in training implicit density generative models such as generative adversarial networks. In this paper, we propose a general variational framework termed f-EBM to train EBMs using any desired f-divergence. We introduce a corresponding optimization algorithm and prove its local convergence property with non-linear dynamical systems theory. Experimental results demonstrate the superiority of f-EBM over contrastive divergence, as well as the benefits of training EBMs using f-divergences other than KL.
Motivation & Objective
- To address the limitation of training deep energy-based models (EBMs) exclusively via KL divergence, which restricts flexibility in mode coverage and sample quality.
- To develop a generalizable, variational framework that supports training EBMs using any f-divergence, enabling diverse training objectives.
- To provide theoretical convergence guarantees for the proposed optimization algorithm using non-linear dynamical systems theory.
- To demonstrate the practical benefits of alternative f-divergences—such as Jensen-Shannon, Squared Hellinger, and Reverse KL—over traditional contrastive divergence in image generation and reconstruction tasks.
Proposed method
- Proposes f-EBM, a variational framework that formulates f-divergence minimization between data and model distributions as a minimax optimization problem.
- Introduces a dual objective involving an energy function and a variational function to approximate the f-divergence using a single-step gradient update.
- Employs a single-step minimax optimization strategy to jointly update the energy and variational functions, avoiding iterative MCMC sampling during training.
- Uses Langevin dynamics for sampling during inference and training, with a replay buffer to stabilize generation.
- Applies spectral normalization and L2 regularization to improve training stability and generalization.
- Theoretically proves local convergence using non-linear dynamical systems theory, establishing stability of the optimization trajectory.
Experimental results
Research questions
- RQ1Can f-divergences other than KL be effectively used to train unnormalized energy-based models?
- RQ2Does the proposed f-EBM framework enable better sample quality and distribution coverage than contrastive divergence?
- RQ3Can the learned density ratio from f-EBM improve performance in downstream tasks like image inpainting and denoising?
- RQ4What is the theoretical convergence behavior of the f-EBM optimization algorithm?
- RQ5How do different f-divergences (e.g., Jensen-Shannon, Squared Hellinger) affect model performance in image generation under model misspecification?
Key findings
- f-EBM outperforms contrastive divergence in sample quality on CIFAR-10 and CelebA, with visual samples showing improved sharpness and diversity.
- Training with Jensen-Shannon and Squared Hellinger divergences leads to significant improvements in image inpainting and denoising, outperforming Reverse KL and KL-based baselines.
- The learned density ratio from f-EBM enables effective rejection sampling, allowing recovery of the true data distribution even under model misspecification—something contrastive divergence cannot achieve.
- f-EBM converges in 50K–80K iterations, comparable to contrastive divergence (75K), with similar time complexity per iteration (within a factor of 2).
- Intermediate Langevin dynamics samples show smoother and more coherent generation trajectories under f-EBM, especially with Squared Hellinger and Jensen-Shannon divergences.
- Nearest neighbor analysis confirms that f-EBM-generated images are more similar to real training images than those from KL-based models, indicating better distributional alignment.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.