Improved Noise and Attack Robustness for Semantic Segmentation by Using Multi-Task Training with Self-Supervised Depth Estimation

Marvin Klingner, Andreas Bär, Tim Fingscheidt

Introduction

Semantic segmentation—the process of assigning a semantic category to every pixel in an image—is a critical component for autonomous systems, particularly in self-driving vehicles. Despite their success, deep neural networks used for this task are notoriously fragile. They are susceptible to performance degradation from random sensor noise, adverse weather conditions, and carefully crafted adversarial attacks.

This research proposes a novel method to enhance the "intrinsic" robustness of these models without requiring additional manual labeling or increasing computational overhead during inference.

Multi-Task Learning for Robustness

The core idea is to leverage Multi-Task Learning (MTL). Instead of training a model solely on semantic segmentation, the authors train it simultaneously on an auxiliary task: self-supervised monocular depth estimation.

Multi-task training architecture combining supervised semantic segmentation with self-supervised depth estimation.

As shown in the architecture diagram above, both tasks share a common feature extractor (encoder). The segmentation task uses supervised labels from datasets like Cityscapes. Crucially, the depth estimation task is self-supervised, meaning it learns from unlabeled video sequences by predicting how frames warp over time. This forces the shared encoder to learn fundamental geometric features of the scene, acting as a powerful regularizer that prevents the model from over-fitting to superficial textures.

Key Insights: Geometry as a Shield

By requiring the network to understand the 3D structure of the environment to predict depth, the resulting feature representations become more resilient. Adversarial perturbations that might easily fool a texture-reliant single-task model are less effective when the model's logic is grounded in scene geometry.

A significant advantage of this approach is that the depth decoder is discarded after training. At test time, the system operates as a standard segmentation network, providing improved robustness at zero extra computational cost.

Experimental Results and Robustness

The researchers evaluated their multi-task (MTL) model against a standard single-task (STL) baseline across various types of "dirty" data. To ensure a fair comparison, they introduced a unified metric using Signal-to-Noise Ratios (SNR) to compare random noise and directed adversarial attacks.

Robustness comparison between multi-task (MTL) and single-task (STL) models across various noise types and adversarial attacks.

The results consistently favored the MTL approach:

  • Clean Performance: On standard Cityscapes images, the MTL model improved the Mean Intersection over Union (mIoU) from 63.5% to 68.9%.
  • Noise Resilience: Under heavy Gaussian noise, the MTL model retained over 60% of its performance, while the baseline dropped significantly.
  • Adversarial Defense: Against the Fast Gradient Sign Method (FGSM) and Projected Gradient Descent (PGD) attacks, the MTL model maintained a much higher performance ratio ($Q$) across all perturbation strengths.
  • Generalization: The MTL model also showed superior performance when tested on the KITTI dataset, indicating that the depth task helps learn more universal, transferable features.

Conclusion

This work demonstrates that multi-task training with self-supervised depth estimation is a highly effective, "cost-free" method for improving the robustness of semantic segmentation. By grounding visual recognition in geometric understanding, models become naturally more resilient to both environmental noise and malicious attacks, paving the way for safer autonomous systems.

Summary updated

BibTeX
@inproceedings{klingner2020improved,
  author = {Marvin Klingner and Andreas Bär and Tim Fingscheidt},
  title = {{Improved Noise and Attack Robustness for Semantic Segmentation by Using Multi-Task Training with Self-Supervised Depth Estimation}},
  booktitle = {Workshops @ CVPR},
  year = {2020},
  doi = {10.1109/cvprw50498.2020.00168},
}
Figure