Abstract
Image segmentation has traditionally been divided into specialized tasks like semantic and panoptic segmentation, often requiring heavy, slow architectures for the latter. We present BiSeNetFormer, a novel architecture that bridges the gap between high-speed real-time models and versatile universal models. By integrating the efficient bilateral stream design of BiSeNet with a modern transformer-based mask classification head, BiSeNetFormer achieves up to 100 FPS while maintaining competitive accuracy across multiple segmentation tasks.
Introduction
In computer vision, the trade-off between speed and versatility has long been a hurdle. Fast models like BiSeNet excel at real-time semantic segmentation but lack the multi-task capabilities of "universal" models like Mask2Former, which are often too computationally expensive for edge deployment. BiSeNetFormer addresses this by proving that efficiency-focused backbones can be adapted for complex tasks using modern query-based decoders.
Architecture: The Best of Both Worlds
BiSeNetFormer combines two distinct architectural philosophies to achieve its performance goals:
- Two-Stream Backbone: It utilizes a Spatial Path to preserve high-resolution spatial details and a Context Path to capture broad semantic information. This bilateral approach ensures low latency.
- Transformer Decoder: Instead of per-pixel classification, the model employs a transformer-based decoder with learnable queries. These queries interact with features from the Context Path via cross-attention to identify specific objects or regions.
- Efficient Fusion: A Feature Fusion Module (FFM) merges detail-rich spatial features with semantically-rich context features to generate final high-resolution masks.
By restricting transformer attention to lower-resolution features, the model avoids the quadratic computational overhead typically associated with transformer-based segmentation.
Experimental Results
The model was evaluated on the Cityscapes and ADE20K datasets. BiSeNetFormer demonstrates a significant improvement in the speed-accuracy Pareto front compared to existing multi-task architectures.
Key Performance Metrics:
- Real-Time Speed: Achieves up to 100 FPS on an NVIDIA V100 for semantic segmentation on ADE20K.
- Edge Capability: On the NVIDIA Jetson Orin, it maintains 38.2 FPS for panoptic segmentation, enabling complex vision tasks on resource-constrained hardware.
- Accuracy: On Cityscapes, it reaches 77.5 mIoU and 57.3 PQ, outperforming efficient competitors like PEM and YOSO in speed by nearly 4x while remaining competitive in accuracy.
Conclusion
BiSeNetFormer demonstrates that "classic" efficient architectures like BiSeNet remain highly relevant when paired with modern task-specific heads. By shifting to a mask-classification framework, it enables seamless switching between semantic and panoptic tasks without sacrificing real-time performance, making it an ideal candidate for autonomous driving and edge computing applications.
Summary updated