GMAT: Global Memory Augmentation for Transformers

By Ankit Gupta, Jonathan Berant. 2020

53 citations recorded by the source corpus.

Transformer-based models have become ubiquitous in natural language processing thanks to their large capacity, innate parallelism and high performance. The contextualizing component of a Transformer block is the $\textit{pairwise dot-product}$ attention that has a large $\Omega(L^2)$ memory requirement for length $L$ sequences, limiting its ability to process long documents. This has been the subject of substantial interest recently, where multiple approximations were proposed to reduce the quadratic memory requirement using sparse attention matrices. In this work, we propose to augment sparse Transformer blocks with a dense attention-based $\textit{global memory}$ of length $M$ ($\ll L$) which provides an aggregate global view of the entire input sequence to each position. Our augmentation has a manageable $O(M\cdot(L+M))$ memory overhead, and can be seamlessly integrated with prior sparse solutions. Moreover, global memory can also be used for sequence compression, by representing a long input sequence with the memory representations only. We empirically show that our method leads to substantial improvement on a range of tasks, including (a) synthetic tasks that require global reasoning, (b) masked language modeling, and (c) reading comprehension.

Subfields: Artificial Intelligence, Electrical and Electronic Engineering, Hardware and Architecture

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. Alan L. Yuille
  2. Quoc V. Le
  3. Liang-Chieh Chen
  4. Huiyu Wang
  5. Luke S. Zettlemoyer
  6. Mohit Bansal
  7. Yukun Zhu
  8. Jianfeng Gao

In Electrical and Electronic Engineering

  1. Jimmy Smith
  2. Scott W. Linderman
  3. Andrew Warrington
  4. Aydar Bulatov
  5. Yuri Kuratov
  6. Mikhail S. Burtsev
  7. Alan L. Yuille
  8. Yukun Zhu

In Hardware and Architecture

  1. Jimmy Smith
  2. Aydar Bulatov
  3. Scott W. Linderman
  4. Mikhail S. Burtsev
  5. Andrew Warrington
  6. Yuri Kuratov
  7. Jonathan May
  8. Alan L. Yuille

Citations in the corpus