Skip to main content
QUICK REVIEW

[Paper Review] Improved Contrastive Divergence Training of Energy Based Models

Yilun Du, Shuang Li|arXiv (Cornell University)|Dec 2, 2020
Generative Adversarial Networks and Image SynthesisComputer Science56 references29 citations
TL;DR

This paper proposes a simple yet effective improvement to contrastive divergence training in energy-based models by rigorously estimating a previously neglected gradient term that stabilizes training and enables use of modern deep learning components like self-attention. The method uses auto-differentiation and nearest-neighbor entropy estimators to compute this term efficiently, leading to improved sample quality, robustness, and stability across image generation, OOD detection, and compositional generation tasks without introducing new objectives or complex architectures.

ABSTRACT

Contrastive divergence is a popular method of training energy-based models, but is known to have difficulties with training stability. We propose an adaptation to improve contrastive divergence training by scrutinizing a gradient term that is difficult to calculate and is often left out for convenience. We show that this gradient term is numerically significant and in practice is important to avoid training instabilities, while being tractable to estimate. We further highlight how data augmentation and multi-scale processing can be used to improve model robustness and generation quality. Finally, we empirically evaluate stability of model architectures and show improved performance on a host of benchmarks and use cases,such as image generation, OOD detection, and compositional generation.

Motivation & Objective

  • To address training instabilities in contrastive divergence for energy-based models, which have limited the use of modern deep learning components.
  • To demonstrate that a previously ignored gradient term in the contrastive divergence objective is numerically significant and essential for training stability.
  • To show that efficient estimation of this term enables the use of self-attention, layer normalization, and longer training without spectral normalization or gradient clipping.
  • To improve MCMC mixing and sample diversity through data augmentation and multi-scale energy evaluation.
  • To empirically validate the method across benchmarks in image generation, OOD detection, and compositional generation.

Proposed method

  • The method estimates a previously neglected gradient term in the contrastive divergence objective that arises due to changes in the MCMC sampling process when the energy function is updated.
  • It uses auto-differentiation to compute the gradient of the energy function and nearest-neighbor entropy estimators to approximate the entropy of MCMC samples, enabling low-variance, tractable estimation of the full gradient.
  • Data augmentation is applied as semantically meaningful perturbations to encourage better mixing in MCMC chains by generating diverse negative samples.
  • Multi-scale energy evaluation is introduced, where the energy is computed at multiple resolutions (coarse and fine) during sampling to improve spatial coherence of generated images.
  • The approach is fully compatible with standard EBM training and does not require auxiliary networks, additional objectives, or architectural modifications.
  • The method is applied end-to-end to train energy-based models with improved stability and sample quality on benchmarks like CelebA-HQ and LSUN Bedroom.

Experimental results

Research questions

  • RQ1Is the neglected gradient term in contrastive divergence training numerically significant and worth estimating for training stability?
  • RQ2Can this gradient term be efficiently estimated without introducing high-variance estimators or auxiliary networks?
  • RQ3Does including this term allow the use of modern deep learning components like self-attention and layer normalization in EBM training?
  • RQ4Can data augmentation and multi-scale energy evaluation improve MCMC mixing and sample diversity?
  • RQ5Does the improved training stability lead to measurable gains in generation quality and robustness across multiple benchmarks?

Key findings

  • The neglected gradient term contributes significantly to the overall training gradient and is essential for avoiding training instabilities, particularly when using deep architectures.
  • Estimating this term via auto-differentiation and nearest-neighbor entropy estimators is both tractable and effective, enabling stable training without spectral normalization or gradient clipping.
  • The method allows the use of self-attention and layer normalization in EBM architectures, which were previously avoided due to instability.
  • Data augmentation as semantically meaningful perturbations significantly improves MCMC mixing and sample diversity, leading to more realistic generations.
  • Multi-scale energy evaluation improves spatial coherence of generated images without modifying the MCMC process, resulting in higher-quality samples.
  • On CelebA-HQ, the model achieves significantly higher attribute recovery accuracy (up to 15% improvement) in compositional generation tasks compared to IGEBM and JVAE baselines.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.