TL;DR
Deep clustering often fails when data is imbalanced, as most models assume every category has roughly the same number of samples. This paper introduces P$^2$OT, a framework that uses a novel "Progressive Partial Optimal Transport" algorithm to generate imbalance-aware pseudo-labels, allowing models to learn effectively from long-tailed, real-world datasets.
What Problem Does This Paper Address?
Deep clustering is the task of learning useful data representations and grouping them into semantic categories simultaneously, all without human-provided labels. While researchers have made huge strides, there’s a catch: most existing methods are designed for "balanced" datasets where every class is equally represented.
In the real world, data is messy and "long-tailed"—a few "head" classes have many samples, while many "tail" classes have very few. When standard deep clustering methods encounter this imbalance, they often collapse, assigning all samples to a single large cluster or completely ignoring the rare categories. The authors bridge this gap by formalizing the Deep Imbalanced Clustering problem and proposing a way to generate high-quality pseudo-labels that respect these natural imbalances.
Methods
The core of the paper is the P$^2$OT (Progressive Partial Optimal Transport) algorithm. It treats pseudo-label generation as an Optimal Transport (OT) problem with three clever twists:
- KL Divergence Constraints: Instead of forcing clusters to be exactly the same size (a common but flawed assumption), P$^2$OT uses a Kullback-Leibler (KL) divergence constraint. This acts as a "soft" prior that encourages a uniform distribution to avoid degenerate solutions while still allowing the model the flexibility to form imbalanced clusters.
- Progressive Learning (Total Mass $\rho$): Inspired by curriculum learning, the model doesn't try to label everything at once. It starts by selecting only a small fraction ($\rho$) of high-confidence samples. As training progresses, $\rho$ increases, gradually bringing in more difficult, lower-confidence samples.
- Virtual Clusters for Efficiency: To solve this complex optimization problem quickly, the authors introduce a "virtual cluster" that absorbs the mass of unselected samples. This allows them to reformulate the problem into a standard unbalanced OT form, which can be solved using a "light-speed" matrix scaling algorithm that is twice as fast as previous general solvers.
Datasets
The authors established a new, more realistic benchmark for imbalanced clustering using:
- Long-tailed CIFAR100: An artificially skewed version of the classic dataset with an imbalance ratio of 100.
- ImageNet-R: A challenging "out-of-distribution" dataset that is inherently imbalanced.
- iNaturalist2018: A massive, naturally long-tailed dataset of fine-grained species. The authors used subsets called iNature100, iNature500, and iNature1000.
Key Insights and Ideas
- Equality is the Enemy of Imbalance: Standard clustering methods often use equality constraints to ensure clusters aren't empty. P$^2$OT shows that relaxing this to a KL-based constraint is the key to unlocking performance on long-tailed data.
- OT as a Selection Mechanism: By using the "total mass" constraint within the OT framework, the model performs sample selection and label assignment in a single, unified optimization step, rather than relying on hand-tuned confidence thresholds.
- Tail-Class Recovery: The most striking "aha moment" is how well the method recovers rare classes. While other methods might achieve decent overall accuracy by over-fitting to "head" classes, P$^2$OT maintains high performance across the entire distribution.
Key Results
P$^2$OT achieves state-of-the-art (SOTA) results across the board:
- Accuracy Gains: On the challenging ImageNet-R dataset, it improved clustering accuracy (ACC) by 2.4% and the F1-score by 4.5% over the previous best methods.
- Robustness to Scale: On the large-scale iNature500 dataset, it outperformed the popular SCAN method by over 3% in accuracy.
- Qualitative Clarity: T-SNE visualizations (Figure 2) show that P$^2$OT learns much more distinct and compact clusters compared to competitors like PICA or DivClust, which tend to produce overlapping "blobs" for imbalanced data.
Limitations and Future Work
The authors note that their current "ramp-up" strategy for the sample selection fraction ($\rho$) uses a fixed sigmoid function. While effective, they suggest that a more adaptive strategy—one that adjusts $\rho$ based on the model's actual learning progress rather than just the iteration count—could yield even better results. Additionally, while the method excels at tail classes, there is sometimes a slight performance trade-off in the very largest "head" classes compared to methods that ignore imbalance entirely.
Summary updated