Augment Features Beyond Color for Domain Generalized Segmentation

Qiyu Sun, Pavlo Melnyk, Michael Felsberg, Yang TangarXiv 2023

Abstract

Domain generalized semantic segmentation (DGSS) is an essential but highly challenging task, in which the model is trained only on source data and any target data is not available. Existing DGSS methods primarily standardize the feature distribution or utilize extra domain data for augmentation. However, the former sacrifices valuable information and the latter introduces domain biases. Therefore, generating diverse-style source data without auxiliary data emerges as an attractive strategy. In light of this, we propose GAN-based feature augmentation (GBFA) that hallucinates stylized feature maps while preserving their semantic contents with a feature generator. The impressive generative capability of GANs enables GBFA to perform inter-channel and trainable feature synthesis in an end-to-end framework. To enable learning GBFA, we introduce random image color augmentation (RICA), which adds a diverse range of variations to source images during training. These augmented images are then passed through a feature extractor to obtain features tailored for GBFA training. Both GBFA and RICA operate exclusively within the source domain, eliminating the need for auxiliary datasets. We conduct extensive experiments, and the generalization results from the synthetic GTAV and SYNTHIA to the real Cityscapes, BDDS, and Mapillary datasets show that our method achieves state-of-the-art performance in DGSS.

Introduction

Deep learning models for semantic segmentation—the task of identifying every pixel in an image—are notoriously data-hungry. While synthetic datasets like Grand Theft Auto V (GTAV) provide perfectly labeled data, models trained on them often fail in the real world due to domain shift. A model might learn the specific lighting and textures of a game engine but struggle with the glare, rain, or varying asphalt colors of a real city.

Existing solutions typically attempt to standardize features (which can discard useful information) or use auxiliary real-world datasets for augmentation (which can introduce new biases). This paper introduces a framework that generates a massive variety of styles using only the source data, ensuring the model becomes robust to unseen environments without ever seeing real-world images during training.

Methodology

The proposed framework utilizes two primary modules to diversify training data: Random Image Color Augmentation (RICA) and GAN-based Feature Augmentation (GBFA).

The overall framework of the proposed method, illustrating the RICA and GBFA modules working together to produce augmented features for segmentation.

Random Image Color Augmentation (RICA)

Instead of working in standard RGB space, RICA operates in the CIELAB color space. This space separates lightness ($L$) from color channels ($A$ and $B$), mimicking human perception. By randomly shifting these channels, RICA generates images with diverse lighting and color tones while keeping the semantic structure (the shapes) intact. This approach is superior to RGB augmentation because CIELAB allows for more meaningful shifts that better simulate different camera sensors or weather conditions.

GAN-based Feature Augmentation (GBFA)

GBFA is the core innovation, featuring a FeatureGAN that operates directly on the internal features extracted by the neural network.

  • Hallucination: The FeatureGAN "hallucinates" new, stylized versions of feature maps.
  • Inter-channel Synthesis: Unlike previous methods that only adjust statistics within a single channel, GBFA learns to synthesize variations across channels, creating complex and realistic data variations.
  • Semantic Consistency: To ensure the hallucinated features still represent the original objects, Kullback–Leibler (KL) divergence is used to maintain consistency during the GAN's training.

Experimental Results

The researchers evaluated the model using a "synthetic-to-real" pipeline, training on synthetic datasets (GTAV and SYNTHIA) and testing on real-world datasets (Cityscapes, BDDS, and Mapillary Vistas) that the model never saw during training.

Qualitative comparison of segmentation results on target images, showing the proposed method's superior performance compared to baselines and other state-of-the-art methods.

The method achieved State-of-the-Art (SOTA) results across multiple benchmarks. On the GTAV-to-Real benchmark using a ResNet-50 backbone, the method achieved an average mIoU (mean Intersection over Union) of 45.30%, significantly outperforming previous leaders like SHADE (42.42%). Qualitatively, the model showed a better ability to distinguish between easily confused categories like "road" and "sidewalk" and remained robust in difficult conditions such as specular reflections and low-light night scenes.

Conclusion

This research demonstrates that robust domain generalization can be achieved by mathematically "hallucinating" diversity from source data rather than relying on auxiliary datasets. While the current three-step training process is effective, future work may explore more end-to-end approaches or the use of Diffusion Models to further enhance the quality of feature hallucinations.

Summary updated

BibTeX
@misc{sun2023augment,
  author = {Qiyu Sun and Pavlo Melnyk and Michael Felsberg and Yang Tang},
  title = {{Augment Features Beyond Color for Domain Generalized Segmentation}},
  year = {2023},
  eprint = {2307.01703},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.01703},
}
Figure