Robust and Efficient Imbalanced Positive-Unlabeled Learning with Self-supervision

Emilio Dorigatti, Jonas Schweisthal, Bernd Bischl, Mina RezaeiarXiv 2022 · DOI

Introduction

In many real-world machine learning applications, obtaining a fully labeled dataset is impractical. Instead, practitioners often work with Positive-Unlabeled (PU) data, which consists of a small set of confirmed positive examples and a large volume of unlabeled data containing both hidden positives and a majority of negatives. Standard PU learning algorithms frequently fail in two critical scenarios: extreme class imbalance (where positives are rare) and the "Prior Knowledge Gap," where the model's performance is highly sensitive to an accurate estimation of the class prior (the percentage of positives in the unlabeled set).

To address these challenges, the researchers introduce ImPULSeS (Imbalanced Positive Unlabeled Learning leveraging Self-Supervised debiased pre-training), a framework designed to handle highly imbalanced scenarios even when labeled positives are scarce or the class prior is unknown.

The ImPULSeS Framework

The core innovation of ImPULSeS is a two-step decoupled learning process that separates feature representation from classification. This approach reduces the complexity of the learning task, preventing the model from collapsing toward negative predictions in imbalanced settings.

The ImPULSeS architecture: Step 1 involves unsupervised pre-training with a debiased contrastive loss, followed by Step 2, where a linear classifier is trained on frozen features using an imbalanced non-negative PU loss.
  1. Step 1: Unsupervised Pre-training: The model first learns data representations using a Debiased Contrastive Loss on the entire dataset without using labels. By clustering semantically similar images and pushing dissimilar ones apart, the encoder $f(\cdot)$ learns robust features. The "debiased" aspect is vital, as it accounts for the high probability that two unlabeled images might belong to the same latent positive class.
  2. Step 2: Linear Classifier Training: The encoder is frozen, and a simple linear classifier $g(\cdot)$ is trained on these high-quality features. This stage utilizes an imbalanced non-negative PU (imb-nnPU) loss, which re-weights the few labeled positives to ensure they have an equal "vote" against the estimated negatives in the unlabeled pool.

Robustness to Prior Misspecification

A significant hurdle in PU learning is the requirement of knowing the exact class prior $\pi$. Most existing methods suffer drastic performance drops if this prior is incorrectly estimated. ImPULSeS demonstrates remarkable robustness to such misspecifications. Because the feature space is learned in a self-supervised manner, the subsequent classification task becomes much more stable.

Comparison of AUC performance over training epochs between the baseline imbnnPU (left) and the proposed debiased+imbnnPU (right) across various factor_prior values. The proposed method shows significantly higher stability and performance regardless of prior estimation.

As shown in the experimental results, while standard methods fluctuate wildly based on the assumed prior, ImPULSeS maintains high AUC scores across a wide range of prior factors. This makes the framework a "plug-and-play" solution for real-world scenarios where the true distribution of the data is unknown.

Key Results and Real-world Impact

The framework was rigorously tested on CIFAR-10, CIFAR-100, and a real-world clinical Glaucoma Dataset. Key findings include:

  • Significant Error Reduction: On CIFAR-10, ImPULSeS achieved 95.3% accuracy, effectively halving the error rate of previous state-of-the-art methods (86.5%).
  • Label Efficiency: The model outperformed competitors while using five times fewer labeled positive examples.
  • Clinical Utility: On the Glaucoma dataset—a challenging "small data" task with only 163 labeled positives—ImPULSeS achieved an F1-score of 68.27, whereas standard contrastive methods struggled with the inherent PU imbalance.

Conclusion

ImPULSeS represents a significant step forward in making PU learning practical for imbalanced, real-world datasets. By shifting the burden of feature learning to an unsupervised pre-training phase and utilizing a robust linear classifier, the framework achieves state-of-the-art performance with minimal labeled data and high resilience to unknown class distributions.

Summary updated

BibTeX
@misc{dorigatti2022robust,
  author = {Emilio Dorigatti and Jonas Schweisthal and Bernd Bischl and Mina Rezaei},
  title = {{Robust and Efficient Imbalanced Positive-Unlabeled Learning with Self-supervision}},
  year = {2022},
  eprint = {2209.02459},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.02459},
}
Figure