Greatest Benefit
John Hopfield delivering a lecture at a symposium celebrating the work of Professor Sir David MacKay FRS, held 14-15 March 2016.
Physics 2024

From Memory Valleys to Networks That Dream

Hopfield’s model placed memories in the valleys of an energy landscape; Hinton’s lecture describes noise that lets a net escape those valleys, a wake phase and a sleep phase, a shortcut called contrastive divergence, and stacks of machines that learn layers of features.

John J. Hopfield and Geoffrey HintonHonoured “for foundational discoveries and inventions that enable machine learning with artificial neural networks”

Told in 2 voices, 2024The laureates’ own wordsThe prize-awarding body

2024
  • Geoffrey HintonNobel lecture22 quotations
  • The prize-awarding bodyAward ceremony speech8 quotations

Perhaps you felt “a twinge of frustration,” the presentation speech said, “scanning your memory for the circumstances of past encounters that just won’t come into focus”.1 The speech then reached back to 1949, when the Canadian psychologist Donald Hebb had said “neurons that fire together, wire together”, to describe the mechanism of learning.2 In 1982, John Hopfield found that the physics of how atomic magnetic moments align in solids could also describe interactions between neurons in our brains.3 His model, in the presentation speech’s words, was a “dynamical model for an associative memory”.6

Sources 1–6
  1. 1Perhaps you felt a twinge of frustration, scanning your memory for the circumstances of past encounters that just won’t come into focus.Award ceremony speech, Physics 2024
  2. 2In 1949, the Canadian psychologist Donald Hebb said, “neurons that fire together, wire together”, to describe the mechanism of learning.Award ceremony speech, Physics 2024
  3. 3In 1982, John Hopfield discovered that the physics describing how atomic magnetic moments align in solids, giving them their magnetic properties, can also be used to describe interactions between neurons in our brains.Award ceremony speech, Physics 2024
  4. 6He developed a dynamical model for an associative memory, based on networks of binary nodes, where nodes were assigned values determined by a weighted sum over all nodes.Award ceremony speech, Physics 2024

Memories as stationary states

Hopfield’s model was built on “networks of binary nodes,” each assigned a value “determined by a weighted sum over all nodes”.6 The dynamics acted “like a ball rolling down a hill,” driving the system into the valleys of the energy landscape, where it relaxes.4 Memories were located in those valleys “as stationary states”.5 In Hinton’s Nobel lecture the proposal reads: “Hopfield (1982) proposed that memories could be energy minima of a neural net”.7 The practical result was a memory reached from a fragment, since an item “can be accessed by just knowing part of its content”.8

Sources 4–8
  1. 4Like a ball rolling down a hill, the dynamics drive the system into the valleys of the energy landscape, where it relaxes.Award ceremony speech, Physics 2024
  2. 5Award ceremony speech, Physics 2024
  3. 7Hopfield (1982) proposed that memories could be energy minima of a neural net.Geoffrey Hinton, Nobel lecture 2024
  4. 8An item can be accessed by just knowing part of its content.Geoffrey Hinton, Nobel lecture 2024
Geoffrey Hinton giving a lecture about deep neural networks at the University of British Columbia, 30 May 2013.
Geoffrey Hinton giving a lecture about deep neural networks at the University of British Columbia, 30 May 2013.Eviatar Bach · CC BY-SA 3.0

Noise to escape the valleys

In Hinton’s lecture the same net gets a different job: instead of storing memories, “use it to construct interpretations of sensory input”.9 A Hopfield net “always makes decisions that reduce the energy,” and this “makes it impossible to escape from local energy minima”.11 The fix was randomness: “Stochastic binary neurons use random noise to escape from poor minima”.12 Noise “allows the state of the neuron to occasionally go uphill in energy”.12 Geoffrey Hinton extended Hopfield’s model, using ideas from statistical physics, the presentation speech says.13 The invention is called the Boltzmann machine, named after the Austrian physicist Ludwig Boltzmann.14

Sources 9–14
  1. 9Instead of using the net to store memories, use it to construct interpretations of sensory input.Geoffrey Hinton, Nobel lecture 2024
  2. 11Geoffrey Hinton, Nobel lecture 2024
  3. 12Geoffrey Hinton, Nobel lecture 2024
  4. 13Award ceremony speech, Physics 2024
  5. 14Award ceremony speech, Physics 2024

