Lably
Skip to content

Restricted Boltzmann machine

Class of artificial neural network

  • 5 min read
  • 4 chapters

Related on Lably

Through Neural network (machine learning), Probability distribution and Unsupervised learning

RBMs were initially proposed under the name Harmonium by Paul Smolensky in 1986, and rose to prominence after Geoffrey Hinton and collaborators used fast learning algorithms for them in the mid-2000s. RBMs have found applications in dimensionality reduction, classification, collaborative filtering, feature learning, topic modelling, immunology, and even many‑body quantum mechanics.

They can be trained in either supervised or unsupervised ways, depending on the task.

As their name implies, RBMs are a variant of Boltzmann machines, with the restriction that their neurons must form a bipartite graph:

  • a pair of nodes from each of the two groups of units (commonly referred to as the "visible" and "hidden" units respectively) may have a symmetric connection between them; and
  • there are no connections between nodes within a group.

By contrast, "unrestricted" Boltzmann machines may have connections between hidden units. This restriction allows for more efficient training algorithms than are available for the general class of Boltzmann machines, in particular the gradient-based contrastive divergence algorithm.

Restricted Boltzmann machines can also be used in deep learning networks. In particular, deep belief networks can be formed by "stacking" RBMs and optionally fine-tuning the resulting deep network with gradient descent and backpropagation.

Structure

The standard type of RBM has binary-valued (Boolean) hidden and visible units, and consists of a matrix of weights W of size m×n. Each weight element (wi,j) of the matrix is associated with the connection between the visible (input) unit vi and the hidden unit hj. In addition, there are bias weights (offsets) ai for vi and bj for hj. Given the weights and biases, the energy of a configuration (pair of Boolean vectors) (v,h) is defined as

E(v,h)=−∑iaivi−∑jbjhj−∑i∑jviwi,jhj

or, in matrix notation,

E(v,h)=−aTv−bTh−vTWh.

This energy function is analogous to that of a Hopfield network. As with general Boltzmann machines, the joint probability distribution for the visible and hidden vectors is defined in terms of the energy function as follows,

P(v,h)=1Ze−E(v,h)

where Z is a partition function defined as the sum of e−E(v,h) over all possible configurations, which can be interpreted as a normalizing constant to ensure that the probabilities sum to 1. The marginal probability of a visible vector is the sum of P(v,h) over all possible hidden layer configurations,

P(v)=1Z∑{h}e−E(v,h),

and vice versa. Since the underlying graph structure of the RBM is bipartite (meaning there are no intra-layer connections), the hidden unit activations are mutually independent given the visible unit activations. Conversely, the visible unit activations are mutually independent given the hidden unit activations. That is, for m visible units and n hidden units, the conditional probability of a configuration of the visible units v, given a configuration of the hidden units h, is

P(v|h)=∏i=1mP(vi|h).

Conversely, the conditional probability of h given v is

P(h|v)=∏j=1nP(hj|v).

The individual activation probabilities are given by

P(hj=1|v)=σ(bj+∑i=1mwi,jvi) and P(vi=1|h)=σ(ai+∑j=1nwi,jhj)

where σ denotes the logistic sigmoid.

The visible units of Restricted Boltzmann Machine can be multinomial, although the hidden units are Bernoulli. In this case, the logistic function for visible units is replaced by the softmax function

P(vik=1|h)=exp⁡(aik+ΣjWijkhj)Σk′=1Kexp⁡(aik′+ΣjWijk′hj)

where K is the number of discrete values that the visible values have. They are applied in topic modeling, and recommender systems.

Relation to other models

Restricted Boltzmann machines are a special case of Boltzmann machines and Markov random fields.

The graphical model of RBMs corresponds to that of factor analysis.

Sign in to keep reading

3 more chapters are free with a Lably account.

More in Computing and communication