Recurrent Memory Transformer

By Aydar Bulatov, Yuri Kuratov, Mikhail S. Burtsev. 2022

205 citations recorded by the source corpus.

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.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Model Architectures

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Xiao Liu
  2. Yuandong Tian
  3. Martin Jaggi
  4. Alexander Wettig
  5. Zhengxiao Du
  6. Yuxiao Dong
  7. Ankit Singh Rawat
  8. Shouyuan Chen

In Computer Vision and Pattern Recognition

  1. Yuandong Tian
  2. Sanjiv Kumar
  3. Shouyuan Chen
  4. Sherman Wong
  5. Liangjian Chen
  6. Xiao Liu
  7. Martin Jaggi
  8. Ankit Singh Rawat

In Model Architectures

  1. Yuandong Tian
  2. Shouyuan Chen
  3. Sherman Wong
  4. Liangjian Chen
  5. Stella Biderman
  6. Bo Peng
  7. Sanjiv Kumar
  8. Amirkeivan Mohtashami

Citations in the corpus