Adversarial Learning for Semi-supervised Semantic Segmentation

Wei-Chih Hung, Yi-Hsuan Tsai, Yan-Ting Liou, Yen-Yu Lin, Ming-Hsuan Yang

Abstract

Semantic segmentation is a critical task in computer vision that typically requires extensive pixel-level annotations. This paper presents an adversarial learning framework designed to enhance segmentation performance by leveraging both labeled and unlabeled data. By employing a fully convolutional discriminator that generates spatial confidence maps, the system identifies "trustworthy" regions in unlabeled images to provide self-taught supervision. Experimental results on PASCAL VOC 2012 and Cityscapes demonstrate significant improvements in mean Intersection-over-Union (mIU), especially when labeled data is limited, all while maintaining zero additional computational cost during inference.

Introduction

Assigning a categorical label to every pixel in an image—semantic segmentation—is a data-intensive process. Creating high-quality datasets like Cityscapes or PASCAL VOC involves thousands of manual hours. To address this, researchers have turned to semi-supervised learning, which seeks to extract value from large volumes of unlabeled images alongside a small set of labeled ones. This paper proposes a novel approach using Generative Adversarial Networks (GANs) to enforce structural consistency and utilize unlabeled data through a spatial confidence mechanism.

Methodology

The proposed framework treats semantic segmentation as a structured output problem within a GAN setting. Unlike standard GANs that provide a single scalar output for an entire image, this method utilizes a spatial discriminator to provide localized feedback.

System Architecture

  1. The Generator: A standard segmentation network (e.g., DeepLab-v2) that predicts class probability maps from input images.
  2. Fully Convolutional Discriminator (FCD): This network takes either ground-truth labels or predicted probability maps and outputs a spatial confidence map. Each pixel in this map represents the probability that the corresponding region in the prediction matches the distribution of real ground-truth data.
  3. Multi-Task Loss Function: The training objective combines three distinct losses for the generator:
  4. Cross-Entropy ($L_{ce}$): Standard supervised loss for labeled data.
  5. Adversarial Loss ($L_{adv}$): Encourages the generator to produce outputs that mimic the spatial structure of ground truth.
  6. Semi-Supervised Loss ($L_{semi}$): Uses the discriminator's confidence map to select high-confidence regions in unlabeled images as pseudo-labels for further training.

Key Insights

  • Spatial Criticism: The FCD learns higher-order structural constraints, such as the typical shapes and spatial relationships of objects. This prevents common errors like "floating" pixels or inconsistent object boundaries.
  • Discriminator as a Teacher: In the semi-supervised loop, the discriminator acts as an automated quality controller, identifying which parts of a prediction on unlabeled data are reliable enough to be used for training.
  • Inference Efficiency: Since the discriminator is only used during training, the final model remains a standard segmentation network, incurring no extra latency during deployment.

Experiments and Results

The framework was evaluated on the PASCAL VOC 2012 and Cityscapes datasets. To simulate data-scarce environments, the authors trained models using fractions (1/8, 1/4, 1/2) of the available labeled data.

Quantitative Performance

On PASCAL VOC 2012, using only 1/8 of the labeled data, the baseline mIU of 66.0% was improved to 69.5% with the full adversarial and semi-supervised setup. Similarly, on Cityscapes with 1/8 data, the model saw a boost from 55.5% to 58.8% mIU.

Qualitative Analysis

Visual comparisons reveal that the adversarial components significantly reduce noise and improve structural coherence. The model produces cleaner boundaries and handles complex object shapes more effectively than the baseline, which often struggles with structural consistency.

Conclusion and Future Work

This work demonstrates that adversarial learning is a potent tool for semi-supervised semantic segmentation. By focusing on spatial confidence, the model effectively bridges the gap between labeled and unlabeled data. Future research may involve refining the discriminator to be more robust against "one-hot" distribution detection and extending this structured output approach to other domains like depth estimation or optical flow.

Summary updated

BibTeX
@inproceedings{hung2018adversarial,
  author = {Wei-Chih Hung and Yi-Hsuan Tsai and Yan-Ting Liou and Yen-Yu Lin and Ming-Hsuan Yang},
  title = {{Adversarial Learning for Semi-supervised Semantic Segmentation}},
  booktitle = {BMVC},
  year = {2018},
}
Figure