arXiv(opens in a new tab)Computer ScienceApr 2023

Manuscript Offprint

arXiv:2304.02222

DiGA: Distil to Generalize and then Adapt for Domain Adaptive Semantic Segmentation

Fengyi Shen, A. Gurram, Ziyuan Liu, He Wang, Alois Knoll

Abstract

Domain adaptive semantic segmentation methods commonly utilize stage-wise training, consisting of a warm-up and a self-training stage. However, this popular approach still faces several challenges in each stage: for warm-up, the widely adopted adversarial training often results in limited performance gain, due to blind feature alignment; for self-training, finding proper categorical thresholds is very tricky. To alleviate these issues, we first propose to replace the adversarial training in the warm-up stage by a novel symmetric knowledge distillation module that only accesses the source domain data and makes the model domain generalizable. Surprisingly, this domain generalizable warm-up model brings substantial performance improvement, which can be further amplified via our proposed cross-domain mixture data augmentation technique. Then, for the self-training stage, we propose a threshold-free dynamic pseudo-label selection mechanism to ease the aforementioned threshold problem and make the model better adapted to the target domain. Extensive experiments demonstrate that our framework achieves remarkable and consistent improvements compared to the prior arts on popular benchmarks. Codes and models are available at https://github.com/fy-vision/DiGA

1 Introduction

Semantic segmentation [45, 7, 82, 42] is an essential component in autonomous driving [20], image editing [54, 79], medical imaging [60], etc. However, for images in a specific domain, training deep neural networks [62, 38, 35, 37] for semantic segmentation often requires a vast amount of pixel-wisely annotated data, which is expensive and laborious. Therefore, domain adaptive semantic segmentation, i.e. learning semantic segmentation from a labelled source domain (either virtual data or an existing dataset) and then performing unsupervised domain adaptation (UDA) [3, 15, 21, 46, 63] to the target domain, becomes an important research topic. Yet the remaining challenge is the severe model performance degradation caused by the visual domain gap between source and target domain data. In this work, we tackle this domain adaptive semantic segmentation problem, with the goal of aligning correct categorical information pixel-wisely from the labelled source domain onto the unlabelled target domain.

Currently, stage-wise training, composed of a warm-up and a self-training stage, has been widely adopted in domain adaptive semantic segmentation [84, 81, 80, 41, 50, 1] as it stabilizes the domain adaptive learning [81] and thus reduces the performance drop across domains. However, the gap is far from being closed and, in this work, we identify that there is still a large space to improve in both warm-up and self-training. Regarding warm-up, recent works in this field [84, 81, 80, 41, 50] mostly adopt adversarial training [21, 68, 67] as their basic strategy, which usually contributes to limited adaptation improvements. Without knowing the target domain labels, this adversarial learning proposes to align the overall feature distributions across domains. Note that this alignment is class-unaware and fails to guarantee the features from the same semantic category are well aligned between the source and target domain, thus being sub-optimal as a warm-up strategy.

In contrast, we take an alternative perspective to improve the warm-up: simply enhancing the model’s domain generalizability without considering target data. To be specific, we introduce a pixel-wise symmetric knowledge distillation technique. The benefits are threefold: i. knowledge distillation is performed on the source domain where ground-truths are available, the learning thus becomes class-aware, which avoids the blind alignment as observed in adversarial training; ii. the soft labels created in the process of distillation can effectively avoid the model overfitting to domain-specific bias [71] and help to learn more generalized features across domains; iii. our symmetric proposal ensures the bidirectional consistency between the original source view and its augmented view, leading to more generalizable model performance in the warm-up stage. Our method achieves a significant improvement from 45.2 to 48.9 mIoU compared to adversarial training, meanwhile, it outperforms existing arts on domain generalized segmentation.

We further observe that making the data augmentation target-aware can help the model explore target domain characteristics and improve the adaptation. Hence, we propose cross-domain mixture (CrDoMix) data augmentation to better condition our warm-up model to the next stage.

