[Paper Review] Lightweight Real-time Semantic Segmentation Network with Efficient Transformer and CNN
This paper proposes LETNet, a lightweight real-time semantic segmentation network that fuses a U-shaped CNN with an efficient Transformer in a capsule-like architecture to balance global context modeling and local detail preservation. The model achieves 72.8% mIoU at 120 FPS on Cityscapes and 70.5% mIoU at 250 FPS on CamVid with only 0.95M parameters and 13.6G FLOPs, demonstrating superior accuracy-efficiency trade-offs.
In the past decade, convolutional neural networks (CNNs) have shown prominence for semantic segmentation. Although CNN models have very impressive performance, the ability to capture global representation is still insufficient, which results in suboptimal results. Recently, Transformer achieved huge success in NLP tasks, demonstrating its advantages in modeling long-range dependency. Recently, Transformer has also attracted tremendous attention from computer vision researchers who reformulate the image processing tasks as a sequence-to-sequence prediction but resulted in deteriorating local feature details. In this work, we propose a lightweight real-time semantic segmentation network called LETNet. LETNet combines a U-shaped CNN with Transformer effectively in a capsule embedding style to compensate for respective deficiencies. Meanwhile, the elaborately designed Lightweight Dilated Bottleneck (LDB) module and Feature Enhancement (FE) module cultivate a positive impact on training from scratch simultaneously. Extensive experiments performed on challenging datasets demonstrate that LETNet achieves superior performances in accuracy and efficiency balance. Specifically, It only contains 0.95M parameters and 13.6G FLOPs but yields 72.8\% mIoU at 120 FPS on the Cityscapes test set and 70.5\% mIoU at 250 FPS on the CamVid test dataset using a single RTX 3090 GPU. The source code will be available at https://github.com/IVIPLab/LETNet.
Motivation & Objective
- To address the limitations of CNNs in capturing long-range dependencies and Transformers in losing fine-grained spatial details for pixel-level segmentation.
- To design a lightweight, real-time semantic segmentation model suitable for deployment on resource-constrained devices.
- To balance model efficiency (parameters, FLOPs) with high segmentation accuracy (mIoU) without relying on large-scale pre-training.
- To integrate global context modeling from a lightweight Transformer with local feature extraction from a CNN in a parameter-efficient, end-to-end trainable architecture.
Proposed method
- Proposes a Lightweight Dilated Bottleneck (LDB) module using dilated and depthwise separable convolutions to reduce parameters and FLOPs while preserving semantic information.
- Introduces a hybrid U-shaped encoder-decoder network where the efficient Transformer acts as a capsule network to model long-range dependencies in feature representations.
- Employs a lightweight multi-head attention (MHA) mechanism in the Transformer to reduce GPU memory consumption and computational cost.
- Incorporates a Feature Enhancement (FE) module to improve feature expression and suppress noise in skip connections.
- Uses long skip connections across encoder-decoder stages to preserve and recover shallow spatial details lost during down-sampling.
- Adopts a capsule embedding-style design to treat the Transformer as a dynamic routing mechanism for global feature aggregation.
Experimental results
Research questions
- RQ1Can a lightweight Transformer effectively model long-range dependencies in semantic segmentation without incurring high computational costs?
- RQ2How can CNN and Transformer be effectively fused to preserve both local spatial details and global context?
- RQ3To what extent can a minimal parameter count (e.g., <1M) maintain high segmentation accuracy in real-time inference?
- RQ4Does the integration of shallow feature recovery via long skip connections and a FE module significantly improve segmentation performance?
Key findings
- LETNet achieves 72.8% mIoU on the Cityscapes test set at 120 FPS using a single RTX 3090 GPU, with only 0.95M parameters and 13.6G FLOPs.
- On the CamVid dataset, LETNet attains 70.5% mIoU at 250 FPS, outperforming other small-sized models in accuracy-efficiency balance.
- The ablation study shows that adding the Feature Enhancement (FE) module increases mIoU by 0.2% with only 101K additional parameters and 0.0032G FLOPs.
- Introducing the efficient Transformer and pixel attention mechanism improves mIoU by 3.07% and 0.5%, respectively, compared to the baseline.
- The final model (C3*) achieves a 5.15% mIoU improvement over the baseline, confirming the effectiveness of all proposed components.
- Visual comparisons on Cityscapes and CamVid show that LETNet produces more accurate and detailed segmentation masks than competing methods.
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.