Domain Adaptive Semantic Segmentation without Source Data

Fuming You, Jingjing Li, Lei Zhu, Ke Lu, Zhi Chen, Zi Huang

Abstract

Traditional Unsupervised Domain Adaptation (UDA) for semantic segmentation relies on simultaneous access to labeled source data and unlabeled target data. However, in real-world scenarios, source data is often inaccessible due to privacy concerns or massive storage requirements. This paper introduces a framework for Source-Free Semantic Segmentation (SFSS) that enables model adaptation using only a pre-trained source model and unlabeled target data. By implementing a dual-strategy of class-balanced positive learning and a novel negative learning approach called Heuristic Complementary Label Selection (HCLS), the proposed method overcomes the "winner-takes-all" dilemma and achieves state-of-the-art performance without needing the original training data.

The Source-Free Challenge

Semantic segmentation is critical for applications like autonomous driving, but training these models requires vast amounts of annotated data. Researchers often use synthetic datasets (e.g., GTA5) to train models and then adapt them to real-world environments (e.g., Cityscapes) via UDA.

Standard UDA assumes the source dataset is always available during adaptation. This is increasingly impractical because synthetic datasets can exceed 60GB, making transmission difficult, and sensitive data (such as medical records) cannot be shared due to privacy regulations. Source-Free Domain Adaptation (SFDA) addresses these issues by adapting a pre-trained model using only the new, unlabeled target domain.

Comparison between traditional domain adaptation and the source-free approach.

The primary obstacle in SFDA is the "winner-takes-all" dilemma. Without the source data to act as an anchor, standard self-training methods cause the model to overfit to dominant majority classes like "road" or "sky." These majority classes expand their boundaries, eventually suppressing and eliminating minority classes like "poles," "signs," or "pedestrians," leading to a total collapse in accuracy for rare but critical objects.

Methodology: Label Denoising (LD)

The authors propose a Label Denoising (LD) framework to stabilize adaptation. It consists of two reinforcing components designed to preserve class diversity and filter out noise.

1. Positive Learning with Intra-class Thresholds

Traditional pseudo-labeling uses a global confidence threshold. This naturally favors majority classes that the model is already confident about. To counter this, the LD framework calculates an independent threshold for each class based on the top $\alpha\%$ of predictions. This ensures that even rare classes generate pseudo-labels, preventing them from being marginalized by dominant categories.

2. Negative Learning via HCLS

In a new domain, a model's top prediction is often incorrect. However, its "negative" certainty—knowing what a pixel is not—is significantly more reliable. The authors introduce Heuristic Complementary Label Selection (HCLS) to leverage this.

Performance comparison across classes and the conceptual breakdown of softmax outputs into head, body, and tail.

As shown in the figure above, the softmax output can be divided into three parts:

  • Head: The top prediction (potentially correct, but risky).
  • Body: Classes with moderate probability (likely incorrect, but the model is uncertain).
  • Tail: Classes with near-zero probability (definitely incorrect, but provide no useful gradient).

HCLS targets the "body" classes. By telling the model to minimize the probability of the pixel belonging to these specific "not-likely-but-possible" categories, the framework effectively denoises the prediction space without the risk of reinforcing a wrong positive guess.

Key Results and Insights

The LD framework was evaluated on standard "synthetic-to-real" benchmarks, including GTA5 → Cityscapes and SYNTHIA → Cityscapes.

  • Superior Accuracy: On the GTA5 → Cityscapes task, the framework achieved 45.5% mIoU, a significant +9.8% improvement over the source-only baseline. It even outperformed several state-of-the-art methods that required full access to source data.
  • Efficiency Gains: Because the model does not need to process the massive source dataset, training is significantly faster. The method demonstrated a 9.8x to 14.6x speedup in training time and required only 6.9GB of data compared to the 68.5GB typically needed for traditional UDA.
  • The Power of "No": The success of HCLS suggests that in unsupervised environments, negative learning (learning what a pixel is not) provides a safer and more robust optimization gradient than potentially noisy positive pseudo-labels.

Conclusion

The LD framework demonstrates that high-quality semantic segmentation is possible without the burden of source data. By balancing class-specific thresholds with a novel negative learning strategy, the method effectively mitigates the "winner-takes-all" effect. This work provides a strong baseline for future research into privacy-preserving and storage-efficient domain adaptation.

Summary updated

BibTeX
@inproceedings{you2021domain,
  author = {Fuming You and Jingjing Li and Lei Zhu and Ke Lu and Zhi Chen and Zi Huang},
  title = {{Domain Adaptive Semantic Segmentation without Source Data}},
  booktitle = {ACM Multimedia},
  year = {2021},
  url = {https://openreview.net/forum?id=D-fIkp0ly3},
}
Figure