Beyond Self-attention: External Attention using Two Linear Layers for Visual Tasks
원문 초록
Attention mechanisms, especially self-attention, have played an increasingly important role in deep feature representation for visual tasks. Self-attention updates the feature at each position by computing a weighted sum of features using pair-wise affinities across all positions to capture the long-range dependency within a single sample. However, self-attention has quadratic complexity and ignores potential correlation between different samples. This paper proposes a novel attention mechanism which we call external attention, based on two external, small, learnable, shared memories, which can be implemented easily by simply using two cascaded linear layers and two normalization layers; it conveniently replaces self-attention in existing popular architectures. External attention has linear complexity and implicitly considers the correlations between all data samples. We further incorporate the multi-head mechanism into external attention to provide an all-MLP architecture, external attention MLP (EAMLP), for image classification. Extensive experiments on image classification, object detection, semantic segmentation, instance segmentation, image generation, and point cloud analysis reveal that our method provides results comparable or superior to the self-attention mechanism and some of its variants, with much lower computational and memory costs.
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
A Robust Feature Downsampling Module for Remote Sensing Visual Tasks
Tomato Multi-Angle Multi-Pose Dataset for Fine-Grained Phenotyping
Model-free Optical Processors using In Situ Reinforcement Learning with Proximal Policy Optimization
Unfolding the Past: A Comprehensive Deep Learning Approach to Analyzing Incunabula Pages
Improving Model Performance and Removing the Class Imbalance Problem Using Augmentation
Augmentation Techniques Analysis with Removal of Class Imbalance Using PyTorch for Intel Scene Dataset
토론
이 논문과 연결된 포럼 글이 아직 없습니다.