Lookahead Adversarial Semantic Segmentation

Hadi Jamali Rad, Attila Szabó, Matteo PresuttoarXiv 2020

Abstract

Semantic segmentation is one of the most fundamental problems in computer vision with significant impact on a wide variety of applications. Adversarial learning is shown to be an effective approach for improving semantic segmentation quality by enforcing higher-level pixel correlations and structural information. However, state-of-the-art semantic segmentation models cannot be easily plugged into an adversarial setting because they are not designed to accommodate convergence and stability issues in adversarial networks. We bridge this gap by building a conditional adversarial network with a state-of-the-art segmentation model (DeepLabv3+) at its core. To battle the stability issues, we introduce a novel lookahead adversarial learning (LoAd) approach with an embedded label map aggregation module. We focus on semantic segmentation models that run fast at inference for near real-time field applications. Through extensive experimentation, we demonstrate that the proposed solution can alleviate divergence issues in an adversarial semantic segmentation setting and results in considerable performance improvements (+5% in some classes) on the baseline for three standard datasets.

Introduction

Semantic segmentation is a cornerstone of computer vision, essential for tasks ranging from autonomous driving to medical robotics. Traditionally, these models are trained using pixel-wise Cross-Entropy (CE) loss, which treats each pixel as an independent classification task. This approach often fails to capture the structural relationships between adjacent pixels, leading to fragmented or anatomically impossible segmentation maps.

Conditional Adversarial Networks (GANs) offer a solution by employing a discriminator to enforce structural consistency. However, integrating high-performance architectures like DeepLabv3+ into an adversarial framework is notoriously difficult, often resulting in training instability, divergence, and mode collapse. To circumvent these issues, practitioners often rely on computationally expensive post-processing techniques like Conditional Random Fields (CRFs). This paper introduces LoAd (Lookahead Adversarial Learning), a training strategy that stabilizes adversarial learning without adding any inference-time overhead.

The LoAd Framework

The proposed methodology utilizes a two-stage training pipeline designed to maximize both pixel-level accuracy and structural coherence. In the first stage, the generator (DeepLabv3+) is pre-trained using standard pixel-wise loss to establish a baseline. In the second stage, the model enters an adversarial loop with a MobileNet-based discriminator.

The proposed conditional adversarial network architecture, utilizing DeepLabv3+ as the generator and a MobileNet-based discriminator.

Lookahead Training Dynamics

The core innovation of LoAd is its ability to learn from controlled divergence. Unlike standard GAN training, which often fails when the generator diverges, LoAd allows the generator to "look ahead" by continuing training even as accuracy drops. During this phase, the model produces "degraded" label maps that are stored in an aggregation buffer. These maps serve as highly informative negative samples for the discriminator.

mIoU performance during LoAd training, illustrating the lookahead cycles and the model's ability to recover from divergence.

Once the discriminator is retrained on these specific failure modes, the generator "steps back" to its previous best-performing state (denoted as $g_n$ in the training dynamics). It then restarts the adversarial process against the now-stronger discriminator, which is better equipped to guide the generator toward structural correctness.

Experimental Evaluation

The LoAd framework was evaluated on three benchmark datasets: PASCAL VOC 2012, Cityscapes, and Stanford Background. The results demonstrate that LoAd consistently outperforms the DeepLabv3+ baseline.

  • PASCAL VOC 2012: LoAd achieved a 0.9% improvement in overall mIoU. Notably, difficult classes with complex structures saw significant gains, such as +5.7% for 'sofa' and +3% for 'dining table'.
  • Cityscapes: The model showed robust performance in urban environments, with a +7% boost for 'wall' and +2% for 'terrain'.
  • Qualitative Gains: Beyond numerical metrics, LoAd produces visually superior results, resolving class confusion and maintaining continuity in thin structures like chair legs or animal limbs.

Conclusion

LoAd provides a robust solution for training high-performance semantic segmentation models in an adversarial setting. By leveraging a lookahead mechanism and a label map aggregation buffer, the method overcomes the stability issues that typically plague GAN-based segmentation. Crucially, LoAd achieves these gains purely through training-time optimizations, ensuring that the final model remains efficient for real-time field applications.

Summary updated

BibTeX
@misc{rad2020lookahead,
  author = {Hadi Jamali Rad and Attila Szabó and Matteo Presutto},
  title = {{Lookahead Adversarial Semantic Segmentation}},
  year = {2020},
  eprint = {2006.11227},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.11227},
}
Figure