Abstract
Restricted Boltzmann Machines (RBMs) and models derived from them have been successfully used as basic building blocks in deep artificial neural networks for automatic features extraction, unsupervised weights initialization, but also as density estimators. Thus, their generative and discriminative capabilities, but also their computational time are instrumental to a wide range of applications. Our main contribution is to look at RBMs from a topological perspective, bringing insights from network science. Firstly, here we show that RBMs and Gaussian RBMs (GRBMs) are bipartite graphs which naturally have a small-world topology. Secondly, we demonstrate both on synthetic and real-world datasets that by constraining RBMs and GRBMs to a scale-free topology (while still considering local neighborhoods and data distribution), we reduce the number of weights that need to be computed by a few orders of magnitude, at virtually no loss in generative performance. Thirdly, we show that, for a fixed number of weights, our proposed sparse models (which by design have a higher number of hidden neurons) achieve better generative capabilities than standard fully connected RBMs and GRBMs (which by design have a smaller number of hidden neurons), at no additional computational costs.
Introduction
Restricted Boltzmann Machines (RBMs) have long been the workhorses of unsupervised feature extraction and density estimation. However, their traditional "fully connected" architecture—where every visible neuron connects to every hidden neuron—presents a significant computational challenge. As data dimensionality grows, the number of weights explodes, leading to slow training and high memory usage.
Standard approaches to sparsity often involve "Train-Prune-Train" cycles, where a dense network is trained first and then pruned. This remains computationally expensive. This research explores whether we can design a sparse network architecture from the start that is mathematically optimized for information flow. By borrowing tools from network science, the authors demonstrate that RBMs can be redesigned to mimic the "small-world" and "scale-free" structures found in biological neural networks and the internet, creating models that are orders of magnitude faster without sacrificing performance.
Methods: The compleX Boltzmann Machine (XBM)
The authors propose the compleX Boltzmann Machine (XBM) for binary data and the GXBM for real-valued data. These models use complex network theory to determine their architecture before training begins. The topology is generated through a three-stage heuristic:
- Scale-Free Initialization: A degree sequence is generated following a power-law distribution. This creates a "scale-free" network where a few "hub" neurons have many connections, while most have only a few. Scale-free networks are inherently sparse.
- Small-World Adjustment: Connections are adjusted to ensure high clustering and short path lengths. Interestingly, the authors prove that standard RBMs are already small-world (with a diameter of 2), and they maintain this efficiency in their sparse version.
- Data-Driven Mapping: Hub neurons (those with the most connections) are mapped to data features with the highest variance. This ensures the model's most "attentive" units focus on the most informative parts of the input.
Experimental Evaluation
The models were evaluated across diverse benchmarks, including synthetic Gaussian distributions, the Geographical Origin of Music dataset, MNIST digits, CalTech 101 Silhouettes, and eight datasets from the UCI evaluation suite (e.g., Adult, Connect4, DNA, Mushrooms, and RCV1).
Key Results
- Massive Weight Reduction: For a network with 1,000 visible and 1,000 hidden neurons, the XBM reduced the number of weights by approximately 95x (two orders of magnitude).
- Superior Generative Performance: On the MNIST dataset, an XBM with ~388k weights achieved a test log-probability of -114.64, significantly outperforming a standard RBM with ~392k weights (-125.53).
- Computational Efficiency: Computational time in RBMs is directly proportional to the number of weights; thus, XBMs offer a linear speedup corresponding to their sparsity level.
- Robustness: XBMs outperformed other sparse variants, such as those using L2 regularization or fixed-probability sparsity, in 16 out of 18 evaluated cases.
Discussion and Conclusion
The findings suggest that the specific topology of a neural network acts as a beneficial "inductive bias." By concentrating representational power in a few highly connected hubs, XBMs mimic biological networks and achieve better generalization than dense models, even with fewer parameters. This proves that "how" you connect neurons is just as important as "how many" you connect.
While the results are impressive, future work will explore hyperparameter tuning specifically for sparse architectures and the application of these "compleX" layers in deeper structures like Deep Belief Networks (DBNs). By proving that density can be traded for topology, this research opens a path toward training massive neural networks on modest hardware.
Summary updated