---
title: "How AI memory works: five systems, not one"
description: "A technical map of model weights, context windows, KV caches, recurrent state, retrieval, and the limits of what AI systems remember."
canonical_url: "https://fanout.sh/blog/how-ai-memory-works-five-systems"
md_url: "https://fanout.sh/blog/how-ai-memory-works-five-systems.md"
last_updated: "2026-11-11"
access: "pro-preview"
---

# How AI memory works: five systems, not one

A technical map of model weights, context windows, KV caches, recurrent state, retrieval, and the limits of what AI systems remember.

- Author: Suraj Gaud

- Published: 2026-07-29

- Updated: 2026-11-11

- Track: AI research

- Access: Fanout Pro (public preview)

- Tags: AI memory, context window, KV cache, retrieval augmented generation, Kimi Delta Attention

“Memory” is one of the least precise words in AI.

It can mean knowledge stored in model weights, tokens inside the current context, a KV cache on a GPU, a recurrent state inside the architecture, or records retrieved from an external store.

Those systems retain different things, for different lengths of time, with different failure modes. Treating them as one feature makes both model behavior and infrastructure harder to reason about.

The cleanest mental model has five layers.

## In this article

- 1. Model weights are learned memory
- 2. The context window is the working set
- 3. The KV cache remembers computation
- 4. Recurrent attention keeps a fixed-size state
- 5. Retrieval supplies persistent external memory
- Product memory is an orchestration layer
- The same failure can come from different layers
- A practical memory stack

## Continue reading

This field note is part of Fanout Pro, with the complete archive, courses, labs, and every Daily paper guide.

---
This representation contains public Fanout content only. Protected Pro lessons, account data, billing, checkout, and pricing are not included.

Browse the public content map: https://fanout.sh/sitemap.md