In terms of self-training on the target domain, many works [84, 81, 80, 41, 50, 1] manage to optimize their self-training stage by finding proper thresholds for pseudo-labelling, which is onerous and not productive enough so far. In practice, however, self-training methods often get trapped into a performance bottleneck because the search for categorical thresholds is regarded as a trade-off between quantity and quality. Larger thresholds lead to insufficient learning, whereas smaller ones introduce noisy pseudo-labels in training.

To handle this, we propose bilateral-consensus pseudo-supervision, a threshold-free technique which selects pseudo-labels dynamically by checking the consensus between feature-induced and probability-based labels. The feature-induced labels come from pixel-to-centroid voting, focusing on local contexts of an input. The probability-based labels from the warm-up model are better at capturing global and regional contexts by the design nature of semantic segmentation architectures. Hence, by checking the consensus of these two types of labels generated by different mechanisms, the obtained pseudo-labels provide reliable and comprehensive estimation of target domain labels. Thus, an efficient self-training stage is enabled, leading to substantial performance gainagainst prior arts.

Figure 1: A systematic overview of DiGA framework. For warm-up stage, instead of aligning features between the two domains from the beginning, we propose to first make the model generalizable to an unseen domain through our symmetric distillation scheme, which can be achieved even without access to the target domain data. Coupled with our target-aware CrDoMix data augmentation technique, a warm-up model of higher quality can be obtained. To make the model better adapted to the target domain, a threshold-free self-training stage is empowered by checking the consensus between feature-induced labels and probability-based labels that are initialized from the warm-up model. CrDoMix also contributes to the update of domain-generalized class centroids to strengthen the self-training stage.

In this work, we present DiGA, a novel framework for domain adaptive semantic segmentation (see Fig.1). Our contributions can be summarized as follows:

  • We introduce pixel-wise symmetric knowledge distillation sorely on source domain, which results in a stronger warm-up model and turns out to be a better option than its adversarial counterpart.
  • We introduce cross-domain mixture (CrDoMix), a novel data augmentation technique that brings further improvement to our warm-up model performance;
  • We propose bilateral-consensus pseudo-supervision, empowering efficient self-training while abandoning categorical thresholds;
  • Our method achieves remarkable and consistent performance gain over prior arts on popular benchmarks, e.g., GTA5- and Synthia-to-Cityscapes adaptation.

