NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Semantic Segmentation using Adversarial Networks

Pauline Luc, Camille Couprie, Soumith Chintala, Jakob Verbeek

Abstract

This paper introduces the first application of adversarial training to the task of semantic segmentation. By training a segmentor network alongside a discriminator that distinguishes between ground-truth and predicted label maps, the authors force the model to learn "higher-order" spatial consistencies. This approach teaches the network to produce more realistic, structurally sound segmentations without adding any computational overhead at test time.

Introduction

Most semantic segmentation models rely on per-pixel loss functions, such as cross-entropy. While effective, this approach treats every pixel as an independent prediction, often resulting in "noisy" outputs where labels lack spatial context (e.g., a patch of "water" appearing inside a "building"). Traditionally, researchers have used Conditional Random Fields (CRFs) to smooth these predictions. However, CRFs are typically limited to pairwise relationships and can be computationally expensive. This paper proposes using Generative Adversarial Networks (GANs) to automatically learn complex spatial relationships during training.

Methodology

The proposed framework consists of two networks: a Segmentor and an Adversarial Network. The Segmentor is a standard Convolutional Neural Network (CNN) that takes an RGB image and outputs a multi-class probability map. The Adversarial Network (Discriminator) is a CNN that takes a segmentation map—either the ground truth or the segmentor's prediction—and attempts to classify it as "real" or "synthetic."

Overview of the adversarial training framework for semantic segmentation.

The segmentor is trained to minimize a hybrid loss function combining standard cross-entropy with an adversarial loss. The adversarial loss encourages the segmentor to "fool" the discriminator by producing maps that look structurally identical to real human-annotated data. To stabilize training and improve feature alignment, the authors experimented with different discriminator inputs, including a "Product" mode where the segmentation map is multiplied element-wise by the original RGB image.

Results and Key Insights

The models were evaluated on the Stanford Background and PASCAL VOC 2012 datasets. On the Stanford Background dataset, the adversarial approach improved Mean IoU from 51.3% to 54.3%. On PASCAL VOC 2012, the gains were consistent, with the "LargeFOV-Product" configuration reaching 73.3% mIoU.

Qualitative comparison showing the impact of adversarial training on spatial consistency.

Beyond numerical improvements, the adversarial loss acts as a powerful regularizer. The authors observed that while the adversarial model might have lower training accuracy than a standard model, it performs better on validation data, suggesting it prevents the segmentor from "memorizing" pixel patterns. Qualitatively, the adversarial training produces "cleaner" results, removing small, spurious blobs of incorrect labels. Importantly, because the discriminator is only used during training, the final model maintains zero additional latency at inference time.

Conclusion and Future Work

Adversarial training effectively enables segmentation models to learn global structure and higher-order potentials. While the performance boost is more pronounced on smaller datasets, the method is a zero-latency improvement over standard per-pixel training. Future work could explore combining adversarial training with CRFs to refine local boundaries while maintaining global structural integrity.

Summary updated

BibTeX
@inproceedings{luc2016semantic,
  author = {Pauline Luc and Camille Couprie and Soumith Chintala and Jakob Verbeek},
  title = {{Semantic Segmentation using Adversarial Networks}},
  booktitle = {HAL},
  year = {2016},
}
Figure