Abstract
Class-Imbalanced Semi-Supervised Learning (CISSL) faces a significant hurdle: standard semi-supervised methods rely on high confidence thresholds that systematically exclude minority class samples. These samples, characterized by low model confidence, become "hard examples" that are ignored during training, leading to severe performance degradation on tail classes. We introduce SeMi, a novel framework that shifts the focus from simple dataset rebalancing to the active mining of these hard examples. By lowering confidence thresholds, dynamically reweighting examples based on entropy, and maintaining a balanced memory bank with confidence decay, SeMi achieves state-of-the-art results across multiple benchmarks, including a 54.8% improvement in highly mismatched data distributions.
Introduction
Semi-Supervised Learning (SSL) typically assumes a balanced class distribution. However, real-world datasets are often "long-tailed," where a few majority classes dominate. In such scenarios, standard SSL methods like FixMatch fail because their high confidence thresholds (e.g., 0.95) are rarely met by minority class samples. Because the model is biased toward the majority, it remains uncertain about tail classes, effectively filtering them out as noise. SeMi addresses this by treating these low-confidence samples not as noise, but as valuable "hard examples" essential for learning robust classification boundaries.
The SeMi Framework
SeMi (Semi-Supervised Learning by Mining Hard Examples) introduces several mechanisms to safely incorporate low-confidence data into the training process without introducing excessive noise.
Key Components:
- Lowered Thresholds & OHEML: SeMi reduces the pseudo-label threshold (e.g., to 0.7) to capture more tail-class samples. It employs Online Hard Example Mining and Learning (OHEML), using prediction entropy as a proxy for sample difficulty; higher entropy examples are assigned higher training weights to focus the model on informative boundary cases.
- Balanced Confidence Decay Memory Bank: To ensure pseudo-label quality, SeMi maintains a memory bank of high-confidence feature embeddings. A "confidence decay" mechanism is applied over time, forcing the bank to periodically "forget" easy examples and refresh with diverse, updated representations of each class.
- Pseudo-Label Certainty Enhancement (PLCE): SeMi refines pseudo-labels by blending standard classifier predictions with "semantic" labels derived from the memory bank's class prototypes. This ensures that even with a lower threshold, the assigned labels remain robust.
- Embedding Alignment: For "ultra-hard" examples falling even below the 0.7 threshold, SeMi enforces consistency by aligning feature embeddings between weak and strong augmentations of the same image.
Experimental Evaluation
We evaluated SeMi on several long-tailed benchmarks, including CIFAR-10-LT, CIFAR-100-LT, STL10-LT, and the naturally imbalanced ImageNet-127.
Key Results:
- Superior Tail Performance: As shown in the confusion matrices, SeMi dramatically reduces misclassifications for minority classes compared to baselines like FixMatch and DASO. While standard methods often collapse on tail classes (C8, C9), SeMi maintains high accuracy across the entire distribution.
- Robustness to Distribution Mismatch: In "reversed" scenarios—where labeled and unlabeled data have opposite imbalances—SeMi achieved 92.2% accuracy on CIFAR-10-LT, significantly outperforming the previous state-of-the-art.
- Natural Imbalance: On ImageNet-127, SeMi provided absolute test accuracy gains of up to 45.2% over the FixMatch baseline, demonstrating its effectiveness on large-scale, real-world data hierarchies.
Conclusion
SeMi demonstrates that the key to solving class-imbalanced semi-supervised learning lies in the intelligent mining of hard examples. By strategically lowering thresholds and managing uncertainty through entropy-based reweighting and a decaying memory bank, SeMi prevents the starvation of minority classes and builds more representative models. This approach sets a new standard for CISSL, particularly in challenging real-world settings where data distributions are unknown or mismatched.
Summary updated