All models

RBM_BernoulliBernoulli

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

Historical · 21 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 (25 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
21
Framework
PyTorch
Recurrent
No
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
m2403
Graph hash
e2a392ebe40e9bc81a6f8fac1135aa8c8bcf686416c9607e5f1ffe8f0f253761
Skeleton hash
e2a392ebe40e9bc81a6f8fac1135aa8c8bcf686416c9607e5f1ffe8f0f253761
Architecture hash
b79db1cb8693eb8b920735f9cc47169a9a6354a7655bfda628991ae081243c36
Diagram SHA-256
f83a4e8c1a2f308535dfa12b236a038dbc2061012d2742a659d92c7f35b3fc5d
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}
}