Paper Feed

Revisited · 1985 Ripe now AI / ML ✓ read

A learning algorithm for boltzmann machines

D ACKLEY, G HINTON, T SEJNOWSKI

TL;DR. In 1985 Ackley, Hinton, and Sejnowski showed that a network of stochastic binary units, running at thermal equilibrium, can learn a generative model of data with a rule that is purely local: compare pairwise correlations when the network is "awake" (clamped to data) versus "dreaming" (running free), and nudge weights toward the difference. The algorithm was correct but computationally hopeless — reaching equilibrium by simulated Gibbs sampling on a ~1 MIPS serial machine devoured everything. Forty years later, hardware that physically thermalizes — p-bit circuits, thermodynamic sampling chips — turns the fatal cost into a free property of matter, and the original unrestricted algorithm deserves another run.

The idea as they had it

The mid-1980s backdrop: perceptrons were dead-ended on non-linearly-separable problems, backpropagation was circulating but not yet published in its famous form (Rumelhart, Hinton & Williams appeared in 1986), and Hopfield had just shown (1982) that a symmetric network of binary units performs gradient descent on an energy function, giving associative memory a physics-flavored foundation. The Boltzmann machine was the stochastic generalization: instead of deterministically descending the energy, each unit flips on with probability

p(s_i = 1) = \frac{1}{1 + e^{-\Delta E_i / T}},

where \Delta E_i is the energy drop from turning unit i on and T is a temperature. Run long enough, the network samples states from the Boltzmann distribution P(\mathbf{s}) \propto e^{-E(\mathbf{s})/T}, with E(\mathbf{s}) = -\sum_{i<j} w_{ij} s_i s_j (biases folded in). Stochasticity buys two things Hopfield nets lack: escape from local minima, and — the deeper point — a probability distribution over states rather than a set of fixed points. The network doesn't store memories; it embodies a distribution.

The learning problem then becomes: sculpt the weights so that the equilibrium distribution over the visible units matches the data distribution. The paper's central result is that the gradient of the KL divergence between data and model has an astonishingly simple form:

\frac{\partial \, \mathrm{KL}}{\partial w_{ij}} \propto \langle s_i s_j \rangle^{+} - \langle s_i s_j \rangle^{-}

where \langle \cdot \rangle^{+} is the correlation between units i and j at equilibrium with visible units clamped to data (the wake phase), and \langle \cdot \rangle^{-} is the same correlation with the network running free (the dream phase, "negative" or "sleep" statistics). Increase weights on connections that co-fire more under data than under fantasy; decrease the rest. When the fantasies become statistically indistinguishable from the data, the gradient vanishes.

Three things made this electrifying. First, hidden units: the algorithm trains units that no teacher ever touches, solving the credit-assignment problem for internal representations without backpropagating anything. Second, locality: each synapse needs only the activity of the two units it connects, plus a global wake/sleep signal — biologically far more plausible than backprop, and a live influence on ideas about sleep and memory consolidation ever since. Third, the framing itself: learning as shaping an equilibrium distribution, i.e., maximum-likelihood training of an energy-based generative model. That framing is the direct ancestor of everything we now call energy-based modeling, and the wake/dream contrast is the ancestor of contrastive learning.

Wake (clamped) Dream (free-running) visible units = data visible units fantasize hidden units, sampled to equilibrium everything sampled to equilibrium measure ⟨sᵢsⱼ⟩⁺ measure ⟨sᵢsⱼ⟩⁻ Δwᵢⱼ ∝ ⟨sᵢsⱼ⟩⁺ − ⟨sᵢsⱼ⟩⁻ purely local: each synapse sees only its own two units
The whole algorithm: run the same physical dynamics twice, once clamped to data and once free, and move each weight toward the difference in local correlations. No error signal is propagated anywhere.

In the paper they demonstrated it on tiny problems — a 4-2-4 encoder (forcing hidden units to invent a binary code) and a shifter task — and even these took heroic amounts of simulation.

Why it could not work then

Every quantity in the learning rule is an expectation at thermal equilibrium, and equilibrium had to be simulated: sequential Gibbs sweeps, with simulated annealing from high to low temperature to avoid getting stuck. Each training step needs equilibration twice (wake and dream), for every data case, for every gradient step. And mixing time is the killer: for a multimodal distribution — which is precisely what you're trying to learn — Gibbs chains can take exponentially long in the barrier heights to hop between modes. The dream-phase statistics are estimated from a chain that may never visit the modes that matter, so the gradient is not just slow, it's biased in exactly the regime where the model is getting good.

Put numbers on it. A VAX-11/780 or Lisp machine of 1985 executed roughly 10^6 instructions per second; a single stochastic unit update (compute \Delta E_i, exponentiate, draw a random number) costs tens of instructions, so call it roughly 10^410^5 unit-updates per second. Equilibrating a network of a few hundred units might need thousands of sweeps; multiply by two phases, hundreds of patterns, and thousands of gradient steps, and a toy problem is days of compute. The paper's own experiments used networks of tens of units. Scaling to images was not a matter of patience — it was off by many orders of magnitude, and the mixing-time problem gets worse with scale, not better.

