Efficient Attention: Attention with Linear Complexities

By Zhuoran Shen, Mingyuan Zhang, Haiyu Zhao, Shuai Yi, Hongsheng Li. 2018

772 citations recorded by the source corpus.

Dot-product attention has wide applications in computer vision and natural language processing. However, its memory and computational costs grow quadratically with the input size. Such growth prohibits its application on high- resolution inputs. To remedy this drawback, this paper proposes a novel efficient attention mechanism equivalent to dot-product attention but with substantially less memory and computational costs. Its resource efficiency allows more widespread and flexible integration of attention modules into a network, which leads to better accuracies. Empirical evaluations demonstrated the effectiveness of its advantages. Efficient attention modules brought significant performance boosts to object detectors and instance segmenters on MS-COCO 2017. Further, the resource efficiency democratizes attention to complex models, where high costs prohibit the use of dot-product attention. As an exemplar, a model with efficient attention achieved state-of- the-art accuracies for stereo depth estimation on the Scene Flow dataset. Code is available at https://github.com/cmsflash/efficient-attention.

Subfields: 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 Computer Vision and Pattern Recognition

  1. Luc Van Gool
  2. Dacheng Tao
  3. Alan L. Yuille
  4. Ming-Hsuan Yang
  5. Xiaogang Wang
  6. Andrew Zisserman
  7. Trevor Darrell
  8. Yi Yang

In Model Architectures

  1. Quoc V. Le
  2. Alan L. Yuille
  3. Song Han
  4. Mingxing Tan
  5. Barret Zoph
  6. Liang-Chieh Chen
  7. Herv'e J'egou
  8. Gao Huang

Citations in the corpus