Sub-Linear Memory: How to Make Performers SLiM

By Valerii Likhosherstov, Krzysztof Marcin Choromanski, Jared Davis, Xingyou Song, Adrian Weller. 2020

25 citations recorded by the source corpus.

The Transformer architecture has revolutionized deep learning on sequential data, becoming ubiquitous in state-of-the-art solutions for a wide variety of applications. Yet vanilla Transformers are notoriously resource-expensive, requiring $O(L^2)$ in serial time and memory as functions of input length $L$. Recent works proposed various linear self-attention mechanisms, scaling only as $O(L)$ for serial computation. We perform a thorough analysis of recent Transformer mechanisms with linear self-attention, Performers, in terms of overall computational complexity. We observe a remarkable computational flexibility: forward and backward propagation can be performed with no approximations using sublinear memory as a function of $L$ (in addition to negligible storage for the input sequence), at a cost of greater time complexity in the parallel setting. In the extreme case, a Performer consumes only $O(1)$ memory during training, and still requires $O(L)$ time. This discovered time-memory tradeoff can be used for training or, due to complete backward-compatibility, for fine-tuning on a low-memory device, e.g. a smartphone or an earlier-generation GPU, thus contributing towards decentralized and democratized deep learning.

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

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. Christopher R'e
  2. Tri Dao
  3. Atri Rudra
  4. Stefano Ermon
  5. Daniel Y. Fu
  6. Beidi Chen
  7. Chinmay Hegde
  8. Zhao Song

In Computer Vision and Pattern Recognition

  1. Christopher R'e
  2. Tri Dao
  3. Atri Rudra
  4. Stefano Ermon
  5. Daniel Y. Fu
  6. Beidi Chen
  7. Chinmay Hegde
  8. Zhao Song

In Model Architectures

  1. Tri Dao
  2. Christopher R'e
  3. Daniel Y. Fu
  4. Stefano Ermon
  5. Atri Rudra
  6. Beidi Chen
  7. Chinmay Hegde
  8. Zhao Song

In Efficiency & Compression

  1. Tri Dao
  2. Stefano Ermon
  3. Daniel Y. Fu
  4. Christopher R'e
  5. Atri Rudra
  6. Chinmay Hegde
  7. Zhao Song
  8. Feyza Duman Keles

Citations in the corpus