Continual Source-Free Unsupervised Domain Adaptation

Waqar Ahmed, Pietro Morerio, Vittorio Murino

Introduction

In computer vision, the deployment of deep learning models often encounters the challenge of domain shift, where the distribution of the training (source) data differs from that of the deployment (target) data. Unsupervised Domain Adaptation (UDA) aims to mitigate this by utilizing unlabeled target data. However, in many real-world scenarios, the original source data is inaccessible due to privacy regulations or proprietary constraints, leading to the development of Source-Free UDA (SUDA). A significant drawback of existing SUDA methods is "catastrophic forgetting," where the model's performance on the original source domain degrades significantly during adaptation to the target domain. This paper introduces the Continual SUDA (C-SUDA) framework, designed to adapt to new domains while preserving performance on the source domain without requiring source data access.

Proposed Methodology

The C-SUDA framework operates in two distinct stages to achieve robust adaptation and prevent forgetting.

Overview of the C-SUDA framework featuring Stage 1 (Pseudo-label Refinement) and Stage 2 (Source-Style Image Synthesis).

Stage 1: Pseudo-label Refinement

Initial predictions on the target domain by a source-trained model are typically noisy. C-SUDA addresses this through an ensemble-based refinement process. The method employs Disjoint Residual Labels (DRL), where different ensemble members are trained on distinct subsets of potential labels. This approach encourages the ensemble to reach a consensus, effectively filtering out label noise and providing high-quality pseudo-labels for the target data.

Stage 2: Source-Style Image Synthesis

To mitigate forgetting, C-SUDA synthesizes "source-style" images that act as anchors for the original domain. This is achieved by leveraging the Batch Normalization (BN) layers of the frozen source model, which store the running statistics (mean and variance) of the source data. Unlike traditional methods that synthesize images from random noise, C-SUDA uses high-confidence target images as a content prior. These images are optimized in the pixel space to match the stored BN statistics, resulting in synthetic images that retain the semantic structure of the target domain while adopting the stylistic features of the source domain.

Continual Adaptation Training

The final adaptation involves training the model on a combined dataset of real target images and the generated synthetic source-style images. By freezing the fully-connected (FC) classifier layers, the feature extractor is forced to align target features with the established source categories, further stabilizing the model against forgetting.

Experimental Results

The authors evaluated C-SUDA on three benchmark datasets: PACS, VisDA-C, and DomainNet.

Performance and Source Preservation

C-SUDA demonstrates a superior ability to maintain source domain performance compared to standard SUDA baselines. For instance, on the PACS dataset, while other methods saw source accuracy drop to 46.3%, C-SUDA maintained a high accuracy of 78.0%. This preservation does not come at the cost of target adaptation, as C-SUDA achieves state-of-the-art or comparable results on target domains across all benchmarks.

Visual Fidelity of Synthesized Images

The effectiveness of the "target as a prior" strategy is evident in the qualitative results. Synthesized images successfully capture the stylistic nuances of various source domains (e.g., Art, Cartoon, Sketch) while maintaining the recognizable shapes of target objects.

Qualitative comparison of images synthesized from noise versus those synthesized using the C-SUDA method with target priors.

Discussion and Conclusion

C-SUDA provides a robust solution for continual adaptation in source-free environments. By utilizing BatchNorm statistics as a distribution memory and target images as structural priors, the framework effectively bridges the gap between source and target domains.

Despite its success, the method faces limitations, primarily the computational overhead of the image synthesis optimization process. Future research could focus on accelerating this synthesis or extending the framework to open-set domain adaptation where the target domain contains novel classes. Overall, C-SUDA represents a significant step toward deploying reliable, lifelong learning models in privacy-sensitive applications.

Summary updated

BibTeX
@inproceedings{ahmed2023continual,
  author = {Waqar Ahmed and Pietro Morerio and Vittorio Murino},
  title = {{Continual Source-Free Unsupervised Domain Adaptation}},
  booktitle = {ICIAP},
  year = {2023},
  doi = {10.1007/978-3-031-43148-7\_2},
}

Loading related content...

Figure