Dense Associative Memory for Pattern Recognition
Dmitry Krotov, John J Hopfield
TL;DR
This work introduces dense associative memories with higher-order energy functions to achieve capacities far beyond traditional Hopfield networks, enabling reliable pattern retrieval of many more memories than neurons. It establishes a duality between these memories and one-hidden-layer neural networks, with the visible-to-hidden activation corresponding to the derivative of the energy function, and identifies a feature-to-prototype transition as the nonlinearity degree $n$ is varied. The authors provide capacity scaling laws showing nonlinear gains, illustrate with the XOR task, and demonstrate MNIST classification using a one-step memory update, where higher-degree rectified activations can improve generalization and speed. The results suggest a principled way to design activation functions and representations that interpolate between feature-based and prototype-based recognition, with potential benefits for larger-scale deep learning architectures.
Abstract
A model of associative memory is studied, which stores and reliably retrieves many more patterns than the number of neurons in the network. We propose a simple duality between this dense associative memory and neural networks commonly used in deep learning. On the associative memory side of this duality, a family of models that smoothly interpolates between two limiting cases can be constructed. One limit is referred to as the feature-matching mode of pattern recognition, and the other one as the prototype regime. On the deep learning side of the duality, this family corresponds to feedforward neural networks with one hidden layer and various activation functions, which transmit the activities of the visible neurons to the hidden layer. This family of activation functions includes logistics, rectified linear units, and rectified polynomials of higher degrees. The proposed duality makes it possible to apply energy-based intuition from associative memory to analyze computational properties of neural networks with unusual activation functions - the higher rectified polynomials which until now have not been used in deep learning. The utility of the dense memories is illustrated for two test cases: the logical gate XOR and the recognition of handwritten digits from the MNIST data set.
