Revisiting CycleGAN for semi-supervised segmentation

Arnab Kumar Mondal, Aniket Agarwal, Jose Dolz, Christian DesrosiersarXiv 2019

Introduction

Deep learning models for semantic segmentation are notoriously "data-hungry," requiring thousands of pixel-level annotated images to achieve high performance. Manually labeling these images is time-consuming and expensive, particularly in specialized domains like medical imaging or autonomous driving.

Semi-supervised learning (SSL) offers a solution by training models on a small set of labeled data ($L$) alongside a much larger set of unlabeled data ($U$). While previous approaches have utilized Generative Adversarial Networks (GANs) for SSL, they often focus on generating synthetic images or using discriminators to validate predicted masks. This paper proposes a novel strategy that leverages the unpaired image-to-image translation power of CycleGAN to treat the relationship between images and labels as a "style transfer" problem.

Methodology

The core of the proposed approach is a four-network architecture trained simultaneously to enforce a bidirectional, cycle-consistent mapping between the image domain and the label domain. This architecture consists of:

  1. $G_{IS}$ (Image-to-Segmentation Generator): The primary segmentation network that maps an image to a segmentation mask.
  2. $G_{SI}$ (Segmentation-to-Image Generator): A network that learns to "render" a realistic image from a segmentation mask.
  3. $D_I$ (Image Discriminator): Distinguishes between real images and those generated by $G_{SI}$.
  4. $D_S$ (Segmentation Discriminator): Distinguishes between ground-truth masks and those predicted by $G_{IS}$.
The proposed CycleGAN-based architecture for semi-supervised segmentation, highlighting the segmentation, discriminator, and cycle consistency losses.

Cycle Consistency as Regularization

The model enforces two primary cycles to exploit unlabeled data:

  • Image Cycle: An unlabeled image is passed through $G_{IS}$ to produce a mask, which is then passed through $G_{SI}$ to reconstruct the original image. An L1 loss ensures the generators preserve spatial structure.
  • Mask Cycle: A ground-truth mask is passed through $G_{SI}$ to generate an image, then back through $G_{IS}$ to reconstruct the mask. A cross-entropy loss ensures label consistency.

By treating labels as a distinct "domain," the cycle-consistency loss acts as a powerful unsupervised regularizer. It forces the network to learn structurally sound features even in the absence of explicit labels, as the predicted mask must contain enough information to reconstruct the original image.

Experimental Evaluation

The authors evaluated the method on three diverse benchmarks: PASCAL VOC 2012 (natural objects), Cityscapes (urban driving), and ACDC (cardiac MRI). The method was compared against a "Partial" baseline (supervised training on limited data) and other adversarial SSL approaches.

Quantitative comparison of mIOU across three benchmarks at various labeling percentages, demonstrating the performance boost of the proposed method.

Key Results

  • Performance Gains: The proposed method consistently outperformed the supervised baseline, particularly in low-data regimes (10-20% labels), showing a 2-4% improvement in mean Intersection over Union (mIOU).
  • Structural Fidelity: Qualitative analysis showed that the CycleGAN approach was significantly better at recovering fine details, such as thin poles in street scenes or animal limbs, which are often lost in standard supervised models with limited data.
  • Ablation Insights: Removing the image cycle loss or the discriminators led to significant performance drops, confirming that the bidirectional mapping is essential for effective regularization.

Discussion and Conclusion

This work demonstrates that treating semantic segmentation as an unpaired domain adaptation task via CycleGAN provides a robust framework for semi-supervised learning. The primary limitation identified was the high computational overhead of training four networks simultaneously, which necessitated downsampling high-resolution datasets like Cityscapes.

Future work will focus on exploring more specialized generator architectures and evaluating the model on full-resolution images to further bridge the gap between semi-supervised and fully supervised performance. Despite the computational costs, the ability to extract meaningful features from unlabeled data makes this a promising direction for data-constrained segmentation tasks.

Summary updated

BibTeX
@misc{mondal2019revisiting,
  author = {Arnab Kumar Mondal and Aniket Agarwal and Jose Dolz and Christian Desrosiers},
  title = {{Revisiting CycleGAN for semi-supervised segmentation}},
  year = {2019},
  eprint = {1908.11569},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1908.11569},
}
Figure