From Boltzmann Machines to Neural Networks and Back Again

Surbhi Goel, Adam R. Klivans, Frederic Koehler

Introduction

Restricted Boltzmann Machines (RBMs) have long served as a foundational model in unsupervised learning, designed to capture complex, high-dimensional probability distributions. Despite their theoretical appeal, RBMs present significant computational challenges. The presence of latent (hidden) variables often forces a difficult choice: either restrict the model to "ferromagnetic" interactions (where all variables are positively correlated) or accept an exponential runtime that renders the model impractical for large-scale applications.

This research establishes a formal mathematical bridge between RBMs and two-layer feedforward neural networks, offering a path out of this computational deadlock. By demonstrating that predicting a visible node in an RBM is equivalent to a specific neural network task, the authors provide nearly optimal algorithms for structure learning and show that "supervised RBMs" can outperform standard neural networks under specific distributional assumptions.

The RBM-to-Neural Network Reduction

The core insight of this work is the "RBM-to-NN Reduction." The authors prove that the Bayes-optimal predictor for any single visible unit in an RBM—given the state of all other visible units—is mathematically identical to a two-layer feedforward neural network. This network utilizes a specific family of "tanh-like" activation functions.

This discovery transforms the unsupervised problem of learning an RBM's distribution into a supervised learning problem. Specifically, the task of "self-supervision"—predicting one part of the data from the rest—allows researchers to leverage the well-understood optimization landscape of neural networks to recover the underlying structure of the RBM.

Algorithmic Framework: $\ell_1$-Constrained Regression

To learn these equivalent networks, the authors propose a regression algorithm operating over a degree-$D$ monomial feature map. By applying $\ell_1$ regularization (akin to the Lasso method), the algorithm achieves superior sample complexity compared to standard kernel methods.

A key departure from previous literature is the focus on weight norms. While earlier bounds focused on the maximum degree of hidden nodes, this paper demonstrates that the $\ell_1$ norm of the weights is a more natural and effective measure of complexity. This allows the algorithm to be "adaptive," scaling with the actual strength of interactions rather than just the graph's connectivity. Furthermore, this approach enables structure learning: the "Markov Blanket" (the set of neighbors) of a node can be recovered by measuring the increase in prediction error when a specific node is excluded from the input.

Supervised RBMs and the Bayes Rule Trick

The paper also explores the inverse connection for classification tasks. Rather than learning a classifier directly, the authors suggest learning the generative model of the input data conditioned on the label. By applying Bayes' rule, they construct a classifier that incorporates the structural assumptions of the RBM.

This "Bayes Rule Trick" suggests that if the underlying data follows an RBM distribution, this specialized classifier can be significantly more efficient than a "distribution-agnostic" neural network. It argues for a paradigm shift: instead of learning networks in a vacuum, we should leverage known data structures to accelerate learning.

Empirical Results and Generative Diversity

The authors validated their approach using the MNIST and FashionMNIST benchmarks. On MNIST, the supervised RBM achieved an accuracy of 97.22%, surpassing standard RBM training methods like Contrastive Divergence and performing on par with polynomial kernel SVMs.

Beyond classification, the model retains its generative capabilities. Using Gibbs sampling, the authors demonstrated that the model could generate diverse and realistic images, such as different styles of handbags in the FashionMNIST dataset. However, the authors noted a "Gray Pixel" problem: because the model represents continuous grayscale values as combinations of binary spins, it occasionally struggles with fine-grained textures.

Theoretical Optimality and Complexity

The proposed algorithm achieves a runtime of $poly(n^D)$. Crucially, the authors provide a matching lower bound based on the "sparse parity with noise" conjecture, suggesting that no algorithm can perform significantly better in this regime. In specific conditions, such as Dobrushin’s uniqueness regime, the algorithm provides an exponential speedup in the runtime exponent compared to previous state-of-the-art methods.

Conclusion and Future Directions

While this work provides a robust theoretical foundation for learning RBMs, several avenues for future research remain. The current focus on binary ($\pm 1$) variables limits application to continuous real-world data; extending these proofs to Gaussian or Potts models (multi-valued spins) is a logical next step. Additionally, the structure learning algorithm requires "$\eta$-nondegeneracy," meaning interaction strengths must exceed a certain threshold to be detectable. Despite these limitations, the mathematical unification of RBMs and neural networks represents a significant step forward in both generative modeling and supervised learning theory.

Summary updated

BibTeX
@inproceedings{goel2020from,
  author = {Surbhi Goel and Adam R. Klivans and Frederic Koehler},
  title = {{From Boltzmann Machines to Neural Networks and Back Again}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=LtPqVpo4WK1},
}
Figure