Skip to main content

How AI memory works: five systems, not one

“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.

See plans