What biology computed. What code never could, until now.
In a basement laboratory at the Hospital for Sick Children in Toronto, a mouse stands in a plexiglass chamber it has never entered before. Nothing about this room is alarming. No electric shock has ever been delivered here. No threatening smell lingers in the air. Then a blue laser pulses through a hair-thin fiber optic cable angled into the mouse's skull, and the animal freezes solid.
The laser is activating a tiny cluster of neurons, roughly two percent of a region called the dentate gyrus, that were chemically tagged weeks earlier in a different room, when the mouse received a mild electric shock. Those neurons encoded the memory of that fearful experience. Now, switched on artificially in a completely different context, they are producing the same behavioral response: rigid, motionless fear. The mouse is, in a very precise sense, remembering something that never happened here.
Sheena Josselyn, who runs this lab alongside her husband and research partner Paul Frankland, has been refining this kind of experiment for over a decade. The implications are not confined to rodent psychology. They extend into the design of artificial intelligence, the architecture of databases, and some of the hardest unsolved problems in modern software engineering. The reason comes down to a single question that turns out to be far more complicated than it looks: what, exactly, is a memory?
Computer science has a very clean answer to that question. A memory is data at an address. You write something to a location, you note that location, and later you fetch what you wrote. This intuition gave rise to one of computing's most successful inventions: the cache. When a processor needs data that lives in slow storage, it copies that data into a small, fast memory nearby. The next time the same data is needed, the fast copy is served instead. Caches sit inside CPU chips, inside web servers, inside the content delivery networks that make websites load quickly. They are fast, elegant, and enormously effective.
They are also nothing like what the brain does. The brain runs on roughly 20 watts of power, about the same as a dim light bulb. It contains roughly 86 billion neurons connected by approximately 100 trillion synapses. And across 400 million years of vertebrate evolution, through every pressure that shaped the nervous systems of fish and reptiles and mammals and primates, nothing resembling a cache ever appeared. There are no addresses. There is no stored copy fetched and returned unchanged. There is no specific location where a particular memory lives and waits. The brain may not have failed to evolve a cache. It may have evolved past the need for one.
In the mid-1980s, James McClelland and David Rumelhart published two thick volumes called Parallel Distributed Processing, which became the intellectual foundation of modern deep learning. Almost immediately, a problem emerged. When researchers trained neural networks to learn one task and then a second, performance on the first task collapsed. The synaptic changes made to accommodate the new learning overwrote the patterns encoding the old. Researchers named this catastrophic forgetting. It was not a bug in any particular program. It was a mathematical consequence of how distributed learning worked across shared weights.
McClelland, along with the neuroscientist Bruce McNaughton and the computational modeler Randall O'Reilly, proposed an answer in 1995 that has proven remarkably durable. The brain, they argued, maintains two fundamentally different memory systems that operate on different timescales and serve different functions, and together they solve the forgetting problem in a way no single-system architecture can.
The hippocampus, a curved structure deep in the temporal lobe, acts as a rapid-learning recorder. It uses sparse, non-overlapping codes: each experience is encoded in a small, distinct population of cells that does not interfere with neighboring populations. This is how you remember what you had for breakfast this morning without it blurring into every other breakfast you have eaten.
The neocortex learns slowly, over thousands of repetitions, extracting the statistical regularities that experiences share. This is how you know, without recalling any specific instance, that eggs and toast generally go together or that restaurants calling themselves artisanal will cost more than expected. During sleep and wakeful rest, the hippocampus replays recently encoded memories back to the neocortex, folding new knowledge incrementally into the fabric of what is already there.
McClelland called this Complementary Learning Systems theory. In 2016, he updated it alongside DeepMind's Dhruva Kumaran and Demis Hassabis, noting that the neural network architecture achieving human-level performance on Atari games had been directly inspired by it. DeepMind's Deep Q-Network used an experience replay buffer, a pool of past interactions sampled randomly during training so the network learned from a shuffled mixture of past and present rather than an unbroken stream of recent experience. The hippocampus, McClelland has observed, held a patent on the approach filed roughly 400 million years earlier.
The question of where a specific memory physically lives in the brain defeated neuroscience for most of the twentieth century. Karl Lashley spent thirty-three years cutting progressively larger portions of rat brain tissue trying to locate a learned maze habit. He failed. In 1950 he published "In Search of the Engram" and essentially conceded defeat. Memory seemed to be everywhere and nowhere simultaneously.
In 2012, a team led by Susumu Tonegawa at MIT found what Lashley could not. Using optogenetics, which allows specific neurons to be switched on or off with pulses of light, researchers engineered mice so that neurons active during a learning experience were permanently tagged with a light-sensitive protein. Shining blue light directly on those tagged neurons later made the mouse behave as if it were back in that environment, even when it was physically somewhere entirely different. The engram is real.
Josselyn's lab in Toronto has extended this work. The engram occupies just two to five percent of available neurons in a region, and its cells are widely scattered rather than clustered. Which neurons are recruited is not random: those in a more excitable state at the moment of learning, governed partly by a molecule called CREB, are preferentially selected. They win a competition. The losing neurons may be recruited into a different memory. Engrams for related experiences partially overlap, which is why similar memories feel associated. Engrams for unrelated experiences are actively pushed apart through a process mathematicians would recognize as orthogonalization. The dentate gyrus performs pattern separation, mapping similar inputs onto maximally dissimilar neural codes. Downstream, CA3 performs pattern completion, reconstructing a full memory from a partial cue. A cache fails when a key is wrong. An associative memory finds the closest thing it knows.
The study of memory has long been the study of the brain. But a different account has been assembling in immunology, microbiology, and developmental biology, one that begins not with neurons but with individual cells. Conrad Waddington, a British biologist, sketched its foundation in 1942, proposing that cells maintain stable identities through chemical modifications sitting above the DNA sequence, controlling which genes are readable and which are not. DNA methylation and histone remodeling can persist through hundreds of cell divisions, giving a cell's descendants a record of what their ancestor experienced. Mihai Netea at Radboud University Medical Center demonstrated in Nature Immunology in 2012 that innate immune cells called macrophages, long assumed to treat each infection as the first, are epigenetically reprogrammed by a first pathogen encounter and mount substantially stronger responses to entirely different threats weeks later. No synapses. No new DNA. Netea called it trained immunity, and it has since been documented in multiple cell types throughout the body.
What remembering cells do in coordinated populations is stranger still. Bonnie Bassler at Princeton showed that Vibrio cholerae bacteria count their own population through secreted signals and switch collective behavior the moment a threshold is crossed, a phenomenon she calls quorum sensing. Toshiyuki Nakagaki at Hokkaido University reported in Nature in 2000 that the brainless slime mold Physarum polycephalum solved mazes and later anticipated recurring shocks, adjusting its behavior before the stimulus arrived. Michael Levin at Tufts showed that planarian flatworms retained learned behaviors after complete decapitation and brain regeneration, the memory surviving in body tissue through bioelectric and epigenetic mechanisms. The conclusion, which Iain Couzin at the Max Planck Institute and Karl Friston, Chris Fields, and Levin argued in a 2024 Communications Biology paper, is that organisms function less like hierarchies ruled by a central brain and more like swarms of competent remembering units producing coherent adaptive behavior that none could generate alone. That principle has a direct architectural equivalent in AI. The harness wrapping a multi-agent system, the shared context layer sitting above individual model weights that governs what capabilities are expressed and when, is the epigenome of an artificial swarm. Designing meta-harnesses that accumulate experience at the collective level and propagate it selectively is the open problem connecting this biology to the governance of agentic AI systems being built today.
In 2000, the neuroscientist Karim Nader, working with Glenn Schafe and Joseph LeDoux at NYU, did something that conventional memory theory said should not be possible. He conditioned a rat to fear a tone, waited until the memory was fully consolidated over days, then retrieved it by playing the tone once. Immediately after retrieval, he injected a protein synthesis blocker into the brain region holding the memory.
The memory disappeared. A fully consolidated long-term memory, retrieved once and then blocked from re-synthesizing its proteins, was gone. If the memory had simply retrieved an existing stored copy the way a computer reads a file, the injection should have had no effect. The copy would already have been read. The fact that blocking protein synthesis after retrieval destroyed the memory means retrieving a memory does not read a stored file. It reconstructs the memory from scratch, in a process requiring new protein synthesis. During that reconstruction, the memory is briefly vulnerable, open to modification, potentially erasable.
This phenomenon is called reconsolidation. Every time a memory is retrieved, it must be re-stored. The memory that is put back is not identical to the one retrieved; it incorporates the context of the current moment, the emotional state of the organism, any new information present during retrieval. There is no original file. There is only the most recent reconstruction.
For software engineers, this sounds like a catastrophic race condition: a read that triggers a write, corruptible if interrupted. In the brain, this is the intended behavior. The mutability of retrieved memories is what allows them to be updated as the world changes, what allows a memory of a dangerous place to incorporate the knowledge that the place has since become safe. A perfectly immutable memory store is a liability in a world that does not stay the same.
Intel's Hala Point neuromorphic system, deployed in 2024: 1.15 billion spiking artificial neurons across 1,152 Loihi 2 chips, co-locating memory and computation in a single substrate. On certain tasks it reports energy efficiency more than a hundred times greater than conventional processors — the direct consequence of matching the computational paradigm to the hardware's actual physics.
The absence of cache-like memory in the brain is not only a design choice. At a more fundamental level it is an engineering impossibility. The neurobiologists David Attwell and Simon Laughlin calculated in 2001 that the metabolic cost of firing a single neuron is high enough that the brain's entire energy budget allows fewer than one percent of neurons to be substantially active at the same time. Not one percent of a region: one percent of the whole organ, simultaneously. A cache requires cheap, parallel access across a large, uniformly addressable memory space. On biological hardware, that is thermodynamically impossible.
This constraint forced a different solution: sparse distributed representations. Pentti Kanerva, a cognitive scientist at UC Berkeley, formalized this in a 1988 book called Sparse Distributed Memory and extended it in 2009 with Hyperdimensional Computing. The key insight is geometric. When items are encoded as random vectors in a space of around ten thousand dimensions, something counterintuitive happens: any two randomly chosen vectors will be nearly perpendicular to each other. They naturally do not interfere. Separate addresses are unnecessary because the geometry of a very high-dimensional space provides natural separation for free.
IBM's research division has built hyperdimensional computing systems running on phase-change memory hardware and demonstrated that Kanerva's operations run efficiently on noisy, imperfect, analog substrates. Intel's Hala Point neuromorphic chip, deployed in 2024 with 1.15 billion spiking artificial neurons across 1,152 chips, co-locates memory with computation in the same physical substrate and communicates using sparse electrical pulses. On certain tasks these systems report energy efficiency more than a hundred times greater than conventional processors. The advantage is not incidental. It is what happens when a computational paradigm is matched to its hardware's actual properties.
In 2017, Blake Richards and Paul Frankland published a paper in Neuron arguing that forgetting is not memory's failure mode but one of its primary designed functions. A brain that remembered everything with perfect fidelity would be paralyzed by outdated information. Forgetting removes what is no longer relevant, prevents behavioral overfitting to past specifics, and keeps the system plastic enough to accommodate what is new. Research from Timothy Ryan's lab at Trinity College Dublin showed in 2024 that when memories appear forgotten, the engram cells often remain. The memory has been rendered inaccessible, not erased. Software developers will recognize the pattern: this is soft deletion, combined with a dynamic retrieval threshold adjustable by context or pharmacological intervention.
The dominant approach in commercial AI, when a system needs to know something beyond what it learned during training, is retrieval-augmented generation, or RAG. A large corpus of documents is pre-processed into embedding vectors, stored in a vector database, and searched at inference time. Matching chunks are injected into the model's context. RAG is genuinely powerful. At its core, though, it is a cache with semantic addressing, and it inherits the failure modes of caches. Stale entries accumulate. Chunk boundaries introduce artifacts. Retrieval fails on novel concept combinations. The model has no way to update its understanding based on what it retrieved; after generating a response, everything it just read is gone.
Google Research published a paper on the last day of 2024, accepted at NeurIPS 2025, describing a system called Titans. Rather than retrieving from an external store at inference time, Titans trains a separate neural memory module that updates its own internal parameters during inference, weighting surprising new information more heavily, mirroring the hippocampus's preference for encoding events that violate prior expectations. Short-term context is handled by standard attention: fast, high-fidelity, bounded. Long-term memory is handled by the Titans module: compressed, approximate, persistent across interactions. A follow-up framework from Google called MIRAS, released in late 2025, generalized Titans into a four-dimensional design space for AI memory systems. The vocabulary is new. The architecture is what Complementary Learning Systems theory described in 1995.
The distributed systems community reached some of the same conclusions without invoking biology at all. Pat Helland, a software architect who spent decades at Microsoft, Amazon, and Salesforce, wrote a series of essays that amount to an independent reconstruction of Complementary Learning Systems theory in the vocabulary of software engineering. His most quoted line, from a 2015 paper called "Immutability Changes Everything," reads: "The truth is the log. The database is a cache of a subset of the log."
The argument is that the authoritative source of information in a distributed system should be an immutable, append-only sequence of events, and that any queryable state, any table, index, or materialized view, is derived from that log and can be rebuilt from it. This is, structurally, the Complementary Learning Systems architecture in software form. The hippocampal episodic trace is the log. Cortical consolidation during sleep is the slow materialization of derived structure from that log. Reconsolidation is the update cycle that occurs when new experience conflicts with an existing derived representation. The log and the derived state are not two different things. They are aspects of a single ongoing process.
That a distributed systems architect arrived at this structure without knowing about engrams or hippocampal replay suggests the architecture is not biologically arbitrary. It is the solution that falls out of the problem when the constraints are taken seriously: non-stationary inputs, imperfect components, limited bandwidth, and the need to answer queries that were not anticipated at write time. Those constraints, met honestly, produce something that looks a great deal like a brain.
The current frontier in AI memory research is trying to build this architecture explicitly. Titans and its successor frameworks introduce memory modules that update during inference without requiring full retraining. Generative replay systems synthesize examples of old tasks during new training to prevent forgetting. Neurosymbolic architectures implement algebraic memory operations that support structured reasoning without brittle address pointers. Neuromorphic hardware co-locates memory and computation to reduce the energy cost of sparse, distributed retrieval. These efforts are converging on a set of principles: memory is inference rather than lookup, forgetting is regulation rather than failure, retrieval is reconstruction rather than read, and addresses are shapes rather than locations.
Return, for a moment, to the basement lab in Toronto. The mouse that froze when the laser fired was not accessing a stored record. It was running a biological inference engine that reconstructed a fearful experience from a sparse set of activated neurons, integrated that reconstruction with its current sensory context, and produced a coordinated behavioral response, all without the original stimulus, all from a representation that occupied roughly two percent of the available cells in a region smaller than a kidney bean, at a metabolic cost that would not register on a standard power meter.
For seventy years, engineers have built memory systems on the assumption that the right model is the cache: fast, addressed, exact, immutable. The brain solved the memory problem under harsher constraints, with messier components, and arrived at something that looks nothing like what engineers built first but increasingly like what they are now trying to build. The researchers working at that intersection, from Josselyn's lab mapping engram circuitry in living mice to Google's engineers designing memory modules that update at inference time, are working on different parts of the same problem.
Key references: McClelland, McNaughton and O'Reilly, "Why There Are Complementary Learning Systems in the Hippocampus and Neocortex" (Psychological Review, 1995); Nader, Schafe and LeDoux, "Fear memories require protein synthesis in the amygdala for reconsolidation after retrieval" (Nature, 2000); Liu, Ramirez et al., "Optogenetic stimulation of a hippocampal engram activates fear memory recall" (Nature, 2012); Kumaran, Hassabis and McClelland, "What Learning Systems Do Intelligent Agents Need?" (Trends in Cognitive Sciences, 2016); Richards and Frankland, "The Persistence and Transience of Memory" (Neuron, 2017); Ryan and Frankland, "Forgetting as a form of adaptive engram cell plasticity" (Nature Reviews Neuroscience, 2022); Kanerva, Sparse Distributed Memory (MIT Press, 1988); Hersche et al., "A neuro-vector-symbolic architecture for solving Raven's progressive matrices" (Nature Machine Intelligence, 2023); Behrouz, Zhong and Mirrokni, "Titans: Learning to Memorize at Test Time" (NeurIPS, 2025).
Daice Labs Inc.
Brookline, MA, USA
Roll the "daice"–exploration & programmable adaptation.