On the Challenges of Physical Implementations of RBMs

Vincent Dumoulin, Ian J. Goodfellow, Aaron C. Courville, Yoshua Bengio

Abstract

Restricted Boltzmann Machines (RBMs) are powerful generative models whose training is often bottlenecked by the high computational cost of MCMC sampling. Physical hardware, such as quantum annealers, offers a potential solution by leveraging natural system dynamics for sampling. However, physical implementations introduce constraints: noisy parameters, limited parameter ranges, and restricted connectivity. This paper investigates these constraints through simulation, finding that while models are robust to noise and range limits, restricted topology remains the primary obstacle to performance.

Introduction

RBMs are a cornerstone of unsupervised learning, yet their reliance on drawing samples from the model distribution during the "negative phase" of training creates a significant bottleneck. On classical hardware, Markov Chain Monte Carlo (MCMC) methods like Gibbs sampling struggle to mix as the energy landscape develops sharp modes.

"Physical computation" presents an alternative: building systems whose natural equilibrium corresponds to the RBM's distribution. Yet, hardware is imperfect. This study evaluates three key physical constraints:

  1. Noisy parameters: Precision limits in weights and biases.
  2. Limited range: Physical bounds on parameter magnitudes.
  3. Restricted topology: Sparse connectivity patterns, such as the Chimera graph.

Methodology

The authors utilized a GPU-based software simulator to isolate and measure the impact of each constraint.

  • Noise: Gaussian noise was added to weights and biases during training and/or testing.
  • Range: Parameters were clipped to various thresholds.
  • Topology: Connectivity was restricted to match the Chimera graph used in D-Wave hardware.
  • Evaluation: Models were trained on MNIST, Connect-4, and OCR Letters using Persistent Contrastive Divergence (PCD-15). Performance was quantified via Negative Log-Likelihood (NLL) estimated through Annealed Importance Sampling (AIS).

Results and Discussion

Robustness to Noise and Range

The study found that RBMs are surprisingly resilient to limited parameter ranges. Performance degradation is negligible as long as the maximum magnitude remains above 1.0. Below this threshold, NLL increases sharply as the model loses the ability to represent complex distributions.

Regarding noise, the authors discovered that training with noise acts as a form of regularization. Models trained with noise are significantly more robust to noise encountered during sampling than those trained in noise-free environments. For instance, training an RBM with a noise level of $\sigma=0.1$ and then sampling with that same noise level resulted in a 21.9% better NLL than a model trained without noise but sampled with it. This suggests that the training process "repels" parameters from regions that produce poor samples under noise.

Figure 4: Test NLL vs. test noise level for models trained with and without noise, demonstrating increased robustness when noise is present during training.

The Topology Trap

Restricted connectivity proved to be the most significant hurdle. While random sparsity is manageable (e.g., removing 50% of connections only increased NLL by ~4.3%), the structured sparsity of hardware graphs like Chimera—which can remove over 99% of potential connections—drastically reduces generative quality, jumping NLL from ~138 to ~200.

The research highlights that the mapping of data to the physical graph is critical. A "pixel blocks" mapping that preserves local connectivity in images performs significantly better than fragmented alternatives. This mapping strategy keeps local image pixels connected to the same hardware clusters, mitigating some of the information loss inherent in sparse topologies.

Figure 1: Mapping strategies for restricted hardware topologies, illustrating pixel block and extended pixel block arrangements.

Conclusion

The findings suggest that hardware developers should prioritize connectivity over extreme precision or wide parameter ranges. RBMs can adapt to noise and clipping through informed training strategies, but the "topology trap" requires more sophisticated mapping techniques or denser physical interconnects to overcome. Future research should focus on developing hardware with denser interconnects or finding algorithmic ways to map complex model topologies onto restricted physical grids more efficiently.

Summary updated

BibTeX
@inproceedings{dumoulin2014challenges,
  author = {Vincent Dumoulin and Ian J. Goodfellow and Aaron C. Courville and Yoshua Bengio},
  title = {{On the Challenges of Physical Implementations of RBMs}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2014},
  doi = {10.1609/aaai.v28i1.8924},
}
Figure