Stochastic unit-updates per second, roughlylog10(updates/s)024681012144.5VAX-class serial sim (1985)12GPU Gibbs sampling (2026)141M-p-bit physical array (projected)orders of magnitude; the p-bit figure assumes ~10^8 intrinsic flips/s per device, all in parallel

What changed

Two things, on very different timescales.

The algorithmic detour (2002–2012). Hinton's fix was to amputate the hard part. Restrict connectivity to a bipartite visible–hidden graph (the RBM) so that Gibbs sampling alternates in two parallel blocks, and replace equilibrium dream statistics with contrastive divergence — one or a few Gibbs steps from the data. This is a biased gradient, but it works, and stacked RBMs became deep belief networks (Hinton, Osindero & Teh, 2006), the pretraining trick that relaunched deep learning. Salakhutdinov and Hinton later trained deep Boltzmann machines proper. But once ReLU networks, GPUs, and big labeled data arrived, backprop won outright, and Boltzmann machines became a historical footnote — one prominent enough that the 2024 physics Nobel to Hopfield and Hinton cited exactly this line of work.

The hardware turn (2019–now). The deeper fix is to stop simulating thermal equilibrium and use it. A p-bit — typically a stochastic magnetic tunnel junction, though CMOS versions exist — is a device that physically fluctuates between 0 and 1 at rates around 10^710^9 flips per second, with a bias controllable by an input voltage. Wire p-bits together with programmable couplings and you have a Boltzmann machine implemented in matter: the device physics is the Gibbs sampler, all units update in parallel, and each flip costs femtojoules-to-picojoules rather than a GPU's nanojoules per equivalent simulated update. Camsari, Datta and colleagues demonstrated small p-bit systems (including an 8-p-bit factorization demo in Nature, 2019); startups — Extropic, Normal Computing — are building "thermodynamic sampling" chips whose explicit pitch is energy-based generative modeling at a small fraction of GPU energy. D-Wave's annealers have also been used to draw approximate Boltzmann samples for training, with mixed results. A million-p-bit array flipping at 10^8 Hz performs roughly 10^{14} stochastic updates per second in a few watts — the quantity that was the bottleneck in 1985 becomes nearly free.

The honest caveat: hardware parallelism attacks the per-sweep cost, not the mixing time. Multimodal distributions still mix slowly in wall-clock terms unless you add annealing schedules, parallel tempering (cheap when replicas are just more physical hardware), or clever couplings. Analog device variability and limited coupling precision are real engineering problems.

What a serious 2026 revival looks like

Take the 1985 algorithm essentially verbatim — full, unrestricted connectivity, wake/dream contrastive statistics, local updates — and map it onto a thermodynamic sampler:

  • Reuse: the exact learning rule, and the two-phase protocol. On physical hardware, "clamp the visibles" means pinning some device biases; "measure \langle s_i s_j \rangle" means integrating a coincidence counter at each coupling — also local, also parallel. The weight update could even happen on-chip, making training itself a physical relaxation.
  • Replace: raw pixels as visible units. Let a frozen pretrained encoder map images/audio into a few thousand discrete or binarized latents, and train the Boltzmann machine as a prior over latents — the same division of labor as VQ-VAE-style pipelines. This sidesteps the known weakness of BMs on high-dimensional continuous data.
  • Replace: single-chain equilibration with hardware parallel tempering — dozens of replicas at different temperatures, swapping states, which in silicon is just more area.
  • Target workloads where sampling is the product: generative modeling of discrete structures, combinatorial optimization, Bayesian posterior sampling, and hybrid systems where a GPU network proposes and a thermodynamic chip handles the intractable expectation. The metric to beat is joules per effective sample versus MCMC or diffusion-model sampling on a GPU; three-plus orders of magnitude looks plausible on paper, but nobody has shown it at scale.

There's also a scientific payoff: a physically thermalizing learner with local plasticity and a wake/sleep alternation is the cleanest testbed we have for theories linking sleep, replay, and synaptic homeostasis to generative-model learning.

Verdict and open questions

The 1985 paper has already been vindicated once — via RBMs and the 2006 revival — and its conceptual framing (energy-based models, contrastive objectives, negative sampling) permeates modern ML. The hardware vindication is in progress and unproven: p-bit demos are still small (thousands of devices, not millions), thermodynamic-chip results are mostly company-reported, and the mixing-time problem is displaced rather than solved. Open questions: can analog couplings hold enough precision for gradient learning to converge; does physical parallel tempering tame multimodality at scale; and can any of this beat a GPU on a workload people actually pay for. But the core diagnosis holds: the Boltzmann machine failed on a compute constraint, not a conceptual one, and that constraint is dissolving.

Where to read

The paper is at doi.org/10.1016/s0364-0213(85)80012-4 (bibliographic details verified; note the citation count above reflects one indexed version — the paper's true influence is far larger). Read alongside: Hopfield (1982) for the deterministic ancestor; Hinton (2002), "Training products of experts by minimizing contrastive divergence," for the algorithmic escape hatch; Hinton, Osindero & Teh (2006) for deep belief nets; and Camsari, Sutton & Datta's work on p-bits (e.g., "p-bits for probabilistic spin logic," and the 2019 Nature factorization paper) for the hardware that finally speaks the paper's native language.