Factorized Attention: Self-Attention with Linear Complexities
Authors:
- Zhuoran ShenZSZhuoran Shen
- Mingyuan ZhangMZMingyuan Zhang
- Shuai YiSYShuai Yi
- Junjie YanJYJunjie Yan
- Haiyu ZhaoHZHaiyu Zhao
Preprint
Abstract
Recent works have been applying self-attention to various fields in computer vision and natural language processing. However, the memory and computational demands of existing self-attention operations grow quadratically with the spatiotemporal size of the input. This prohibits the application of self-attention on large inputs, e.g., long sequences, high-definition images, or large videos. To remedy this, this paper proposes a novel factorized attention (FA) module, which achieves the same expressive power as previous approaches with substantially less memory and computational consumption. The resource-efficiency allows more widespread and flexible application of it. Empirical evaluations on object recognition demonstrate the effectiveness of these advantages. FA-augmented models achieved state-of-the-art performance for object detection and instance segmentation on MS-COCO. Further, the resource-efficiency of FA democratizes self-attention to fields where the prohibitively high costs currently prevent its application. The state-of-the-art result for stereo depth estimation on the Scene Flow dataset exemplifies this.Keywords
All Related Versions
This publication has 17 references indexed in Scilit:
- Video-Based Person Re-identification via 3D Convolutional Networks and Non-local Attention2019
- EdgeStereo: A Context Integrated Residual Pyramid Network for Stereo Matching2019
- CBAM: Convolutional Block Attention Module2018
- Cardiac Motion Scoring with Segment- and Subject-Level Non-local Modeling2018
- Pyramid Stereo Matching Network2018
- Cascade R-CNN: Delving Into High Quality Object Detection2018
- YOLO9000: Better, Faster, Stronger2017
- Residual Attention Network for Image Classification2017
- You Only Look Once: Unified, Real-Time Object Detection2016
- Rich Feature Hierarchies for Accurate Object Detection and Semantic Segmentation2014