TopFormer: Token Pyramid Transformer for Mobile Semantic Segmentation
Wenqiang Zhang, Zilong Huang, Guozhong Luo, Tao Chen, Xinggang Wang, Wenyu Liu, Gang Yu, Chunhua Shen
Abstract
Although vision transformers (ViTs) have achieved great success in computer vision, the heavy computational cost hampers their applications to dense prediction tasks such as semantic segmentation on mobile devices. In this paper, we present a mobile-friendly architecture named Token Pyramid Vision Transformer (TopFormer). The proposed TopFormer takes Tokens from various scales as input to produce scale-aware semantic features, which are then in-Jected into the corresponding tokens to augment the representation. Experimental results demonstrate that our method significantly outperforms CNN- and ViT-based networks across several semantic segmentation datasets and achieves a good trade-off between accuracy and latency. On the ADE20K dataset, TopFormer achieves 5% higher accuracy in mIoU than MobileNetV3 with lower latency on an ARM-based mobile device. Furthermore, the tiny version of TopFormer achieves real-time inference on an ARM-based mobile device with competitive results. The code and models are available at: https://github.com/hustvl/TopFormer.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
28 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Gold-YOLO: Efficient Object Detector via Gather-and-Distribute Mechanism cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Gold-YOLO: Efficient Object Detector via Gather-and-Distribute Mechanism cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- Rethinking Vision Transformers for MobileNet Size and Speed cites Searching for MobileNetV3
- Rethinking Vision Transformers for MobileNet Size and Speed cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Rethinking Vision Transformers for MobileNet Size and Speed cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- Rethinking Vision Transformers for MobileNet Size and Speed cites Training data-efficient image transformers & distillation through attention
- Rethinking Vision Transformers for MobileNet Size and Speed cites EfficientFormer: Vision Transformers at MobileNet Speed
- Rethinking Vision Transformers for MobileNet Size and Speed cites SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers
- Swin Transformer: Hierarchical Vision Transformer using Shifted Windows cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Swin Transformer: Hierarchical Vision Transformer using Shifted Windows cites Training data-efficient image transformers & distillation through attention
- Rep ViT: Revisiting Mobile CNN From ViT Perspective cites Searching for MobileNetV3
- Rep ViT: Revisiting Mobile CNN From ViT Perspective cites Rethinking Vision Transformers for MobileNet Size and Speed
- Rep ViT: Revisiting Mobile CNN From ViT Perspective cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Rep ViT: Revisiting Mobile CNN From ViT Perspective cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- Rep ViT: Revisiting Mobile CNN From ViT Perspective cites Training data-efficient image transformers & distillation through attention
- Rep ViT: Revisiting Mobile CNN From ViT Perspective cites EfficientFormer: Vision Transformers at MobileNet Speed
- Rep ViT: Revisiting Mobile CNN From ViT Perspective cites SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers
- Training data-efficient image transformers & distillation through attention cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- EfficientFormer: Vision Transformers at MobileNet Speed cites Searching for MobileNetV3
- EfficientFormer: Vision Transformers at MobileNet Speed cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- EfficientFormer: Vision Transformers at MobileNet Speed cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- EfficientFormer: Vision Transformers at MobileNet Speed cites Training data-efficient image transformers & distillation through attention
- EfficientFormer: Vision Transformers at MobileNet Speed cites SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers
- SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- YOLOv10: Real-Time End-to-End Object Detection cites Gold-YOLO: Efficient Object Detector via Gather-and-Distribute Mechanism
- YOLOv10: Real-Time End-to-End Object Detection cites Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- YOLOv10: Real-Time End-to-End Object Detection cites Rep ViT: Revisiting Mobile CNN From ViT Perspective
Cited by top-tier papers28
- YOLOv10: Real-Time End-to-End Object DetectionAo Wang, Hui Chen, Lihao Liu, Kai Chen et al.NeurIPS 2024 · 6,113 citations
- EfficientFormer: Vision Transformers at MobileNet SpeedYanyu Li, Geng Yuan, Yang Wen, Ju Hu et al.NeurIPS 2022 · 742 citations
- Gold-YOLO: Efficient Object Detector via Gather-and-Distribute MechanismChengcheng Wang, Wei He, Ying Nie, Jianyuan Guo et al.NeurIPS 2023 · 732 citations
- Rep ViT: Revisiting Mobile CNN From ViT PerspectiveAo Wang, Hui Chen, Zijia Lin, Jungong Han et al.CVPR 2024 · 500 citations
- Rethinking Vision Transformers for MobileNet Size and SpeedYanyu Li, Ju Hu, Yang Wen, Georgios Evangelidis et al.ICCV 2023 · 300 citations
Builds on23
- Swin Transformer: Hierarchical Vision Transformer using Shifted WindowsZe Liu, Yutong Lin, Yue Cao, Han Hu et al.ICCV 2021 · 31,683 citations
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
- SegFormer: Simple and Efficient Design for Semantic Segmentation with TransformersEnze Xie, Wenhai Wang, Zhiding Yu, Anima Anandkumar et al.NeurIPS 2021 · 9,661 citations
- Searching for MobileNetV3Andrew Howard, Ruoming Pang, Hartwig Adam, Quoc V. Le et al.ICCV 2019 · 9,163 citations
- Training data-efficient image transformers & distillation through attentionHugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa et al.ICML 2021 · 8,974 citations
Related papers
- SeaFormer: Squeeze-enhanced Axial Transformer for Mobile Semantic SegmentationQiang Wan, Zilong Huang, Jiachen Lu, Gang Yu et al.ICLR 2023 · 82 citations
- SegViT: Semantic Segmentation with Plain Vision TransformersBowen Zhang, Zhi Tian, Quan Tang, Xiangxiang Chu et al.NeurIPS 2022 · 242 citations
- MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision TransformerSachin Mehta, Mohammad RastegariICLR 2022 · 2,162 citations
- RTFormer: Efficient Design for Real-Time Semantic Segmentation with TransformerJian Wang, Chenhui Gou, Qiman Wu, Haocheng Feng et al.NeurIPS 2022 · 207 citations
- Group Vision TransformerYaopeng Peng, Milan Sonka, Danny Z. ChenACM MM 2024
