Abstract
Real-time semantic segmentation requires a delicate balance between high-level semantic context and low-level spatial detail. Traditional approaches often suffer from a "semantic gap" when fusing these disparate feature types, leading to blurred boundaries and reduced accuracy. This paper introduces BiAlignNet, a novel framework that utilizes a Gated Flow Alignment Module (GFAM) to explicitly align features across paths. Combined with an edge-guided hard pixel mining loss, BiAlignNet achieves 80.1% mIoU on the Cityscapes dataset at 32 FPS, setting a new benchmark for real-time scene parsing.
Introduction
Scene parsing, or semantic segmentation, is a fundamental task in computer vision, particularly for autonomous driving. The primary challenge lies in preserving fine-grained spatial details while capturing broad semantic context. High-accuracy models typically employ atrous convolutions to maintain resolution, but these are computationally intensive. Conversely, real-time models often adopt a two-pathway architecture—one for spatial details and one for context—but simple fusion methods like concatenation fail to account for the spatial misalignment between features at different depths.
Methodology
BiAlignNet addresses the semantic gap through three key components:
- Bidirectional Alignment with GFAM: Instead of static fusion, the Gated Flow Alignment Module (GFAM) learns a flow field to dynamically warp features. This bidirectional approach aligns context features to the spatial path and vice versa, ensuring that semantic "blobs" coincide with sharp object boundaries.
- Gated Mechanism: To mitigate noise introduced by the large semantic gap between shallow and deep layers, a pixel-wise attention gate filters irrelevant information during the alignment process.
- Edge-Guided Hard Pixel Mining Loss: A specialized loss function prioritizes learning at object boundaries by utilizing edge maps derived from ground truth, forcing the network to resolve difficult boundary pixels.
The network utilizes the lightweight DFNet backbone to maintain high inference speeds while the bidirectional alignment ensures high-quality feature integration.
Results
The model was evaluated on the Cityscapes and CamVid datasets. On Cityscapes, BiAlignNet achieved 80.1% mIoU (validation) and 78.5% mIoU (test) at 32 FPS on a single NVIDIA GTX 1080Ti. This represents a significant improvement over previous real-time baselines like BiSeNetV2, which it outperformed by approximately 2% mIoU with comparable speed. Ablation studies confirmed that the bidirectional nature of the alignment provides a synergistic effect, yielding better results than unidirectional alignment alone.
Conclusion
BiAlignNet demonstrates that active feature alignment is superior to simple fusion for real-time semantic segmentation. By treating misalignment as a flow problem and supervising boundary learning, the model achieves state-of-the-art accuracy without sacrificing real-time performance. Future work may extend this bidirectional alignment strategy to other multi-path tasks such as object detection or instance segmentation.
Summary updated