Memory Mosaics: How AI Networks Learn to Remember – The Executive Code Podcast

I’m sharing the first episode of The Executive Code podcast, a new project where my colleague Kirim and I explore the intersection of AI, engineering, and leadership. After posting about our second episode on RAPTOR technology earlier today, I wanted to also share our inaugural episode. We’ve created this podcast with the team at Snapshot AI and Flatiron Software to bridge technical AI concepts with practical business applications.

Stepping into these deeply technical AI discussions feels like a stretch sometimes. I’m not an AI researcher by training, and there’s always that voice in the back of my head questioning if I should be the one unpacking these concepts. But that tension helps drive this podcast forward — the process of learning openly and sharing what we discover.

In our first episode, Kirim and I unpack the innovative Memory Mosaics paper from the International Conference on Learning Representations (ICLR) 2025, breaking down how this architecture represents a significant shift in how neural networks remember information.

What Are Memory Mosaics?

Imagine if your neural network had an actual notebook – somewhere it could jot down important details from everything it reads, and then flip back to those notes when making a decision. That’s the intuition behind Memory Mosaics.

Memory Mosaics put associative memory at the center of an architecture related to transformers. The notebook analogy helps explain its two ingredients:

  • Associative memory units: Think of these as mini-notebooks that store numerical key-value pairs
  • Two distinct memory types: Contextual memory grows as an input sequence is processed; persistent memory is learned during training and stays fixed while the model processes new input

This approach mirrors how humans remember – we temporarily store immediate context while drawing on our permanent knowledge base.

Why This Matters for Product and Engineering Leaders

  • Greater interpretability: Separating how information is represented, stored, and retrieved makes memory operations easier to inspect
  • Longer-context handling: In the paper’s experiments, Memory Mosaics maintained attention across 1,536 tokens after training on 512-token sequences
  • Meta-learning capabilities: The model doesn’t just learn facts; it learns how to take better notes for itself – effectively “learning how to learn”

For product managers and engineering leaders, this architecture could enable more personalized AI assistants that maintain coherent conversations over time while explaining their reasoning process.

The Technical Architecture, Simplified

During our conversation, Kirim expertly walked through how Memory Mosaics work:

  1. An embedding layer converts pieces of text called tokens into numerical vectors, as in standard language models
  2. Multiple memory units work in parallel to store key-value pairs
  3. A “leaky average” gives recent inputs more weight when forming a new retrieval key
  4. An attention mechanism retrieves relevant memories by comparing the current context with stored keys
  5. Both short-term and long-term memories contribute to each prediction

The model is trained end-to-end, learning language patterns and how to form useful memory keys and values.

Predictive Disentanglement and Future Potential

The authors call another useful property “predictive disentanglement”: different memory units can learn distinct components of a prediction. In their example of three orbiting moons, units learn separate motions and recombine them, like a team of experts each handling part of a job. This makes it easier to examine what each unit has learned.

While questions remain about scalability and real-world performance, the approach points in a promising direction for next-generation AI systems.

Thanks To

This podcast wouldn’t exist without my co-host Kirim, whose technical expertise brings depth to our conversations. I owe special thanks to Ana Clara, whose candid feedback and guidance helped shape this project from concept to execution.

Join the Conversation

If you found this discussion valuable, I’d appreciate your thoughts in the comments on our YouTube video. Sharing the discussion can help more people find it, and your comments help us improve future episodes.

Subscribe to stay updated on future episodes exploring the frontiers of technology and leadership. We welcome your suggestions for topics you’d like us to cover.


The Executive Code is filmed across New York, London, and wherever the conversation takes us.