Abstract
Semi-supervised learning on class-imbalanced data, although a realistic problem, has been under studied. While existing semi-supervised learning (SSL) methods are known to perform poorly on minority classes, we find that they still generate high precision pseudo-labels on minority classes. By exploiting this property, in this work, we propose Class-Rebalancing Self-Training (CReST), a simple yet effective framework to improve existing SSL methods on class-imbalanced data. CReST iteratively retrains a baseline SSL model with a labeled set expanded by adding pseudo-labeled samples from an unlabeled set, where pseudo-labeled samples from minority classes are selected more frequently according to an estimated class distribution. We also propose a progressive distribution alignment to adaptively adjust the rebalancing strength dubbed CReST+. We show that CReST and CReST+ improve state-of-the-art SSL algorithms on various class-imbalanced datasets and consistently outperform other popular rebalancing methods.
Introduction
Most semi-supervised learning (SSL) algorithms—which use a small amount of labeled data and a large pool of unlabeled data—rely on a "balance assumption." They assume that every class is represented roughly equally. In the real world, data is almost always imbalanced; a few "majority" classes have many examples, while many "minority" classes have very few.
When standard SSL methods like FixMatch encounter imbalanced data, they develop a severe bias. The model predicts majority classes more often, leading to "pseudo-labels" for the unlabeled data that are also biased toward the majority. This creates a vicious cycle: the model learns from its own biased guesses, further drowning out the minority classes.
Methodology
The authors introduce two versions of their framework to break this cycle:
CReST (The Core Framework)
CReST uses an iterative "generation-based" approach:
- Train: Train a baseline SSL model (like FixMatch) on the current labeled and unlabeled data.
- Label: Use this model to predict labels for the unlabeled set.
- Rebalance: Instead of adding all pseudo-labeled samples to the labeled set for the next round, CReST samples them selectively. The sampling rate is inversely proportional to the class frequency. Minority classes are sampled at a high rate, while majority classes are sampled sparingly.
- Repeat: Retrain the model from scratch using the newly expanded, more balanced labeled set.
CReST+ (The Enhanced Version)
CReST+ adds Progressive Distribution Alignment (DA). Distribution alignment forces the model’s predicted distribution on unlabeled data to match the distribution of the labeled data. The "Progressive" part introduces a temperature scaling factor that gradually decreases over generations, slowly ramping up the rebalancing strength to ensure the model doesn't over-correct too early when its predictions are still developing.
Key Insights: The Precision Surprise
The core insight of the paper is that while models trained on imbalanced data have poor recall for minority classes, they maintain surprisingly high precision.
As shown in the figure above, when the model does predict a minority class, it is usually correct. CReST exploits this high precision to safely pick correct minority samples from the unlabeled pool. By adding these high-quality samples back into the labeled set, the model gradually overcomes its bias through iterative refinement.
Key Results
The researchers evaluated CReST on benchmarks like CIFAR10-LT, CIFAR100-LT, and ImageNet127.
- Massive Accuracy Boosts: On CIFAR10-LT (imbalance ratio 100), CReST+ improved FixMatch accuracy from 66.3% to 78.1%—a nearly 12% absolute gain.
- Minority Class Recovery: As shown in the performance comparison, the recall for the rarest classes (indices 8, 9, 10) significantly improves with CReST and CReST+ compared to the FixMatch baseline.
- Scalability: On the large-scale ImageNet127, CReST+ provided a 7.9% gain in recall, proving the method works beyond small-scale toy datasets.
Limitations and Future Work
- Computational Cost: Because CReST requires retraining the model from scratch for several generations, it is more computationally expensive than a single-pass SSL training run.
- Extreme Imbalance: If the imbalance is too extreme (e.g., ratio of 200), the model's ability to find any correct minority samples in the unlabeled set is diminished.
- Distribution Mismatch: This paper assumes the labeled and unlabeled data share the same imbalanced distribution; future work could explore cases where these distributions differ.
Summary updated