← AI glossary

AI glossary · Basic · Language models · Classic ML, recsys & search

Continuous Memory Machine

The Continuous Memory Machine (CMM) is a recurrent neural network (RNN)-style architecture released by Sakana AI researchers. It keeps short-term memory and long-term memory separate, and uses a transformer to read, write and revise information between the two memories.

About this term
Level
Basic · Technical terms you often meet in AI news
Added
2026-12-04
In plain words It is similar to keeping sticky notes on a desk (short-term memory) and a notebook in a drawer (long-term memory) separately, with an assistant (the transformer) moving and organizing notes between them. However, it does not replicate how the real brain stores memories; it is only a design inspired by the brain.

What it is

A typical recurrent neural network compresses everything it has seen so far into a state made of a single vector. This creates a bottleneck: immediate computation and content that must be remembered long-term have to share the same space. To address this, CMM splits short-term and long-term memory into two matrix-shaped states and gives each a different role. It extends the Continuous Thought Machine (CTM) that Sakana AI released earlier; CTM could hold only a limited amount of recent neural activity, so it was weak at tasks requiring long-term memory.

How it works

Short-term memory tracks recent neural activity, and small models learned separately for each neuron use these activity patterns in computation. Long-term memory keeps holding information for later use. A transformer updates both memories together: each memory can reorganize its own content, and each can read from and write to the other. This two-way reading and writing makes it possible to store information from short-term memory in long-term memory, or to retrieve and revise what is needed from long-term memory. The researchers said they also kept CTM's strength of easily inspectable attention patterns.

CMM's two memories and the TransformerInput → Short-term memory; Short-term memory → Per-neuron models; Per-neuron models → Output; Short-term memory → Transformer(Read/write); Transformer → Long-term memory(Read/write)InputShort-term memoryRecent neural activityPer-neuron modelsCompute with activitypatternsOutputTransformerUpdates both memoriestogetherLong-term memoryStores information forlater useRead/writeRead/write
CMM's two memories and the Transformer Short-term memory uses recent neural activity for computation, and the Transformer reads and writes information in both directions between short-term and long-term memory.

Why it matters

The researchers report that it generalizes better than existing memory-augmented neural networks on algorithmic tasks, in-context learning and iterative reasoning tasks. According to AI Times (a Korean tech news outlet), in a test where it was trained to sort 4–16 items and then asked to sort 50 items, it reached 72% accuracy, ahead of RMT (68%) and DNC (56%). On a maze-solving task, average accuracy reportedly rose from 37% with the original CTM to about 62%. The ability to handle larger problems not seen during training connects to the broader effort to let trained AI remember new experiences and adapt.

Accuracy sorting 50 items

CMM
RMT
DNC
Results for sorting 50 items after training on 4–16 items. Figures were reported by the researchers and covered by AI Times.

Things to know

The paper was presented at a NeurIPS 2026 workshop on long-term memory (PALM), and it has so far been tested only on a limited set of experimental tasks. More research is needed to see whether the same effect holds in large language models (LLMs). In the same announcement, Sakana AI also introduced 'Plastic CTM', which changes some of its weights even during inference, but that is a separate piece of research from CMM. The performance figures above are results reported by the researchers. The code and evaluation scripts are public, so other researchers can check them.

Example

Sakana AI released CMM and Plastic CTM together on its official blog, and this site also covered them as news of 'architectures inspired by how the brain remembers and learns'. For example, a researcher experimenting with a task that requires processing a long input in order while remembering early content for a long time could download the CMM code published on GitHub and compare it with existing recurrent neural networks under the same conditions. For now, however, it is a research architecture and is not yet at the stage of being used directly in real services such as chatbots.

Where it came up on this site

Related terms

References