Complementary Domain Adaptation and Generalization for Unsupervised Continual Domain Shift Learning

Wonguk Cho, Jinha Park, Taesup KimICCV 2023 · DOI

Abstract

Continual domain shift poses a significant challenge in real-world applications, particularly in situations where labeled data is not available for new domains. The challenge of acquiring knowledge in this problem setting is referred to as unsupervised continual domain shift learning. Existing methods for domain adaptation and generalization have limitations in addressing this issue, as they focus either on adapting to a specific domain or generalizing to unseen domains, but not both. In this paper, we propose Complementary Domain Adaptation and Generalization (CoDAG), a simple yet effective learning framework that combines domain adaptation and generalization in a complementary manner to achieve three major goals of unsupervised continual domain shift learning: adapting to a current domain, generalizing to unseen domains, and preventing forgetting of previously seen domains. Our approach is model-agnostic, meaning that it is compatible with any existing domain adaptation and generalization algorithms. We evaluate CoDAG on several benchmark datasets and demonstrate that our model outperforms state-of-the-art models in all datasets and evaluation metrics, highlighting its effectiveness and robustness in handling unsupervised continual domain shift learning.

Introduction

In real-world scenarios, such as autonomous driving or mobile robotics, data distributions are rarely static. As a system moves through different environments—varying weather conditions, lighting, or geographic locations—it encounters a stream of changing data distributions known as continual domain shift. Standard machine learning paradigms, which assume data is identically and independently distributed (IID), often fail in these dynamic settings.

Researchers typically address these shifts through two distinct fields: Domain Adaptation (DA), which fine-tunes a model for a specific unlabeled target domain, and Domain Generalization (DG), which trains a model to be robust across unseen domains. However, these goals often conflict. A model that specializes too deeply in one environment may forget previous ones or fail to generalize to the next. This paper introduces CoDAG (Complementary Domain Adaptation and Generalization), a framework designed to bridge this gap in the "unsupervised" setting, where no labels are provided for new domains encountered after initial training.

The CoDAG Framework

The core innovation of CoDAG is a two-model architecture that creates a synergistic feedback loop between specialization and robustness. Instead of forcing a single model to balance these competing objectives, CoDAG maintains two separate but interacting models:

  1. The DA Model ($f_{DA}$): Specializes in the current unlabeled domain using source-free adaptation techniques.
  2. The DG Model ($f_{DG}$): Learns domain-invariant features to ensure robustness and long-term memory.

The Complementary Learning Loop

The interaction between these models follows a four-step cycle for every new domain encountered:

  • Generalized Initialization: When a new domain arrives, the DA model is initialized with the weights of the current DG model. This provides a "head start" using robust, generalized features rather than features specialized for the previous specific domain.
  • Pseudo-label Generation: The adapted DA model generates high-quality pseudo-labels for the current unlabeled data.
  • Noise-Resilient Training: The DG model is then trained using these pseudo-labels. To mitigate the impact of errors in the labels, the framework employs SelNLPL (Selective Negative/Positive Learning), a noise-resilient algorithm.
  • Forgetting Alleviation: To prevent the DG model from forgetting past domains, CoDAG utilizes a small replay buffer of past data and a distillation loss to ensure the model's outputs remain consistent with its previous versions.

Experimental Evaluation

CoDAG was evaluated against state-of-the-art baselines (including RaTP, SHOT++, and AdaCon) across three major benchmarks:

  • PACS: A classic benchmark (Photo, Art, Cartoon, Sketch) where CoDAG achieved 82.9% average accuracy, significantly outperforming RaTP (79.7%).
  • Digits-five: A collection of five digit datasets (MNIST, SVHN, etc.) where CoDAG reached 85.7% accuracy.
  • DomainNet: A large-scale, challenging dataset where CoDAG scored 66.0%, representing a nearly 5% improvement over the best existing baseline.

One of the most significant findings was CoDAG's robustness to domain order. In continual learning, the sequence in which data is presented often affects performance. CoDAG demonstrated much lower standard deviation across different sequences compared to other methods, indicating superior stability.

Key Insights

  • Separation of Concerns: By allowing two models to communicate, CoDAG avoids the optimization trade-offs inherent in single-model approaches.
  • Model-Agnosticism: CoDAG acts as a "wrapper" framework. It is not tied to specific DA or DG algorithms and can incorporate new state-of-the-art techniques as they emerge.
  • Initialization Strategy: The study confirms that initializing adaptation from a generalized model (DG) rather than a specialized one (DA) prevents the system from falling into a "specialization trap."

Limitations and Future Directions

While effective, CoDAG introduces higher computational and memory overhead due to the dual-model requirement and the replay buffer. Additionally, the framework currently assumes that domain boundaries are explicitly defined (i.e., the system is told when a shift occurs). Future work will focus on extending CoDAG to handle dynamic domain discovery, where the model must autonomously detect shifts in continuous, real-world environments.

Summary updated

BibTeX
@inproceedings{cho2023complementary,
  author = {Wonguk Cho and Jinha Park and Taesup Kim},
  title = {{Complementary Domain Adaptation and Generalization for Unsupervised Continual Domain Shift Learning}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
  doi = {10.1109/iccv51070.2023.01051},
}
Figure