Distribution regularized self-supervised learning for domain adaptation of semantic segmentation

Javed Iqbal, Hamza Rawal, Rehan Hafiz, Yu-Tseh Chi, Mohsen Ali

This paper, titled "Distribution Regularized Self-Supervised Learning for Domain Adaptation of Semantic Segmentation," presents a clever way to help AI models bridge the gap between synthetic training data (like video games) and real-world applications (like self-driving cars).

TL;DR

The authors introduce DRSL, a regularization scheme that improves unsupervised domain adaptation by disentangling "what makes a class unique" from "how much a class can vary." By modeling multiple "modes" within a single class (e.g., different types of cars), the system generates cleaner pseudo-labels and achieves state-of-the-art performance on standard benchmarks.

What Problem Does This Paper Address?

Deep learning models for semantic segmentation (labeling every pixel in an image) are notoriously "data-hungry." Because labeling real-world images is expensive, researchers often train models on synthetic data (like GTA-V). However, when these models face the real world, they encounter domain shift—differences in lighting, texture, and style that cause performance to plummet.

Current solutions use Unsupervised Domain Adaptation (UDA), often relying on "self-learning" where the model predicts labels for the real-world data and then treats those predictions as ground truth (pseudo-labels). The problem? If the initial model is even slightly off, it creates noisy pseudo-labels, leading to a "garbage in, garbage out" feedback loop. The authors argue this happens because models "greedily" learn only the bare minimum needed to distinguish between classes, ignoring the rich variety within a class.

Methods

The core innovation is the Multi-modal Distribution Learning (MMDL) module. Instead of representing a class (like "Car") as a single point or cluster in feature space, MMDL represents it as a mixture of multiple modes.

Key components include:

  • Disentangled Heads: The architecture splits into two parallel paths. One head handles standard segmentation (inter-class discrimination), while the MMDL head captures intra-class variations.
  • Stochastic Mode Alignment: The authors propose a novel loss function ($L_{mcl}$) that explicitly pulls together pixels from the source (synthetic) and target (real) domains that belong to the same mode of the same class.
  • Distribution Regularization: The MMDL module acts as a regularizer for the shared backbone. Because the backbone must satisfy both the segmentation task and the multi-modal distribution task, it learns more robust, "domain-invariant" features.
  • Distance Metric Learning: They use triplet losses to ensure that different modes within a class remain distinct while staying far away from other classes.

Datasets

The researchers evaluated their method on the two most common "synthetic-to-real" benchmarks:

  1. GTA-V $\rightarrow$ Cityscapes: Training on 24,966 images from the GTA-V game engine and adapting to the Cityscapes dataset (real-world German street scenes).
  2. SYNTHIA $\rightarrow$ Cityscapes: Training on the SYNTHIA dataset (16 classes) and adapting to Cityscapes.

Key Insights and Ideas

  • Intra-class Variety is a Feature, Not a Bug: Most models try to ignore the difference between a sedan and a truck to simplify the "Car" category. This paper argues that explicitly modeling those differences makes the model more resilient to domain shifts.
  • Disentanglement Reduces Noise: By separating the "discrimination" logic from the "distribution" logic, the model produces much more accurate pseudo-labels. The authors show that their pseudo-labels have significantly lower "self-entropy" (meaning the model is more confident and correct).
  • Mode-to-Mode Alignment: Global alignment (matching the whole "Car" distribution) is often too coarse. Aligning specific modes (matching "shiny red cars" in synthetic data to "shiny red cars" in real data) provides a much finer-grained signal for the model to learn from.

Key Results

The proposed DRSL+ model outperformed existing state-of-the-art methods by significant margins:

  • GTA-V to Cityscapes: Achieved 47.8% mIoU (mean Intersection over Union), a 14% gain over the source-only baseline and outperforming previous leaders like CRST and MRENT.
  • SYNTHIA to Cityscapes: Achieved 46.7% mIoU (16-class), surpassing the previous best by a minimum margin of 2.3%.
  • Qualitative Improvements: The model is notably better at identifying small, thin, or distant objects—like traffic lights, poles, and pedestrians—which are usually the first things to fail during domain shift.

Limitations and Future Work

While the results are impressive, the paper notes a few areas for further exploration:

  • Hyperparameter Sensitivity: The model relies on several scaling factors ($\beta, \eta, \gamma$) and a fixed number of modes ($M=3$). Finding the "sweet spot" for these requires empirical tuning.
  • Computational Overhead: Using triplet loss on pixel-level embeddings is computationally expensive. The authors mitigate this by random sampling, but a more efficient way to handle high-resolution feature maps could be beneficial.
  • Static Mode Count: Currently, every class is assigned the same number of modes. In reality, a class like "Road" might have more modes (asphalt, concrete, cobblestone) than a class like "Bicycle." Dynamic mode assignment could be a promising future direction.

Summary updated

BibTeX
@article{iqbal2022distribution,
  author = {Javed Iqbal and Hamza Rawal and Rehan Hafiz and Yu-Tseh Chi and Mohsen Ali},
  title = {{Distribution regularized self-supervised learning for domain adaptation of semantic segmentation}},
  journal = {Image and Vision Computing},
  year = {2022},
  url = {https://openreview.net/forum?id=P7G2x1M5vd0},
}

Loading related content...

Figure