TL;DR
Positive-Unlabeled (PU) learning algorithms are frequently evaluated using unrealistic assumptions, such as relying on negative data for validation or ignoring distribution shifts between different problem settings. This paper introduces PUBench, the first unified benchmark for PU learning, along with realistic model selection criteria and a simple calibration technique to ensure fair, negative-free evaluation.
What Problem Does This Paper Address?
In many real-world scenarios—like anomaly detection, recommender systems, or medical diagnosis—it is easy to collect positive data (e.g., confirmed diseases, user purchases) and unlabeled data, but nearly impossible to verify negative data. This is the domain of Positive-Unlabeled (PU) learning.
However, the field suffers from a major evaluation crisis. First, many existing PU algorithms "cheat" during evaluation by using a validation set that contains negative data to perform hyperparameter tuning or early stopping. This completely violates the core premise of PU learning, where negative data is inaccessible. Second, researchers often mix up the two main data-generation settings: the One-Sample (OS) setting (where positive data is a revealed subset of a single unlabeled pool) and the Two-Sample (TS) setting (where positive and unlabeled data are collected independently). Evaluating TS algorithms in OS environments introduces a hidden Internal Label Shift (ILS) that unfairly tanks their performance, leading to flawed conclusions about which algorithms actually perform best.
Methods
To resolve these issues, the authors introduce three core contributions:
- PUBench: A standardized benchmarking framework that unifies data generation, training, and evaluation protocols across 17 representative PU learning algorithms.
- Negative-Free Model Selection: The authors formalize proxy metrics—Proxy Accuracy (PA) and Proxy AUC (PAUC)—that evaluate models using only positive and unlabeled validation data. They provide theoretical proofs showing that maximizing these proxies successfully optimizes true accuracy and AUC.
- ILS Calibration (Algorithm 1): To fix the unfair performance drop of Two-Sample algorithms tested in One-Sample environments, the authors introduce a dead-simple calibration trick. By augmenting the unlabeled training mini-batch with the positive mini-batch ($\mathcal{D}_U \cup \mathcal{D}_P$) when computing the loss, they mathematically eliminate the label shift bias, making the training set marginally unbiased.
Datasets
The benchmark evaluates the algorithms across four standard datasets adapted for PU learning:
- Image Datasets: CIFAR-10 and ImageNette (a curated 10-class subset of ImageNet).
- Tabular Datasets: USPS (digit recognition) and Letter (character recognition) from the UCI Machine Learning Repository.
For each dataset, the authors synthesized PU versions using two different label configurations (Case 1 and Case 2) and varied the positive class ratio from 10% to 50%.
Key Insights and Ideas
- The Validation Paradox: If an engineer has access to negative data for validation, they don't actually need pure PU learning; they could just use standard semi-supervised or supervised learning techniques. True PU evaluation must be negative-free to be practically useful.
- The Hidden Shift: The distribution of unlabeled data changes drastically between settings. In the OS setting, because positive instances are actively sampled out to form the positive set, the remaining unlabeled pool becomes depleted of positives, shifting the class prior.
- Data Augmentation as Calibration: It is highly elegant that a problem as mathematically disruptive as Internal Label Shift can be solved simply by feeding positive samples back into the unlabeled pool during the loss calculation step of Two-Sample algorithms.
Key Results
- Calibration Works: Without calibration, TS algorithms perform significantly worse in OS evaluation protocols, and their performance paradoxically drops as more positive data is provided. Applying the proposed calibration method completely reverses this trend, dramatically boosting accuracy.
- Proxy Metrics are Effective: The experiments show that hyperparameter tuning using Proxy AUC (PAUC) actually yields better test AUC scores than using the unrealistic Oracle Accuracy (OA) metric that relies on true negative labels.
- No Single Winner: The benchmark reveals that no single PU algorithm dominates across all datasets and metrics. Some early, simpler methods achieve highly competitive results depending on the task, proving the necessity of a case-by-case evaluation using a unified benchmark like PUBench.
Limitations and Future Work
The primary limitation acknowledged by the authors is their reliance on relatively small, synthetic benchmark datasets (like CIFAR-10 and USPS) where the positive data is selected completely at random. In real-world scenarios, the selection mechanism is often biased (e.g., easier-to-classify positive examples are more likely to be labeled). The authors note that future work should focus on expanding the benchmark to large-scale, naturally occurring PU datasets with complex, non-uniform labeling biases.
Summary updated