TL;DR
Deep clustering algorithms typically fail on real-world data because they assume all categories are roughly the same size. MiniClustering solves this by using an auxiliary "mini-cluster" head to estimate class importance without labels, allowing the model to re-weight its training process and significantly improve performance on imbalanced, "long-tailed" datasets.
What Problem Does This Paper Address?
In the ideal world of machine learning benchmarks, datasets are perfectly balanced. In the real world, data is "long-tailed": a few "head" classes have thousands of examples, while many "tail" classes have only a handful.
Deep clustering—the task of grouping unlabeled data using neural networks—struggles immensely with this reality. Most algorithms operate under the assumption of a balanced distribution, leading the model to become biased toward head classes while completely ignoring or misidentifying the tail. While supervised learning has many "re-weighting" tricks to fix this, those tricks require labels to know which classes are the small ones. In unsupervised clustering, we don't have labels, leaving us with a "chicken and egg" problem: we need to know the class sizes to cluster well, but we need to cluster well to know the class sizes.
Methods
The authors introduce MiniClustering, a framework that uses a "divide and conquer" strategy to estimate class weights without any ground-truth labels.
- Dual-Head Architecture: The model uses a shared encoder but two different "heads." The Target-Cluster Head predicts the actual number of classes ($K$). The Mini-Cluster Head predicts a much larger number of clusters ($M$), effectively over-segmenting the data.
- The "Aha" Observation: The authors noticed that head classes, due to their high sample volume, naturally occupy more space in the embedding manifold. Consequently, a head class will be split into many mini-clusters, while a tail class will be associated with very few.
- Unsupervised Re-weighting: By counting how many mini-clusters "belong" to each target cluster, the model estimates a weight for that class. Target clusters with many mini-clusters (the "heads") get their gradients scaled down, while those with few (the "tails") get scaled up.
- Loss Functions: The model is trained with three losses:
- Mini-cluster self-training: Refines the fine-grained clusters.
- Re-weighted target self-training: Uses the estimated weights to balance the main clustering task.
- Similarity alignment: Ensures the two heads stay synchronized so they don't drift apart during training.
Key Insights and Ideas
- Spatial Dispersion as a Proxy for Size: The most clever insight is that in a high-quality embedding space, a class with more samples is "spatially more dispersed." By over-clustering, we can use the number of sub-clusters as a reliable proxy for the total population of that class without ever seeing a label.
- Purity via Over-clustering: Standard clustering often mixes tail classes with head classes. By forcing the model to create "mini-clusters," the average purity of each group increases, making the subsequent weight estimation much more accurate.
- Bridge to Supervised Learning: This method acts as a "wrapper." It allows researchers to take existing, highly effective supervised long-tailed losses (like CB Softmax or BALMS) and apply them to unsupervised tasks by plugging in the estimated mini-cluster weights.
Datasets and Key Results
The researchers evaluated MiniClustering on several standard benchmarks modified to have "imbalance ratios" (the ratio of the largest class to the smallest) of 5, 10, and 100. These included image datasets (CIFAR-10, CIFAR-20, STL-10, Tiny ImageNet, and ImageNet-LT) and text datasets (StackOverflow and AgNews), demonstrating the method isn't just for computer vision.
MiniClustering consistently outperformed state-of-the-art deep clustering methods (like SCAN, SeCu, and ConMix) across the board:
- Accuracy Boost: On CIFAR-10 with an imbalance ratio of 10, MiniClustering achieved 64.6% accuracy, a massive jump from the 51.9% baseline.
- Extreme Imbalance: Even at an imbalance ratio of 100 (where the largest class is 100x bigger than the smallest), the model maintained superior performance (46.9% ACC vs. 40.4% for the next best method).
- Generalization: The method worked effectively on large-scale data (ImageNet-LT) and non-image data (Text), proving its robustness.
Limitations and Future Work
- Pre-training Dependency: The method relies on a reasonably good initial embedding space (the authors used BYOL for pre-training). If the initial embeddings are completely collapsed, the mini-cluster mapping might fail.
- Hyperparameter Sensitivity: While the authors provide guidelines, the number of mini-clusters ($M$) is a hyperparameter. Setting it too low loses the granularity needed for weight estimation, while setting it too high can lead to training overhead.
- Computational Overhead: For datasets with thousands of classes, the "mini-cluster" head could become very large. The authors proposed a "MaxiClustering" variant to handle this, but further optimization for massive-scale unsupervised learning remains an open area.
Summary updated