A Biologically Plausible Dense Associative Memory with Exponential Capacity

Mohadeseh Shafiei Kafraj, Dmitry Krotov, Peter E. LathamICLR 2026

Introduction

Associative memory networks, such as the classical Hopfield network, are dynamical systems designed to retrieve stored memories from noisy or incomplete inputs. While classical models are biologically inspired, their storage capacity is notoriously low, scaling only linearly with the number of neurons. Recent advancements in "Modern Hopfield Networks" (or Dense Associative Memories) have achieved much higher capacities, but often sacrifice biological realism by requiring complex, non-local synaptic interactions.

A notable 2021 model by Krotov and Hopfield introduced a biologically plausible two-layer architecture. However, it relied on winner-take-all dynamics in the hidden layer. This created a "grandmother cell" limitation: each hidden neuron could only represent a single memory, restricting the network's capacity to the number of hidden neurons. This paper overcomes this linear bottleneck, introducing a biologically realistic model capable of storing an exponential number of memories through distributed representations.

Architecture and Dynamics

The proposed model is a two-layer bipartite network comprising visible neurons (representing data features, like image pixels) and hidden neurons (representing memory components).

The critical innovation is replacing the winner-take-all mechanism with a threshold nonlinearity (a Heaviside step function) for the hidden units. This simple biological mechanism allows multiple hidden neurons to be active simultaneously, leading to several key properties:

  • Distributed Representation: Memories are no longer tied to single neurons but are stored as binary patterns across the entire hidden layer.
  • Compositional Learning: The network learns fundamental "basic memories" or features. Complex memories are then dynamically formed by activating specific combinations of these features.
  • Continuous Dynamics: The system operates via differential equations where visible units evolve more slowly than hidden units. This timescale separation allows the hidden layer to settle into a stable representation before the visible output fully materializes.

To store complex real-world data, the authors utilize a learning rule that optimizes synaptic weights, ensuring target memories become stable fixed points (attractors) within the network's energy landscape.

Theoretical Insights: The Power of Distributed Activity

By shifting to distributed activity, the network's theoretical capacity jumps from $N_h$ (the number of hidden neurons) to $2^{N_h}$ (all possible binary combinations of those neurons).

Simulated capacity scaling exponentially with the number of hidden neurons.

The authors mathematically demonstrate that when the number of visible units ($N_v$) is significantly larger than the number of hidden units ($N_h$), the hidden neurons effectively "decouple." This decoupling ensures that almost any binary pattern in the hidden layer can become a stable, recallable memory. Furthermore, the model exhibits strong biological robustness. It does not require perfectly symmetric connections or identical activation thresholds across all neurons—idealized constraints that are rarely found in actual biological systems.

Experimental Validation

The model was rigorously evaluated using standard computer vision benchmarks: MNIST (grayscale handwritten digits) and CIFAR-10 (color images). These datasets demonstrated the network's ability to store and recall highly correlated, complex data far beyond the limits of previous biologically plausible models.

MNIST cue and recall demonstrating distributed hidden representations.
  • Massive Capacity: Using merely 50 hidden neurons, the network successfully stored all 60,000 MNIST images with a 98% recall accuracy. For context, previous biologically plausible models with 50 hidden neurons could typically only store 50 memories.
  • High-Fidelity Recall: On the more complex CIFAR-10 dataset, the network stored 50,000 images using 500 hidden neurons. When presented with unseen, noisy cues, the network reliably converged to clear, interpretable versions of the stored memories.
  • Discriminative Structure: Despite the hidden layer having a much lower dimensionality than the visible layer, it preserves critical class-discriminative structure. Nonlinear classifiers trained on these hidden patterns achieved 95% accuracy for MNIST, proving the representations are not just compressed, but structurally meaningful.

Limitations and Future Work

While the network architecture and dynamics are biologically plausible, the learning rule used to optimize the weights (gradient descent on a sigmoid proxy) relies on standard machine learning optimization. A truly biological system would require a local, Hebbian-style learning rule.

Additionally, the theoretical guarantee of exponential capacity relies heavily on the regime where $N_v \gg N_h$. While empirical experiments show the model remains robust even when this condition is relaxed, the strict mathematical guarantees are bound to that limit. Future work will focus on incorporating further biological constraints—such as Dale’s Law (neurons being strictly excitatory or inhibitory) and sparse connectivity—to bridge the remaining gaps between artificial associative memory and the mammalian brain.

Summary updated

BibTeX
@inproceedings{kafraj2026biologically,
  author = {Mohadeseh Shafiei Kafraj and Dmitry Krotov and Peter E. Latham},
  title = {{A Biologically Plausible Dense Associative Memory with Exponential Capacity}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=mRZOayQL1i},
}
Figure