From Boltzmann Machines to Neural Networks and Back Again

Surbhi Goel, Adam R. Klivans, Frederic Koehler

Graphical models are essential tools for modeling high-dimensional data, but learning their structures becomes notoriously difficult when "latent" (hidden) variables are involved. The Restricted Boltzmann Machine (RBM) is perhaps the most iconic example of such a latent variable model. Historically, provable algorithms for learning RBMs have been trapped between two extremes: they either rely on restrictive assumptions (such as requiring all variables to be positively correlated, known as "ferromagnetic" models) or they suffer from computational inefficiency, scaling exponentially with the degree of the nodes ($n^{O(d)}$).

This paper establishes a formal mathematical connection between RBMs and two-layer feedforward neural networks. By proving that predicting a visible unit in an RBM is equivalent to a specific neural network architecture, the authors derive nearly optimal algorithms for learning RBM structures and demonstrate how RBM-based distributional assumptions can accelerate supervised learning.

The Theoretical Bridge: RBMs to Neural Networks

The core contribution of this work is a theoretical bridge built upon a novel reduction. The authors realize that the conditional distribution of a visible unit in an RBM is essentially an Ising model on a "star graph." Using principles from Belief Propagation, they prove that the Bayes-optimal predictor for a visible unit—given all others—is exactly a two-layer feedforward neural network. This induced network utilizes a specific family of activation functions that interpolates between a linear identity and a $\tanh$ function.

To learn the RBM, the problem is reduced to learning this induced neural network. The authors employ a regression approach over a "monomial feature map" (analyzing combinations of input variables) while enforcing $\ell_1$ constraints to maintain model sparsity and interpretability.

Crucially, this approach shifts the computational bottleneck. Instead of the runtime depending on the maximum degree of a node ($d$), it depends on the $\ell_1$ norm of the weights ($\lambda$). This norm-based complexity leads to an exponential improvement in runtime ($n^{\log d}$ vs. $n^d$) in many practical regimes. Furthermore, by linking the difficulty of learning RBMs to the "Sparse Parity with Noise" problem—a cornerstone of computational hardness in learning theory—the authors prove their algorithm is nearly optimal. They provide a matching lower bound showing that their $poly(n^D)$ runtime is essentially the best possible without a fundamental breakthrough in computer science.

Supervised RBMs and Generative Performance

Leveraging the connection between RBMs and feedforward networks, the authors initiate the study of "Supervised RBMs." By assuming the input data follows an RBM distribution, neural networks can be learned faster than on arbitrary, unstructured data. They adapt a greedy algorithm that maximizes conditional covariance to identify the "two-hop neighborhood" (the Markov blanket) of a node, allowing for efficient graph structure reconstruction.

The authors evaluated their Supervised RBM approach on two classic computer vision benchmarks: MNIST and FashionMNIST. The model achieved a highly competitive 97.22% accuracy on MNIST, outperforming standard RBM training methods like Contrastive Divergence (CD), which typically hover around 95%. On the more complex FashionMNIST dataset, it achieved 88.84% accuracy.

Beyond classification, the model retains the generative capabilities inherent to RBMs. Unlike standard Convolutional Neural Networks (CNNs), the Supervised RBM can successfully sample new images after learning, capturing the underlying diversity of the training data.

Generated samples from the Supervised RBM trained on the FashionMNIST dataset.

Limitations and Future Directions

While the theoretical and empirical results are strong, the current work primarily focuses on binary variables ($\pm 1$). Although the mathematical foundations can theoretically extend to "Potts models" (variables with more than two states), the primary proofs and experiments remain in the binary domain.

Consequently, while the generative samples are diverse, they can lack the crispness of real images. The model currently represents gray pixels as a "checkerboard" of black and white, limiting its ability to capture fine-grained textures. A promising future direction is extending this framework to real-valued continuous variables, which would allow the model to handle standard image data more naturally without relying on binary approximations.

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