All models

RBM

Binary visible and hidden units joined by symmetric weights, trained by contrastive divergence.

Historical · 93 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (23 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
252K
Operations
93
Framework
PyTorch
Recurrent
Yes
Published
1986, Parallel Distributed Processing, Volume 1, MIT Press
Authors
Paul Smolensky
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m2402
Graph hash
123a26babe26e6336141b8754ecbc4c5e28e19b3ba1f9e5f4f0d0b87be7012bc
Skeleton hash
123a26babe26e6336141b8754ecbc4c5e28e19b3ba1f9e5f4f0d0b87be7012bc
Architecture hash
9cbe605b817bf5c142784420142b18fea80e6bff78ac8799e7d765985cf866f2
Diagram SHA-256
ee3182e9fb9c50bd46c6fc34e437262de85af39dafc8cde24c824860da2c95de
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

About this model's family

A restricted Boltzmann machine is a two-layer network in which stochastic binary pixels connect to stochastic binary feature detectors through symmetric weights. The pixels are the visible units, because their states are observed, and the feature detectors are the hidden units. Every joint configuration of visible and hidden units has an energy, and training raises the probability of a training image by lowering its energy and raising the energy of other images. Hinton's guide describes their most important use as learning modules composed to form deep belief nets.

Training is usually by contrastive divergence. One iteration of alternating Gibbs sampling updates all the hidden units in parallel, then all the visible units in parallel. Hidden units turn on with a probability given by the logistic function of their total input. The guide insists on binary hidden states during reconstruction, because a hidden unit can convey at most one bit on average and real values would violate that bottleneck. The learning rule only crudely approximates the gradient, and Sutskever and Tieleman showed it follows the gradient of no function at all, yet it works well enough for many significant applications. The notation CDn means learning with n full steps of alternating Gibbs sampling.

The captured members are PyTorch implementations with 784 visible and 320 hidden units, differing only in how many Gibbs steps they run. The code they follow uses a mixture of CD-1 and persistent CD.

Key idea. The RBM is a bipartite energy-based model of binary data, visible pixels joined to hidden feature detectors by symmetric weights, trained by contrastive divergence and stacked to form deep belief nets.

  • RBM
  • restricted Boltzmann machine
  • Harmonium
  • Bernoulli-Bernoulli RBM
  • contrastive divergence
  • CD1
  • Gibbs sampling
  • deep belief net
  • Hinton
  • Smolensky

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@article{rbm1986,
  title = {Information Processing in Dynamical Systems: Foundations of Harmony Theory},
  author = {Paul Smolensky},
  year = {1986},
  journal = {Parallel Distributed Processing, Volume 1, MIT Press}
}