Abstract
The recently proposed unlabeled-unlabeled (UU) classification method allows us to train a binary classifier only from two unlabeled datasets with different class priors. While theoretically elegant, this "unbiased" approach often suffers from severe overfitting, particularly when using high-capacity models like deep neural networks. We identify that a primary driver of this overfitting is the empirical risk becoming negative—a physical impossibility for the underlying loss functions. We propose a consistent risk correction approach that enforces non-negativity, significantly improving the stability and performance of UU classification across various deep learning architectures.
Introduction: The Challenge of Unlabeled Data
In many real-world machine learning scenarios, obtaining labeled data is prohibitively expensive or impossible. Unlabeled-Unlabeled (UU) classification offers a solution by training a binary classifier from two sets of unlabeled data that possess different class priors (proportions of positive and negative samples).
While mathematically sound, existing "unbiased" UU methods are prone to overfitting. A critical observation made in this work is the "Negative Risk" phenomenon: as high-capacity models (like MLPs or ResNets) begin to overfit, their training risk—the value they aim to minimize—frequently drops below zero. Since the loss functions used are non-negative by definition, a negative total risk indicates the model is "hallucinating" patterns to exploit the mathematical structure of the estimator rather than learning the actual data distribution.
Proposed Method: Consistent Risk Correction
To mitigate this, we propose a Consistent Risk Correction approach. We decompose the rewritten UU risk into its constituent "Positive" and "Negative" class risk terms and apply a correction function $f$ to ensure these terms remain non-negative.
We evaluated three correction functions:
- UU-ReLU: Employs the Rectified Linear Unit, $max(0, x)$.
- UU-ABS: Uses the absolute value function.
- UU-LReLU: Uses a Generalized Leaky ReLU, which maintains a small gradient for negative values to prevent "dying" neurons during optimization.
Crucially, we prove that this correction is "consistent" because the introduced bias vanishes as the sample size increases, ensuring the model converges to the optimal classifier in the limit. This represents a strategic bias-variance tradeoff: intentionally introducing a small amount of bias to drastically reduce the variance (overfitting).
Experimental Results
We tested our approach across four image benchmarks (MNIST, Fashion-MNIST, Kuzushiji-MNIST, and CIFAR-10) using architectures ranging from linear models to ResNet-32.
The results demonstrate a dramatic improvement in stability and accuracy for deep models. For instance, on the MNIST dataset using an MLP in difficult settings (where class priors are close), the standard unbiased method's accuracy collapsed to 53.34%. In contrast, our UU-LReLU method maintained a robust 90.34% accuracy.
Furthermore, the "drop" in accuracy during training ($\Delta_A$), a key metric for overfitting, was significantly reduced. In CIFAR-10 experiments, the unbiased method experienced a performance drop of nearly 24%, whereas our corrected version limited this drop to approximately 2.6%. Among the variants, UU-LReLU generally provided the best performance by avoiding the vanishing gradient issues associated with hard clipping.
Conclusion
Negative empirical risk is a significant hurdle for weakly supervised learning with deep neural networks. By enforcing non-negativity through consistent risk correction, we can effectively regularize UU classification without sacrificing asymptotic consistency. This method makes UU classification viable for modern deep learning applications where model capacity is high and overfitting is a constant threat.
Summary updated