Fully Self-Supervised Learning for Semantic Segmentation

Yuan Wang, Wei Zhuo, Yucong Li, Zhi Wang, Qi Ju, Wenwu ZhuarXiv 2022

Abstract

Semantic segmentation is a critical computer vision task that traditionally requires extensive pixel-level human annotations. While unsupervised methods have emerged to mitigate this data dependency, many rely on backbones pre-trained with supervised labels, masking the true difficulty of the task. This paper introduces the Fully Self-Supervised Semantic Segmentation ($FS^4$) framework, which eliminates the need for supervised initialization. By leveraging a Pyramid-Global-Guided (PGG) strategy and a Context-Aware Embedding (CAE) module, $FS^4$ stabilizes unsupervised learning and captures global semantic context. Experimental results on COCO-Stuff and Cityscapes show that $FS^4$ nearly doubles the performance of previous truly unsupervised methods, effectively bridging the gap with supervised-initialized models.

Introduction

Assigning a category label to every pixel in an image—semantic segmentation—is one of the most labor-intensive tasks in AI. Scaling these models to open-world scenarios is often bottlenecked by the cost of human labeling. While "unsupervised" segmentation has been proposed as a solution, a significant portion of existing research utilizes backbones pre-trained on ImageNet with human labels. When these supervised backbones are replaced with truly self-supervised alternatives (e.g., MoCo or SwAV), performance typically collapses, often dropping by over 50%.

t-SNE visualization of features from (a) supervised and (b) unsupervised pretrained models, demonstrating the 'messy' nature of unsupervised features that FS4 aims to resolve.

As shown in the feature distribution analysis above, unsupervised features lack the clear semantic clustering found in supervised models. Without guided initialization, local pixel clustering becomes unstable, failing to respect object boundaries or capture the broader semantic context of a scene. The $FS^4$ framework addresses this by providing the "global missing link" necessary for stable unsupervised learning.

Methodology

The $FS^4$ framework introduces three core innovations to guide the learning process without human intervention:

1. Pyramid-Global-Guided (PGG) Strategy

Local pixel-to-pixel consistency is insufficient for complex scenes containing multiple objects. The PGG strategy employs an Instance-level Self-Supervised (ISS) model to generate pseudo-labels for the entire image and various multi-scale crops (the "pyramid"). These top-down anchors prevent pixel-level clustering from degrading into random noise or merging distinct objects into a single background blob. By using a pyramid of crops, the model can assign different semantic labels to different regions, such as distinguishing a "bird" in a tree from the "sky" in the background.

2. Context-Aware Embedding (CAE) Module

In unsupervised settings, pixel features often "collapse," where different objects become indistinguishable to the model. The CAE module utilizes a self-attention mechanism that evaluates a pixel’s neighbors based on both spatial distance and appearance (color). This ensures that features remain distinct and respect physical object boundaries, even when deep CNN features become blurred.

3. Active Selection

To ensure high-quality learning, the framework includes an active selection pruning step. It evaluates the confidence of various image crops and only selects the top 40% of most "confident" views for training. This filters out ambiguous pseudo-labels that might otherwise confuse the model during the early stages of training.

Experimental Results

The researchers evaluated $FS^4$ on the COCO-Stuff (27 categories) and Cityscapes datasets. The framework represents a significant leap for "honest" self-supervised learning:

  • Performance Gains: On COCO-Stuff, $FS^4$ achieved a 7.19 point mIoU improvement over the previous state-of-the-art method, PiCIE.
  • Accuracy: The model reached 48.5% accuracy on COCO-Stuff, a substantial increase from the 31.48% baseline.
  • Closing the Gap: When utilizing a truly unsupervised MoCoV2 backbone, $FS^4$ achieved an mIoU of 14.76, nearly doubling the baseline's 7.57. This performance level was previously only reachable by utilizing supervised pre-training.
Visual comparison of semantic segmentation outputs: (a) Input image, (b) Reference segmentation, (c) Previous unsupervised baseline showing fragmentation, and (d) The proposed FS4 framework showing improved global consistency.

Qualitative results demonstrate that $FS^4$ produces much more coherent segments compared to previous unsupervised baselines, which often suffer from over-segmentation and noise.

Discussion and Conclusion

$FS^4$ demonstrates that global semantic guidance is the key to unlocking the potential of fully self-supervised segmentation. While the model shows remarkable improvements, challenges remain regarding sensitivity to very small objects, which can be overlooked by the pyramid-based labeling strategy. Future work will focus on refining these labels to capture fine-grained details and exploring more robust integrations of raw image cues like pixel coordinates and RGB values. Ultimately, $FS^4$ provides a viable path toward scaling semantic segmentation to massive, unlabeled datasets without the hidden costs of supervised pre-training.

Summary updated

BibTeX
@misc{wang2022fully,
  author = {Yuan Wang and Wei Zhuo and Yucong Li and Zhi Wang and Qi Ju and Wenwu Zhu},
  title = {{Fully Self-Supervised Learning for Semantic Segmentation}},
  year = {2022},
  eprint = {2202.11981},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2202.11981},
}
Figure