AI & ML Atlas
Neural NetworksalgorithmAnimated walkthrough
Boltzmann Learning
Learns a stochastic network by matching its statistics to the data's.
The idea
A Boltzmann machine is a Hopfield-like network with random neurons whose probability of being on depends on the energy. Learning raises the probability of the data: the weight change is the difference between how often two units are on together in the data phase and in the free-running "dream" phase.
Δwᵢⱼ = η (⟨sᵢsⱼ⟩_data − ⟨sᵢsⱼ⟩_model)
Watch it run
The pipeline lights up one step at a time. Use the controls to pause or step through it.
- 1Clamp the visible units to a data example and let the hidden units settle (positive phase).
- 2Record how often pairs of units are both on.
- 3Release the visible units and let the network run freely (negative phase).
- 4Change each weight by η (data correlation − model correlation).
Δwᵢⱼ = η (⟨sᵢsⱼ⟩_data − ⟨sᵢsⱼ⟩_model)
1/4
Step by step
- 1Clamp the visible units to a data example and let the hidden units settle (positive phase).
- 2Record how often pairs of units are both on.
- 3Release the visible units and let the network run freely (negative phase).
- 4Change each weight by η (data correlation − model correlation).
Where it is used
Foundational for RBMs and energy-based models.
Watch out for
Sampling to equilibrium is extremely slow, so restricted versions are used.