Oracle-guided Contrastive Clustering

Mengdie Wang, Liyuan Shang, Suyun Zhao, Yiming Wang, Hong Chen, Cuiping Li, Xizhao WangarXiv 2022 · DOI

Introduction

Traditional deep clustering algorithms are typically designed as "one-size-fits-all" solutions. They aim to maximize a single objective: identifying the most prominent semantic patterns in a dataset. However, real-world data is often multi-faceted. For example, a set of images containing ducks and sailboats on a river could be clustered by object type (animals vs. artifacts) or by environment (water vs. land).

Figure 1: Illustration of multi-faceted data where different users might prefer clustering by object type (top) or environment (bottom).

Existing unsupervised methods usually default to the most obvious visual features, often ignoring the specific needs of a user. Oracle-guided Contrastive Clustering (OCC) addresses this challenge by bringing a "human-in-the-loop" to unsupervised clustering. By using active learning to query an oracle (user) about specific image pairs, the model learns to cluster data based on personalized criteria, significantly outperforming standard methods on task-specific goals.

Methodology

The authors introduce the OCC framework, which integrates Active Learning into a Contrastive Learning pipeline. This approach allows the model to efficiently guide its representation learning toward a specific user-defined orientation.

The OCC Pipeline

  1. Dual-Space Learning: The model utilizes a shared backbone (ResNet34) to project data into two distinct spaces: a representation space (for feature learning) and an assignment space (for cluster prediction). This separation allows the model to learn robust features while simultaneously refining cluster boundaries.
  2. Active Querying via Cyclic Similarity Discrepancy (CSD): Instead of asking for labels for every image, the model identifies "informative" pairs using a scoring function called CSD. This function targets pairs that the model is uncertain about or those that show significant feature changes during training, ensuring that human effort is focused where it provides the most value.
  3. The Oracle and Active Contrastive Loss: A human (or "oracle") is asked a simple yes/no question: "Do these two images belong in the same cluster based on your criteria?" Standard contrastive learning treats different augmentations of the same image as a positive pair. OCC extends this by adding oracle-confirmed "same-cluster" pairs to the positive set. This forces the network to learn features that align with the user's specific demands.
  4. Label Extension: To maximize efficiency, the model uses pseudo-labeling to propagate the oracle's feedback to other similar, un-annotated pairs, amplifying the impact of each query.
Figure 2: The OCC architecture, highlighting the dual-space backbone, the active querying process involving an Oracle, and the resulting Active Contrastive Loss.

Experimental Evaluation

The researchers evaluated OCC on four widely-used image benchmarks: CIFAR-10, CIFAR-100, ImageNet-10, and ImageNet-Dogs. To test "personalized" clustering, they artificially divided these datasets into target clusters based on different demands (e.g., grouping 10 classes into 2 broader categories) to simulate the diversity of real-world user needs.

Key Results

  • Superiority in Personalized Tasks: In scenarios where a specific clustering orientation was required, standard state-of-the-art (SOTA) methods struggled, often achieving accuracies only slightly better than random. OCC, however, maintained high performance, achieving a 0.945 ACC on CIFAR-10 for personalized tasks compared to approximately 0.60 for competitors.
  • Efficiency and Convergence: The active query strategy is highly efficient. With only 25% of pairs labeled, the model's accuracy nearly converged with a fully supervised approach, significantly outperforming other query strategies like entropy-based or random selection.
  • Theoretical Grounding: The paper provides a mathematical proof showing that their active learning approach provides a tighter "upper bound" on clustering risk. Essentially, it proves that targeted queries are theoretically guaranteed to reduce error more effectively than passive observation.

Conclusion

OCC demonstrates that human feedback can be elegantly injected into unsupervised architectures through contrastive loss. While challenges remain regarding query costs for massive datasets and handling potential oracle inconsistency, OCC provides a powerful framework for moving beyond "one-size-fits-all" AI toward personalized data organization. Future research aims to extend this framework to other domains, such as text or multi-modal data.

Summary updated

BibTeX
@misc{wang2022oracle,
  author = {Mengdie Wang and Liyuan Shang and Suyun Zhao and Yiming Wang and Hong Chen and Cuiping Li and Xizhao Wang},
  title = {{Oracle-guided Contrastive Clustering}},
  year = {2022},
  eprint = {2211.00409},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.00409},
}
Figure