Boosting Novel Category Discovery Over Domains with Soft Contrastive Learning and All-in-One Classifier

Zelin Zang, Lei Shang, Senqiao Yang, Fei Wang, Baigui Sun, Xuansong Xie, Stan Z. Li

TL;DR

Researchers from Westlake University and Alibaba have developed SAN (Soft-contrastive All-in-one Network), a new framework that significantly improves how AI discovers novel categories when moving between different data domains. By introducing a "soft" version of contrastive learning and a more human-intuitive classifier, they successfully mitigate the twin problems of "view-noise" and model overconfidence, setting new state-of-the-art benchmarks in Universal Domain Adaptation (UNDA).

What Problem Does This Paper Address?

In the world of machine learning, Domain Adaptation (DA) is the art of taking a model trained on a "source" domain (like high-quality product photos) and making it work on a "target" domain (like messy, real-world user photos).

The challenge gets harder with Universal Domain Adaptation (UNDA). Here, we don't just deal with style changes; the target domain might contain entirely new categories of objects that weren't in the training set. Current methods struggle with two main issues:

  1. View-Noise in Contrastive Learning: Modern models often use contrastive learning (CL) to learn features by comparing different "views" (augmentations) of the same image. However, domain shifts make these augmentations unreliable. For example, a "clipart" style might make a clock look so different from a "real" style that the model mistakenly thinks they are different objects, creating "noise" that corrupts training.
  2. Classifier Overconfidence: Most models use separate classifiers for "known" vs. "unknown" categories. This often leads to "sharp" decision boundaries where the model is overconfident, causing it to misclassify new, novel objects as known ones simply because they are slightly similar.
Figure 1: Problem demonstration and solutions. (a) View-noise problem in the backbone network fine-tuned by the CL. (a)-top shows the views generated by the same data augmentation scheme across three different domains. The difference in content style of the Clipart domain causes the regular data augmentation to produce views with vastly different semantics, producing noisy pairs. (b) Overconfidence problem of novel category classifiers. The dashed circle with a tick/cross means the test samples are classified correctly/incorrectly.

Methods

The authors propose the Soft-contrastive All-in-one Network (SAN) to tackle these hurdles:

  • Soft Contrastive Learning (SCL) Loss: Instead of treating image pairs as strictly "same" or "different," SCL uses a t-distribution kernel to assign a "reliability weight" to each pair. If two views of an image are semantically inconsistent due to domain noise, the SCL loss down-weights them, preventing the model from learning incorrect gradients.
  • All-in-One (AIO) Classifier: Rather than having a single "unknown" class, the AIO classifier assigns two output neurons to every known category—one for "is this class $k$?" and one for "is this not class $k$?".
  • Human-Intuitive Logic: The AIO classifier is trained on the principle that to identify something as "novel," the model must first confirm it doesn't belong to any of the known classes. This creates a more competitive learning environment, leading to smoother, more robust classification boundaries.
The SAN framework includes a shared backbone, a projection head, and the novel AIO classifier.

Datasets

The researchers evaluated SAN on four major domain adaptation benchmarks:

  • Office-31: A standard dataset with images from Amazon, DSLR cameras, and Webcams.
  • OfficeHome: A more complex set featuring Art, Clipart, Product, and Real-world images.
  • VisDA: A large-scale dataset focused on synthetic-to-real transitions.
  • DomainNet: A massive, highly diverse dataset with six distinct domains (e.g., sketches, paintings, quickdraws).

Key Insights and Ideas

  • Softness is Strength: By moving away from hard binary labels in contrastive learning, the model becomes resilient to the "style" noise inherent in cross-domain tasks.
  • Competition Breeds Accuracy: The AIO classifier's "two neurons per class" approach forces the model to learn what a class isn't just as much as what it is. This prevents the model from "squinting" at a novel object and forcing it into a known category.
  • Fairer Metrics: The authors highlight that the standard "H-score" can be biased if the number of unknown samples is much larger than known ones. They propose a Balance H-score to provide a more equitable evaluation of model performance across varying category distributions.

Key Results

SAN consistently outperformed existing state-of-the-art (SOTA) methods across all tasks:

  • UNDA Performance: On the challenging VisDA dataset, SAN improved the H-score by 3.7% over previous methods. On Office, it saw a 4.2% jump.
  • Robustness to Noise: In ablation studies where artificial label noise was added, SAN maintained high performance while baseline methods (like OVANet) saw significant degradation.
  • Visual Proof: t-SNE visualizations show that SAN creates much smoother and more accurate classification boundaries compared to the "sharp," error-prone boundaries of previous models.
Visual comparison showing SAN's smoother classification boundaries and fewer misclassifications compared to OVANet.

Limitations and Future Work

While SAN shows remarkable performance, the authors note that the improvement from the AIO classifier is most significant when label noise is present. In datasets with very clean labels, the SCL loss does the heavy lifting.

Future research could explore:

  • Applying these "soft" learning principles to other areas of self-supervised learning.
  • Testing the AIO classifier in even more extreme "open-world" scenarios where the number of unknown categories is orders of magnitude larger than known ones.

Summary updated

Abstract

Unsupervised domain adaptation (UDA) has proven to be highly effective in transferring knowledge from a label-rich source domain to a label-scarce target domain. However, the presence of additional novel categories in the target domain has led to the development of open-set domain adaptation (ODA) and universal domain adaptation (UNDA). Existing ODA and UNDA methods treat all novel categories as a single, unified unknown class and attempt to detect it during training. However, we found that domain variance can lead to more significant view-noise in unsupervised data augmentation, which affects the effectiveness of contrastive learning (CL) and causes the model to be overconfident in novel category discovery. To address these issues, a framework named Soft-contrastive All-in-one Network (SAN) is proposed for ODA and UNDA tasks. SAN includes a novel data-augmentation-based soft contrastive learning (SCL) loss to fine-tune the backbone for feature transfer and a more human-intuitive classifier to improve new class discovery capability. The SCL loss weakens the adverse effects of the data augmentation view-noise problem which is amplified in domain transfer tasks. The All-in-One (AIO) classifier overcomes the overconfidence problem of current mainstream closed-set and open-set classifiers. Visualization and ablation experiments demonstrate the effectiveness of the proposed innovations. Furthermore, extensive experiment results on ODA and UNDA show that SAN outperforms existing state-of-the-art methods.
BibTeX
@inproceedings{zang2022boosting,
  author = {Zelin Zang and Lei Shang and Senqiao Yang and Fei Wang and Baigui Sun and Xuansong Xie and Stan Z. Li},
  title = {{Boosting Novel Category Discovery Over Domains with Soft Contrastive Learning and All-in-One Classifier}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2022},
}
Figure