Awake, asleep, and a local rule

Hinton set out what he called “an outrageously optimistic approach”.15 Start with a net that has “a lot of hidden neurons with random weights”.15 Then hope, as he put it, “that the network can learn for itself how to use the hidden neurons to model the underlying causes of images”.16 He called the learning procedure “amazingly simple” and attributed it to Hinton and Sejnowski, 1983.17 It had a wake phase, “when the network is perceiving images”.18 And it had a sleep phase, “when the network is dreaming”.19

Sources 15–19
  1. 15Geoffrey Hinton, Nobel lecture 2024
  2. 16Geoffrey Hinton, Nobel lecture 2024
  3. 17Geoffrey Hinton, Nobel lecture 2024
  4. 18Geoffrey Hinton, Nobel lecture 2024
  5. 19Geoffrey Hinton, Nobel lecture 2024

“Like a ball rolling down a hill, the dynamics drive the system into the valleys of the energy landscape, where it relaxes.”

Award ceremony speech, Physics 2024

The result, in his lecture’s words, was that “the learning lowers the energy of interpretations of real data and raises the energy of the network’s fantasies”.20 Everything that a weight between two neurons needs to know about the other weights in order to learn correctly is conveyed by “the difference between two quantities that can be measured locally”.21

Sources 20–21
  1. 20The learning lowers the energy of interpretations of real data and raises the energy of the network’s fantasies.Geoffrey Hinton, Nobel lecture 2024
  2. 21Geoffrey Hinton, Nobel lecture 2024

Seventeen years to a shortcut

Hinton’s lecture states the problem: Boltzmann machines replace the forward and backward passes of backpropagation with a wake and a sleep phase in which the neurons behave “in exactly the same way,” but “they are too slow”.22 Restricted Boltzmann machines followed “17 years later!”23 Restricted Boltzmann machines have no connections between hidden neurons, so “the wake phase becomes much simpler”.23 The sleep phase stayed costly, but there was a shortcut, “contrastive divergence,” that “works well in practice”.24 Netflix combined these machines with other methods to improve its predictions of which movies users would like.25

Sources 22–25
  1. 22Geoffrey Hinton, Nobel lecture 2024
  2. 23Geoffrey Hinton, Nobel lecture 2024
  3. 24Geoffrey Hinton, Nobel lecture 2024
  4. 25Geoffrey Hinton, Nobel lecture 2024

A single layer of hidden neurons, Hinton noted, made it “seem impossible to learn a hierarchy of feature detectors”.26 He gave recognizing words in speech or objects in images as tasks that require hierarchies of feature detectors.26

Source 26
  1. 26Geoffrey Hinton, Nobel lecture 2024
John J. Hopfield: Nobel lecture, 2024Nobel Prize Outreach

Stacks, then an enzyme

The answer, in 2006, was to stack them: Hinton and Salakhutdinov used one RBM “to learn one layer of hidden features that capture structure in the data”.27 Then, as Hinton’s lecture puts it, “treat the states of the hidden neurons as data for training a second RBM”.27 Between 2006 and 2011, pretraining with a stack of RBMs “made deep learning work better and helped unleash the deep learning revolution”.28 The stacks, he said, helped researchers “to make the transition to deep learning, but once this transition was achieved they were no longer needed”.30

Sources 27–30
  1. 27Geoffrey Hinton, Nobel lecture 2024
  2. 28Geoffrey Hinton, Nobel lecture 2024
  3. 30Geoffrey Hinton, Nobel lecture 2024

His image for them was “like an enzyme”.29 The idea of using “unlearning” during sleep, he noted, to avoid “the biologically unrealistic backward pass of backpropagation” is still an active research area.10

Sources 29–10
  1. 29Stacked RBMs were like an enzyme.Geoffrey Hinton, Nobel lecture 2024
  2. 10Geoffrey Hinton, Nobel lecture 2024
Geoffrey Hinton: Nobel lecture, 2024Nobel Prize Outreach

What the work rested on and led to

Rested on
the physics describing how atomic magnetic moments align in solids 1982Hopfield’s modelstatistical physics
Led to
deep learning

Written from