Exploiting Inter-Sample Affinity for Knowability-Aware Universal Domain Adaptation

Yifan Wang, Lin Zhang, Ran Song, Hongliang Li, Paul L. Rosin, Wei ZhangIJCV 2022 · DOI

TL;DR

This paper introduces a novel framework for Universal Domain Adaptation (UniDA) that leverages inter-sample affinity to better distinguish known and unknown classes in target domains. By introducing a "knowability-aware" labeling scheme, the method effectively pulls known target samples towards their source counterparts while pushing unknown samples away, leading to state-of-the-art performance.

What Problem Does This Paper Address?

Universal Domain Adaptation (UniDA) aims to transfer knowledge from a labeled source domain to an unlabeled target domain, even when the target domain contains classes not present in the source. A key challenge in UniDA is accurately identifying which samples in the target domain belong to known classes (present in the source) and which belong to unknown classes. Existing methods often focus on classifying target samples into source classes, potentially misclassifying unknown samples or failing to leverage the rich information they contain. This paper addresses this by proposing a method that explicitly models and exploits the relationships (affinity) between known and unknown samples in the target domain to improve classification accuracy.

Methods

The core of the proposed method is a Knowability-Based Labeling Scheme (KLS), which operates in two main steps:

  1. Knowability-Guided Detection of Known/Unknown Samples: This step leverages the intrinsic structure of sample neighborhoods. For each target sample, it retrieves its k-nearest neighbors from both source and target domains. Affinity matrices are computed for these neighbors, and their first singular vectors (obtained via SVD) are used to represent the neighborhood's intrinsic structure. The cosine similarity between the first singular vectors of source and target neighbors yields a "knowability score." This score helps distinguish known samples (higher knowability, similar neighborhood structure to source) from unknown samples (lower knowability, dissimilar structure).
  2. Label Refinement Based on Neighborhood Consistency: After initial detection, target samples are further refined. For samples identified as potentially known, their labels are refined based on the consistency of predictions from their neighbors. A credibility score is computed, and samples are classified as known, unknown, or uncertain based on this score and an automatically determined threshold.

The framework also incorporates auxiliary losses to:

  • Reduce inter-sample affinity between unknown and known target samples.
  • Increase inter-sample affinity within known target samples.
  • Enhance the discriminative power of features from the source domain.

Datasets

The proposed method was evaluated on four widely used UniDA benchmarks:

  • Office-31: A standard dataset with 3 domains (DSLR, Amazon, Webcam).
  • OfficeHome: A more challenging dataset with 4 domains (Artistic, Clip-Art, Product, Real-World).
  • VisDA: A large-scale dataset with synthetic source images and real-world target images.
  • DomainNet: A very large dataset with approximately 0.6 million images.

The paper also uses subsets of OfficeHome ('Art' and 'Clipart') as completely new testing datasets to evaluate the model's ability to detect entirely novel unknown samples.

Key Insights and Ideas

  • Exploiting Inter-Sample Affinity is Crucial for UniDA: The paper argues that simply ignoring unknown samples or focusing solely on classifying into known classes is suboptimal. Instead, understanding and leveraging the relationships between known and unknown samples is key to improving performance.
  • "Knowability" as a Discriminative Feature: The concept of "knowability," derived from the similarity of neighborhood intrinsic structures (via singular vectors of affinity matrices), proves to be a powerful indicator for distinguishing known from unknown target samples.
  • Automatic Thresholding for Robustness: The method introduces an auto-thresholding scheme for label refinement, which dynamically determines thresholds based on mini-batch statistics. This avoids manual tuning, making the method more robust across different datasets.
  • Push-Pull Mechanism: The framework effectively implements a "push-pull" mechanism: known target samples are "pulled" towards their source counterparts, while unknown samples are "pushed" away from source samples, creating clearer class separation.

Key Results

The proposed method achieved state-of-the-art performance on all tested datasets:

  • Office-31: Outperformed existing methods by an average of 2.0% in H-score.
  • OfficeHome: Achieved a significant improvement of 2.8% in H-score.
  • VisDA and DomainNet: Also achieved state-of-the-art results.
  • Novel Unknown Sample Detection: Demonstrated superior performance in detecting completely new unknown samples not seen during training.
  • Qualitative Analysis (t-SNE): Visualizations showed better domain alignment and class separation compared to baseline methods.
  • Grad-CAM Visualizations: Confirmed that the proposed method focuses on more relevant regions for classification.

Limitations and Future Work

  • Underutilization of Unknown Sample Relationships: The authors acknowledge that their method does not sufficiently utilize the inter-sample relationships within the set of unknown samples.
  • Future Work: They plan to extend the method to leverage these intra-unknown sample relationships for further performance gains. They also aim to explore scenarios where known category distributions are heterogeneous and differ significantly between source and target domains.

Summary updated

BibTeX
@misc{wang2022exploiting,
  author = {Yifan Wang and Lin Zhang and Ran Song and Hongliang Li and Paul L. Rosin and Wei Zhang},
  title = {{Exploiting Inter-Sample Affinity for Knowability-Aware Universal Domain Adaptation}},
  year = {2022},
  eprint = {2207.09280},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2207.09280},
}
Figure