Associative Recurrent Memory Transformer
Ivan Rodkin, Yuri Kuratov, Aydar Bulatov, Mikhail Burtsev
TL;DR
ARMT addresses long-context processing by combining segment-level recurrence with an associative memory mechanism, enabling constant-time updates per new segment. It extends the RMT framework with layerwise associative memory, achieving superior performance on associative retrieval and long-context benchmarks such as Babilong, including up to 50M tokens and ~79.9% QA1 accuracy. The paper introduces a memory-capacity estimator and uses curriculum learning to train on progressively longer contexts, demonstrating robustness in memory recall tasks and notable length generalization. Limitations include training challenges, slower runtime on shorter sequences, and LM performance that requires further optimization and scaling to realize full potential in larger models.
Abstract
This paper addresses the challenge of creating a neural architecture for very long sequences that requires constant time for processing new information at each time step. Our approach, Associative Recurrent Memory Transformer (ARMT), is based on transformer self-attention for local context and segment-level recurrence for storage of task specific information distributed over a long context. We demonstrate that ARMT outperfors existing alternatives in associative retrieval tasks and sets a new performance record in the recent BABILong multi-task long-context benchmark by answering single-fact questions over 50 million tokens with an accuracy of 79.9%. The source code for training and evaluation is available on github.
