Store patterns in a web of symmetric weights; show it a corrupted version and it settles — neuron by neuron, always downhill in energy — into the nearest stored pattern. An associative memory built from physics: it is the Ising model of a magnet, run as recall. It won Hopfield a share of the 2024 Nobel in Physics — though the idea had earlier owners.
Weights store patterns by a Hebbian outer product (Wᵢⱼ = Σ patternᵢ patternⱼ). To recall, repeatedly set each neuron to the sign of its weighted input; the energy E = −½ Σ Wᵢⱼ sᵢ sⱼ only ever decreases, so the state slides into a stored pattern. Corrupt a stored image and watch it heal. live demo
“Hopfield invented the recurrent associative net in 1982” — he invented gave it an energy function and fame; the network existed a decade earlier. cited
The physics was the insight: a memory is a landscape, and recall is a ball rolling to the bottom. Hopfield 1982, roots 1972
State is a ±1 array, weights a flattened matrix; recall is a dot product then a sign — and it heals a corrupted pattern on the compiler: