NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

End-to-end Training of Deep Boltzmann Machines by Unbiased Contrastive Divergence with Local Mode Initialization

Shohei Taniguchi, Masahiro Suzuki, Yusuke Iwasawa, Yutaka Matsuo

Abstract

We address the problem of biased gradient estimation in deep Boltzmann machines (DBMs). The existing method to obtain an unbiased estimator uses a maximal coupling based on a Gibbs sampler, but when the state is high-dimensional, it takes a long time to converge. In this study, we propose to use a coupling based on the Metropolis-Hastings (MH) and to initialize the state around a local mode of the target distribution. Because of the propensity of MH to reject proposals, the coupling tends to converge in only one step with a high probability, leading to high efficiency. We find that our method allows DBMs to be trained in an end-to-end fashion without greedy pretraining. We also propose some practical techniques to further improve the performance of DBMs. We empirically demonstrate that our training algorithm enables DBMs to show comparable generative performance to other deep generative models, achieving the FID score of 10.33 for MNIST.

Introduction

Deep Boltzmann Machines (DBMs) are a class of undirected generative models that are theoretically powerful as universal approximators of discrete probability distributions. However, they have historically been notoriously difficult to train. The core challenge lies in gradient estimation; calculating expectations over the posterior and joint distributions is intractable. Standard methods like Persistent Contrastive Divergence (PCD) introduce bias, which often leads to poor convergence unless a complex, multi-stage "greedy layer-wise pretraining" process is employed.

While recent unbiased MCMC methods have been developed, they typically rely on Gibbs-sampler couplings that take an impractical amount of time to converge in high-dimensional spaces, such as image data. This study introduces a novel approach to overcome these limitations, enabling efficient end-to-end training.

Methods: UCD-LMI

We propose Unbiased Contrastive Divergence with Local Mode Initialization (UCD-LMI). This method is built upon three primary pillars:

  1. Unbiased MCMC with Couplings: We use a mathematical technique where two Markov chains are "coupled" to eventually take the same values. Once they meet, the bias in the gradient estimate is eliminated.
  2. Metropolis-Hastings (MH) Sampler: Instead of the standard Gibbs sampler, we utilize the Metropolis-Hastings algorithm. In high dimensions, MH has a very high rejection rate, which we turn into an advantage.
  3. Local Mode Initialization (LMI): This is the critical component. We use a fast local search algorithm to find a "local mode" (a state with very low energy) to initialize the Markov chains.

Because the chains start at a low-energy state in a high-dimensional space, the MH algorithm is extremely likely to reject any random proposal. This means the two coupled chains often "meet" in just a single step, making the unbiased gradient calculation incredibly efficient.

Key Insights and Results

The Blessing of Dimensionality

Usually, high dimensionality makes MCMC harder. However, our results show that in high dimensions, a Metropolis-Hastings sampler is actually more likely to stay put if initialized at a local mode. This speeds up the "coupling time," making the unbiased estimator faster as the problem size increases. As shown in Figure 1, while Gibbs-based coupling times explode with dimensionality, our MH + local search approach remains flat and efficient.

Comparison of coupling efficiency: MH with local search (green line) remains efficient in high dimensions compared to Gibbs-based methods which scale poorly.

Generative Quality and End-to-End Training

For years, the "joint training problem" forced researchers to train DBMs layer-by-layer. UCD-LMI proves that with an unbiased gradient and proper initialization, the entire stack can be trained from scratch.

Our empirical evaluations on standard benchmarks show significant improvements:

  • MNIST: Achieved a Fréchet Inception Distance (FID) of 10.33, outperforming VAEs (16.14) and performing comparably to WGANs (10.28).
  • CIFAR-10: Achieved an FID of 36.58, which is competitive with DCGAN and WGAN-GP, marking a major step forward for DBMs on natural images.

Downstream Applications: Image Completion

The trained models were successfully applied to missing value imputation. Because DBMs are undirected, they can naturally "reason" about any part of the input given the rest. Figure 2 illustrates the model's ability to complete masked images from the MNIST and Fashion-MNIST datasets.

Image completion results on MNIST and Fashion-MNIST, demonstrating the model's ability to reconstruct missing data.

Practical Techniques for Stability

Beyond the core algorithm, we found two techniques crucial for success:

  • Orthogonal Initialization: Initializing weights with semi-orthogonal matrices rather than standard Gaussian noise is vital due to the bidirectional nature of DBMs.
  • Simplified Centering: Mapping binary values from {0, 1} to {-1, 1} prevents gradient sparsity and stabilizes the training process.

Conclusion and Future Work

UCD-LMI demonstrates that DBMs can achieve generative performance on par with modern GANs and VAEs through efficient, unbiased training. The primary remaining limitation is scalability to high-resolution images due to the quadratic growth of parameters in fully connected layers. Future research will explore applying the UCD-LMI framework to locally-connected or convolutional DBM architectures.

Summary updated

BibTeX
@inproceedings{taniguchi2023end,
  author = {Shohei Taniguchi and Masahiro Suzuki and Yusuke Iwasawa and Yutaka Matsuo},
  title = {{End-to-end Training of Deep Boltzmann Machines by Unbiased Contrastive Divergence with Local Mode Initialization}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=Owyy08zQ_4w},
}
Figure