P$^2$OT: Progressive Partial Optimal Transport for Deep Imbalanced Clustering

Chuyu Zhang, Hui Ren, Xuming He

The Challenge of Imbalanced Data in Deep Clustering

Deep clustering aims to group data into semantic categories without human-provided labels. While researchers have made huge strides in this field, most algorithms operate under a "uniformity assumption"—the idea that every cluster is roughly the same size.

In the real world, data is almost never balanced. It typically follows a "long-tailed" distribution where a few "head" classes contain many samples, and numerous "tail" classes have very few. When standard deep clustering meets imbalanced data, it suffers from two major issues:

  1. Degenerate Solutions: The model might collapse all samples into a single large cluster.
  2. Confirmation Bias: In pseudo-labeling (where the model treats its own high-confidence predictions as ground truth), the model tends to overfit to the easy "head" classes while completely ignoring or misclassifying the "tail" classes, creating a vicious cycle of error.

Introducing P$^2$OT

To address these limitations, the authors introduce Progressive Partial Optimal Transport (P$^2$OT), a novel pseudo-labeling framework designed specifically for long-tailed datasets.

How It Works

P$^2$OT treats pseudo-labeling as an optimization problem where "mass" (samples) is transported to "bins" (clusters) based on prediction probability costs. The framework introduces several key innovations:

  • Relaxed KL Constraints: Instead of forcing clusters to be exactly equal in size (a strict equality constraint), P$^2$OT uses a Kullback-Leibler (KL) divergence constraint. This provides a soft prior that prevents cluster collapse while giving the model the flexibility to discover clusters of naturally varying sizes.
  • Progressive Learning ($\rho$): The model doesn't attempt to label every sample immediately. It introduces a "total mass" parameter, $\rho$, representing the fraction of samples the model is confident enough to label. $\rho$ starts small—focusing on "easy" samples—and gradually increases to 1.0 over time following a sigmoid ramp-up. This naturally integrates curriculum learning into the optimization objective without requiring sensitive, hand-tuned confidence thresholds.
  • The Virtual Cluster Trick: To make the approach computationally efficient, the authors introduce a "virtual cluster" (essentially a trash bin) to absorb the $1-\rho$ unselected mass. This reformulates the setup into an Unbalanced Optimal Transport problem, which can be solved using a lightning-fast matrix scaling algorithm (roughly 2x faster than the standard Generalized Scaling Algorithm).

Key Results and Performance

The authors evaluated P$^2$OT on realistic, imbalanced benchmarks, including CIFAR100-LT, ImageNet-R, and large-scale subsets of iNaturalist2018. P$^2$OT consistently outperforms state-of-the-art methods like SCAN and DivClust across all benchmarks.

The most significant gains are observed in the "Medium" and "Tail" classes. By avoiding the confirmation bias that plagues other methods, P$^2$OT successfully identifies and groups rare categories.

Comparison of Head, Medium, and Tail class accuracy across datasets. P$^2$OT (red) shows clear superiority in Medium and Tail categories.

Furthermore, t-SNE visualizations demonstrate that P$^2$OT learns much more distinct and compact clusters for tail classes, whereas baseline methods often smear rare classes together.

t-SNE visualization comparing clustering methods. P$^2$OT learns much more distinct and compact clusters, particularly avoiding the smearing of rare classes seen in other methods.

Limitations and Future Work

While highly effective, the authors note a few areas for future refinement:

  • Fixed Ramp-up: Currently, the mass parameter $\rho$ increases based on a fixed iteration schedule. An adaptive approach based on actual learning progress could yield better results.
  • Known Cluster Count: Like most clustering research, this work assumes the number of clusters ($K$) is known beforehand, which isn't always true in the wild.
  • Hyperparameters: Although it reduces threshold tuning, the method still relies on parameters like $\lambda$ (KL constraint strength) and the initial $\rho_0$.

Summary updated

BibTeX
@inproceedings{zhang2024p,
  author = {Chuyu Zhang and Hui Ren and Xuming He},
  title = {{P$^2$OT: Progressive Partial Optimal Transport for Deep Imbalanced Clustering}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
}
Figure