Sparse Sinkhorn Attention

By Yi Tay, Dara Bahri, Liu Yang, Donald Metzler, Da-Cheng Juan. 2020

399 citations recorded by the source corpus.

We propose Sparse Sinkhorn Attention, a new efficient and sparse method for learning to attend. Our method is based on differentiable sorting of internal representations. Concretely, we introduce a meta sorting network that learns to generate latent permutations over sequences. Given sorted sequences, we are then able to compute quasi-global attention with only local windows, improving the memory efficiency of the attention module. To this end, we propose new algorithmic innovations such as Causal Sinkhorn Balancing and SortCut, a dynamic sequence truncation method for tailoring Sinkhorn Attention for encoding and/or decoding purposes. Via extensive experiments on algorithmic seq2seq sorting, language modeling, pixel-wise image generation, document classification and natural language inference, we demonstrate that our memory efficient Sinkhorn Attention method is competitive with vanilla attention and consistently outperforms recently proposed efficient Transformer models such as Sparse Transformers.

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. Jianfeng Gao
  2. Mohit Bansal
  3. Luke S. Zettlemoyer
  4. Noah A. Smith
  5. Quoc V. Le
  6. Yejin Choi
  7. Graham Neubig
  8. Yi Tay

In Computer Vision and Pattern Recognition

  1. Luc Van Gool
  2. Dacheng Tao
  3. Ming-Hsuan Yang
  4. Xiaogang Wang
  5. Trevor Darrell
  6. Jitendra Malik
  7. Andrew Zisserman
  8. Chen Change Loy

In Model Architectures

  1. Yi Tay
  2. Jianfeng Gao
  3. Mostafa Dehghani
  4. Donald Metzler
  5. Jianwei Yang
  6. Dara Bahri
  7. Christoph Feichtenhofer
  8. J. Ainslie

Citations in the corpus