Abstract
Pseudo-labeling has proven to be a promising semi-supervised learning (SSL) paradigm. Existing pseudo-labeling methods commonly assume that the class distributions of training data are balanced. However, such an assumption is far from realistic scenarios and thus severely limits the performance of current pseudo-labeling methods under the context of class-imbalance. To alleviate this problem, we design a bias adaptive classifier that targets the imbalanced SSL setups. The core idea is to automatically assimilate the training bias caused by class imbalance via the bias adaptive classifier, which is composed of a novel bias attractor and the original linear classifier. The bias attractor is designed as a light-weight residual network and optimized through a bi-level learning framework. Such a learning strategy enables the bias adaptive classifier to fit imbalanced training data, while the linear classifier can provide unbiased label prediction for each class. We conduct extensive experiments under various imbalanced semi-supervised setups, and the results demonstrate that our method can be applied to different pseudo-labeling models and is superior to current state-of-the-art methods.
Introduction: The Challenge of Class Imbalance in SSL
Standard semi-supervised learning (SSL) often fails in real-world applications because it assumes class distributions are balanced. Most SSL methods rely on pseudo-labeling, where the model generates labels for unlabeled data to expand the training set.
However, if the initial labeled data is imbalanced (e.g., many more samples of one class than another), the model naturally develops a bias toward the majority class. This leads to a "vicious feedback loop": the model mislabels minority class samples in the unlabeled set as majority class samples. Training on these biased pseudo-labels further reinforces the bias, eventually causing minority classes to be "washed out." Existing solutions often require prior knowledge of the unlabeled data's distribution, which is rarely available in practice.
Methodology: Learning to Adapt Classifier (L2AC)
The Learning to Adapt Classifier (L2AC) framework addresses this by decoupling "bias" from "classification." Instead of a single linear classifier, L2AC uses a composite structure called the Bias Adaptive Classifier.
The Bias Adaptive Classifier
The architecture consists of two main parts:
- Linear Classifier ($f^{cls}$): The standard classification layer intended to provide unbiased predictions.
- Bias Attractor ($\Delta f_\omega$): A lightweight, non-linear residual network (MLP) designed to "soak up" the training bias inherent in imbalanced data.
During training, the model uses the combined output of both components to fit the imbalanced data. At test time, the bias attractor is discarded, leaving only the linear classifier to make unbiased predictions.
Bi-level Learning Framework
To ensure the bias attractor effectively captures the bias, a two-tier optimization strategy is employed:
- Lower-level Optimization: The entire network (feature extractor and bias adaptive classifier) is updated using the full imbalanced training set (labeled and pseudo-labeled data).
- Upper-level Optimization: The parameters of the bias attractor ($\omega$) are specifically tuned using a small, class-balanced set re-sampled from the labeled data. This meta-learning step forces the linear classifier to remain generalizable across all classes while the attractor handles the noise of the imbalance.
Experimental Results
L2AC was evaluated across benchmarks including CIFAR-10-LT, CIFAR-100, STL-10, and the large-scale SUN397 dataset.
Performance Gains
L2AC consistently outperformed current state-of-the-art (SOTA) methods:
- CIFAR-10: With an imbalance ratio of 100, L2AC combined with FixMatch achieved 82.1% balanced accuracy (bACC), significantly higher than vanilla FixMatch (71.5%).
- Extreme Imbalance: In scenarios with extremely scarce labeled data, L2AC improved FixMatch's performance by approximately 16% in bACC and 37% in Geometric Mean (GM) score.
Key Insights
- Model-Agnostic: L2AC can be integrated into various SSL algorithms like FixMatch and MixMatch, providing a universal performance boost.
- Distribution Robustness: L2AC remains effective even when the labeled and unlabeled data have different imbalance distributions.
- Efficiency: The bias attractor is extremely small (only ~0.68% of total parameters), making the computational overhead of the bi-level optimization negligible.
Conclusion
L2AC introduces a novel way to handle class imbalance in SSL by "assimilating" rather than "eliminating" bias. By using a removable bias attractor and a bi-level optimization strategy, it allows models to learn from imbalanced data while maintaining unbiased classification capabilities. This approach sets a new standard for robust semi-supervised learning in realistic, long-tailed scenarios.
Summary updated