Semi-supervised Semantic Segmentation with Error Localization Network

Donghyeon Kwon, Suha Kwak · DOI

Abstract

This paper studies semi-supervised learning of semantic segmentation, which assumes that only a small portion of training images are labeled and the others remain unlabeled. The unlabeled images are usually assigned pseudo labels to be used in training, which however often causes the risk of performance degradation due to the confirmation bias towards errors on the pseudo labels. We present a novel method that resolves this chronic issue of pseudo labeling. At the heart of our method lies error localization network (ELN), an auxiliary module that takes an image and its segmentation prediction as input and identifies pixels whose pseudo labels are likely to be wrong. ELN enables semi-supervised learning to be robust against inaccurate pseudo labels by disregarding label noises during training and can be naturally integrated with self-training and contrastive learning. Moreover, we introduce a new learning strategy for ELN that simulates plausible and diverse segmentation errors during training of ELN to enhance its generalization. Our method is evaluated on PASCAL VOC 2012 and Cityscapes, where it outperforms all existing methods in every evaluation setting.

Introduction

Semantic segmentation is a fundamental computer vision task that requires dense, pixel-level annotations, making it exceptionally costly to scale. Semi-supervised learning (SSL) offers a solution by leveraging a small set of labeled data alongside a larger pool of unlabeled images. The predominant approach in SSL is pseudo-labeling, where a model generates predictions for unlabeled data to serve as training targets. However, this process is plagued by "confirmation bias": the model tends to reinforce its own incorrect predictions, leading to performance degradation.

While existing methods attempt to mitigate this via hand-tuned confidence thresholds or error correction networks, these approaches are often brittle or fail to generalize. This paper introduces the Error Localization Network (ELN), which shifts the focus from correcting errors to identifying and disregarding them, thereby providing a more robust filtering mechanism for pseudo-labels.

Methodology

Integrated SSL Framework

The proposed framework utilizes a Student-Teacher architecture for semi-supervised learning. The Teacher network generates pseudo-labels for unlabeled images, which are then passed through the ELN. The ELN performs a binary classification for each pixel, determining whether the pseudo-label is likely correct or erroneous.

Overall framework of the proposed semi-supervised semantic segmentation method, integrating the ELN with self-training and contrastive learning.

Pixels flagged as "wrong" by the ELN are excluded from the training process. The Student network is then trained using two primary losses:

  • Pseudo-label Loss ($L_{pseudo}$): A cross-entropy loss applied only to the filtered, high-confidence pixels.
  • Contrastive Loss ($L_{contra}$): A pixel-wise loss in the embedding space that encourages features of the same class to cluster together while pushing different classes apart, using only the ELN-verified pixels.

Training the Error Localization Network

A key challenge in training an ELN is the lack of diverse error samples, as a well-trained segmentation network typically produces few mistakes on its training set. To overcome this, the authors introduce a novel training strategy that simulates "plausible" errors.

The ELN training strategy using multiple auxiliary decoders to generate diverse and realistic segmentation errors.

The framework attaches multiple auxiliary decoders to a shared encoder. These decoders are intentionally constrained to perform sub-optimally compared to the main decoder. By comparing the outputs of these weakened decoders against the ground truth, the system generates a wide variety of realistic segmentation errors (e.g., boundary bleeding or small object omissions). This "training gym" allows the ELN to learn the general patterns of segmentation mistakes, enhancing its ability to generalize to unseen unlabeled data.

Experiments and Results

The method was rigorously evaluated on two standard benchmarks: PASCAL VOC 2012 (21 classes) and Cityscapes (19 classes). The authors tested various label ratios to simulate different levels of data scarcity.

  • PASCAL VOC 2012: With a ResNet-101 backbone and only 1/8 of the labels, the model achieved 75.10% mIoU, significantly outperforming previous state-of-the-art methods like CutMix (72.45%) and GCT (72.14%).
  • Cityscapes: At a 1/8 label ratio, the model reached 70.33% mIoU, a gain of over 10 points compared to the supervised baseline and superior to other recent SSL techniques.

Qualitative analysis confirms that the ELN effectively masks out noisy regions, particularly around object boundaries and thin structures, resulting in cleaner and more accurate final segmentations.

Conclusion

The Error Localization Network provides a simple yet effective way to combat confirmation bias in semi-supervised semantic segmentation. By identifying rather than correcting errors, and by using a diverse error-simulation strategy for training, the ELN enables more reliable pseudo-labeling. While the approach introduces some computational overhead during training due to the auxiliary decoders, its superior performance across multiple benchmarks and label ratios establishes it as a new state-of-the-art in the field. Future work may explore extending the ELN concept to other dense prediction tasks like instance segmentation or object detection.

Summary updated

BibTeX
@misc{kwon2022semi,
  author = {Donghyeon Kwon and Suha Kwak},
  title = {{Semi-supervised Semantic Segmentation with Error Localization Network}},
  year = {2022},
  eprint = {2204.02078},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2204.02078},
}
Figure