AI Engram: In Search of Memory Traces in Artificial Intelligence

Jea Kwon, Dong-Kyum Kim, Jiwon Kim, Yonghyun Kim, Woong Kook, Meeyoung Cha

Memory formation is fundamental to intelligence, yet whether deep neural networks preserve identifiable memory traces—analogous to biological memory units—has remained an open question. A recent paper introduces a geometric framework to isolate "AI engrams": specific, identifiable memory traces hidden within the globally entangled weights of a neural network. By formalizing biological memory criteria into a closed-form mathematical estimator, researchers have unlocked "Engram Arithmetic," a technique allowing users to surgically add or erase specific knowledge using simple linear algebra, completely bypassing the need for iterative retraining or backpropagation.

The Challenge of Entangled Knowledge

In deep learning, knowledge is notoriously entangled. A single weight matrix in a Large Language Model (LLM) or a vision model like ResNet participates in thousands of different behaviors simultaneously. This distributed nature makes surgical intervention—such as removing a specific copyrighted fact or adding a new, isolated capability—incredibly difficult.

Current solutions typically rely on fine-tuning, which is computationally expensive and prone to "catastrophic forgetting," or heuristic model editing. Seeking a more fundamental, neuroscientifically grounded approach, the authors ask: Where exactly is a specific memory stored in a network's parameters, and can we isolate it?

Defining the AI Engram

To answer this, the researchers bridged the gap between neuroscience and AI by operationalizing four canonical biological criteria for an "engram" into algebraic constraints:

  1. Specificity: The memory trace should only respond to target inputs and remain inert for all others.
  2. Reactivation: It must consistently reproduce the internal representations learned during training.
  3. Sufficiency: Injecting the trace into a "blank" model should impart the specific knowledge.
  4. Necessity: Removing the trace from a trained model should eliminate only that specific knowledge.

By treating these criteria as a constrained inverse problem, the authors derived the Spectral AI Engram Estimator. Unlike traditional gradient-based methods, this is a closed-form solution relying on uncentered covariance matrices of the model's activations.

Crucially, the framework utilizes a "Retrospective Estimation" approach. By assuming a tabula rasa (blank slate) starting point, the engram can be isolated directly from a single forward pass of a pre-trained model. This makes the extraction process highly scalable and parallelizable across network layers.

Engram Arithmetic and Geometric Insights

The study reveals several profound insights into the structure of artificial memory:

  • Memory is Geometrically Structured: The biologically-derived engram is mathematically equivalent to a projection under the Fisher Information Metric. This directly links biological memory theory to information geometry and natural gradients.
  • Linearity in a Non-linear World: Despite the inherent non-linearity of deep neural networks, the "functional topology" of memory resides in a linearizable subspace of the weight space. This enables Engram Arithmetic—the ability to add and subtract weight vectors to manipulate knowledge directly.
  • The "Where" of Memory: In LLMs, memory traces are not randomly scattered. By mapping the network, the authors found that memory is heavily concentrated in the Query/Key projections of attention layers and the MLP gating layers.

Experimental Validation and Performance

The framework was rigorously validated across a wide range of architectures and tasks, from simple MLPs to billion-parameter LLMs.

  • Surgical Precision in LLMs: Evaluated on the TOFU (Task-Specific Forgettable Unlearning) benchmark using Llama-3.2-1B, the Engram method achieved the highest scores in suppressing exact memorization compared to traditional methods, all while maintaining the model's general utility.
  • Zero-Shot Composition: Because engrams are linear, they can be combined effortlessly. In generative models (like Convolutional and Wasserstein Autoencoders on MNIST and CelebA), researchers could subtract a "Goatee" engram and simultaneously add an "Eyeglasses" engram without any further training.
  • Unprecedented Efficiency: Extracting 100 distinct class engrams from a ResNet on CIFAR-100 took less than 2 minutes on a single A100 GPU—orders of magnitude faster than iterative gradient-based unlearning. Overall, the approach requires approximately 30x fewer FLOPs and 2.3x less peak memory than gradient-based alternatives.

Limitations and Future Directions

While groundbreaking, the AI Engram framework has current limitations. It is not an unsupervised method; isolating an engram requires providing the model with examples of the target concept and reference concepts. Future work may pair this framework with Sparse Autoencoders (SAEs) to discover these concepts automatically.

Additionally, the method is currently retrospective, working only on fully trained models rather than tracking engram formation during active training. Finally, while more efficient than storing full datasets, saving covariance matrices for every layer in massive models (e.g., 70B+ parameters) presents a storage challenge. The authors suggest mitigating this by using truncated SVD or targeting specific memory-dense layers, paving the way for scalable, surgical model editing in the next generation of AI.

Summary updated

BibTeX
@inproceedings{kwon2026ai,
  author = {Jea Kwon and Dong-Kyum Kim and Jiwon Kim and Yonghyun Kim and Woong Kook and Meeyoung Cha},
  title = {{AI Engram: In Search of Memory Traces in Artificial Intelligence}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=QZO3oby12w},
}
Figure