TL;DR
Most semi-supervised learning (SSL) algorithms are "accuracy-obsessed," which often fails in real-world scenarios where fairness or minority class representation is critical. This paper introduces Cost-Sensitive Self-Training (CSST), a novel framework that allows models to leverage unlabeled data to optimize complex, "non-decomposable" metrics like maximizing the minimum recall across all classes.
The Problem: Accuracy Isn't Everything
In the realm of Deep Learning, semi-supervised learning has become highly effective at training models using a small amount of labeled data alongside a mountain of unlabeled data. However, standard SSL methods—such as FixMatch or UDA—are fundamentally designed to maximize overall accuracy.
In practice, accuracy is frequently an inadequate metric. For instance, in medical diagnostic tools or fairness-aware classifiers, metrics like Recall (minimizing false negatives) or Coverage (ensuring minority groups are represented) are far more important. These are known as "non-decomposable" metrics because they cannot be calculated by evaluating individual images in isolation; they require assessing performance across the entire dataset.
The authors highlight a critical flaw in "vanilla" self-training methods: they actually perform poorly on these complex metrics due to an inherent bias toward majority classes. The core challenge is figuring out how to utilize unlabeled data to improve a model's performance on specific, non-decomposable metrics rather than just overall accuracy.
Methods: The CSST Framework
To address this, the authors propose the Cost-Sensitive Self-Training (CSST) framework, bridging the gap between traditional Cost-Sensitive Learning (usually restricted to supervised settings) and Self-Training.
The framework introduces three key innovations:
- Reduction to Cost-Sensitive Learning: CSST optimizes complex metrics by employing a "Gain Matrix" ($G$). This matrix assigns distinct rewards or penalties for different types of correct or incorrect predictions, shifting the model's focus away from simple accuracy.
- Weighted Consistency Regularizer: Standard SSL forces a model to output the same prediction for two augmented versions of the same image. CSST weights this consistency based on class importance. If a class is rare but critical, the model faces a heavier penalty for inconsistent predictions on those specific samples.
- KL-Thresholding Mechanism: Traditional SSL learns from unlabeled samples only if the model is highly "confident" (e.g., >95% probability). However, for cost-sensitive tasks, the optimal prediction might not be a high-confidence one-hot vector. CSST replaces this rigid confidence threshold with a dynamic one based on the KL-Divergence between the model’s current prediction and the mathematically optimal cost-sensitive distribution.
Key Insights
- The "Accuracy Bias" of SSL: Standard self-training can actively hurt non-decomposable metrics. By forcing the model to become more confident in its current (often biased) predictions, standard methods reinforce the neglect of minority classes.
- Not All Consistency is Equal: By weighting the consistency loss, CSST effectively teaches the model that while uncertainty on majority classes might be acceptable, it must be highly consistent and accurate on rare, critical classes.
- Rethinking Thresholds: The standard "high-confidence" filter used in modern SSL is a bottleneck for cost-sensitive tasks. KL-Thresholding allows the model to learn from a much broader and more relevant set of unlabeled samples.
Datasets and Key Results
The researchers evaluated CSST across computer vision (CIFAR-10-LT, CIFAR-100-LT, ImageNet-100-LT) and natural language processing (IMDb, DBpedia-14) tasks, focusing on "Long-Tailed" (LT) distributions where class imbalances are severe. They compared CSST against standard supervised methods and state-of-the-art SSL methods.
The results demonstrate that CSST provides massive performance boosts where it matters most:
- Worst-Case Recall: On CIFAR-10-LT, vanilla FixMatch achieved a minimum recall of just 0.48. CSST boosted this to 0.72—a nearly 50% improvement for the worst-performing class.
- Coverage Constraints: When tasked with maximizing recall while keeping class "coverage" above a certain threshold, CSST consistently met the constraints while maintaining high accuracy, unlike baseline methods.
- Broad Applicability: The framework proved highly generalizable, working effectively when integrated into both FixMatch (for Vision) and UDA (for NLP).
Limitations and Future Work
While powerful, CSST has a few limitations. The theoretical proofs and current experiments assume that labeled and unlabeled data share the same distribution. In real-world scenarios, unlabeled data might suffer from even more extreme class imbalances. Additionally, the framework relies on periodically updating the gain matrix and Lagrange multipliers, which adds complexity to the training loop compared to standard cross-entropy. Future work will likely explore applying CSST to scenarios where the distribution of unlabeled data is unknown or differs significantly from the labeled set.
Summary updated