References (86)

  • Self-supervised augmentation consistency for adapting semantic segmentation
  • Wasserstein generative adversarial networks
  • Advances in neural information processing systems, 19:137, 2007
  • Model compression
  • Partial adversarial domain adaptation
  • Emerging Properties in Self-Supervised Vision Transformers
  • Deeplab: Semantic image segmentation with deep convolutional nets, atrous convolution, and fully connected crfs
  • Big self-supervised models are strong semi-supervised learners (opens arXiv in a new tab)
  • Semi-supervised semantic segmentation with cross pseudo supervision
  • Crdoco: Pixel-level domain transfer with cross-domain consistency
  • Self-ensembling with gan-based data augmentation for domain adaptation in semantic segmentation
  • Robustnet: Improving domain generalization in urban-scene segmentation via instance selective whitening
  • The cityscapes dataset for semantic urban scene understanding
  • Randaugment: Practical automated data augmentation with a reduced search space
  • Frustratingly easy domain adaptation (opens arXiv in a new tab)
  • Imagenet: A large-scale hierarchical image database
  • Dataset augmentation in feature space (opens arXiv in a new tab)
  • Improved regularization of convolutional neural networks with cutout (opens arXiv in a new tab)
  • Ssf-dan: Separated semantic feature based domain adaptation network for semantic segmentation
  • Deep multi-modal object detection and semantic segmentation for autonomous driving: Datasets, methods, and challenges
  • Unsupervised domain adaptation by backpropagation
  • Generative adversarial nets
  • Momentum contrast for unsupervised visual representation learning
  • Deep residual learning for image recognition
  • Distilling the Knowledge in a Neural Network
  • Cycada: Cycle-consistent adversarial domain adaptation
  • Daformer: Improving network architectures and training strategies for domain-adaptive semantic segmentation
  • Hrda: Context-aware high-resolution domain-adaptive semantic segmentation
  • Fsdr: Frequency space domain randomization for domain generalization
  • Multimodal unsupervised image-to-image translation
  • Prototypical contrast adaptation for domain adaptive semantic segmentation (opens arXiv in a new tab)
  • A style-based generator architecture for generative adversarial networks
  • Learning texture invariant representation for domain adaptation of semantic segmentation
  • Imagenet classification with deep convolutional neural networks
  • Generalize then adapt: Source-free domain adaptive semantic segmentation
  • Deep learning
  • Gradient-based learning applied to document recognition
  • Content-consistent matching for domain adaptive semantic segmentation
  • Class-balanced pixel-level self-labeling for domain adaptive semantic segmentation
  • Bidirectional learning for domain adaptation of semantic segmentation
  • Refinenet: Multi-path refinement networks for high-resolution semantic segmentation
  • Unsupervised image-to-image translation networks
  • Structured knowledge distillation for semantic segmentation
  • Fully convolutional networks for semantic segmentation
  • Unsupervised domain adaptation with residual transfer networks (opens arXiv in a new tab)
  • Decoupled Weight Decay Regularization
  • Adversarial learning
  • Least squares generative adversarial networks
  • Instance adaptive self-training for unsupervised domain adaptation (opens arXiv in a new tab)
  • The mapillary vistas dataset for semantic understanding of street scenes
  • Classmix: Segmentation-based data augmentation for semi-supervised learning
  • Unsupervised intra-domain adaptation for semantic segmentation through self-supervision
  • Semantic image synthesis with spatially-adaptive normalization
  • Multi-adversarial domain adaptation
  • Semantic-aware domain generalized segmentation
  • Color transfer between images
  • Playing for data: Ground truth from computer games
  • A stochastic approximation method
  • U-net: Convolutional networks for biomedical image segmentation
  • The synthia dataset: A large collection of synthetic images for semantic segmentation of urban scenes
  • Learning representations by back-propagating errors
  • Maximum classifier discrepancy for unsupervised domain adaptation
  • Deep model compression: Distilling knowledge from noisy teachers (opens arXiv in a new tab)
  • Best practices for convolutional neural networks applied to visual document analysis
  • Dacs: Domain adaptation via cross-domain mixed sampling
  • Learning to adapt structured output space for semantic segmentation
  • Adversarial discriminative domain adaptation
  • Classes matter: A fine-grained adversarial approach to cross-domain semantic segmentation
  • IEEE transactions on pattern analysis and machine intelligence, 43(10):3349–3364, 2020
  • Embracing the dark knowledge: Domain generalization using regularized knowledge distillation
  • Intra-class feature variation distillation for semantic segmentation
  • A gift from knowledge distillation: Fast optimization, network minimization and transfer learning
  • Bdd100k: A diverse driving dataset for heterogeneous multitask learning
  • Object-contextual representations for semantic segmentation
  • Domain randomization and pyramid consistency: Simulation-to-real generalization without accessing target domain data
  • Cutmix: Regularization strategy to train strong classifiers with localizable features
  • mixup: Beyond empirical risk minimization (opens arXiv in a new tab)
  • Cross-domain correspondence learning for exemplar-based image translation
  • Prototypical pseudo label denoising and target structure learning for domain adaptive semantic segmentation
  • Category anchor-guided unsupervised domain adaptation for semantic segmentation (opens arXiv in a new tab)
  • Pyramid scene parsing network
  • Style-hallucinated dual consistency learning for domain generalized semantic segmentation (opens arXiv in a new tab)
  • Rectifying pseudo label learning via uncertainty estimation for domain adaptive semantic segmentation
  • Unpaired image-to-image translation using cycle-consistent adversarial networks
  • Unsupervised domain adaptation for semantic segmentation via class-balanced self-training
  • Confidence regularized self-training