Towards Self-similarity Consistency and Feature Discrimination for Unsupervised Domain Adaptation

Chao Chen, Zhihang Fu, Zhihong Chen, Zhaowei Cheng, Xinyu Jin, Xian-Sheng Hua

TL;DR

This paper introduces a novel Unsupervised Domain Adaptation (UDA) framework that moves beyond simple global distribution alignment. By enforcing Self-similarity Consistency (SSC) to preserve feature structures across domains and applying an "embarrassingly simple" feature norm constraint to boost class separability, the authors achieve state-of-the-art results on standard computer vision benchmarks.

What Problem Does This Paper Address?

Unsupervised Domain Adaptation (UDA) is the challenge of training a model on a labeled "source" dataset (e.g., synthetic images) so that it performs well on a related but unlabeled "target" dataset (e.g., real-world photos).

Most existing methods try to align the global distributions of these two domains—essentially making the "cloud" of source features look like the "cloud" of target features. However, this "blind" alignment often ignores semantic class information. Without considering classes, a model might perfectly align the two clouds but accidentally map source "cats" to target "dogs," a problem known as misalignment. Furthermore, even when alignment is good, features at the edges of class clusters are often prone to misclassification if the clusters aren't sufficiently distinct.

Methods

The authors propose a two-pronged approach called SDDA (Self-similarity consistency and feature Discrimination for Domain Adaptation):

  1. Self-similarity Consistency (SSC): Instead of just matching the mean or covariance of distributions, SSC matches the internal structure of the feature space. The core idea is that if two features are similar in the source domain, their counterparts should be equally similar in the target domain.
  2. It uses a heat kernel (RBF) to measure pairwise similarities between features.
  3. The authors mathematically demonstrate that the popular CORAL (Correlation Alignment) method is actually a special, sub-optimal case of SSC that uses simple dot-product similarity.
Figure 4: Perform self-similarity consistency constraint to minimize the domain discrepancy. The SSC metric matches the pairwise similarity across the deep features in the source and target domain, which ensures the structure of the source feature space be consistent with the structure of the target feature space. (Best viewed in color)
  1. Feature Discrimination via Norm Constraints: To make the model more robust to imperfect alignment, the authors propose enhancing the "gap" between different classes.
  2. Intra-class compactness: They use a loss to pull samples of the same class closer to their moving-average center.
  3. Inter-class separability: They apply a feature norm constraint, forcing features onto a large hypersphere (a specific target norm value). By pushing features away from the origin, they naturally increase the distance between different class clusters, making them easier for a classifier to separate.
Figure 2: Enforce feature discrimination by the feature norm constraint. Left: With the previous domain alignment methods, the target domain samples distributed in the edge of the cluster are prone to be misclassified. Right: With the feature discrimination loss, the norm of the deep features will be enlarged to be close to the target norm value, which make the inter-class samples more separable. (Best viewed in color)

The architecture uses a standard two-stream Siamese CNN where weights are shared between the source and target streams, and alignment is performed at the final fully-connected layer.

Datasets

The researchers evaluated their method on two major benchmarks:

  • Digit Recognition: A collection of five datasets including MNIST, USPS, SVHN (Street View House Numbers), MNIST-M (MNIST with random backgrounds), and SYN (synthetic digits).
  • Office-31: A standard real-world UDA benchmark containing 31 categories across three domains: Amazon (product images), Webcam (low-res), and DSLR (high-res).

Key Insights and Ideas

  • Structure Over Statistics: Aligning the "relational structure" (how features relate to one another) is more powerful and less prone to misalignment than just aligning global statistical moments like means.
  • The Power of the Hypersphere: The feature norm constraint is a remarkably simple way to improve UDA. By forcing features to live on the surface of a large sphere rather than a dense cloud near the origin, you create "breathing room" between classes. This means the model can still perform well even if the domain alignment isn't 100% perfect.
  • Non-linear Alignment: By using the RBF kernel in SSC, the model captures complex, non-linear relationships that linear methods like CORAL miss.

Key Results

The proposed SDDA method outperformed several heavyweights in the field, including DAN, DANN, and JDDA.

  • Superior Accuracy: On the challenging SVHN $\to$ MNIST task, SDDA achieved 97.3% accuracy, a significant jump over the "Source Only" baseline of 67.3%.
  • Office-31 Success: It achieved an average accuracy of 84.8% across all six transfer tasks in Office-31, setting a new high bar for the benchmark at the time of publication.
  • Visual Proof: 2D visualizations of the features show that while standard training produces "strip-like" distributions, the norm constraint successfully pushes features into distinct, well-separated clusters arranged in a circle.
Figure 5: 2D visualization of the deep features. The model is trained (a) with the source loss, (b) with the source loss and the intra-class compactness loss, (c) with the source loss and the inter-class separability loss and (d) with the source loss and the full discrimination loss. It is worth noting that we set the feature dimension in the last FC layer as 2, and then illustrate them by class information.

Limitations and Future Work

  • Hyperparameter Sensitivity: The performance of the model is sensitive to the trade-off parameters ($\lambda$) for the different loss components, and the optimal values vary depending on the specific transfer task.
  • Data Requirements: The authors noted that some competing methods (like ADDA) performed poorly on Office-31 due to small sample sizes, suggesting that while SDDA is robust, UDA remains sensitive to the volume of available data.
  • Future Directions: The authors suggest that exploring mutual-similarity maximization (aligning similarities between source and target samples directly) could be a promising next step beyond the "self-similarity" approach presented here.

Summary updated

Abstract

Recent advances in unsupervised domain adaptation mainly focus on learning shared representations by global distribution alignment without considering class information across domains. The neglect of class information, however, may lead to partial alignment (or even misalignment) and poor generalization performance. For comprehensive alignment, we argue that the similarities across different features in the source domain should be consistent with that of in the target domain. Based on this assumption, we propose a new domain discrepancy metric, i.e., Self-similarity Consistency (SSC), to enforce the feature structure being consistent across domains. The renowned correlation alignment (CORAL) is proven to be a special case, and a sub-optimal measure of our proposed SSC. Furthermore, we also propose to mitigate the side effect of the partial alignment and misalignment by incorporating the discriminative information of the deep representations. Specifically, an embarrassingly simple and effective feature norm constraint is exploited to enlarge the discrepancy of inter-class samples. It relieves the requirements of strict alignment when performing adaptation, therefore improving the adaptation performance significantly. Extensive experiments on visual domain adaptation tasks demonstrate the effectiveness of our proposed SSC metric and feature discrimination approach.
BibTeX
@inproceedings{chen2019towards,
  author = {Chao Chen and Zhihang Fu and Zhihong Chen and Zhaowei Cheng and Xinyu Jin and Xian-Sheng Hua},
  title = {{Towards Self-similarity Consistency and Feature Discrimination for Unsupervised Domain Adaptation}},
  booktitle = {Signal Process. Image Commun},
  year = {2019},
  doi = {10.1016/j.image.2021.116232},
}
Figure