Compact Recurrent Transformer with Persistent Memory
Not on the map. Why?
Abstract (arXiv)
The Transformer architecture has shown significant success in many language processing and visual tasks. However, the method faces challenges in efficiently scaling to long sequences because the self-attention computation is quadratic with respect to the input length. To overcome this limitation, several approaches scale to longer sequences by breaking long sequences into a series of segments, restricting self-attention to local dependencies between tokens within each segment and using a memory mechanism to manage information flow between segments. However, these approached generally introduce additional compute overhead that restricts them from being used for applications where limited compute memory and power are of great concern (such as edge computing). We propose a novel and efficient Compact Recurrent Transformer (CRT), which combines shallow Transformer models that process short local segments with recurrent neural networks to compress and manage a single persistent memory vector that summarizes long-range global information between segments. We evaluate CRT on WordPTB and WikiText-103 for next-token-prediction tasks, as well as on the Toyota Smarthome video dataset for classification. CRT achieves comparable or superior prediction results to full-length Transformers in the language datasets while using significantly shorter segments (half or quarter size) and substantially reduced FLOPs. Our approach also demonstrates state-of-the-art performance on the Toyota Smarthome video dataset.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 27 of its 36 references that are in the map. First posted on arXiv 2 May 2025.
Builds on
27 of 36 references.
References · 27
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2023GPT-4 Technical Reportcited by 18,396
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2014Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translationcited by 4,057
- 2016Pointer Sentinel Mixture Modelscited by 3,096
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
- 2021Is Space-Time Attention All You Need for Video Understanding?cited by 1,620
- 2022LaMDA: Language Models for Dialog Applicationscited by 1,220
- 2021Perceiver IO: A General Architecture for Structured Inputs & Outputscited by 629
15 more
- 2022Recurrent Memory Transformercited by 203
- 2015A Theoretically Grounded Application of Dropout in Recurrent Neural Networkscited by 161
- 2019Cheap Orthogonal Constraints in Neural Networks: A Simple Parametrization of the Orthogonal and Unitary Groupcited by 134
- 2022Block-Recurrent Transformerscited by 110
- 2016Full-Capacity Unitary Recurrent Neural Networkscited by 94
- 2017Orthogonal Recurrent Neural Networks with Scaled Cayley Transformcited by 83
- 2020Memory Transformercited by 76
- 2016Efficient softmax approximation for GPUscited by 67
- 2016Efficient Orthogonal Parametrisation of Recurrent Neural Networks Using Householder Reflectionscited by 57
- 2019R-Transformer: Recurrent Neural Network Enhanced Transformercited by 39
- 2017Gated Orthogonal Recurrent Units: On Learning to Forgetcited by 31
- 2023Just Add π! Pose Induced Video Transformers for Understanding Activities of Daily Livingcited by 19
- 2018Complex Unitary Recurrent Neural Networks using Scaled Cayley Transformcited by 12
- 2019Eigenvalue Normalized Recurrent Neural Networks for Short Term Memorycited by 5
- 2022Orthogonal Gated Recurrent Unit with Neumann-Cayley Transformationcited by 4
Built on by
Not cited yet.