SP2OT: Semantic-Regularized Progressive Partial Optimal Transport for Imbalanced Clustering

Chuyu Zhang, Hui Ren, Xuming He · DOI

Abstract

Deep clustering methods often struggle with real-world datasets that exhibit significant class imbalance, a phenomenon known as the "uniformity trap." Most existing algorithms assume a uniform distribution of classes, leading to poor performance on "long-tailed" data where a few head classes dominate many tail classes. This paper introduces SP2OT (Semantic-regularized Progressive Partial Optimal Transport), a framework that leverages Optimal Transport (OT) with semantic and progressive constraints to generate high-quality pseudo-labels for imbalanced datasets. By incorporating semantic regularization via KNN graphs and a progressive learning curriculum, SP2OT significantly outperforms state-of-the-art methods, particularly on tail classes.

Introduction

Deep clustering aims to simultaneously learn data representations and category assignments without human-provided labels. While successful in controlled environments, these methods often fail when applied to imbalanced or long-tailed data. Standard algorithms frequently suffer from "uniformity bias," either collapsing all data into a few large clusters or incorrectly forcing small classes to appear as large as dominant ones. Furthermore, pseudo-labeling techniques often fall victim to "confirmation bias," where early errors are reinforced throughout training.

The SP2OT Framework

To address these challenges, the authors propose SP2OT, which treats cluster assignment as an Optimal Transport problem. The framework introduces three key innovations:

1. Semantic Regularization

To stabilize early training, SP2OT constructs a K-Nearest Neighbor (KNN) graph based on features from a fixed, pre-trained backbone. It enforces a consistency rule: samples that are close in the feature space should likely share the same pseudo-label. This acts as a stable anchor, preventing the model from drifting due to noisy early predictions.

2. Progressive Learning Curriculum

Rather than assigning labels to all samples immediately, SP2OT employs a "total mass constraint" ($\rho$). By introducing a "virtual cluster" that acts as a sink for low-confidence data, the model starts by labeling only the most certain samples. As training progresses, the amount of data used is gradually increased according to a sigmoid-based curriculum.

3. Imbalance-Aware Constraints

Instead of the rigid equality constraints typical of standard clustering, SP2OT utilizes a Kullback-Leibler (KL) divergence constraint. This provides the necessary flexibility for the model to identify clusters of varying sizes, accurately reflecting the underlying long-tailed distribution while still preventing degenerate solutions where all data is assigned to a single cluster.

Experimental Evaluation

The authors evaluated SP2OT on several challenging benchmarks, including Long-tailed CIFAR100 (imbalance ratio of 100), ImageNet-R (out-of-distribution renditions), and subsets of the naturally long-tailed iNaturalist2018 dataset (iNature100, iNature500, and iNature1000). To ensure scalability, they developed a specialized solver based on Projected Mirror Descent, which is up to 6.2x faster than standard generalized scaling algorithms.

Results and Discussion

SP2OT consistently achieves superior accuracy across all tested datasets. The performance gains are most pronounced in the "Medium" and "Tail" classes, where traditional methods like SCAN and DivClust often fail. On the iNature100 dataset, SP2OT improved overall clustering accuracy (ACC) by 4.8% over the previous state-of-the-art.

Performance comparison of SP2OT against state-of-the-art methods across various imbalanced datasets, broken down by Head, Medium, and Tail classes.

The qualitative results also demonstrate the effectiveness of the proposed semantic regularization. The t-SNE visualizations show that SP2OT produces much cleaner and more distinct cluster separations compared to the baseline P2OT method.

t-SNE visualization comparing cluster assignments between P2OT and SP2OT, highlighting the improved separation achieved by the latter.

Conclusion

SP2OT effectively mitigates the "uniformity trap" in deep clustering by combining the strengths of Optimal Transport with semantic and progressive constraints. While the current implementation relies on a fixed curriculum and a pre-trained backbone, the framework sets a new benchmark for imbalanced clustering. Future work may explore adaptive curriculum strategies to further enhance the model's robustness.

Summary updated

BibTeX
@misc{zhang2024sp,
  author = {Chuyu Zhang and Hui Ren and Xuming He},
  title = {{SP2OT: Semantic-Regularized Progressive Partial Optimal Transport for Imbalanced Clustering}},
  year = {2024},
  eprint = {2404.03446},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.03446},
}
Figure