NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Clustering via Self-Supervised Diffusion

Roy Uziel, Irit Chelly, Oren Freifeld, Ari Pakman

Diffusion models have taken the generative AI world by storm, powering everything from Midjourney to Stable Diffusion. But while they are masters of creating data, can they be used to organize it?

A new paper, "Clustering via Self-Supervised Diffusion," introduces CLUDI, the first framework to successfully repurpose the generative power of diffusion for the task of unsupervised clustering. By treating cluster assignments as a generative process, the authors have set new state-of-the-art benchmarks for accuracy and robustness.

The Challenge of Unsupervised Clustering

Clustering is often considered the "holy grail" of unsupervised learning: finding meaningful groups in data without relying on human-annotated labels. While deep learning has significantly advanced the field, two persistent challenges remain:

  1. Model Collapse: The tendency for a neural network to take the "easy way out" by assigning every single data point to the same cluster.
  2. Complexity vs. Robustness: Traditional methods often struggle with high-dimensional data (like images) where the boundaries between groups are intricate and non-linear.

Existing methods typically rely on complex data augmentation pipelines or multiple network "heads" to find stable clusters. The authors of CLUDI asked a different question: Can the iterative, noise-cleansing nature of diffusion models provide a more natural way to discover these boundaries?

Methodology: The CLUDI Framework

CLUDI operates on a teacher-student Siamese architecture that leverages features from a pre-trained Vision Transformer (specifically, DINO).

  • The Diffusion Teacher: Instead of generating pixels, the teacher model generates assignment embeddings. Starting with random Gaussian noise and conditioned on the image's features, it iteratively "denoises" the input into a vector representing cluster probabilities. Because diffusion is inherently stochastic, the teacher can produce multiple, slightly different "views" of where an image might belong.
  • The Student Refiner: The student network is trained to predict the teacher’s refined assignments. Crucially, the student is fed a "corrupted" version of the image features (with added noise and dropout). This forces the student to learn stable, robust representations from the teacher’s diverse samples.
  • Preventing Collapse: To stop the model from dumping everything into a single cluster, the authors implement a "non-collapsing cross-entropy loss." This incorporates a uniform prior that encourages the model to use all available clusters evenly across a batch.
  • Inference by Averaging: At test time, CLUDI does not rely on a single guess. It runs the diffusion process multiple times using Monte Carlo sampling and averages the results, significantly smoothing out uncertainty.

Key Insights

  • Stochasticity as Augmentation: In traditional computer vision, data is augmented by flipping or cropping images. In CLUDI, the diffusion process itself acts as a form of augmentation. The randomness in the teacher's sampling provides the student with a rich variety of targets, helping it uncover the underlying structure of the data more effectively than static labels.
  • The Power of Iteration: Unlike a standard classifier that makes a "one-shot" prediction, the diffusion model's iterative refinement allows it to slowly settle into the most likely cluster, effectively "walking" toward the correct grouping.
  • Robustness to Noise: Averaging multiple diffusion samples makes the model incredibly resilient. Even when input features are heavily corrupted with noise, the averaged predictions remain highly accurate.

Experimental Results

The authors evaluated CLUDI on a wide range of standard computer vision benchmarks, including ImageNet subsets (ImageNet-50, 100, 200), fine-grained datasets (Oxford-IIIT Pets, Oxford 102 Flowers), and general object datasets (CIFAR-10, STL-10, Caltech 101).

CLUDI achieved State-of-the-Art (SOTA) results across almost every dataset tested:

  • ImageNet-50: Achieved an Accuracy (ACC) of 82.1% and a Normalized Mutual Information (NMI) of 91.2%, outperforming previous leaders like TEMI and SCAN.
  • Fine-Grained Success: On the Oxford 102 Flowers dataset, CLUDI reached 69.7% ACC, a massive jump over the previous best of approximately 57%.
  • Efficiency: By utilizing frozen, pre-trained ViT features, the model avoids the massive computational cost of training a vision backbone from scratch for every new clustering task.

Limitations and Future Directions

While CLUDI serves as a powerful proof-of-concept for clustering via diffusion, the authors note a few hurdles. The model exhibits hyperparameter sensitivity, particularly regarding the noise rescaling factor and the dimensionality of the embeddings; finding the optimal settings for new datasets can be tricky. Additionally, scaling the cluster count into the thousands makes maintaining distinct, high-quality embeddings increasingly difficult.

Future work may explore hierarchical diffusion (clustering groups within groups) or adaptive techniques capable of automatically determining the best hyperparameters based on the target data distribution.

Summary updated

BibTeX
@inproceedings{uziel2025clustering,
  author = {Roy Uziel and Irit Chelly and Oren Freifeld and Ari Pakman},
  title = {{Clustering via Self-Supervised Diffusion}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=9uPCP3j62m},
}
Figure