paper-with-me

홈 › Papers

On The Computational Complexity of Self-Attention

2022-09-11 · Feyza Duman Keles, Pruthuvi Mahesakya Wijewardena, Chinmay Hegde

Transformer architectures have led to remarkable progress in many state-of-art applications. However, despite their successes, modern transformers rely on the self-attention mechanism, whose time- and space-complexity is quadratic in the length of the input. Several approaches have been proposed to speed up self-attention mechanisms to achieve sub-quadratic running time; however, the large majority of these works are not accompanied by rigorous error guarantees. In this work, we establish lower bounds on the computational complexity of self-attention in a number of scenarios. We prove that the time complexity of self-attention is necessarily quadratic in the input length, unless the Strong Exponential Time Hypothesis (SETH) is false. This argument holds even if the attention computation is performed only approximately, and for a variety of attention mechanisms. As a complement to our lower bounds, we show that it is indeed possible to approximate dot-product self-attention using finite Taylor series in linear-time, at the cost of having an exponential dependence on the polynomial order.

📄 PDF Abstract BibTeX arXiv:2209.04881

Code (0)

등록된 구현이 없습니다.

Methods 이 논문이 사용한 방법론

SPEED The monocular depth estimation (MDE) is the task of estimating depth from a single frame. This information is an essential knowledge in many computer vision tasks such as scene…

Similar Papers 제목 키워드 기반

LMSA: Low-relation Mutil-head Self-Attention Mechanism in Visual Transformer

2021-09-29 · JingJie Wang, Xiang Wei, Xiaoyu Liu

The Transformer backbone network with the self-attention mechanism as the core has achieved great success in the field of natural language processing and computer vision. However, through the self-attention mechanism bri…

image-classificationImage ClassificationRelation

SOFT: Softmax-free Transformer with Linear Complexity

2021-10-22 · NeurIPS 2021 12 · Jiachen Lu, Jinghan Yao, Junge Zhang, Xiatian Zhu 외

Vision transformers (ViTs) have pushed the state-of-the-art for various visual recognition tasks by patch-wise image tokenization followed by self-attention. However, the employment of self-attention modules results in a…

Computational Efficiency

DAE-Former: Dual Attention-guided Efficient Transformer for Medical Image Segmentation

2022-12-27 · Reza Azad, René Arimond, Ehsan Khodapanah Aghdam, Amirhossein Kazerouni 외

Transformers have recently gained attention in the computer vision domain due to their ability to model long-range dependencies. However, the self-attention mechanism, which is the core part of the Transformer model, usu…

Image SegmentationLesion SegmentationMedical Image SegmentationSemantic Segmentation+1

Dual Vision Transformer

2022-07-11 · Ting Yao, Yehao Li, Yingwei Pan, Yu Wang 외

Prior works have proposed several strategies to reduce the computational cost of self-attention mechanism. Many of these works consider decomposing the self-attention procedure into regional and local feature extraction …

Transformer-Transducer: End-to-End Speech Recognition with Self-Attention

2019-10-28 · Ching-Feng Yeh, Jay Mahadeokar, Kaustubh Kalgaonkar, Yongqiang Wang 외

We explore options to use Transformer networks in neural transducer for end-to-end speech recognition. Transformer networks use self-attention for sequence modeling and comes with advantages in parallel computation and c…

speech-recognitionSpeech Recognition