[Paper Review] Large Associative Memory Problem in Neurobiology and Machine Learning
This paper presents a biologically plausible two-body (feature-memory) neural network with hidden neurons that achieves large associative memory capacity, unifying Dense Associative Memory and modern Hopfield networks via an energy-based dynamical system.
Dense Associative Memories or modern Hopfield networks permit storage and reliable retrieval of an exponentially large (in the dimension of feature space) number of memories. At the same time, their naive implementation is non-biological, since it seemingly requires the existence of many-body synaptic junctions between the neurons. We show that these models are effective descriptions of a more microscopic (written in terms of biological degrees of freedom) theory that has additional (hidden) neurons and only requires two-body interactions between them. For this reason our proposed microscopic theory is a valid model of large associative memory with a degree of biological plausibility. The dynamics of our network and its reduced dimensional equivalent both minimize energy (Lyapunov) functions. When certain dynamical variables (hidden neurons) are integrated out from our microscopic theory, one can recover many of the models that were previously discussed in the literature, e.g. the model presented in "Hopfield Networks is All You Need" paper. We also provide an alternative derivation of the energy function and the update rule proposed in the aforementioned paper and clarify the relationships between various models of this class.
Motivation & Objective
- Motivate the need for large-capacity associative memories in biology and AI.
- Propose a microscopic two-group (feature and hidden) network that preserves an energy function.
- Show that integrating out hidden neurons recovers known dense/modern Hopfield models.
- Demonstrate that the proposed framework includes several limiting cases (Models A, B, C).
- Establish conditions under which the energy decreases along dynamics, ensuring convergence to fixed points.
Proposed method
- Introduce continuous-time two-group network with Nf feature neurons and Nh hidden neurons in a bipartite connectivity.
- Define dynamics with equations (1) that couple v_i and h_mu via symmetric weights xi_{i mu}, ensuring a Lyapunov energy (2).
- Express outputs as derivatives of Lagrangian functions (f_mu = ∂L_h/∂h_mu, g_i = ∂L_v/∂v_i) ensuring energy descent (4).
- Integrate out hidden neurons in certain limits to derive effective models for the feature layer (Sections 3.1–3.3).
- Show that Model A recovers Dense Associative Memory (DAM) and Hopfield limits; Model B yields modern Hopfield/attention-like dynamics; Model C yields a spherical memory variant.
- Provide explicit derivations of update rules and energy forms (equations (8)–(22)) and connect to attention mechanisms (e.g., softmax-based interactions).
Experimental results
Research questions
- RQ1Can a two-body synaptic structure with hidden units achieve memory storage greater than the feature space dimensionality N_f?
- RQ2How do integrating out hidden neurons recover existing dense/modern Hopfield models and attention-like dynamics?
- RQ3What are the limiting cases (Models A, B, C) of the proposed framework and how do they relate to known networks?
- RQ4Under what conditions is the network energy decreasing, ensuring convergence to fixed points?
- RQ5What biological plausibility advantages arise from avoiding many-body synapses while preserving large memory capacity?
Key findings
- A biologically plausible architecture with two-body interactions and hidden neurons achieves storage capacities exceeding N_f, bounded by Nh (N_mem ≤ Nh).
- In Model A with fast hidden dynamics and additive Lagrangians, the energy reduces to a Dense Associative Memory form that generalizes Hopfield networks.
- Model B with contrastive normalization yields a modern Hopfield/attention-like energy and update rule equivalent to dot-product attention in continuous time.
- Model C introduces a spherical memory variant with divisive normalization-like features, yielding a different energy and dynamics while maintaining two-body interactions.
- The framework unifies several previous models (DAM, modern Hopfield, attention mechanisms) as limiting cases of a single energy-based dynamical system.
- Energy decreases along trajectories for positive semi-definite Hessians of the Lagrangians, ensuring convergence to fixed points.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.