Lec 16
Lec 16
Geoffrey Hinton
Hopfield Nets
• A Hopfield net is composed of binary threshold units with
recurrent connections between them. Recurrent
networks of non-linear units are generally very hard to
analyze. They can behave in many different ways:
– Settle to a stable state
– Oscillate
– Follow chaotic trajectories that cannot be predicted
far into the future.
• But Hopfield realized that if the connections are
symmetric, there is a global energy function
– Each “configuration” of the network has an energy.
– The binary threshold decision rule causes the network
to settle to an energy minimum.
The energy function
• The global energy is the sum of many contributions.
Each contribution depends on one connection weight
and the binary states of two neurons:
E si bi si s j wij
i i j
E ( si 0) E ( si 1) bi s j wij
j
Settling to an energy minimum
A B C
Stochastic units
• Replace the binary threshold units by binary stochastic
units that make biased random decisions.
– The “temperature” controls the amount of noise
– Decreasing all the energy gaps between configurations
is equivalent to raising the noise level.
1 1
p( si 1) j s j wij
1 e
T
1 e Ei T
temperature
( E A EB )
PA
e T
PB
How temperature affects transition
probabilities
p( A B) 0.2
High temperature p( A B) 0.1
transition
probabilities
A
B
p( A B) 0.001
Low temperature p( A B) 0.000001
transition
probabilities
A
B
Thermal equilibrium
• Thermal equilibrium is a difficult concept!
– It does not mean that the system has settled down into the
lowest energy configuration.
– The thing that settles down is the probability distribution over
configurations.