HAFormer: Unleashing the Power of Hierarchy-Aware Features for Lightweight Semantic Segmentation
Not on the map. Why?
Abstract (arXiv)
Both Convolutional Neural Networks (CNNs) and Transformers have shown great success in semantic segmentation tasks. Efforts have been made to integrate CNNs with Transformer models to capture both local and global context interactions. However, there is still room for enhancement, particularly when considering constraints on computational resources. In this paper, we introduce HAFormer, a model that combines the hierarchical features extraction ability of CNNs with the global dependency modeling capability of Transformers to tackle lightweight semantic segmentation challenges. Specifically, we design a Hierarchy-Aware Pixel-Excitation (HAPE) module for adaptive multi-scale local feature extraction. During the global perception modeling, we devise an Efficient Transformer (ET) module streamlining the quadratic calculations associated with traditional Transformers. Moreover, a correlation-weighted Fusion (cwF) module selectively merges diverse feature representations, significantly enhancing predictive accuracy. HAFormer achieves high performance with minimal computational overhead and compact model size, achieving 74.2% mIoU on Cityscapes and 71.1% mIoU on CamVid test datasets, with frame rates of 105FPS and 118FPS on a single 2080Ti GPU. The source codes are available at https://github.com/XU-GITHUB-curry/HAFormer.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 50 of its 71 references that are in the map. First posted on arXiv 10 Jul 2024.
Builds on
50 of 71 references.
References · 50
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2015Rethinking the Inception Architecture for Computer Visioncited by 5,451
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2016The Cityscapes Dataset for Semantic Urban Scene Understandingcited by 4,427
- 2016DeepLab: Semantic Image Segmentation with Deep Convolutional Nets, Atrous Convolution, and Fully Connected CRFscited by 3,239
- 2018Encoder-Decoder with Atrous Separable Convolution for Semantic Image Segmentationcited by 3,210
- 2021SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformerscited by 2,923
- 2016Pyramid Scene Parsing Networkcited by 2,472
- 2018CBAM: Convolutional Block Attention Modulecited by 2,463
- 2017Non-local Neural Networkscited by 2,290
- 2015SegNet: A Deep Convolutional Encoder-Decoder Architecture for Image Segmentationcited by 1,483
38 more
- 2020Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformerscited by 1,368
- 2022Planning-oriented Autonomous Drivingcited by 1,068
- 2018Dual Attention Network for Scene Segmentationcited by 1,001
- 2021UNETR: Transformers for 3D Medical Image Segmentationcited by 954
- 2021CvT: Introducing Convolutions to Vision Transformerscited by 946
- 2021PVT v2: Improved Baselines with Pyramid Vision Transformercited by 749
- 2018CCNet: Criss-Cross Attention for Semantic Segmentationcited by 717
- 2021Do Vision Transformers See Like Convolutional Neural Networks?cited by 671
- 2021MViTv2: Improved Multiscale Vision Transformers for Classification and Detectioncited by 516
- 2019Selective Kernel Networkscited by 401
- 2020BiSeNet V2: Bilateral Network with Guided Aggregation for Real-time Semantic Segmentationcited by 294
- 2016ENet: A Deep Neural Network Architecture for Real-Time Semantic Segmentationcited by 291
- 2017ICNet for Real-Time Semantic Segmentation on High-Resolution Imagescited by 261
- 2021UCTransNet: Rethinking the Skip Connections in U-Net from a Channel-wise Perspective with Transformercited by 197
- 2019Asymmetric Non-local Neural Networks for Semantic Segmentationcited by 196
- 2021Transformer for Single Image Super-Resolutioncited by 150
- 2021CrossFormer: A Versatile Vision Transformer Hinging on Cross-scale Attentioncited by 139
- 2018ESPNet: Efficient Spatial Pyramid of Dilated Convolutions for Semantic Segmentationcited by 133
- 2022FacT: Factor-Tuning for Lightweight Adaptation on Vision Transformercited by 133
- 2021MPViT: Multi-Path Vision Transformer for Dense Predictioncited by 122
- 2019DFANet: Deep Feature Aggregation for Real-Time Semantic Segmentationcited by 100
- 2018CGNet: A Light-weight Context Guided Network for Semantic Segmentationcited by 94
- 2022HiFormer: Hierarchical Multi-scale Representations Using Transformers for Medical Image Segmentationcited by 94
- 2021Multi-Scale High-Resolution Vision Transformer for Semantic Segmentationcited by 92
- 2022Deep Hierarchical Semantic Segmentationcited by 84
- 2022TopFormer: Token Pyramid Transformer for Mobile Semantic Segmentationcited by 82
- 2019LEDNet: A Lightweight Encoder-Decoder Network for Real-Time Semantic Segmentationcited by 50
- 2019DABNet: Depth-wise Asymmetric Bottleneck for Real-time Semantic Segmentationcited by 45
- 2022D-Former: A U-shaped Dilated Transformer for 3D Medical Image Segmentationcited by 35
- 2022Lawin Transformer: Improving Semantic Segmentation Transformer with Multi-Scale Representations via Large Window Attentioncited by 30
- 2022Dual Vision Transformercited by 29
- 2022CTCNet: A CNN-Transformer Cooperation Network for Face Image Super-Resolutioncited by 19
- 2021FBSNet: A Fast Bilateral Symmetrical Network for Real-Time Semantic Segmentationcited by 17
- 2023Denoising Diffusion Semantic Segmentation with Mask Prior Modelingcited by 15
- 2021MSCFNet: A Lightweight Network With Multi-Scale Context Fusion for Real-Time Semantic Segmentationcited by 14
- 2019Feature Pyramid Encoding Network for Real-time Semantic Segmentationcited by 13
- 2023Lightweight Real-time Semantic Segmentation Network with Efficient Transformer and CNNcited by 12
- 2020Real-time Semantic Segmentation via Spatial-detail Guided Context Propagationcited by 7
Built on by
Citing papers per year: 2025: 2; 2026: 3.
5 papers.
- 2025S2AFormer: Strip Self-Attention for Efficient Vision Transformercited by 3
- 2025ECMNet:Lightweight Semantic Segmentation with Efficient CNN-Mamba Networkcited by 1
- 2026RSGMamba: Reliability-Aware Self-Gated State Space Model for Multimodal Semantic Segmentationcited by 1
- 2026DiCLIP: Diffusion Model Enhances CLIP's Dense Knowledge for Weakly Supervised Semantic Segmentationcited by 0
- 2026Mask Proposal Voting Based on Geodesic Framework for Robust Image Segmentationcited by 0
- 2026Mask Proposal Voting Based on Geodesic Framework for Robust Image Segmentation12 Jun 2026
- 2026DiCLIP: Diffusion Model Enhances CLIP's Dense Knowledge for Weakly Supervised Semantic Segmentation6 May 2026
- 2026RSGMamba: Reliability-Aware Self-Gated State Space Model for Multimodal Semantic Segmentation14 Apr 2026
- 2025ECMNet:Lightweight Semantic Segmentation with Efficient CNN-Mamba Network10 Jun 2025
- 2025S2AFormer: Strip Self-Attention for Efficient Vision Transformer28 May 2025