Skip to main content
QUICK REVIEW

[Paper Review] Divide and Contrast: Source-free Domain Adaptation via Adaptive Contrastive Learning

Ziyi Zhang, Weikai Chen|arXiv (Cornell University)|Nov 12, 2022
Domain Adaptation and Few-Shot LearningComputer Science28 citations
TL;DR

DaC introduces a divide-and-conquer strategy for source-free unsupervised domain adaptation by splitting target data into source-like and target-specific sets and applying adaptive contrastive learning with a memory bank and MMD-based alignment, achieving state-of-the-art results on VisDA, Office-Home, and DomainNet.

ABSTRACT

We investigate a practical domain adaptation task, called source-free domain adaptation (SFUDA), where the source-pretrained model is adapted to the target domain without access to the source data. Existing techniques mainly leverage self-supervised pseudo labeling to achieve class-wise global alignment [1] or rely on local structure extraction that encourages feature consistency among neighborhoods [2]. While impressive progress has been made, both lines of methods have their own drawbacks - the "global" approach is sensitive to noisy labels while the "local" counterpart suffers from source bias. In this paper, we present Divide and Contrast (DaC), a new paradigm for SFUDA that strives to connect the good ends of both worlds while bypassing their limitations. Based on the prediction confidence of the source model, DaC divides the target data into source-like and target-specific samples, where either group of samples is treated with tailored goals under an adaptive contrastive learning framework. Specifically, the source-like samples are utilized for learning global class clustering thanks to their relatively clean labels. The more noisy target-specific data are harnessed at the instance level for learning the intrinsic local structures. We further align the source-like domain with the target-specific samples using a memory bank-based Maximum Mean Discrepancy (MMD) loss to reduce the distribution mismatch. Extensive experiments on VisDA, Office-Home, and the more challenging DomainNet have verified the superior performance of DaC over current state-of-the-art approaches. The code is available at https://github.com/ZyeZhang/DaC.git.

Motivation & Objective

  • Motivate practical SFUDA where the source data is unavailable and the model must adapt to a new domain.
  • Leverage both global class clustering and local instance structure to address label noise and source bias.
  • Develop a unified framework that dynamically segments target samples and applies tailored learning for each segment.
  • Provide theoretical guarantees on target risk and demonstrate empirical superiority on standard benchmarks.

Proposed method

  • Divide the target data into source-like and target-specific samples based on the source classifier confidence.
  • Use self-training with pseudo-labels to obtain initial class-wise structure.
  • Apply an adaptive contrastive learning framework with a memory bank to learn both global class prototypes (for source-like samples) and local structures (for target-specific samples).
  • Align source-like and target-specific distributions via a memory-bank-based MMD loss, including an Exponential-MMD variant.
  • Provide theoretical analysis bounding target risk and justify the design of the divide-then-contrast strategy.

Experimental results

Research questions

  • RQ1Can a target-data segmentation based on source-model confidence yield robust, mixed global-local learning in SFUDA?
  • RQ2Does combining class-wise pseudo-labeling for source-like samples with local-structure contrastive learning for target-specific samples improve adaptation under source data absence?
  • RQ3Can memory-bank based MMD effectively reduce batch bias and improve cross-domain alignment in SFUDA?
  • RQ4What are the theoretical guarantees for target risk in a divide-and-contrast SFUDA framework?

Key findings

  • DaC achieves state-of-the-art performance on VisDA, Office-Home, and DomainNet datasets compared to both source-free and some source-present baselines.
  • The method divides target data into source-like samples with high-confidence predictions and target-specific samples with lower confidence to apply tailored learning strategies.
  • A memory bank enables robust class centroids for source-like data and local-structure-inspired prototypes for target-specific data, enhancing global clustering and local consistency.
  • An Exponential-MMD loss on top of the memory bank improves distribution alignment between source-like and target-specific samples while mitigating batch bias.
  • Theoretical analysis provides an upper bound on the target risk, justifying the divide-and-contrast approach.

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.