AI Engram: In Search of Memory Traces in Artificial Intelligence

Jea Kwon, Dong-Kyum Kim (Max Planck Institute for Security and Privacy), Jiwon Kim (Max Planck Institute for Security and Privacy), Yonghyun Kim, Woong Kook, Meeyoung Cha

International Conference on Machine Learning 2026 · Oral

Overview

Modern large language models and deep neural networks store vast amounts of knowledge, private data, and potentially dangerous information directly within their parameter spaces. Mitigating hallucinations, enforcing privacy, and removing harmful knowledge require precise mechanisms to locate and manipulate these stored memory traces. However, because concepts overlap and entangle across network weights, isolating specific memories has traditionally required costly, iterative optimization loops like gradient-based unlearning. This talk introduces AI Engram, a novel framework that bridges neuroscience principles and linear algebra to isolate and control specific concept memories within artificial neural networks using a closed-form, single-pass estimator.

Watch on SlidesLive

Visual summary for AI Engram: In Search of Memory Traces in Artificial Intelligence by Jea Kwon, Dong-Kyum Kim, Jiwon Kim, Yonghyun Kim, Woong Kook, Meeyoung Cha
Visual summary for AI Engram: In Search of Memory Traces in Artificial Intelligence by Jea Kwon, Dong-Kyum Kim, Jiwon Kim, Yonghyun Kim, Woong Kook, Meeyoung Cha

Key moments

  1. 0:00 Introduction and neuroscience inspiration for AI memory traces
  2. 2:00 Historical context on memory and neural network connectivity patterns
  3. 4:00 Neuroscientific engram criteria and single-pass closed-form estimator
  4. 6:00 Causal validation, scalability, and application to generative models
  5. 8:00 Theoretical connection to Fisher method and conclusion
  6. 10:00 Audience question on activation space and in-context learning
  7. 11:15 Discussion on neuroscience definitions and generative network memories

AI Engram: In Search of Memory Traces in Artificial Intelligence

Speakers: Jea Kwon; Dong-Kyum Kim (Max Planck Institute for Security and Privacy); Jiwon Kim (Max Planck Institute for Security and Privacy); Yonghyun Kim; Woong Kook; Meeyoung Cha

Conference: ICML

YouTube: https://slideslive.com/39083523

Overview

Modern large language models and deep neural networks store vast amounts of knowledge, private data, and potentially dangerous information directly within their parameter spaces. Mitigating hallucinations, enforcing privacy, and removing harmful knowledge require precise mechanisms to locate and manipulate these stored memory traces. However, because concepts overlap and entangle across network weights, isolating specific memories has traditionally required costly, iterative optimization loops like gradient-based unlearning. This talk introduces AI Engram, a novel framework that bridges neuroscience principles and linear algebra to isolate and control specific concept memories within artificial neural networks using a closed-form, single-pass estimator.

Presented at ICML by researchers from the Max Planck Institute for Security and Privacy and collaborating institutions, the work addresses a fundamental limitation in machine learning interpretability and control: the lack of parameter-level tools to locate and surgically modify memories without retraining or extensive iterative backpropagation. By drawing inspiration from historical and modern neuroscience—specifically the concept of the engram as a physical substrate for memory—the authors establish formal linear algebraic constraints. These constraints allow practitioners to compute projection matrices directly from input-side geometry, enabling tasks such as concept ablation, generative model control, and model unlearning with high computational efficiency.

The implications of this research span across multiple domains of machine learning, from trustworthy AI and model safety to parameter-level interpretability. By demonstrating that memory traces can be isolated through closed-form solutions mathematically identical to the Fisher method (specifically Kronecker-factored approximate curvature or K-FAC natural gradients), the authors provide both empirical robustness and theoretical grounding. The framework scales across diverse architectures, including Multi-Layer Perceptrons (MLPs), ResNets (tested up to 1,000 classes), Vision Transformers (ViTs), generative models like CelebA, and Large Language Models (LLMs).

Background

▶ Watch: Introduction and neuroscience inspiration for AI memory traces (0:00)

