[Paper Review] S$^2$-FPN: Scale-ware Strip Attention Guided Feature Pyramid Network for Real-time Semantic Segmentation
This paper proposes S²-FPN, a lightweight, real-time semantic segmentation network that uses scale-aware strip attention and an attention-based feature pyramid fusion module to enhance multi-scale feature representation while reducing computational cost. The method achieves state-of-the-art accuracy/speed trade-offs, attaining 77.8% mIoU at 30.5 FPS on Cityscapes and 74.2% mIoU at 55.5 FPS on Camvid, using efficient attention mechanisms and feature fusion strategies for real-time performance.
Modern high-performance semantic segmentation methods employ a heavy backbone and dilated convolution to extract the relevant feature. Although extracting features with both contextual and semantic information is critical for the segmentation tasks, it brings a memory footprint and high computation cost for real-time applications. This paper presents a new model to achieve a trade-off between accuracy/speed for real-time road scene semantic segmentation. Specifically, we proposed a lightweight model named Scale-aware Strip Attention Guided Feature Pyramid Network (S$^2$-FPN). Our network consists of three main modules: Attention Pyramid Fusion (APF) module, Scale-aware Strip Attention Module (SSAM), and Global Feature Upsample (GFU) module. APF adopts an attention mechanisms to learn discriminative multi-scale features and help close the semantic gap between different levels. APF uses the scale-aware attention to encode global context with vertical stripping operation and models the long-range dependencies, which helps relate pixels with similar semantic label. In addition, APF employs channel-wise reweighting block (CRB) to emphasize the channel features. Finally, the decoder of S$^2$-FPN then adopts GFU, which is used to fuse features from APF and the encoder. Extensive experiments have been conducted on two challenging semantic segmentation benchmarks, which demonstrate that our approach achieves better accuracy/speed trade-off with different model settings. The proposed models have achieved a results of 76.2\%mIoU/87.3FPS, 77.4\%mIoU/67FPS, and 77.8\%mIoU/30.5FPS on Cityscapes dataset, and 69.6\%mIoU,71.0\% mIoU, and 74.2\% mIoU on Camvid dataset. The code for this work will be made available at \url{https://github.com/mohamedac29/S2-FPN
Motivation & Objective
- To address the high computational cost and memory footprint of high-performance semantic segmentation models in real-time applications.
- To improve multi-scale feature representation in feature pyramid networks by reducing the semantic gap between feature levels.
- To design an efficient attention mechanism that models long-range dependencies with minimal computation overhead.
- To achieve a superior accuracy/speed trade-off for real-time road scene segmentation using lightweight architecture and effective feature fusion.
- To validate the effectiveness of scale-aware strip attention and attention pyramid fusion through ablation and benchmark comparisons.
Proposed method
- Proposes the Scale-aware Strip Attention Module (SSAM), which uses vertical strip operations and scale-aware attention to model long-range dependencies efficiently.
- Introduces the Attention Pyramid Fusion (APF) module that fuses multi-scale features using channel-wise reweighting and attention mechanisms to reduce semantic gap.
- Employs a Global Feature Upsample (GFU) module to combine encoder and decoder features for enhanced segmentation output.
- Uses a lightweight backbone (e.g., ResNet18/34) combined with the S²-FPN head to maintain high inference speed.
- Applies spatial and channel attention with reduced FLOPs by leveraging vertical strip operations instead of full attention maps.
- Optimizes the network with input resolution control and stride adjustments to balance accuracy and speed.
Experimental results
Research questions
- RQ1Can a lightweight attention mechanism effectively model long-range dependencies in semantic segmentation with minimal computational cost?
- RQ2How does scale-aware strip attention improve multi-scale feature fusion compared to standard FPN or lateral connections?
- RQ3To what extent does the Attention Pyramid Fusion (APF) module reduce the semantic gap between feature levels in a feature pyramid?
- RQ4What is the accuracy/speed trade-off achieved by S²-FPN on standard benchmarks like Cityscapes and Camvid?
- RQ5Does replacing the stride at stage 2 with 1 improve performance without significantly increasing inference time?
Key findings
- S²-FPN achieves 76.2% mIoU at 87.3 FPS on Cityscapes using ResNet18, demonstrating a strong speed-accuracy trade-off.
- With ResNet34, the model reaches 77.4% mIoU at 67 FPS, showing improved accuracy with moderate speed cost.
- The S²-FPN34M variant, which replaces the stride at stage 2 with 1, achieves 77.8% mIoU at 30.5 FPS, indicating significant performance gain from architectural refinement.
- On Camvid, S²-FPN18 achieves 69.6% mIoU at 124.2 FPS, while S²-FPN34M reaches 74.2% mIoU at 55.5 FPS, outperforming prior lightweight models.
- Ablation studies confirm that both the scale-aware strip attention and APF modules significantly contribute to performance gains.
- The model outperforms state-of-the-art methods like BiSeNetV2 and STDC-Seg in terms of mIoU while maintaining competitive inference speed.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.