Introduction
Classical models of memory often conceptualize retrieval as a process of pattern completion based on similarity between a cue and a stored representation. However, these models struggle to explain why humans frequently experience retrieval failures—such as the "tip-of-the-tongue" phenomenon—despite the information clearly remaining stored in the brain. This paper proposes a paradigm shift: viewing the brain's memory system as a key-value (KV) store, similar to the attention mechanisms used in modern Transformer architectures. By separating "keys" (retrieval addresses) from "values" (semantic content), the brain can optimize for both discriminability and storage fidelity, mitigating the bottleneck of retrieval interference.
Theoretical Framework: Linear Layers as KV Memories
A central technical insight of this work is the mathematical equivalence between standard linear layers and KV memory systems. The authors demonstrate that any linear layer trained via gradient descent effectively memorizes error patterns as "values" and input patterns as "keys." This bridges the gap between the "black box" nature of deep learning and the explicit memory systems observed in biological organisms.
In this framework, as illustrated above, the weight matrix $K$ maps inputs $x$ to a set of keys $\alpha$, while the matrix $V$ maps these keys to the retrieved values $\hat{v}$. This structural mapping suggests that the fundamental operations of neural networks are inherently memory-based, allowing for a more interpretable understanding of how information is stored and retrieved.
Neurobiological Mapping: The Hippocampus and Neocortex
The authors propose a biological "division of labor" based on this KV architecture. They suggest that the medial temporal lobe (hippocampus) serves as a key storage system. The hippocampus is evolutionarily optimized for pattern separation—ensuring that even similar experiences have distinct "keys" or addresses. Conversely, the neocortex acts as the value storage system, optimized for semantic fidelity and the long-term preservation of content.
This separation explains how the brain maintains a massive storage capacity while minimizing interference. The use of "scaffolds"—pre-wired address spaces like the grid cell system—further enhances the robustness of this indexing system, allowing the brain to organize memories without needing to learn every retrieval address from scratch.
Experimental Results and Simulations
The paper validates this framework through computational simulations focusing on representational optimization and sequential learning using the MNIST and Fashion-MNIST datasets.
Representational Optimization
In a 2D vector simulation, the authors observed that keys and values naturally diverge in their geometric configurations. Keys evolved to maximize separability (moving to opposite quadrants), while values clustered to maximize the fidelity of the target class features. This confirms that conflating keys and values, as seen in autoassociative models like Hopfield networks, is computationally suboptimal.
Recovery of "Silent" Memories
To address "catastrophic forgetting," the authors trained a network sequentially on MNIST and Fashion-MNIST. After learning the second task, performance on the first task dropped significantly. However, by applying a scalar multiplier to the original task's keys—mimicking optogenetic reactivation—the model's performance on the "forgotten" task was restored. This suggests that "forgetting" in both AI and biological systems is often a failure of the retrieval key rather than the erasure of the stored value.
Discussion and Future Directions
While the hippocampus-as-key/neocortex-as-value hypothesis is compelling, it remains a theoretical proposal requiring direct experimental validation. Future research should explore more biologically realistic learning rules, such as those involving non-Hebbian plasticity or the role of astrocytes. Additionally, the theory predicts that "repulsion effects" (where similar memories are pushed apart to avoid confusion) should be reversible, a hypothesis that can be tested in human behavioral and neuroimaging studies.
Summary updated