A Boltzmann machine is a simple kind of artificial neural network. It consists of a set of vertices, analogous to the neurons of a brain, which are connected to each other by edges, analogous to the connections between neurons. Each vertex has a "bias" associated with it, and each edge has a "weight" associated with it. A vertex is either "on" or "off". Its state is either "clamped", meaning fixed from outside, or left free, in which case the vertex chooses its own state at random, with a probability of being on that depends on its bias plus the weights of its edges to the other vertices that are currently on. A positive weight means two vertices tend to be on together, a negative weight means they tend to disagree, and a bias sets how readily a vertex turns on by itself. The machine can be used in two modes. In "learning" mode, it takes a dataset of on/off patterns (binary vectors) and gradually adjusts its weights and biases until the patterns it produces when left to run freely occur about as often as they do in the data. In "query" mode, some vertices are clamped to known values and the rest are left free; how often each free vertex turns on tells you how likely it is, given what is known. For example, a machine trained on weather records, with "cloudy" clamped on, will be able to report how likely rain is. A Boltzmann machine (also called Sherrington–Kirkpatrick model with external field or stochastic Ising model), named after Ludwig Boltzmann, is a spin-glass model with an external field, i.e., a Sherrington–Kirkpatrick model, that is a stochastic Ising model. It is a statistical physics technique applied in the context of cognitive science. It is also classified as a Markov random field. Boltzmann machines are theoretically intriguing because of the locality and Hebbian nature of their training algorithm (being trained by Hebb's rule), and because of their parallelism and the resemblance of their dynamics to simple physical processes. Boltzmann machines with unconstrained connectivity have not been proven useful for practical problems in machine learning or inference, but if the connectivity is properly constrained, the learning can be made efficient enough to be useful for practical problems. They are named after the Boltzmann distribution in statistical mechanics, which is used in their sampling function. They were developed by Geoffrey Hinton, Terry Sejnowski and coworkers in 1983–1985 and popularized in the cognitive science and machine learning communities, as part of "energy-based models" (EBM), because Hamiltonians of spin glasses as energy are used as a starting point to define the learning task.
Structure
A Boltzmann machine, like a Sherrington–Kirkpatrick model, is a network of units with a total "energy" (Hamiltonian) defined for the overall network. Its units produce binary results. Its units are stochastic: each unit decides at random whether to be on or off. The global energy E in a Boltzmann machine is identical in form to that of Hopfield networks and Ising models:
E=−(∑i<jwijsisj+∑iθisi) Where:
wij is the connection strength between unit j and unit i. si is the state, si∈{0,1}, of unit i. θi is the bias of unit i in the global energy function. (−θi is the activation threshold for the unit.) Often the weights wij are represented as a symmetric matrix W=[wij] with zeros along the diagonal.
Unit state probability The difference in the global energy that results from a single unit i equaling 0 (off) versus 1 (on), written ΔEi, assuming a symmetric matrix of weights, is given by:
ΔEi=∑j>iwijsj+∑j<iwjisj+θi This can be expressed as the difference of energies of two states:
ΔEi=Ei=off−Ei=on Substituting the energy of each state with its relative probability according to the Boltzmann factor (the property of a Boltzmann distribution that the energy of a state is proportional to the negative log probability of that state) yields:
ΔEi=−kBTln(pi=off)−(−kBTln(pi=on)), where kB is the Boltzmann constant and is absorbed into the artificial notion of temperature T. Noting that the probabilities of the unit being on or off sum to 1 allows for the simplification:
−ΔEikBT=−ln(pi=on)+ln(pi=off)=ln(1−pi=onpi=on)=ln(pi=on−1−1), whence the probability that the i-th unit is on is given by
pi=on=11+exp(−ΔEikBT), where the scalar T is referred to as the temperature of the system. This relation is the source of the logistic function found in probability expressions in variants of the Boltzmann machine.
Equilibrium state The network runs by repeatedly choosing a unit and resetting its state. After running for long enough at a certain temperature, the probability of a global state of the network depends only upon that global state's energy, according to a Boltzmann distribution, and not on the initial state from which the process was started. This means that log-probabilities of global states become linear in their energies. This relationship is true when the machine is "at thermal equilibrium", meaning that the probability distribution of global states has converged. Running the network beginning from a high temperature, its temperature gradually decreases until reaching a thermal equilibrium at a lower temperature. It then may converge to a distribution where the energy level fluctuates around the global minimum. This process is called simulated annealing. To train the network so that it will converge to a global state according to an external distribution over these states, the weights must be set so that the global states with the highest probabilities get the lowest energies. This is done by training.
Training The units in the Boltzmann machine are divided into 'visible' units, V, and 'hidden' units, H. The visible units are those that receive information from the 'environment', i.e. the training set is a set of binary vectors over the set V. The distribution over the training set is denoted P+(V). The distribution over global states converges as the Boltzmann machine reaches thermal equilibrium. We denote this distribution, after we marginalize it over the hidden units, as P−(V). Our goal is to approximate the "real" distribution P+(V) using the P−(V) produced by the machine. The similarity of the two distributions is measured by the Kullback–Leibler divergence, G:
… excerpt ends here. Continue reading the full article.



