Semantic Segmentation with Active Semi-Supervised Representation Learning

Aneesh Rangnekar, Christopher Kanan, Matthew J. HoffmanarXiv 2022 · DOI

Abstract

Semantic segmentation is a critical computer vision task hindered by the high cost of pixel-level annotation. This paper presents S4AL+, a streamlined framework that integrates active learning with contrastive self-training to minimize human labeling effort. By introducing a Regional Contrastive (ReCo) loss, the model learns more discriminative feature representations, which in turn enhances the effectiveness of uncertainty-based active learning queries. Experimental results on the CamVid and CityScapes datasets demonstrate that S4AL+ achieves over 95% of the performance of fully supervised models while utilizing only 12% to 15% of the labeled data, outperforming more complex state-of-the-art hybrid architectures.

Introduction

Semantic segmentation—the process of assigning a categorical label to every pixel in an image—is foundational for applications such as autonomous driving and medical imaging. However, it remains one of the most labor-intensive tasks in computer vision; for instance, a single image from the CityScapes dataset can require over 90 minutes of human effort to annotate.

To mitigate this bottleneck, researchers typically employ two strategies: Semi-Supervised Learning (SSL), which leverages large pools of unlabeled data, and Active Learning (AL), which identifies the most informative samples for human annotation. While previous attempts to combine these approaches (such as the original S4AL) showed promise, they often relied on complex "mean-teacher" architectures and heavy data augmentation. S4AL+ seeks to simplify this pipeline while improving the quality of the model's feature representations and its data selection efficiency.

Methodology

S4AL+ introduces a simplified yet robust framework for active semi-supervised learning, centered on three core components:

1. Simplified Self-Training

Unlike traditional semi-supervised methods that maintain a moving average of model weights (mean-teacher), S4AL+ adopts a straightforward self-training cycle. The model generates "pseudo-labels" for unlabeled images. Pixels that meet a specific confidence threshold are treated as ground truth in subsequent training rounds, allowing the model to learn from its own high-confidence predictions without the overhead of complex teacher-student architectures.

2. Regional Contrastive (ReCo) Loss

The primary innovation of S4AL+ is the integration of a dedicated contrastive head. This head employs a Regional Contrastive (ReCo) loss to refine the feature space. Specifically, it ensures that pixel representations belonging to the same semantic class (e.g., "road") are clustered together, while pixels from different classes (e.g., "road" vs. "sidewalk") are pushed apart. This "boundary sharpening" helps the model distinguish between semantically similar categories much earlier in the training process.

3. Entropy-Based Active Learning

For the active learning component, S4AL+ utilizes an entropy-based query strategy. The model identifies regions of maximum uncertainty (high entropy) and requests human labels for those specific areas. Because the ReCo loss has already improved the underlying feature representations, these uncertainty signals become significantly more reliable, ensuring that the human annotator's time is spent on the most informative data points.

Experimental Results

The authors evaluated S4AL+ on two standard urban scene benchmarks: CamVid (11 classes) and CityScapes (11 classes for consistency).

Efficiency and Performance

S4AL+ demonstrated remarkable efficiency, reaching 95% of full-dataset performance with a fraction of the labels:

  • CamVid: Achieved 95% performance using only 12.1% of labeled data.
  • CityScapes: Achieved 95% performance using 15.1% of labeled data.

In direct comparison with other hybrid methods on CamVid (using a 12% labeling budget), S4AL+ achieved a Mean Intersection over Union (mIoU) of 66.4, surpassing both EquAL (63.4) and the original S4AL (65.3). Furthermore, the method proved effective even when used purely for semi-supervised learning, indicating that the contrastive head provides a powerful learning signal independent of the active learning queries.

Discussion and Limitations

The success of S4AL+ suggests that improving feature representations is as critical as the selection strategy itself. By sharpening class boundaries, the model makes more effective use of both pseudo-labels and human-provided labels.

However, some limitations remain. The framework's performance is still partially bound by the capacity of the backbone architecture; for example, lightweight encoders like MobileNetV2 struggle with fine-grained distinctions that a ResNet-101 can resolve. Additionally, the ReCo loss introduces hyperparameters—such as confidence thresholds and negative key sampling—that may require domain-specific tuning.

Conclusion

S4AL+ provides a simplified, high-performance alternative to complex active semi-supervised learning frameworks. By focusing on regional contrastive representations, it significantly reduces the annotation burden for semantic segmentation, paving the way for more efficient deployment of computer vision models in data-scarce environments.

Summary updated

BibTeX
@misc{rangnekar2022semantic,
  author = {Aneesh Rangnekar and Christopher Kanan and Matthew J. Hoffman},
  title = {{Semantic Segmentation with Active Semi-Supervised Representation Learning}},
  year = {2022},
  eprint = {2210.08403},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.08403},
}
Figure