Skip to main content
QUICK REVIEW

[Paper Review] CLDA: Contrastive Learning for Semi-Supervised Domain Adaptation

Ankit Singh|arXiv (Cornell University)|Jun 30, 2021
Domain Adaptation and Few-Shot LearningComputer Science57 references12 citations
TL;DR

This paper proposes CLDA, a contrastive learning framework for semi-supervised domain adaptation that jointly minimizes inter-domain and intra-domain discrepancies using class-wise contrastive alignment between source and target domain centroids and instance-level contrastive alignment between original and augmented unlabeled target images. CLDA achieves state-of-the-art performance on DomainNet, Office-Home, and Office31 benchmarks, demonstrating superior generalization in low-shot target labeling scenarios.

ABSTRACT

Unsupervised Domain Adaptation (UDA) aims to align the labeled source distribution with the unlabeled target distribution to obtain domain invariant predictive models. However, the application of well-known UDA approaches does not generalize well in Semi-Supervised Domain Adaptation (SSDA) scenarios where few labeled samples from the target domain are available. In this paper, we propose a simple Contrastive Learning framework for semi-supervised Domain Adaptation (CLDA) that attempts to bridge the intra-domain gap between the labeled and unlabeled target distributions and inter-domain gap between source and unlabeled target distribution in SSDA. We suggest employing class-wise contrastive learning to reduce the inter-domain gap and instance-level contrastive alignment between the original (input image) and strongly augmented unlabeled target images to minimize the intra-domain discrepancy. We have shown empirically that both of these modules complement each other to achieve superior performance. Experiments on three well-known domain adaptation benchmark datasets namely DomainNet, Office-Home, and Office31 demonstrate the effectiveness of our approach. CLDA achieves state-of-the-art results on all the above datasets.

Motivation & Objective

  • Address the poor generalization of unsupervised domain adaptation (UDA) methods in semi-supervised domain adaptation (SSDA) settings with limited labeled target data.
  • Reduce both inter-domain discrepancy (between source and target domains) and intra-domain discrepancy (between labeled and unlabeled target samples) in SSDA.
  • Develop a single-stage, end-to-end contrastive learning framework that improves feature discriminability and domain invariance.
  • Investigate the effectiveness of contrastive learning components—class-level and instance-level alignment—under varying data and augmentation settings.
  • Demonstrate robustness to noisy labels and sensitivity to hyperparameters in low-shot target labeling scenarios.

Proposed method

  • Apply inter-domain contrastive alignment by optimizing the similarity between class centroids of the same class from source and target domains, while maximizing inter-class centroid distances.
  • Implement instance-level contrastive alignment by encouraging feature consistency between original and strongly augmented views of unlabeled target images.
  • Use a momentum-updated encoder to generate target features for contrastive learning, stabilizing training and improving representation quality.
  • Generate pseudo-labels for unlabeled target samples using model predictions to enable class-wise contrastive learning, updated periodically during training.
  • Integrate both contrastive objectives into a unified training objective with learnable weighting hyperparameters (α and β) to balance the two components.
  • Employ RandAugment with grayscale augmentation as the strong augmentation policy to enhance feature robustness in instance-level contrastive learning.

Experimental results

Research questions

  • RQ1Can contrastive learning effectively reduce both inter-domain and intra-domain discrepancies in semi-supervised domain adaptation?
  • RQ2How does combining class-wise contrastive alignment with instance-level contrastive alignment improve model generalization in low-shot target labeling scenarios?
  • RQ3What is the impact of different augmentation policies on the performance of instance-level contrastive alignment in SSDA?
  • RQ4How robust is the proposed framework to noisy labels in the limited target domain annotations?
  • RQ5What is the optimal configuration of hyperparameters (e.g., α, β, μ) for balancing the two contrastive objectives in CLDA?

Key findings

  • CLDA achieves state-of-the-art performance on all three benchmark datasets—DomainNet, Office-Home, and Office31—outperforming existing SSDA methods.
  • On the 3-shot Office-Home Rl→Pr task, CLDA achieves 72.4% test accuracy, with a 4% performance gain when using RandAugment with grayscale over simple horizontal flipping.
  • Ablation studies show that removing instance-level contrastive alignment reduces accuracy from 72.4% to 70.7%, confirming its critical role in performance.
  • Using K-means for pseudo-label generation instead of model predictions reduces accuracy from 72.4% to 71.2%, indicating the superiority of model-based pseudo-labeling.
  • The framework remains robust to noisy labels, with only a 0.5% drop in accuracy when 25% of target labels are mislabeled on the Pr→Ar 1-shot task.
  • Hyperparameter analysis reveals that α = 4 and μ = 4 yield optimal performance, with performance degrading when these values are deviated from.

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.