Abstract
Generative Calibration Clustering (GCC) is a novel framework designed to overcome the inherent limitations of contrastive learning in unsupervised image clustering. By utilizing conditional diffusion models to "hallucinate" balanced, labeled synthetic data, GCC creates high-quality "anchors" that guide the alignment of real image features. This approach effectively mitigates the "false negative" problem and provides significant robustness against dataset imbalance, leading to state-of-the-art performance on standard benchmarks like CIFAR-10 and STL-10.
Introduction
Image clustering—the task of grouping images by semantic similarity without human-provided labels—remains a fundamental challenge in unsupervised learning. Current state-of-the-art methods predominantly rely on contrastive learning, which learns representations by pulling different views of the same image together and pushing different images apart.
However, this paradigm suffers from a critical flaw: without ground-truth labels, the model frequently treats two different images from the same semantic category (e.g., two different dogs) as a negative pair. This "false negative" problem pushes similar images apart in the feature space, leading to fragmented clusters. This issue is further compounded in imbalanced datasets, where rare classes lack sufficient representation to form distinct clusters. GCC addresses these challenges by using generative models to provide the stable, labeled supervision missing in purely discriminative frameworks.
Methodology
The GCC framework operates through a two-stage pipeline:
Stage I: Baseline Initialization
The model begins with standard self-supervised pre-training using contrastive loss and K-means clustering. This stage establishes an initial feature extractor $\mathcal{F}(\cdot)$ and a clustering head $\mathcal{C}(\cdot)$ that generates preliminary pseudo-labels for the dataset.
Stage II: Generative Calibration
This core stage integrates a Conditional Diffusion Model (specifically a Deep U-Net architecture) to refine the clustering boundaries:
- Data Augmentation via Pseudo-labels: The diffusion model uses the pseudo-labels from Stage I to generate synthetic images for each category. These generated samples act as "ideal" representatives of their respective classes.
- Discriminative Feature Matching ($L_d$): To bridge the domain gap between synthetic and real data, GCC employs a loss function based on Reproducing Kernel Hilbert Space (RKHS). This aligns the centroids of real image features with those of the generated image features, using the latter as stable anchors.
- Reliable Self-Supervised Metric ($L_{ml}$): To account for potential errors in the generative process (e.g., the model generating a "cat" when prompted for a "dog"), a flexible loss function allows for multiple possibilities in cluster assignment, ensuring the model is not misled by imperfect generations.
By iteratively updating the clustering network and fine-tuning the diffusion model, the system creates a positive feedback loop where better clustering improves generation, which in turn provides cleaner supervision for clustering.
Experimental Results
Performance on Standard Benchmarks
GCC achieved a new state-of-the-art (SOTA) across multiple image benchmarks:
- CIFAR-10: Reached 90.4% accuracy, a 4.3% improvement over the previous leading method, SCAN (86.1%).
- CIFAR-100: Achieved 53.2% accuracy, outperforming the nearest competitor by nearly 5%.
- STL-10: Reached 86.6% accuracy, significantly higher than SCAN's 81.8%.
Robustness to Imbalance
In real-world scenarios where class distributions are often skewed, GCC demonstrates remarkable resilience. In controlled experiments with intentional data imbalance (Conditions #1 and #2 in Figure 4), GCC's performance dropped by only 3%, whereas competing methods like SCAN and NNM experienced much steeper declines of 5% or more. This is attributed to the model's ability to "oversample" rare classes in the latent space by prompting the diffusion model to generate more samples for those categories.
Discussion and Conclusion
GCC represents a shift in unsupervised clustering by treating generative models not just as a way to produce images, but as a source of "ideal" anchors for feature calibration. By aligning real-world data to these synthetic benchmarks, GCC effectively solves the false negative problem inherent in contrastive learning.
While the method is computationally more expensive than simple discriminative approaches due to the iterative training of diffusion models, the gains in accuracy and robustness are substantial. Future work will focus on reducing the computational overhead and further narrowing the "reality gap" between generated and real image distributions.
Summary updated