AI Glossary / Deep learning / Advanced
Restricted Boltzmann Machine
Definition
A restricted Boltzmann machine, or RBM, is an energy-based probabilistic model with visible units representing observed data and hidden units representing latent features. Connections run between the two groups, with no connections within either group. This restriction makes units in one group conditionally independent when the other group's states are given, simplifying inference and sampling.
What it means
An RBM learns a probability distribution over patterns rather than merely mapping an input directly to a fixed label. Its hidden variables provide a way to represent dependencies in the observed data. For example, combinations of visible features can become more probable under the learned model than unrelated combinations.
The hidden units are not automatically named concepts. A unit that responds strongly to certain inputs may be useful without having a simple human interpretation. A single RBM is also not the same thing as a complete deep belief network, although RBMs have been used as building blocks for such networks.
How it works
In a binary RBM, visible and hidden units take values zero or one. Weights and biases define an energy for each joint configuration. Lower energy corresponds to greater probability relative to other configurations, with a normalization constant accounting for all possibilities.
Given the visible vector, each hidden unit's activation probability is a sigmoid of its weighted input plus bias. Given hidden states, visible-unit probabilities can be calculated similarly. Alternating these conditional updates provides a sampling procedure.
Learning compares statistics associated with observed data against statistics associated with the model. Exact model expectations can be expensive, so practical methods use approximations such as contrastive divergence or persistent sampling. A short reconstruction chain is not an exact maximum-likelihood calculation. Variants support other unit types; binary formulas should not be applied indiscriminately to continuous or categorical data.
Three practical examples
- A research team learns features from small binary images and tests whether those features help a separate classifier. Feature learning and classification are distinct stages with separate evaluation requirements.
- A recommendation experiment models user-item patterns with a suitable RBM variant. It carefully distinguishes missing ratings from explicit negative preferences rather than encoding both as the same observed value.
- A teaching project generates toy binary patterns by alternating visible and hidden samples. Students compare generated frequencies with training patterns, while recognizing that realistic-looking samples alone do not prove an accurate distribution.
Think of it this way
Imagine a system that assigns different levels of compatibility to combinations of visible clues and hidden explanations. Training adjusts which combinations fit together well. The analogy helps explain joint modeling, but the hidden explanations are mathematical variables, not verified causes or factual accounts of how the data arose.
Worked example
Consider two binary visible units and one binary hidden unit. Let the connection weights be 1 and minus 1, the hidden bias be zero, and both visible biases be zero. For visible input [1, 0], the hidden unit's weighted input is 1. Its probability of being one is sigmoid(1), approximately 0.731.
The sampled hidden state is still either zero or one; it is not the number 0.731. If a sample gives hidden state one, the conditional visible probabilities are sigmoid(1) = 0.731 and sigmoid(minus 1) = 0.269. A newly sampled visible vector could therefore differ from the original.
For input [1, 1], the hidden weighted input becomes 1 minus 1 = 0, giving probability 0.5. This demonstrates how the same hidden unit responds differently to different patterns. No training update or partition-function calculation has been performed. The hand-selected parameters illustrate conditional probabilities, not a useful learned model or a prediction about real people.
Illustrative case study
Fictional Rowan Learning investigates an RBM as a feature-learning baseline for simplified worksheet images. An engineer observes decreasing reconstruction error and initially assumes the learned probability model must be improving equally quickly.
The team adds held-out assessment appropriate to its downstream classification task and inspects samples for missing pattern types. It also records the sampling procedure, initialization, and training settings. The final comparison keeps reconstruction quality separate from the usefulness of the extracted features. This invented case illustrates an evaluation distinction; it does not report results from a real organization or establish RBMs as the preferred method for document analysis.
Common misconceptions and mistakes
Restricted refers to the connection pattern, not to restricted access or limited permissions. Hidden units are conditionally independent given visible states; they are not necessarily independent after visible variables are marginalized out.
An RBM is not simply a deterministic autoencoder with different terminology. Reconstruction error is not identical to log-likelihood, and a short contrastive-divergence update is not an exact gradient of that likelihood. Low-energy states are favored by the model, but the model can still be wrong. Finally, a sampled binary state and its activation probability are different quantities and should not be substituted without understanding the algorithm.
Business use
RBMs are useful to understand when reviewing energy-based models, historical deep-learning methods, feature-learning experiments, or particular recommendation designs. Their suitability for a project depends on data representation, training stability, evaluation quality, and the alternatives available.
Ask what distribution or downstream task is being modeled, how missing observations are handled, and which sampling approximation is used. Compare against appropriate baselines under the same data split. Report the actual operational benefit rather than treating an attractive reconstruction as sufficient evidence that the model improves a business process.
People also ask
Are all RBMs binary?
No. Other visible and hidden unit types exist, with corresponding changes to their distributions and learning details.
Does an RBM need class labels?
It can model unlabeled data, although labels may be incorporated in particular designs.
Is it a Boltzmann machine?
It is a restricted form whose two-group connection structure makes important conditional calculations simpler.
Check your understanding
Why is the hidden probability 0.5 for input [1, 1]?
Answer: The positive and negative weighted contributions cancel, and sigmoid of zero is 0.5.
Can the binary hidden unit take state 0.731?
Answer: No. That is its activation probability in the first calculation.
Does improving reconstruction error prove better held-out classification?
Answer: No. The downstream task must be evaluated directly.
Related terms
- Energy-based model
- Latent variable
- Gibbs sampling
- Contrastive divergence
- Deep Belief Network
- Autoencoder
- Boltzmann machine
- partition function
Learn next
Set the example's hidden bias to minus 1 and recompute its activation probability for [1, 0] and [1, 1]. Then examine a single contrastive-divergence step, explicitly marking which quantities are probabilities, sampled states, and parameter updates.
More in Deep learning
- Relation network - A relation network is a neural-network module designed to learn from relationships between pairs of represented objects.
- Reservoir computing - Reservoir computing is an approach to processing time-dependent information in which an input drives a dynamical system, called a reservoir, and a readout...
- Residual Neural Network - A residual neural network is a neural network built with blocks that add a learned transformation to a shortcut transformation of the block's input.
- RNN-T - RNN-T stands for recurrent neural network transducer.
- SELU Function - The SELU function, short for scaled exponential linear unit, is a neural-network activation function with a scaled linear positive branch and a saturating...
- Sensor interface layer - A sensor interface layer is the part of a robotic or other sensing system that receives measurements from sensors and presents them to downstream software...
Sources
Geoffrey Hinton, A Practical Guide to Training Restricted Boltzmann Machines, version 1, 2010; binary model, conditional probabilities, contrastive divergence, and evaluation considerations: https://www.cs.toronto.edu/~hinton/absps/guideTR.pdf
Previous: Responsible AI Next: Restricted mean survival time