In both biological brains and artificial neural networks, memory is not neatly compartmentalized into discrete storage addresses; rather, it is distributed across interconnected components. In the early 20th century, neuroscientist Richard Semon coined the term engram to describe the physical substrate of memory. Subsequent experiments by Karl Lashley attempted to locate these memory traces in rats by creating brain lesions, leading to the surprising conclusion that memories are widely distributed rather than localized to a single region. Later neuroscientists, following Santiago Ramón y Cajal, recognized that memory formation relies heavily on changes in synaptic connectivity.

In artificial neural networks, analogous challenges exist. As models continually learn, concept representations overlap within the parameter space, creating entangled representations that make precise isolation difficult. Traditional approaches to removing or modifying knowledge—such as model unlearning, weight pruning, or targeted fine-tuning—rely on iterative optimization via backpropagation. These methods are computationally expensive, prone to destabilizing the broader network, and lack fine-grained interpretability.

The machine learning and systems communities face an urgent need for methods that can inspect and edit the parameter space directly. While activation-space interventions (such as in-context learning or activation patching) allow for temporary runtime adjustments, they fall short of permanently altering core knowledge or performing robust, scalable parameter-level unlearning. The AI Engram framework addresses this gap by formalizing neuroscientific criteria into rigorous linear algebra, replacing iterative training loops with closed-form statistical calculations.

Key Findings

▶ Watch: Neuroscientific engram criteria and single-pass closed-form estimator (4:00)

The primary discovery of the AI Engram research is that specific concept memories can be isolated and controlled within neural network parameters using a closed-form, single-pass estimator, completely bypassing iterative optimization.

  • Closed-Form Isolation: By computing the outer product of input activations and gathering second-moment statistics, the framework constructs a projection matrix that can be subtracted from original layer weights to ablate specific concepts.
  • Semantic Selectivity & Overlap: Empirical evaluations reveal that ablating a specific concept (e.g., an airplane in a classification task) leaves unrelated classes (like deer) largely stable, while revealing expected semantic overlaps (such as affecting bird classification due to shared visual features).
  • Cross-Modality Scalability: The method is task-agnostic and data-modality robust, scaling successfully from simple MLPs to 1,000-class ResNets, Vision Transformers, generative models (controlling facial expressions in CelebA), and LLM unlearning pipelines.
  • Theoretical Equivalence to Natural Gradients: The neuroscientifically derived engram solutions were mathematically proven to be identical to the Fisher information matrix via Kronecker-factorization, validating the approach through established optimization theory rather than relying on heuristics.
  • Combinatorial Efficiency: Because covariance matrices for specific concepts can be harvested independently and pre-computed, combinatorial unlearning can be achieved rapidly by reconstructing pre-computed matrices rather than scaling exponentially with iterative training runs.

Technical Deep Dive

▶ Watch: Causal validation, scalability, and application to generative models (6:00)

The technical foundation of AI Engram rests on translating four core neuroscientific criteria—specificity, reactivation, sufficiency, and necessity—into formal linear algebraic constraints.

To operationalize these criteria without backpropagation, the algorithm processes input data through a single forward pass to gather second-moment activation statistics. Given a target concept dataset and a reference negative dataset (satisfying the specificity criterion), the system computes the outer products of the activations across network layers.

Rather than updating weights via gradient descent, the framework constructs a closed-form projection matrix. Subtracting this identified memory trace (the engram) from the diagonal parts of the weight matrices effectively ablates the targeted concept. The mathematical formulation relies on input-side geometry, making it functionally equivalent to the Fisher method (specifically Kronecker-factored approximate curvature, or K-FAC). This guarantees that the extracted parameters genuinely isolate the targeted concept memories based on natural gradient geometry.

In terms of systems efficiency, this architecture transforms unlearning and concept editing from an optimization problem into a linear algebra operation. For combinatorial unlearning—where multiple concepts must be removed simultaneously—the computational complexity is dramatically reduced. Practitioners can harvest and store covariance matrices for individual concepts ahead of time, combining them via pre-computed tensor operations (scaling up to $2^N$ combinations) without re-running forward or backward passes over the entire dataset.

