Skip to main content
QUICK REVIEW

[Paper Review] Gradient Regularized Contrastive Learning for Continual Domain Adaptation

Shixiang Tang, Peng Su|arXiv (Cornell University)|Mar 23, 2021
Domain Adaptation and Few-Shot LearningComputer Science67 references9 citations
TL;DR

This paper proposes Gradient Regularized Contrastive Learning (GRCL) for continual domain adaptation, which uses gradient regularization to preserve source domain discriminative features and prevent forgetting of old target domains. By enforcing positive gradient correlation with source and old target classification losses, GRCL improves adaptation to new domains while maintaining performance on previous ones, achieving over 5% accuracy gain over baselines on three benchmarks.

ABSTRACT

Human beings can quickly adapt to environmental changes by leveraging learning experience. However, adapting deep neural networks to dynamic environments by machine learning algorithms remains a challenge. To better understand this issue, we study the problem of continual domain adaptation, where the model is presented with a labelled source domain and a sequence of unlabelled target domains. The obstacles in this problem are both domain shift and catastrophic forgetting. We propose Gradient Regularized Contrastive Learning (GRCL) to solve the obstacles. At the core of our method, gradient regularization plays two key roles: (1) enforcing the gradient not to harm the discriminative ability of source features which can, in turn, benefit the adaptation ability of the model to target domains; (2) constraining the gradient not to increase the classification loss on old target domains, which enables the model to preserve the performance on old target domains when adapting to an in-coming target domain. Experiments on Digits, DomainNet and Office-Caltech benchmarks demonstrate the strong performance of our approach when compared to the other state-of-the-art methods.

Motivation & Objective

  • To address the dual challenge of domain shift and catastrophic forgetting in continual domain adaptation (cDA).
  • To maintain the discriminative ability of source domain features to improve adaptation to new target domains.
  • To explicitly prevent performance degradation on previously seen target domains during incremental adaptation.
  • To develop a method that outperforms existing approaches in both accuracy and stability across sequential domain shifts.

Proposed method

  • GRCL uses contrastive learning to learn domain-invariant representations across source and target domains.
  • A source discriminative constraint ensures gradients do not harm the classification loss on the source domain, preserving feature discriminability.
  • A target memorization constraint enforces gradients to not increase the classification loss on old target domains, mitigating catastrophic forgetting.
  • Pseudo-labels for old target domains are generated via clustering and filtered using confidence thresholds to ensure high-quality supervision.
  • The method combines contrastive loss with two gradient regularization terms that constrain parameter updates to maintain performance on source and past target domains.
  • The approach is trained end-to-end with a memory bank storing features from previous domains to support contrastive learning.

Experimental results

Research questions

  • RQ1How can we preserve the discriminative ability of source domain features during continual adaptation to new target domains?
  • RQ2What mechanisms can effectively prevent catastrophic forgetting when adapting to sequential target domains?
  • RQ3Can gradient regularization outperform multitask learning in maintaining performance on both source and previously seen target domains?
  • RQ4To what extent does contrastive learning with memory improve generalization in continual domain adaptation?
  • RQ5How do the proposed constraints affect accuracy and backward transfer in sequential domain adaptation?

Key findings

  • GRCL improves accuracy by over 5% compared to the strongest baseline on the Digits, DomainNet, and Office-Caltech benchmarks.
  • The source discriminative constraint improves adaptation to new target domains by approximately 2.2% in accuracy, with minimal impact on backward transfer.
  • The target memorization constraint enhances backward transfer by around 6%, demonstrating effective mitigation of catastrophic forgetting.
  • GRCL achieves a BWT improvement of about 4% over multitask learning baselines, confirming the effectiveness of gradient regularization in knowledge retention.
  • Increasing memory size and training epochs consistently improves performance, confirming the scalability of the contrastive learning component.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.