Introduction
Real-time semantic segmentation is a critical component for autonomous driving and mobile robotics. The prevailing trend in the research community has been the design of custom, ultra-lightweight architectures from scratch to meet the strict computational constraints of high-resolution (e.g., 2MPx) road-driving images. However, these custom models often lack the capacity to benefit from transfer learning via ImageNet pre-training, leading to increased overfitting and suboptimal accuracy. This paper proposes SwiftNet, demonstrating that standard, ImageNet-pre-trained backbones like ResNet-18, when paired with an efficient decoder, can outperform custom designs in both accuracy and practical speed.
Methodology
The SwiftNet architecture is designed to leverage the representational power of general-purpose encoders while maintaining a low computational footprint in the upsampling path.
1. Recognition Encoder
Instead of a novel lightweight design, SwiftNet utilizes standard architectures such as ResNet-18 or MobileNetV2. These encoders are pre-trained on ImageNet, providing a robust feature extraction foundation that generalizes well to the semantic segmentation task.
2. Lightweight Ladder-style Decoder
To recover spatial resolution lost during encoding (typically a 32x reduction), SwiftNet employs a "ladder-style" decoder. This component uses simple bilinear interpolation for upsampling and incorporates lateral connections from the encoder. These connections blend high-resolution, low-level features with semantically rich, low-resolution features, which is crucial for precise boundary localization.
3. Receptive Field Expansion
To capture large-scale context, the architecture integrates a Spatial Pyramid Pooling (SPP) module. Additionally, the authors explore Interleaved Pyramid Fusion, where the same encoder weights process the input at multiple scales (e.g., full and half resolution) before fusion in the decoder, further enhancing the receptive field.
Results and Discussion
The proposed models were evaluated on the Cityscapes and CamVid benchmarks.
Performance on Cityscapes
SwiftNetRN-18 (using a ResNet-18 backbone) achieved a state-of-the-art 75.5% mIoU on the Cityscapes test set. Crucially, it maintained a real-time inference speed of 39.9 FPS on a GTX 1080Ti at full resolution.
The Impact of Pre-training
The benefits of ImageNet pre-training were most evident on smaller datasets. On CamVid, pre-training improved mIoU by 7–9 percentage points compared to training from scratch. This confirms the "ImageNet Defense": the regularization and feature-rich initialization provided by pre-training outweigh the theoretical efficiency of custom-built, small-scale networks.
FLOPs vs. Practical Speed
A key insight from the study is the discrepancy between theoretical complexity (FLOPs) and actual runtime. While MobileNetV2 has fewer FLOPs than ResNet-18, it often runs slower on desktop GPUs because standard convolutions in ResNet are more highly optimized in libraries like cuDNN compared to depthwise separable convolutions.
Conclusion
SwiftNet proves that "off-the-shelf" pre-trained architectures are highly effective for real-time semantic segmentation. By focusing on an efficient decoder and leveraging the power of transfer learning, the authors achieved a new benchmark for real-time performance on road-driving datasets, challenging the necessity of custom-designed lightweight networks.
Summary updated