Memformer: A Memory-Augmented Transformer for Sequence Modeling

By Qingyang Wu, Zhenzhong Lan, Kun Qian, Jing Gu, Alborz Geramifard, Zhou Yu. 2020

79 citations recorded by the source corpus.

Transformers have reached remarkable success in sequence modeling. However, these models have efficiency issues as they need to store all the history token-level representations as memory. We present Memformer, an efficient neural network for sequence modeling, that utilizes an external dynamic memory to encode and retrieve past information. Our model achieves linear time complexity and constant memory space complexity when processing long sequences. We also propose a new optimization scheme, memory replay back-propagation (MRBP), which promotes long-range back-propagation through time with a significantly reduced memory requirement. Experimental results show that Memformer has achieved comparable performance compared to the baselines by using 8.1x less memory space and 3.2x faster on inference. Analysis of the attention pattern shows that our external memory slots can encode and retain important information through timesteps.

Subfields: Artificial Intelligence, 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. Yuandong Tian
  2. Shouyuan Chen
  3. Sherman Wong
  4. Liangjian Chen
  5. Boris Ginsburg
  6. Martin Jaggi
  7. Samuel Kriman
  8. Amirkeivan Mohtashami

In Model Architectures

  1. Yuandong Tian
  2. Shouyuan Chen
  3. Sherman Wong
  4. Liangjian Chen
  5. Boris Ginsburg
  6. Samuel Kriman
  7. Amirkeivan Mohtashami
  8. Fei Jia

Citations in the corpus