Reproduce “Dynamical Memory Transformer: Selective Recurrent Memories with Constant Cost Attention” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Yannis Bendi-Ouis, Xavier Hinaut

The authors introduce DMT, which compresses tokens into recurrent memory units and uses attention to combine their outputs, rather than attending to the full token history. On selective copy, trained at length 256, DMT’s token error stays below 1% through length 1,024 and below Mamba’s until 65,536. This does not establish general long-context superiority; TinyStories favors Mamba.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.