Abstract
Positive and Unlabeled (PU) learning is a common machine learning scenario where only a subset of positive instances is labeled, while the rest of the data remains unlabeled. Most existing PU learning algorithms rely on the Selected Completely At Random (SCAR) assumption, which posits that the labeled instances are a uniform random sample of all positives. However, in real-world applications like medical diagnosis, labeling is often biased by the attributes of the data. This paper introduces the Selected At Random (SAR) framework, which accounts for attribute-dependent selection bias. We propose a propensity-weighted risk estimator and a SAR-EM algorithm to jointly learn a classifier and a propensity model. Our experiments across eight real-world datasets demonstrate that the SAR framework significantly outperforms SCAR-based methods when selection bias is present.
Introduction
In many practical domains, obtaining fully labeled datasets is prohibitively expensive or impossible. Instead, we often encounter Positive and Unlabeled (PU) data. For instance, in Electronic Health Records (EHR), we know which patients have been diagnosed with a specific condition (Positive), but the remaining patients (Unlabeled) are a mix of healthy individuals and those who are undiagnosed.
The traditional approach to this problem assumes the Selected Completely At Random (SCAR) mechanism. SCAR assumes that the probability of a positive instance being labeled is constant across the entire feature space. In reality, this assumption is frequently violated. A patient with severe, visible symptoms is far more likely to be diagnosed than an asymptomatic patient. This systematic bias—where the labeling probability depends on the instance's features—leads to poor performance in standard PU algorithms. This paper addresses this gap by formalizing the Selected At Random (SAR) assumption and providing a theoretically grounded framework for learning under these conditions.
The SAR Framework and Methodology
The authors bridge the gap between PU learning and causal inference by introducing the Propensity Score ($e(x)$), defined as the probability that a positive instance with attributes $x$ will be labeled: $e(x) = P(s=1 | y=1, x)$.
1. Propensity-Weighted Estimator
If the propensity scores are known, the authors prove that an unbiased risk estimator can be constructed by reweighting the observed data. The core insight is that for every labeled example with a propensity score $e_i$, there are an expected $1/e_i$ positive examples in the underlying distribution. By assigning a weight of $1/e(x)$ to labeled positives and adjusting the contribution of the unlabeled set, the algorithm can effectively "undo" the selection bias.
2. The SAR-EM Algorithm
In practice, the true propensity scores are unknown. To solve this, the authors propose an Expectation-Maximization (EM) approach. The SAR-EM algorithm treats the true class labels of the unlabeled data as latent variables and iteratively optimizes two components:
- The Classifier: A model trained to predict the actual class $y$.
- The Propensity Model: A model trained to estimate the labeling probability $e(x)$.
3. Identifiability and Constraints
A challenge in SAR learning is identifiability: distinguishing between an area of the feature space that is "rarely positive" versus one that is "rarely labeled." To resolve this, the authors introduce a dimensionality constraint: the propensity score is assumed to depend on a subset of the attributes, whereas the classifier uses the full feature set. This structural assumption allows the EM algorithm to converge on a meaningful separation between the class distribution and the labeling mechanism.
Experimental Setup
The framework was evaluated on eight diverse datasets, including text (20 Newsgroups), images (Image Segmentation), and various tabular/medical datasets (Adult, Breast Cancer, Diabetes, etc.). Since these datasets were originally fully labeled, the authors simulated PU scenarios by injecting artificial selection biases. They applied SAR labeling functions based on specific attributes to test how effectively the algorithms could recover the true underlying distributions from biased observations.
Key Results and Insights
The proposed SAR-EM method consistently outperformed state-of-the-art SCAR-based methods, such as KM2 and TIcE, as well as naive baselines.
- Predictive Accuracy: On data with SAR bias, SAR-EM achieved significantly higher ROC-AUC and lower Mean Squared Error (MSE). While SCAR methods struggled to account for the skewed distribution of labeled examples, SAR-EM successfully adjusted its decision boundaries.
- Propensity Recovery: The algorithm demonstrated a remarkable ability to "recover" the hidden propensity function. In many cases, the MSE for the estimated propensity scores approached zero, indicating that the EM process correctly identified the labeling bias.
- Robustness: The performance gains were consistent across different levels of bias complexity, whether the labeling depended on two attributes or four.
Discussion and Limitations
The paper elegantly frames PU learning within the broader taxonomy of missing data (MCAR, MAR, and MNAR). By showing that the SAR assumption provides a tractable middle ground similar to "Missing At Random," the authors provide a new path for PU research.
However, the method relies on the user's ability to identify which features influence the labeling process. If the propensity score depends on the exact same complex interactions as the class itself, the EM algorithm may struggle to distinguish the two. Furthermore, the authors note that Selected Not At Random (SNAR) mechanisms—where the labeling probability depends directly on the "positivity" of the instance (e.g., a more severe case is more likely to be labeled regardless of other features)—remain a challenging frontier for future work.
Conclusion
This work moves PU learning beyond the restrictive SCAR assumption, offering a robust framework for real-world data where labeling is inherently biased. By integrating propensity scoring and EM-based joint learning, the SAR framework provides a more accurate and theoretically sound approach to learning from positive and unlabeled data.
Summary updated