Abstract
Traditional associative memory models, such as the original Hopfield Network, primarily focus on auto-association—the retrieval of a stored pattern from a noisy or partial input. However, biological cognition relies heavily on hetero-association, the ability to transition between semantically related concepts. This paper introduces Correlated Dense Associative Memory (CDAM), a framework that bridges the gap between dense associative models and graph-based semantic navigation. By leveraging anti-Hebbian learning and a tunable memory graph, CDAM replicates biological neural behavior, performs multi-scale community detection, and provides a theoretical lens for understanding the attention mechanisms in modern Transformer architectures.
1. Introduction
The ability to link disparate ideas is a hallmark of human intelligence. While classical associative memory models excel at error correction (auto-association), they often struggle with the fluid transitions between related memories (hetero-association) that characterize natural thought. Furthermore, as the field of AI moves toward Transformer-based architectures, there is an increasing need to reconcile these "Modern Hopfield Networks" with the complex, graph-like structures of real-world knowledge.
This research introduces Correlated Dense Associative Memory (CDAM). CDAM extends the dense associative memory framework by embedding a memory graph $\mathcal{M}$ that defines the relationships between stored patterns. This allows the model to navigate semantic networks, moving beyond simple linear sequences to complex, multi-dimensional data structures.
2. The CDAM Framework
CDAM embeds $p$ memory patterns into a network of $n$ neurons. Unlike standard models where memories are treated as isolated attractors, CDAM utilizes a memory graph to dictate the transition dynamics. The retrieval process is governed by a state update rule utilizing a SOFTMAX activation function, creating a direct mathematical parallel to the attention mechanism used in Large Language Models (LLMs).
The dynamics are controlled by two primary parameters:
- Auto-association strength ($a$): Determines the network's tendency to remain in the current memory state.
- Hetero-association strength ($h$): Determines the drive to transition to neighboring nodes within the memory graph.
By modulating these parameters, the model can switch between four distinct dynamical modes: pure auto-association, narrow hetero-association (moving to immediate neighbors), wide hetero-association (activating entire neighborhoods), and neutral quiescence.
3. The Power of Anti-Hebbian Learning
A core innovation of the CDAM model is the application of anti-Hebbian learning. In many associative models, high self-correlation causes the system to become "stuck" on a single memory. By setting the auto-association strength $a$ to a negative value, the model "punishes" the current state once it has been retrieved. This inhibitory mechanism forces the network to move away from the current memory and explore its neighbors in the graph. This process mirrors biological observations where neural fatigue or inhibition facilitates the transition between different thoughts or visual stimuli.
4. Experimental Validation
The versatility of CDAM was tested across several domains, demonstrating its robustness compared to traditional models:
4.1 Neuroscience and Biological Plausibility
The model was used to replicate classic experiments by Miyashita (1988) regarding the temporal cortex of primates. CDAM achieved a near-perfect fit ($R^2 = 0.997$) in modeling the decay of neural correlations observed in primate visual memory, suggesting that the model's underlying dynamics closely mirror biological memory retrieval.
4.2 Multi-scale Community Detection
Using Zachary’s karate club graph, the author demonstrated that CDAM can perform community detection. By tuning the $a$ and $h$ parameters, the model can "zoom" its associative range. At specific settings, the network does not just recall individual nodes but activates entire clusters, effectively identifying the two primary factions within the social network.
4.3 Image Retrieval and Sequence Stability
In tests using FashionMNIST and video data of gorillas, CDAM demonstrated "graceful degradation." Unlike standard models that suffer from catastrophic forgetting when capacity is reached, CDAM maintains a better trade-off between memory capacity and precision. In video sequences, the anti-Hebbian modulation prevented the model from getting stuck on visually similar frames, ensuring a smooth temporal recall.
4.4 Logical Transitions and Finite Automata
To demonstrate computational power, CDAM was applied to a "Simpsons" family tree. The model successfully simulated a finite automaton, performing logical queries such as identifying "Homer" when given the cue "Marge" combined with the relation "Husband."
5. Discussion and Transformer Interpretability
One of the most significant implications of CDAM is its connection to Transformers. The paper argues that the attention mechanism in modern AI is essentially a hetero-associative process. CDAM provides a framework to interpret attention heads as agents navigating an energy landscape shaped by the semantic correlations of the training data. This perspective could lead to better interpretability tools for billion-parameter models.
6. Conclusion and Future Work
CDAM provides a rigorous bridge between biological memory, graph theory, and modern AI. While the current work uses predefined graphs, future research will focus on how these semantic structures can be learned autonomously from raw data. Additionally, the model suggests that inhibitory neural mechanisms play a crucial role in controlling the "range" of association, a hypothesis that warrants further investigation by experimental neuroscientists.
Summary updated