Shunted Self-Attention via Multi-Scale Token Aggregation
Sucheng Ren, Daquan Zhou, Shengfeng He, Jiashi Feng, Xinchao Wang
摘要
Recent Vision Transformer (ViT) models have demonstrated encouraging results across various computer vision tasks, thanks to its competence in modeling long-range dependencies of image patches or tokens via self-attention. These models, however, usually designate the similar receptive fields of each token feature within each layer. Such a constraint inevitably limits the ability of each self-attention layer in capturing multi-scale features, thereby leading to performance degradation in handling images with multiple objects of different scales. To address this issue, we propose a novel and generic strategy, termed shunted selfattention (SSA), that allows ViTs to model the attentions at hybrid scales per attention layer. The key idea of SSA is to inject heterogeneous receptive field sizes into tokens: before computing the self-attention matrix, it selectively merges tokens to represent larger object features while keeping certain tokens to preserve fine-grained features. This novel merging scheme enables the self-attention to learn relationships between objects with different sizes, and simultaneously reduces the token numbers and the computational cost. Extensive experiments across various tasks demonstrate the superiority of SSA. Specifically, the SSAbased transformer achieve 84.0% Top-1 accuracy and outperforms the state-of-the-art Focal Transformer on Ima-geNet with only half of the model size and computation cost, and surpasses Focal Transformer by 1.3 mAP on COCO and 2.9 mIOU on ADE20K under similar parameter and computation cost. Code has been released at https://github.com/OliverRensu/Shunted-Transformer . Output Size Layer Name Shunted-Tiny Shunted-Small Shunted-Base Shunted-L Stage1 56x56 Transformer Block Transformer Block Transformer Block
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 39 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- InceptionNeXt: When Inception Meets ConvNeXt 引用了 CutMix: Regularization Strategy to Train Strong Classifiers With Localizable Features
- InceptionNeXt: When Inception Meets ConvNeXt 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- InceptionNeXt: When Inception Meets ConvNeXt 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- InceptionNeXt: When Inception Meets ConvNeXt 引用了 Training data-efficient image transformers & distillation through attention
- Dataset Distillation via Factorization 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Dataset Distillation via Factorization 引用了 SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers
- Swin Transformer: Hierarchical Vision Transformer using Shifted Windows 引用了 CutMix: Regularization Strategy to Train Strong Classifiers With Localizable Features
- Swin Transformer: Hierarchical Vision Transformer using Shifted Windows 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Swin Transformer: Hierarchical Vision Transformer using Shifted Windows 引用了 Training data-efficient image transformers & distillation through attention
- Scale-Aware Modulation Meet Transformer 引用了 CutMix: Regularization Strategy to Train Strong Classifiers With Localizable Features
- Scale-Aware Modulation Meet Transformer 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Scale-Aware Modulation Meet Transformer 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- Scale-Aware Modulation Meet Transformer 引用了 Training data-efficient image transformers & distillation through attention
- Scaling & Shifting Your Features: A New Baseline for Efficient Model Tuning 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Scaling & Shifting Your Features: A New Baseline for Efficient Model Tuning 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- Scaling & Shifting Your Features: A New Baseline for Efficient Model Tuning 引用了 Training data-efficient image transformers & distillation through attention
- Training data-efficient image transformers & distillation through attention 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
引用它的顶会 Paper39
- Scaling & Shifting Your Features: A New Baseline for Efficient Model TuningDongze Lian, Daquan Zhou, Jiashi Feng, Xinchao WangNeurIPS 2022 · 415 次引用
- InceptionNeXt: When Inception Meets ConvNeXtWeihao Yu, Pan Zhou, Shuicheng Yan, Xinchao WangCVPR 2024 · 326 次引用
- Focal Network for Image RestorationYuning Cui, Wenqi Ren, Xiaochun Cao, Alois KnollICCV 2023 · 204 次引用
- Dataset Distillation via FactorizationSonghua Liu, Kai Wang, Xingyi Yang, Jingwen Ye 等NeurIPS 2022 · 190 次引用
- Scale-Aware Modulation Meet TransformerWeifeng Lin, Ziheng Wu, Jiayu Chen, Jun Huang 等ICCV 2023 · 154 次引用
它引用的 Paper15
- Swin Transformer: Hierarchical Vision Transformer using Shifted WindowsZe Liu, Yutong Lin, Yue Cao, Han Hu 等ICCV 2021 · 31,683 次引用
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn 等ICLR 2021 · 21,477 次引用
- SegFormer: Simple and Efficient Design for Semantic Segmentation with TransformersEnze Xie, Wenhai Wang, Zhiding Yu, Anima Anandkumar 等NeurIPS 2021 · 9,661 次引用
- Training data-efficient image transformers & distillation through attentionHugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa 等ICML 2021 · 8,974 次引用
- CutMix: Regularization Strategy to Train Strong Classifiers With Localizable FeaturesSangdoo Yun, Dongyoon Han, Sanghyuk Chun, Seong Joon Oh 等ICCV 2019 · 5,843 次引用
相关 Paper
- SG-Former: Self-guided Transformer with Evolving Token ReallocationSucheng Ren, Xingyi Yang, Songhua Liu, Xinchao WangICCV 2023 · 70 次引用
- CrossViT: Cross-Attention Multi-Scale Vision Transformer for Image ClassificationChun-Fu (Richard) Chen, Quanfu Fan, Rameswar PandaICCV 2021 · 2,072 次引用
- Focal Attention for Long-Range Interactions in Vision TransformersJianwei Yang, Chunyuan Li, Pengchuan Zhang, Xiyang Dai 等NeurIPS 2021 · 228 次引用
- Scalable Vision Transformers with Hierarchical PoolingZizheng Pan, Bohan Zhuang, Jing Liu, Haoyu He 等ICCV 2021 · 154 次引用
- ViTAE: Vision Transformer Advanced by Exploring Intrinsic Inductive BiasYufei Xu, Qiming Zhang, Jing Zhang, Dacheng TaoNeurIPS 2021 · 429 次引用
