AI & ML Atlas
Deep LearningarchitectureAnimated walkthrough
Restricted Boltzmann Machines (RBM)
A two-layer generative network with visible and hidden units and no links inside a layer.
The idea
An RBM assigns an energy to each configuration of visible and hidden units; low energy means high probability. Because units in a layer are not connected to each other, each layer can be sampled all at once given the other. Training with contrastive divergence nudges the model toward reproducing the data.
E(v, h) = −vᵀWh − aᵀv − bᵀh
Watch it run
The pipeline lights up one step at a time. Use the controls to pause or step through it.
- 1Set the visible units to a data example.
- 2Sample the hidden units from the visible ones.
- 3Reconstruct the visible units from the hidden ones.
- 4Update the weights from the difference between data and reconstruction statistics.
E(v, h) = −vᵀWh − aᵀv − bᵀh
1/4
Step by step
- 1Set the visible units to a data example.
- 2Sample the hidden units from the visible ones.
- 3Reconstruct the visible units from the hidden ones.
- 4Update the weights from the difference between data and reconstruction statistics.
Where it is used
Collaborative filtering (Netflix Prize), pre-training.
Watch out for
Training is approximate and sensitive to tuning.