A Prototype-Oriented Clustering for Domain Shift with Source Privacy

Korawat Tanwisuth, Shujian Zhang, Pengcheng He, Mingyuan Zhou

Abstract

Unsupervised clustering under domain shift (UCDS) studies how to transfer the knowledge from abundant unlabeled data from multiple source domains to learn the representation of the unlabeled data in a target domain. In this paper, we introduce Prototype-oriented Clustering with Distillation (PCD) to not only improve the performance and applicability of existing methods for UCDS, but also address the concerns on protecting the privacy of both the data and model of the source domains. PCD first constructs a source clustering model by aligning the distributions of prototypes and data. It then distills the knowledge to the target model through cluster labels provided by the source model while simultaneously clustering the target data. Finally, it refines the target model on the target domain data without guidance from the source model. Experiments across multiple benchmarks show the effectiveness and generalizability of our source-private clustering method.

Introduction

Unsupervised clustering under domain shift (UCDS) aims to group unlabeled target data by leveraging knowledge from unlabeled source data. However, existing UCDS methods often face significant hurdles regarding privacy and architectural flexibility. Many require full access to source data or model parameters, which is often impossible in privacy-sensitive fields like healthcare or proprietary corporate environments. Furthermore, they often mandate identical architectures for source and target models, hindering the use of heterogeneous models (e.g., transferring from a large Vision Transformer to a mobile-friendly ResNet).

Comparison of privacy settings across different domain adaptation paradigms.

This paper introduces Prototype-oriented Clustering with Distillation (PCD), a framework that achieves state-of-the-art performance while maintaining source privacy. PCD only requires API-level access to the source model, making it compatible with "Inference-as-a-Service" business models.

Methodology

PCD decomposes the learning process into three distinct stages to ensure both performance and privacy.

Overview of the PCD framework, illustrating the three stages: Source Model Learning, Target Model Clustering, and Target Model Refinement.
  1. Source Model Learning: A source model is trained using Optimal Transport (OT) to align data distributions with "prototypes" (cluster centers). This is combined with Mutual Information maximization to ensure distinct, well-separated clusters.
  2. Target Model Clustering (Knowledge Distillation): In this "black-box" phase, the target model queries the source model for cluster labels on target data. To mitigate noise from domain shift, PCD employs label smoothing and temporal ensembling (averaging predictions over time) to generate reliable "soft" labels for distillation.
  3. Target Model Refinement: The target model is fine-tuned exclusively on target data. This step allows the model to adapt to target-specific nuances and move beyond any biases inherited from the source domain.

Experimental Setup

The effectiveness of PCD was evaluated on three standard domain adaptation benchmarks:

  • Office-31: Images of office objects from Amazon, Webcams, and DSLRs.
  • Office-Home: A diverse set including Art, Clipart, Product, and Real-world images.
  • PACS: A challenging dataset spanning Art, Painting, Cartoon, and Sketch domains.

Robustness tests were also conducted using sub-sampled and imbalanced versions of these datasets to simulate real-world data scarcity.

Key Results and Insights

  • State-of-the-Art Performance: On Office-31, PCD achieved an average clustering accuracy of 54.9%, a substantial improvement over the previous best of 35.7% (ACIDS).
  • Privacy without Compromise: PCD frequently outperforms "white-box" methods that have full parameter access. This suggests that label-based distillation can be more robust than direct parameter transfer across significant domain shifts.
  • Architecture Agnosticism: PCD successfully transfers knowledge between different architectures, such as from a Vision Transformer (ViT) source to a ResNet-18 target, showing gains of 2–3% over baselines.
  • Efficiency: PCD is more memory and time-efficient than previous methods, largely because it avoids complex architectural requirements like dual-head batch normalization.
  • Dynamic Cluster Proportions: Unlike many methods, PCD does not assume uniform cluster sizes, iteratively estimating proportions to handle imbalanced real-world data.

Conclusion and Future Work

PCD presents a robust, privacy-preserving solution for unsupervised clustering under domain shift. While it currently relies on ImageNet pre-trained encoders and assumes a fixed cluster count ($K$), it opens doors for more flexible UCDS. Future work will explore "open-set" clustering, where the target domain may contain entirely new categories not present in the source.

Summary updated

BibTeX
@misc{tanwisuth2023prototype,
  author = {Korawat Tanwisuth and Shujian Zhang and Pengcheng He and Mingyuan Zhou},
  title = {{A Prototype-Oriented Clustering for Domain Shift with Source Privacy}},
  year = {2023},
  eprint = {2302.03807},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2302.03807},
}
Figure