Skip to main content
QUICK REVIEW

[Paper Review] Category Contrast for Unsupervised Domain Adaptation in Visual Tasks

Jiaxing Huang, Dayan Guan|arXiv (Cornell University)|Jun 5, 2021
Domain Adaptation and Few-Shot LearningComputer Science94 references10 citations
TL;DR

This paper proposes Category Contrast (CaCo), a novel unsupervised domain adaptation method that enhances feature learning by constructing a semantics-aware, category-balanced, and domain-mixed dictionary for contrastive learning. By leveraging pseudo-labeled target samples and source category priors, CaCo learns category-discriminative yet domain-invariant representations, achieving state-of-the-art performance across semantic segmentation, image classification, and object detection tasks with consistent gains over existing methods.

ABSTRACT

Instance contrast for unsupervised representation learning has achieved great success in recent years. In this work, we explore the idea of instance contrastive learning in unsupervised domain adaptation (UDA) and propose a novel Category Contrast technique (CaCo) that introduces semantic priors on top of instance discrimination for visual UDA tasks. By considering instance contrastive learning as a dictionary look-up operation, we construct a semantics-aware dictionary with samples from both source and target domains where each target sample is assigned a (pseudo) category label based on the category priors of source samples. This allows category contrastive learning (between target queries and the category-level dictionary) for category-discriminative yet domain-invariant feature representations: samples of the same category (from either source or target domain) are pulled closer while those of different categories are pushed apart simultaneously. Extensive UDA experiments in multiple visual tasks (e.g., segmentation, classification and detection) show that CaCo achieves superior performance as compared with state-of-the-art methods. The experiments also demonstrate that CaCo is complementary to existing UDA methods and generalizable to other learning setups such as unsupervised model adaptation, open-/partial-set adaptation etc.

Motivation & Objective

  • To address domain shift in visual tasks by improving unsupervised domain adaptation (UDA) through better feature representation learning.
  • To overcome limitations of existing unsupervised representation learning methods that focus on instance discrimination without considering semantic categories or domain invariance.
  • To develop a contrastive learning framework that integrates category priors and domain-mixed data to learn robust, generalizable features.
  • To demonstrate the method's effectiveness and complementarity across diverse UDA tasks and learning setups.

Proposed method

  • Constructs a semantics-aware dictionary by combining source-domain samples (with true labels) and target-domain samples (with pseudo-labels) to form a category-balanced, domain-mixed key set.
  • Assigns pseudo-category labels to target samples based on category priors derived from source-domain features, enabling category-aware contrastive learning.
  • Employs a category contrastive loss (CatNCE) that pulls together features of the same category across domains while pushing apart features of different categories.
  • Uses a dictionary look-up mechanism where each target query is contrasted against all keys in the dictionary, ensuring balanced learning across all categories.
  • Implements a memory bank update strategy to maintain a dynamic, long-term dictionary of keys for stable training.
  • Integrates the category contrastive loss into existing UDA frameworks, enabling plug-and-play improvements.

Experimental results

Research questions

  • RQ1Can category-aware contrastive learning improve unsupervised domain adaptation by leveraging semantic priors from source data?
  • RQ2How does a domain-mixed, category-balanced dictionary enhance domain-invariant and category-discriminative representation learning?
  • RQ3Does the proposed Category Contrast (CaCo) method generalize across diverse visual tasks such as segmentation, detection, and classification?
  • RQ4To what extent is CaCo complementary to existing SOTA UDA methods in improving performance?
  • RQ5Can CaCo be extended to other learning setups such as open-set or partial-set domain adaptation?

Key findings

  • CaCo achieves state-of-the-art performance on multiple visual UDA benchmarks, including GTA5 → Cityscapes for semantic segmentation, COCO-Instance Segmentation, and ImageNet-style classification.
  • When integrated into existing SOTA UDA methods, CaCo consistently improves performance across all evaluated tasks, demonstrating strong complementarity.
  • The method significantly outperforms unsupervised representation learning baselines that rely on pretext tasks like instance contrastive learning or rotation prediction in UDA settings.
  • Experiments show that the hyperparameter M (dictionary size per category) has minimal impact on performance, indicating robustness to hyperparameter choice.
  • CaCo generalizes effectively to challenging setups such as unsupervised model adaptation, open-set UDA, and partial-set UDA, showing broad applicability.
  • Ablation studies confirm that the combination of category-aware, domain-mixed, and category-balanced dictionary design is essential for performance, outperforming variants with separate dictionaries or fixed temperature scaling.

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.