arXiv cs.AI· Yannis Bendi-Ouis (Mnemosyne), Xavier Hinaut (Mnemosyne)·· 1 天前AI 评分34
Dynamical Memory Transformer:用恒定成本注意力实现选择性循环记忆
Dynamical Memory Transformer: Selective Recurrent Memories with Constant Cost Attention
AI 导读
Dynamical Memory Transformer(DMT)是一种混合架构,将序列编码与信息读取分离:编码器由多个以复数对角循环矩阵实现的动力系统记忆单元组成,由输入相关的泄漏率控制更新,解码器用注意力直接读取其输出而不经过 token 历史。
正文 · 原文
Abstract:Transformers retain an explicit history of the sequence, allowing attention to directly retrieve past representations. However, the size of the KV-Cache and the cost of a new token increase with the context length. State Space Models compress the past into a fixed-size recurrent state, at the cost of reduced addressability. We present the Dynamical Memory Transformer (DMT), a hybrid architecture that separates sequence encoding from information reading. The encoder uses several memory units, each implemented by a dynamical system with a complex diagonal recurrent matrix. An input-dependent leak rate controls their updates. The decoder then uses attention to read and combine their outputs, without going through the token history. The formulation of the recurrence allows an associative scan with O(T ) total work and O(log T ) parallel depth, with fixed dimensions. During autoregressive inference, the recurrent states and the convolution cache remain fixed in size. We compare DMT with Mamba and Transformer on cognitive and language modeling tasks, and show its strengths and limitations: DMT achieves the best results on several cognitive tasks and language modeling performance close to that of Transformer, but remains behind Mamba in language modeling. On selective copy, DMT also shows stronger length extrapolation than Mamba and Transformer. These results demonstrate that parallel dynamical memory units are a promising mechanism for retaining and using information over sequences.
| Subjects: | Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2610.41850 [cs.AI] |
| (or arXiv:2610.41850v1 [cs.AI] for this version) | |
| https://doi.org/10.48550/arXiv.2610.41850 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Yannis Bendi-Ouis [view email] [via CCSD proxy]
[v1]
Fri, 30 Oct 2026 15:06:37 UTC (996 KB)
来源:arXiv cs.AI · arxiv.org