paper-with-me

홈 › Papers

Recurrent Memory Transformer

2022-07-14 · Aydar Bulatov, Yuri Kuratov, Mikhail S. Burtsev

Transformer-based models show their effectiveness across multiple domains and tasks. The self-attention allows to combine information from all sequence elements into context-aware representations. However, global and local information has to be stored mostly in the same element-wise representations. Moreover, the length of an input sequence is limited by quadratic computational complexity of self-attention. In this work, we propose and study a memory-augmented segment-level recurrent Transformer (RMT). Memory allows to store and process local and global information as well as to pass information between segments of the long sequence with the help of recurrence. We implement a memory mechanism with no changes to Transformer model by adding special memory tokens to the input or output sequence. Then the model is trained to control both memory operations and sequence representations processing. Results of experiments show that RMT performs on par with the Transformer-XL on language modeling for smaller memory sizes and outperforms it for tasks that require longer sequence processing. We show that adding memory tokens to Tr-XL is able to improve its performance. This makes Recurrent Memory Transformer a promising architecture for applications that require learning of long-term dependencies and general purpose in memory processing, such as algorithmic tasks and reasoning.

📄 PDF Abstract BibTeX arXiv:2207.06881

Code (3)

booydar/lm-rmt 공식 구현 pytorch
booydar/transformer-xl 공식 구현 pytorch
booydar/t5-experiments pytorch

Tasks

Language ModelingLanguage Modelling

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
ReLU How Do I Communicate to Expedia? How Do I Communicate to Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Live Support & Special Travel…
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Position-Wise Feed-Forward Layer 설명 없음

Similar Papers 제목 키워드 기반

Compressing History into Memory: Distilling Transformers into Recurrent Transformers

2026-06-19 · Philippe Weinzaepfel, Christian Wolf, Bülent Mert Sariyildiz, Guillaume Bono 외 arxiv

Transformers are AI's workhorse but their computational cost becomes prohibitive when processing long sequences. We target long-horizon streaming vision and robotics applications, where it is particularly impractical to …

Pose Estimation

Memory Caching: RNNs with Growing Memory

2026-02-27 · Ali Behrouz, Zeman Li, Yuan Deng, Peilin Zhong 외 arxiv

Transformers have been established as the de-facto backbones for most recent advances in sequence modeling, mainly due to their growing memory capacity that scales with the context length. While plausible for retrieval t…

Long-Context Understanding

Recurrent Action Transformer with Memory

2023-06-15 · Egor Cherepanov, Alexey Staroverov, Dmitry Yudin, Alexey K. Kovalev 외

Recently, the use of transformers in offline reinforcement learning has become a rapidly developing area. This is due to their ability to treat the agent's trajectory in the environment as a sequence, thereby reducing th…

Atari GamesMuJoCoreinforcement-learningReinforcement Learning

MART: Memory-Augmented Recurrent Transformer for Coherent Video Paragraph Captioning

2020-05-11 · ACL 2020 6 · Jie Lei, Li-Wei Wang, Yelong Shen, Dong Yu 외

Generating multi-sentence descriptions for videos is one of the most challenging captioning tasks due to its high requirements for not only visual relevance but also discourse-based coherence across the sentences in the …

SentenceVideo Captioning

Linear-Time and Constant-Memory Text Embeddings Based on Recurrent Language Models

2026-04-20 · Tobias Grantner, Emanuel Sallinger, Martin Flechl arxiv

Transformer-based embedding models suffer from quadratic computational and linear memory complexity, limiting their utility for long sequences. We propose recurrent architectures as an efficient alternative, introducing …