Deep Tempering

Guillaume Desjardins, Heng Luo, Aaron C. Courville, Yoshua BengioarXiv 2014

Abstract

Training Restricted Boltzmann Machines (RBMs) is notoriously difficult because standard sampling techniques easily get trapped in local optima. This paper introduces "Deep Tempering," a novel approach that replaces traditional temperature-based sampling with a stack of learned latent variable models (a Deep Belief Network). By swapping states between layers, the naturally fast-mixing deeper layers help the lower layers explore the data distribution efficiently, drastically reducing computational cost compared to standard tempering methods.

Introduction

To train energy-based models like RBMs, researchers must estimate the maximum likelihood gradient, which requires drawing samples from the model. Typically, this is done using Markov Chain Monte Carlo (MCMC) methods like Gibbs sampling. However, as a model learns, its probability distribution becomes highly peaked, causing Gibbs samplers to get trapped in high-probability regions (modes). This failure to explore the full distribution often leads to training divergence.

While Parallel Tempering (PT) addresses this by simulating multiple versions of the model at different "temperatures," it is computationally expensive, often requiring hundreds of intermediate chains. Deep Tempering (DT) aims to achieve the benefits of tempering without this massive overhead by learning the intermediate distributions.

Methods

Deep Tempering leverages the observation that deeper layers in a Deep Belief Network (DBN) naturally mix better. As data is transformed into abstract latent variables in higher layers, the energy landscape becomes smoother and easier to traverse.

The DT algorithm involves:

  1. Stacking: Building a hierarchy of RBMs (essentially a DBN).
  2. Joint Training: Training each layer to model the posterior of the layer below.
  3. Replica Exchanges: Proposing state swaps between neighboring layers.
  4. Top-Down Mixing: Using fast-mixing upper layers to generate diverse samples that cascade down to the bottom layer via swaps.
Algorithm 1 (DTLearn) and Algorithm 2 (DTNegSwaps) detailing the joint training and state swap mechanisms.

Experimental Evaluation

The method was evaluated on the "Artificial Modes" dataset—a synthetic collection of 28x28 binary images with five distinct modes. This dataset is designed to be challenging for sampling due to its narrow, high-probability modes. Its simplicity allows for the calculation of exact likelihoods, providing a clear metric for performance.

Results

Deep Tempering demonstrated significant improvements over standard RBMs and traditional tempering methods. While a single-layer RBM failed to learn the distribution, achieving a likelihood of only -329.6 nats, the Deep Tempered models (t-DBN2 and t-DBN3) reached much higher likelihoods.

Likelihood comparison across (a) RBM, (b) 2-layer tDBN, and (c) 3-layer tDBN for various learning rates.

Key findings include:

  • Efficiency: DT achieved competitive results using only 10 Markov chains, compared to 505 chains required by competing methods like CAST 1:100.
  • Mixing: State swaps occurred frequently (approximately 32% of the time), confirming effective communication between layers.
  • Better Bounds: Joint training via DT produced better likelihood lower bounds than traditional greedy layer-wise pre-training.

Conclusion

Deep Tempering demonstrates that depth can effectively substitute for temperature in MCMC sampling. By learning intermediate distributions through latent variables, DT provides a computationally efficient path to training complex energy-based models. Future work includes scaling this approach to high-dimensional real-world datasets and applying it to other architectures like Deep Boltzmann Machines.

Summary updated

BibTeX
@misc{desjardins2014deep,
  author = {Guillaume Desjardins and Heng Luo and Aaron C. Courville and Yoshua Bengio},
  title = {{Deep Tempering}},
  year = {2014},
  eprint = {1410.0123},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1410.0123},
}
Figure