Pictures set the connections
A stored picture assigns one binary value to each cell. A pair that often agrees gets a positive connection; a pair that often differs gets a negative one. The count of cells sets the normalization.
D-X2 · A damaged picture finds a memory
How can a network recover a whole picture from a damaged cue? The stored pictures set connections that favor familiar combinations of cells. Starting from a damaged cue, each cell follows the influence of the others and the network energy falls. The final pattern can recover a memory or settle in a competing local minimum.
Scratch over a stored picture and let a network repair it one cell at a time. Add competing memories or scramble most of the cue to see when recall finds a different resting state.
A recorded asynchronous recall is replayed. Cyan: computed energy; amber: current frame.
Physics tutorial
BackgroundA familiar word can survive a missing letter. Hopfield’s model asks whether many simple units, each following its neighbors, can recover a familiar pattern from a damaged one.
Why it mattersThe memory sits in the connections between units. No separate program tells each cell which part of a heart or a lightning bolt it should draw.
Start with the essentials
A stored picture assigns one binary value to each cell. A pair that often agrees gets a positive connection; a pair that often differs gets a negative one. The count of cells sets the normalization.
One unit updates at a time, in a shuffled order. It follows the weighted influence of the other units. A zero sum leaves it unchanged.
Symmetric weights and zero self-coupling make each allowed change lower the energy. The units eventually reach a state that no single update can improve.
Typical misconceptionOnce the energy stops falling, the intended picture must have been recovered.
Better mental modelThe energy can have many local minima. Correlated stored pictures can shift or merge them, and every picture has an inverted partner in this zero-threshold model.
Choose Repair a scratched heart and follow the amber marker on the energy curve.
What to observe: The damaged cells change as the energy falls. The recorded recall repeats so you can follow the same repair.Choose Recall lightning, then drag over part of the picture.
What to observe: Release the pointer to start a new recall from your drawing. The connections stay fixed during recall.Choose Competing pictures and inspect the final error.
What to observe: The correlated patterns can pull the network into a resting state that differs from the selected picture.Choose An inverted memory.
What to observe: The network can settle on the inverted picture, which has the same energy as its original.