Stage-Aware Feature Alignment Network for Real-Time Semantic Segmentation of Street Scenes

Xi Weng, Yan Yan, Si Chen, Jing-Hao Xue, Hanzi Wang · DOI

Abstract

Real-time semantic segmentation is a critical component for autonomous driving, yet it faces a persistent trade-off between inference speed and segmentation accuracy. Lightweight models often suffer from feature misalignment and a "semantic gap" when merging high-level context with low-level spatial details. We present the Stage-aware Feature Alignment Network (SFANet), an architecture that utilizes a stage-specific alignment strategy. By tailoring feature enhancement and alignment modules to the unique requirements of different decoder stages, SFANet achieves 78.1% mIoU at 37 FPS on Cityscapes and 74.7% mIoU at 96 FPS on CamVid, outperforming existing real-time architectures.

Introduction

Semantic segmentation—the task of assigning a category label to every pixel in an image—is essential for urban scene understanding in autonomous vehicles. Achieving real-time performance typically necessitates lightweight backbones, but these often fail to accurately delineate object boundaries due to repeated downsampling operations. This leads to a misalignment between semantic information (identifying "what" an object is) and spatial information (identifying "where" its boundaries are).

Existing solutions often apply a uniform alignment module across all decoder stages. However, this approach ignores the evolving nature of features as they pass through the decoder: early stages require broad context, while later stages demand fine-grained spatial precision. SFANet addresses this by introducing a stage-aware decoder that specializes its processing at each level.

Methodology

The SFANet architecture utilizes a ResNet-18 backbone for efficient feature extraction. The core of the innovation lies in the decoder, which consists of four Stage-aware Feature Alignment (SFA) modules.

The overall architecture of SFANet, illustrating the flow from the ResNet-18 encoder to the stage-aware decoder and the final segmentation head.

Stage-aware Feature Alignment (SFA)

The SFA module is designed to be "stage-aware" by employing different Feature Enhancement Blocks (FEBs) depending on the stage's position in the decoder. Early stages (e.g., SFA-4) use dilated convolutions within the FEB to capture a larger receptive field, providing the necessary global context. In contrast, later stages use standard convolutions to preserve local spatial details.

Feature Alignment and Aggregation (FAA)

To resolve the misalignment between features of different resolutions, the FAA module treats alignment as a warping problem. It learns a "semantic offset field"—analogous to optical flow—to warp high-level features into alignment with low-level features before they are aggregated. This process significantly reduces the "jagged edge" artifacts common in real-time networks.

Spatial-Channel Attention (SCA) and Auxiliary Training

SFANet incorporates a lightweight Spatial-Channel Attention (SCA) mechanism to emphasize informative features and suppress noise. Furthermore, an auxiliary training strategy is employed, where additional segmentation heads are attached to each SFA stage during training. These heads supervise the learning of multi-scale objects and are discarded during inference, providing an accuracy boost with zero impact on real-time performance.

Experimental Results

SFANet was evaluated on the Cityscapes and CamVid benchmarks using a single NVIDIA GTX 1080Ti GPU. The model achieved 78.1% mIoU at 37 FPS on Cityscapes, surpassing popular models like BiSeNet and SwiftNet in efficiency. On the CamVid dataset, SFANet reached a blistering 96 FPS with 74.7% mIoU.

Qualitative results on Cityscapes and CamVid. SFANet (d) produces significantly sharper boundaries for thin objects like poles and traffic lights compared to the baseline (c).

Qualitative analysis confirms that the stage-aware alignment strategy effectively refines the boundaries of small and thin objects, such as pedestrians and traffic poles, which are often blurred or misclassified by standard lightweight architectures.

Conclusion

SFANet demonstrates that a stage-aware approach to feature alignment can significantly bridge the gap between speed and accuracy in semantic segmentation. By specializing the decoder's enhancement and alignment mechanisms, the network achieves state-of-the-art results for real-time street scene understanding. Future work may explore the application of this stage-aware philosophy to even more aggressive, custom-designed lightweight backbones to further push the boundaries of embedded vision.

Summary updated

BibTeX
@article{weng2022stage,
  author = {Xi Weng and Yan Yan and Si Chen and Jing-Hao Xue and Hanzi Wang},
  title = {{Stage-Aware Feature Alignment Network for Real-Time Semantic Segmentation of Street Scenes}},
  journal = {IEEE Trans. Circuits Syst. Video Technol.},
  year = {2022},
  doi = {10.1109/tcsvt.2021.3121680},
}
Figure