TL;DR
This paper introduces a lightweight framework that borrows "Proportion Loss" from the learning-from-label-proportions (LLP) paradigm to fix class imbalance in semi-supervised learning (SSL). By regularizing model predictions to match global class distributions and accounting for mini-batch fluctuations via hypergeometric sampling, it significantly boosts performance, especially when labeled data is scarce.
What Problem Does This Paper Address?
Semi-supervised learning (SSL) works wonders by using a small set of labeled data to guide the training of a model on a massive pool of unlabeled data. However, real-world data is rarely perfectly balanced. When standard SSL algorithms encounter class-imbalanced datasets, they run into a major roadblock: the initial model naturally biases toward majority classes.
This bias creates a dangerous feedback loop. The model generates inaccurate "pseudo-labels" for the unlabeled data, favoring the majority classes. Training on these biased pseudo-labels further suppresses the model's performance on minority classes. While existing Class-Imbalanced SSL (CISSL) methods try to fix this post-hoc or via complex optimization, they often struggle when labeled data is extremely limited.
Methods
The authors propose a simple yet elegant solution: Proportion-Regularized SSL. They leverage the fact that even a tiny labeled dataset can provide a rough but informative estimate of the global class proportions ($q$).
- Proportion Loss as Regularization: They add a lightweight regularization term ($\mathcal{L}_{prop}$) to the standard SSL loss. This term calculates the average softmax predictions over a mini-batch of unlabeled data and penalizes deviations from the estimated global class distribution using cross-entropy.
- Stochastic Perturbation via Hypergeometric Sampling: Naively forcing every mini-batch to match the global distribution leads to overfitting because small batches naturally fluctuate in composition. To fix this, the authors dynamically sample a target batch proportion $q^{(t)}$ at each iteration using a multivariate hypergeometric distribution ($\text{MultiHG}$). This injects realistic sampling noise, adapting the loss to natural batch variations.
This approach requires no architectural changes and can be seamlessly plugged into existing SSL frameworks like FixMatch or ReMixMatch.
Datasets
The method was evaluated on CIFAR-10-LT (Long-Tailed), a standard benchmark for imbalanced learning derived from the CIFAR-10 dataset. The authors tested various setups by adjusting:
- Imbalance ratios ($\gamma$): 10, 20, 50, and 100 (where $\gamma=100$ means the largest class has 100x more samples than the smallest).
- Labeled data ratios ($\beta$): 2%, 4%, 10%, and 20% of the total dataset.
Key Insights and Ideas
- Cross-Paradigm Synergy: The core "aha" moment is realizing that Learning from Label Proportions (LLP)—typically studied as its own distinct problem—holds the perfect mathematical tool to regularize imbalanced SSL at the loss level.
- Embracing Batch Noise: Instead of fighting the statistical fluctuations inherent in small mini-batches, modeling them probabilistically via hypergeometric sampling acts as a powerful regularizer that prevents the network from memorizing a fixed, noisy target.
- Fixing the Pseudo-Label Feedback Loop: By forcing the model's aggregate predictions to match the expected distribution, the framework significantly improves the recall of minority-class pseudo-labels during training, breaking the majority-class dominance cycle.
Key Results
The proposed method consistently outperformed or matched state-of-the-art CISSL methods (like DARP and CReST) across different backbones:
- Scarce Label Dominance: At a 2% labeled data ratio ($\beta = 2\%$) and an imbalance ratio of $\gamma = 10$, FixMatch + Ours achieved 81.9% accuracy (vs. 80.8% for baseline FixMatch). With ReMixMatch under the same conditions, the proposed method hit 88.1% accuracy (a 2.6% absolute improvement over the baseline).
- Distribution Correction: Post-training analysis showed that the proposed method drastically reduced the underestimation of minor classes compared to standard FixMatch and other competitive baselines, aligning the final model predictions much closer to the true dataset distribution.
Limitations and Future Work
- Distribution Shift Sensitivity: The method assumes that the labeled and unlabeled data share the exact same class distribution. If the unlabeled data suffers from an unknown distribution shift, the performance might degrade.
- Batch Size Dependencies: If the mini-batch size of the unlabeled data is too small, the proportion estimates cannot be calculated with sufficient accuracy, potentially reducing the benefit of the regularization.
The authors note that future work will focus on relaxing the assumption of identical distributions between the labeled and unlabeled sets.
Summary updated