Domain-Generalizable Multiple-Domain Clustering

Amit Rozner, Barak Battash, Lior Wolf, Ofir Lindenbaum

Introduction

Clustering high-dimensional data is a fundamental task in machine learning, yet it remains challenging when data spans multiple domains—such as photographs, sketches, and cartoons. Standard clustering algorithms often prioritize domain-specific stylistic features like texture and lighting over semantic content. This issue is exacerbated in Domain Generalization (DG), where models must perform on unseen target domains without any prior exposure or fine-tuning.

This paper introduces a fully unsupervised framework for multi-domain clustering that generalizes to completely novel domains. Operating under a "completely unsupervised" paradigm, the method requires no labels for source domains and no access to the target domain during training, making it ideal for applications with high privacy concerns or data scarcity.

Methodology

The proposed framework consists of a two-stage training process designed to extract domain-invariant features and robustly cluster them across disparate styles.

Stage 1: Self-supervised Pre-training

The first stage focuses on learning a feature representation that is agnostic to stylistic variations. The authors employ several techniques to achieve this:

  • Style Transfer Augmentation: By swapping styles between domains during training, the model is forced to ignore stylistic "noise."
  • Adversarial Domain Loss: A gradient reversal layer is utilized to train a feature extractor that attempts to deceive a domain classifier, ensuring features are domain-agnostic.
  • Domain-specific Queues: Separate memory banks for each domain stabilize contrastive learning by ensuring "apples-to-apples" comparisons within each domain.
Stage 1: Self-supervised pre-training architecture featuring adversarial domain loss and contrastive learning.

Stage 2: Clustering Predictor Head

In the second stage, a clustering head ($f_c$) is trained using the robust features from Stage 1. Key innovations include:

  • Basic Common Domain (BCD): Images are transformed into a "sketch-like" representation that serves as a universal bridge, preserving shape while removing color and texture.
  • Reliable Pseudo-labels: Training labels are generated by identifying confident predictions in the BCD space and mapping them back to the original feature space.
  • Prediction-based Label Smoothing: A dynamic smoothing scheme prevents "mode collapse" by encouraging the exploration of less-populated clusters.
  • Multiple Clustering Heads: To mitigate the inherent instability of unsupervised learning, multiple heads are trained simultaneously, and a diversification metric selects the most reliable ones.
Stage 2: Architecture for training the clustering predictor head using pseudo-labels and multiple clustering heads.

Experimental Results

The model was evaluated on four major benchmarks: Office31, PACS, Officehome, and DomainNet. The results demonstrate that the proposed method significantly outperforms state-of-the-art baselines, including those with access to target-domain samples or limited labels.

  • Office31: Achieved 40.6% average accuracy, surpassing the previous best of 35.6%.
  • Officehome: Reached 25.5% accuracy, a substantial improvement over the 17.0% baseline.
  • PACS: Attained 51.8% accuracy, notably outperforming "Unsupervised Domain Generalization" (UDG) methods that utilized 1% of source labels.
  • DomainNet: Maintained superior performance on this large-scale dataset (~0.6 million images) without any supervision.

Conclusion and Future Work

The success of this framework lies in treating domain style as a nuisance to be suppressed through adversarial training and utilizing sketches (BCD) as a neutral ground for semantic alignment. While highly effective, the method faces challenges with extremely high class counts and open-set scenarios where the target domain contains new categories. Future research will explore extending this framework to other modalities such as audio and text.

Summary updated

BibTeX
@article{rozner2024domain,
  author = {Amit Rozner and Barak Battash and Lior Wolf and Ofir Lindenbaum},
  title = {{Domain-Generalizable Multiple-Domain Clustering}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2024},
  url = {https://openreview.net/forum?id=jinYVuReab},
}
Figure