Semantic segmentation is a critical component of autonomous driving systems, yet these models frequently struggle with "domain shift"—the performance drop when moving from training environments (e.g., sunny weather) to unseen real-world conditions (e.g., rain or night). To mitigate this without the high cost of manual labeling, researchers often turn to Domain Generalized Semantic Segmentation (DGSS) using synthetic data or diffusion-generated images.
However, generated data is rarely perfect. A persistent issue is the spatial misalignment between generated images and their corresponding semantic masks, particularly at object boundaries. While previous approaches attempted to enforce strict alignment or simply ignored the noise, the FLEX-Seg (FLexible Edge eXploitation) framework proposes a paradigm shift: leveraging this imperfect data to build more robust models.
The FLEX-Seg Framework
FLEX-Seg introduces three innovative modules designed to turn boundary ambiguity into a learning signal:
- Granular Adaptive Prototypes (GAP): Instead of a single feature representation per class, GAP maintains a bank of prototypes across three scales (thin, normal, and thick boundaries). This allows the model to learn domain-invariant features that are resilient to varying levels of boundary noise.
- Uncertainty Boundary Emphasis (UBE): UBE replaces fixed boundary weighting with a dynamic, uncertainty-driven approach. By calculating the entropy of model predictions, it identifies regions where the model is most confused—typically misaligned boundaries—and amplifies the loss in those areas to force better feature discrimination.
- Hardness-Aware Sampling (HAS): To prevent the model from plateauing on "easy" examples, HAS employs a sigmoid decay schedule. This transitions training from random sampling to focusing on the most difficult cases, such as nighttime or rainy scenes, where the model's current performance is lowest.
Why Boundaries Matter
Error analysis reveals that boundary regions are the primary source of failure in segmentation models, especially under adverse weather conditions. In environments like fog or heavy snow, object edges are naturally blurred. By training on misaligned synthetic data using FLEX-Seg, the model effectively "practices" on noisy edges, making it significantly more resilient to the lack of clear delineation in the real world.
Experimental Results
The framework was trained on the GTA synthetic dataset and evaluated across five diverse real-world benchmarks, including Cityscapes, BDD100K, and Mapillary Vistas. Notably, it was tested on datasets specifically designed for adverse conditions: ACDC (fog, rain, snow, night) and Dark Zurich (night).
Key performance highlights include:
- Adverse Condition Gains: FLEX-Seg achieved a 2.44% mIoU improvement on ACDC and a 2.63% gain on Dark Zurich over the previous state-of-the-art method, DGInStyle.
- Robustness: The model consistently outperformed existing methods across all standard benchmarks using both ResNet-101 and MiT-B5 backbones.
- Qualitative Precision: Visual evaluations show superior handling of thin structures (e.g., poles) and better shape preservation under occlusion or low-light conditions.
Conclusion
FLEX-Seg demonstrates that "perfect" data is not a prerequisite for high-performing, generalized models. By intelligently embracing the imperfections and noise inherent in synthetic data, we can develop systems that are better prepared for the unpredictable challenges of the real world. Future work may extend these adaptive mechanisms to other dense prediction tasks like depth estimation or instance segmentation.
Summary updated