Do We Need Perfect Data? Leveraging Noise for Domain Generalized Segmentation

Taeyeong Kim, SeungJoon Lee, Jung Uk Kim, MyeongAh Cho

TL;DR

FLEX-Seg is a new framework that turns the "bug" of misaligned synthetic training data into a "feature" for robust semantic segmentation. By embracing boundary noise through multi-scale prototypes and uncertainty-driven weighting, it achieves state-of-the-art performance in generalizing to challenging real-world environments like fog, rain, and night.

What Problem Does This Paper Address?

Semantic segmentation—the task of assigning a category to every pixel in an image—is a cornerstone of autonomous driving. However, models often suffer from "domain shift": a model trained on sunny California streets often fails miserably in a snowy German village.

To solve this without expensive manual labeling, researchers use Domain Generalized Semantic Segmentation (DGSS), often training on synthetic data (like the GTA dataset) or images generated by diffusion models. The catch? These generated images are rarely "perfect." There is often a spatial misalignment between the generated image and its semantic mask, particularly at object boundaries. While previous methods tried to force strict alignment or ignored the noise, this paper asks: Can we leverage this imperfect data to build a more robust model?

Methods

The authors introduce FLEX-Seg (FLexible Edge eXploitation for Segmentation), which consists of three core modules designed to handle boundary ambiguity:

  1. Granular Adaptive Prototypes (GAP): Instead of having a single "representative" feature (prototype) for a class like 'Car,' GAP creates a bank of prototypes across three scales: thin, normal, and thick boundaries. This allows the model to learn domain-invariant features for objects regardless of their distance or the thickness of the boundary noise.
  2. Uncertainty Boundary Emphasis (UBE): Rather than using a fixed weight for boundary pixels, UBE dynamically adjusts the learning focus. It calculates the "entropy" (uncertainty) of the model's predictions. If the model is highly uncertain about a boundary pixel—common in misaligned synthetic data—it amplifies the loss for that pixel, forcing the model to learn more discriminative features in those regions.
  3. Hardness-Aware Sampling (HAS): Training on "easy" images forever leads to diminishing returns. HAS uses a sigmoid decay schedule to transition from random sampling to "loss-based" sampling. As training progresses, the model increasingly focuses on the most difficult examples (e.g., nighttime or rainy scenes) that it currently struggles to segment.

Datasets

The model is trained on the GTA synthetic dataset (24,966 images). To test its generalization capabilities, it is evaluated on five diverse real-world datasets:

  • Standard Driving: Cityscapes (CS), BDD100K (BDD), and Mapillary Vistas (MV).
  • Adverse Conditions: ACDC (covering fog, rain, snow, and night) and Dark Zurich (DZ) (specifically for nighttime driving).

Key Insights and Ideas

  • Boundaries are the Battleground: The authors' error analysis shows that boundary regions consistently exhibit much higher error rates than object interiors, especially in adverse weather. By "fixing" the boundaries, the overall segmentation quality improves significantly.
  • Embracing the Blur: In real-world adverse conditions (like fog or night), object boundaries are naturally blurred or obscured. By training on misaligned synthetic data using the FLEX-Seg approach, the model essentially "practices" on noisy edges, making it more resilient to the lack of clear delineation in the real world.
  • Adaptive > Static: The transition from fixed boundary weighting to uncertainty-based weighting (UBE) is a key "aha" moment. It allows the model to self-correct and prioritize learning where it is most confused, rather than relying on a human-defined constant.

Key Results

FLEX-Seg sets a new benchmark for domain generalization:

  • Adverse Conditions: It achieved a 2.44% mIoU gain on ACDC and a 2.63% gain on Dark Zurich over the previous state-of-the-art (DGInStyle).
  • Standard Benchmarks: It consistently outperformed existing methods across Cityscapes, BDD100K, and Mapillary Vistas using both ResNet-101 and MiT-B5 backbones.
  • Qualitative Improvements: Visual results show that FLEX-Seg is significantly better at delineating thin structures like traffic light poles and maintaining object shapes even when they are partially occluded by snow or darkness.

Limitations and Future Work

While FLEX-Seg excels at handling boundary noise, the authors note a few areas for growth:

  • Source Dependency: The method still relies on a synthetic source domain (GTA). Exploring how this performs with purely "in-the-wild" unlabelled data could be a next step.
  • Task Expansion: The current framework is tailored for semantic segmentation. The authors suggest that the adaptive prototype and uncertainty mechanisms could be extended to other "dense prediction" tasks, such as depth estimation or instance segmentation, where boundary precision is equally critical.

In short, FLEX-Seg proves that we don't necessarily need "perfect" data to train high-performing models; we just need smarter ways to learn from the imperfections.

Summary updated

BibTeX
@inproceedings{kim2026do,
  author = {Taeyeong Kim and SeungJoon Lee and Jung Uk Kim and MyeongAh Cho},
  title = {{Do We Need Perfect Data? Leveraging Noise for Domain Generalized Segmentation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i7.37492},
}
Figure