Experimental Setup & Results

▶ Watch: Audience question on activation space and in-context learning (10:00)

The authors evaluated AI Engram across a diverse suite of architectures, datasets, and tasks to demonstrate its versatility and robustness.

  • Architectures Tested: Multi-Layer Perceptrons (MLPs), ResNets (scaling up to 100 classes and 1,000-class Vision Transformers), generative models on the CelebA dataset, and Large Language Models.
  • Baselines: Compared directly against existing iterative unlearning methods, achieving comparable performance in concept removal without the overhead of gradient-based optimization.
  • Headline Results:
  • Successfully isolated and controlled image categories in vision transformers and convolutional networks.
  • Demonstrated fine-grained control over generative facial expressions in CelebA models by targeting specific concept engrams.
  • Enabled targeted concept removal in LLMs in a single forward pass, showing robustness across text and vision modalities.
  • Ablations & Causal Validation: Causal validation confirmed that ablating specific visual categories (e.g., automobile) successfully suppressed the target concept while retaining performance on orthogonal classes (e.g., frog), though semantic neighbors (e.g., truck) showed expected degradation due to shared parameter representations.

Note: Due to the foundational and theoretical nature of this position-and-algorithm talk, exhaustive quantitative benchmarks across every proprietary LLM scale were not the primary focus; instead, the authors emphasized architectural scalability, theoretical equivalence, and multi-modality.

Practical Implications

▶ Watch: Discussion on neuroscience definitions and generative network memories (11:15)

For machine learning engineers, infrastructure teams, and model deployers, AI Engram offers a paradigm shift in how model weights are manipulated. By replacing slow, unstable iterative unlearning with closed-form linear algebra, engineering teams can implement rapid safety patches, copyright removal, and privacy compliance filters directly in the parameter space.

  • Inference-Time and Post-Hoc Interventions: Because the method does not require backpropagation, it opens the door to parameter-level interpretability and dynamic model steering during or prior to inference.
  • Limitations in Activation vs. Parameter Memory: As discussed during the talk's Q&A session, the framework excels at modifying persistent knowledge stored in the parameter space, but is less suited for temporary, in-context learning phenomena handled in the activation space (such as few-shot prompt adaptation).
  • Handling Complex Generative Concepts: While well-defined classification categories (like specific plant or animal classes) map cleanly to input-target datasets, applying the framework to more abstract or obscure generative concepts requires careful curation of training dataset distributions and reference baselines.

Key Takeaways

  • Neuroscience-Inspired ML: Translating the neuroscientific criteria of engrams (specificity, reactivation, sufficiency, necessity) into linear algebraic constraints yields powerful new tools for neural network interpretability.
  • Closed-Form Efficiency: AI Engram eliminates the need for iterative optimization and backpropagation, isolating and ablating specific concept memories via a single forward pass and second-moment activation statistics.
  • Mathematical Grounding: The engram extraction method is mathematically identical to the Fisher method (Kronecker-factored approximate curvature), providing rigorous theoretical backing for what might otherwise appear to be a heuristic technique.
  • Cross-Modality Scalability: The framework operates successfully across diverse architectures, including MLPs, ResNets, Vision Transformers, CelebA generative models, and Large Language Models.
  • Combinatorial Unlearning: Pre-computed covariance matrices allow engineering teams to execute multi-concept unlearning operations efficiently through linear combination rather than repeated retraining.

About the Speaker(s)

  • Jea Kwon: Researcher at the Max Planck Institute for Security and Privacy working on identifying memory traces in artificial intelligence systems.
  • Dong-Kyum Kim (Max Planck Institute for Security and Privacy): Collaborator on the AI Engram project investigating where and how memories are stored in neural networks.
  • Jiwon Kim (Max Planck Institute for Security and Privacy): Collaborator on the AI Engram project investigating where and how memories are stored in neural networks.

Co-authors: Yonghyun Kim, Woong Kook, Meeyoung Cha.

Reviews

→ Top-rated talks at International Conference on Machine Learning 2026

All talks from International Conference on Machine Learning 2026