Lifelong Domain Adaptation via Consolidated Internal Distribution

Mohammad RostamiNeurIPS 2021

Deep learning models are notoriously brittle when faced with domain shift—the phenomenon where the data a model sees during deployment differs from its training data (e.g., a self-driving car trained in sunny California moving to snowy Michigan). Traditionally, two fields handle this: Unsupervised Domain Adaptation (UDA), which adapts a model from a labeled source to an unlabeled target but requires simultaneous access to both; and Continual Learning (CL), which learns tasks sequentially without "catastrophic forgetting" but usually assumes all tasks have labels.

This paper tackles the unexplored intersection: Lifelong Unsupervised Domain Adaptation. It introduces LDAuCID (Lifelong Domain Adaptation Using Consolidated Internal Distribution), a novel framework allowing AI models to adapt to a sequence of new, unlabeled environments without forgetting previous knowledge.

The LDAuCID Framework

The core idea of LDAuCID is to treat the model's latent embedding space as a "knowledge anchor."

LDAuCID Architecture
  • Internal Distribution Consolidation: When learning the initial labeled source, the model maps data into clusters in a latent space. This space is modeled using a Gaussian Mixture Model (GMM), where each component represents a class.
  • Pseudo-Dataset Generation: To learn a new, unlabeled target domain, the model draws random samples from its internal GMM to create a "synthetic" version of its past knowledge. This allows the model to "remember" previous tasks without needing the original raw data.
  • Distribution Alignment: The model uses Sliced Wasserstein Distance (SWD) to align the features of the new, unlabeled target data with the existing GMM clusters. This ensures the new data is mapped into the same discriminative structure as the old data.
  • Experience Replay: To further combat forgetting, the model maintains a tiny memory buffer ($N_b$) of real samples that are most representative of their classes (the "Mean of Features"). These are replayed during the adaptation process.

Datasets

The authors validated their approach by restructuring classic UDA benchmarks into sequential "lifelong" tasks:

  • Digit Recognition: MNIST, USPS, and SVHN (e.g., learning SVHN $\to$ MNIST $\to$ USPS).
  • ImageCLEF-DA: 12 shared classes across three image datasets (Caltech, ILSVRC, Pascal VOC).
  • Office-Home: A challenging set with 65 classes across four domains (Art, Clip Art, Product, Real-World).
  • Office-Caltech: 10 shared classes across four domains (Amazon, Caltech, DSLR, Webcam).

Key Insights and Results

  • The GMM as a Proxy: Instead of needing the source data forever, the GMM acts as a compact, generative memory of how the model should perceive the world.
  • Coupled Latent Spaces: By forcing every new domain to align with the same internal GMM, all domains become "coupled." A classifier trained on the first domain naturally generalizes to the others because they all share the same latent "map."
  • The "Jumpstart" Effect: When the model encounters a second or third domain, it doesn't start from 0% accuracy. Because of its previous knowledge, it starts with a "jumpstart" (often >60% accuracy), making the adaptation much faster.
Sequential Learning Performance
  • Superior Performance: Despite the harder "lifelong" constraint (not seeing all data at once), LDAuCID often outperformed state-of-the-art UDA methods like CDAN and DANN, which have the advantage of joint training.
  • Minimal Forgetting: On the ImageCLEF-DA benchmark, LDAuCID achieved an average accuracy of 95.8%, significantly higher than the "Source Only" baseline of 80.8%.
  • Efficiency: The method works effectively even with very small memory buffers (e.g., only 10 samples per class), making it highly suitable for resource-constrained hardware.
  • Theoretical Guarantee: The authors provide a PAC-learning theorem proving that their loss function effectively minimizes an upper bound on the expected error for all previously learned tasks.

Limitations and Future Work

  • Class-Conditional Alignment: The authors note that while their global alignment is strong, incorporating more specific class-conditional alignment (perhaps via pseudo-labeling the target domain) could further boost performance in complex datasets like Office-Home.
  • Task Order: The paper does not deeply explore how the order in which domains are encountered affects the final performance, which is a common variable in continual learning.
  • Incremental Classes: Currently, the model assumes the set of classes remains the same across domains. A future direction is "Class-Incremental" learning, where new domains might also introduce entirely new categories of objects.

Summary updated

BibTeX
@inproceedings{rostami2021lifelong,
  author = {Mohammad Rostami},
  title = {{Lifelong Domain Adaptation via Consolidated Internal Distribution}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
}
Figure