Abstract
Evaluating machine learning models typically requires a fully labeled test set. However, in many real-world scenarios, such as medical diagnosis or gene discovery, we only possess confirmed positives and a large volume of unlabeled data. This paper presents a theoretical framework for estimating standard performance metrics, including ROC and Precision-Recall (PR) curves, using only positive and unlabeled (PU) data. The approach leverages the rank distribution of known positives to estimate contingency tables and provides theoretical bounds for performance metrics.
Introduction
In fields like medical diagnosis, "ground truth" is often one-sided. We may identify a set of patients who definitely have a disease (positives), but the remaining population (unlabeled) could be healthy or simply undiagnosed. Standard evaluation metrics like Accuracy, F1-score, or AUC require full labels to construct a confusion matrix. A common but flawed workaround is to treat all unlabeled examples as negatives. This "naive" approach is dangerous; it doesn't just underestimate performance but can lead to incorrect model selection because the introduced bias is non-uniform across different classifiers.
Methodology
The proposed method estimates contingency tables under the assumption that known positives are a random sample of all positives in the dataset (the "Selected At Random" or SAR assumption).
- Rank CDFs: The model's output is treated as a ranking. The Cumulative Distribution Function (CDF) of the ranks of known positives is observed. Under the SAR assumption, this CDF mirrors the rank distribution of hidden positives in the unlabeled set.
- Estimating $\beta$: The core relies on $\beta$, the fraction of positives hidden within the unlabeled pool. If $\beta$ is known or estimated, one can calculate the expected number of true and false positives at any given rank.
- Theoretical Bounds: Rather than a point estimate, the paper calculates greatest-lower and least-upper bounds for the False Positive Rate (FPR). Bootstrapping on known positives creates confidence intervals for the rank CDF, which propagate into bounds for ROC and PR curves.
The Model Selection Trap
A critical insight is that the "best" model can change depending on the estimate of $\beta$. If two ROC curves cross, a naive evaluation (assuming $\beta=0$) might favor one model, while the true performance at the actual $\beta$ favors another.
Key Results
Experiments on simulated data and the covtype benchmark dataset demonstrate that the estimated bounds successfully contain the true ROC and PR curves.
- Convergence: As the number of known positives ($|P_L|$) increases, the gap between the upper and lower bounds narrows significantly. Even with relatively few known positives (e.g., 100–1,000 in a dataset of 100,000), the estimates remain useful for model comparison.
- Metric Sensitivity: The authors find that ROC curves are more robust to errors in estimating $\beta$. Precision-Recall (PR) curves, however, are highly sensitive to class balance, meaning a small error in $\beta$ can lead to much wider confidence bounds in PR space.
Limitations and Future Work
The method hinges on the SAR assumption. If known positives are "easy" cases and hidden positives are "hard" cases, the rank distributions will differ, leading to biased results. Extending this work to handle "biased" labeling is a clear next step. Furthermore, while the paper focuses on PU data, incorporating even a few "known negatives" can further tighten the bounds, suggesting a hybrid semi-supervised evaluation approach.
Conclusion
This framework provides a robust way to evaluate classifiers in PU settings, offering a significant improvement over naive labeling strategies and providing researchers with tools to quantify uncertainty in their performance metrics.
Summary updated