Maglev: Sliding Recurrent Memory
Not on the map. Why?
Abstract (arXiv)
We introduce ours, a recurrent Transformer architecture with fixed-size memory that generalizes sliding-window attention while remaining parallelizable during training. ours consists of two coupled models: a prefiller Q, which leverages full attentionfootnoteIn practice, we use interleaved full and sliding-window attention for Q, as this yields stronger performance. The essential requirement is that Q be more expressive than P, with access to the full history. to produce memory targets m't, and a decoder P, which uses only sliding-window attention and recurrent K/V injection to produce decoder memories mt for next-token prediction. We train ours with a memory consistency loss that aligns mt with m't, allowing inference to use P alone. Empirically, ours improves validation loss and downstream pretraining benchmarks over sliding-window and latent recurrent transformer baselines. Moreover, sharing parameters between P and Q reduces parameter memory while preserving most of the gains.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 47 of its 55 references that are in the map. First posted on arXiv 3 Aug 2026.
Builds on
47 of 55 references.
References · 47
- 2017Attention Is All You Needcited by 60,361
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2023Mistral 7Bcited by 3,164
- 2022Training Compute-Optimal Large Language Modelscited by 3,019
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
- 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,465
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,183
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,336
35 more
- 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 992
- 2023RWKV: Reinventing RNNs for the Transformer Eracited by 827
- 2024Training Large Language Models to Reason in a Continuous Latent Spacecited by 797
- 2022Simplified State Space Layers for Sequence Modelingcited by 788
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 726
- 2018Universal Transformerscited by 647
- 2023Retentive Network: A Successor to Transformer for Large Language Modelscited by 613
- 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 532
- 2022Hungry Hungry Hippos: Towards Language Modeling with State Space Modelscited by 499
- 2025Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approachcited by 415
- 2024Jamba: A Hybrid Transformer-Mamba Language Modelcited by 401
- 2023Hyena Hierarchy: Towards Larger Convolutional Language Modelscited by 393
- 2024Learning to (Learn at Test Time): RNNs with Expressive Hidden Statescited by 355
- 2024Titans: Learning to Memorize at Test Timecited by 328
- 2024xLSTM: Extended Long Short-Term Memorycited by 327
- 2024Quiet-STaR: Language Models Can Teach Themselves to Think Before Speakingcited by 301
- 2023Think before you speak: Training Language Models With Pause Tokenscited by 264
- 2023Looped Transformers as Programmable Computerscited by 237
- 2022Memorizing Transformerscited by 226
- 2023Landmark Attention: Random-Access Infinite Context Length for Transformerscited by 213
- 2022Recurrent Memory Transformercited by 203
- 2024Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attentioncited by 200
- 2024Let's Think Dot by Dot: Hidden Computation in Transformer Language Modelscited by 191
- 2024Samba: Simple Hybrid State Space Models for Efficient Unlimited Context Language Modelingcited by 174
- 2022Block-Recurrent Transformerscited by 110
- 2024Longhorn: State Space Models are Amortized Online Learnerscited by 59
- 2023Parallelizing non-linear sequential models over the sequence lengthcited by 45
- 2024Towards Scalable and Stable Parallelization of Nonlinear RNNscited by 38
- 2023Block-State Transformerscited by 24
- 2024Thinking Tokens for Language Modelingcited by 24
- 2024TransformerFAM: Feedback attention is working memorycited by 22
- 2023Sequence Modeling with Multiresolution Convolutional Memorycited by 19
- 2026Latent Recurrent Transformer: Architecture Exploration, Training Strategies, and Scaling Behaviorcited by 6
- 2026Pretraining Recurrent Networks without Recurrencecited by 5
- 2026Recurrent Preference Memory for Efficient Long-Sequence Generative Recommendationcited by 3
Built on by
Citing papers per year: 2026: 3.
3 papers.
- 2026Full-bandwidth transformercited by 5
- 2026Trading Depth for Time in Recurrent Transformerscited by 0
- 2026TraceRelay: Attention-Aligned Recurrence over Rolling Tracescited by 0
- 2026TraceRelay: Attention-Aligned Recurrence over Rolling Traces8 Oct 2026
- 2026Trading Depth for Time in Recurrent Transformers18 Sep 2026
- 2026Full-bandwidth transformer9 Aug 2026