Abstract: Given only positive (P) and unlabeled (U) data, PU learning can train a binary classifier without any negative data. It has two building blocks: PU class-prior estimation (CPE) and PU classification; the latter has been well studied while the former has received less attention. Hitherto, the distributional-assumption-free CPE methods rely on a critical assumption that the support of the positive data distribution cannot be contained in the support of the negative data distribution. If this is violated, those CPE methods will systematically overestimate the class prior; it is even worse that we cannot verify the assumption based on the data. In this paper, we rethink CPE for PU learning—can we remove the assumption to make CPE always valid? We show an affirmative answer by proposing Regrouping CPE (ReCPE) that builds an auxiliary probability distribution such that the support of the positive data distribution is never contained in the support of the negative data distribution. ReCPE can work with any CPE method by treating it as the base method. Theoretically, ReCPE does not affect its base if the assumption already holds for the original probability distribution; otherwise, it reduces the positive bias of its base. Empirically, ReCPE improves all state-of-the-art CPE methods on various datasets, implying that the assumption has indeed been violated here.
Introduction
Positive-Unlabeled (PU) learning is a paradigm where a binary classifier is trained using only positive (P) and unlabeled (U) data. A critical component of PU learning is Class-Prior Estimation (CPE), which determines the proportion of positive samples within the unlabeled pool. Most existing distribution-free CPE methods rely on the "irreducibility assumption"—the requirement that the support of the positive distribution is not entirely contained within the support of the negative distribution. In practice, especially with diverse negative classes, this assumption is often violated, leading to a systematic overestimation of the class prior.
The Challenge of Irreducibility
The irreducibility assumption posits that there exists a region in the feature space where only positive samples reside. However, in real-world scenarios, the negative class can be so broad that it overlaps the positive class entirely. When this occurs, standard CPE methods fail because they cannot distinguish between a high class prior and a complete overlap of distributions. Crucially, this violation cannot be verified from the data alone, making existing methods unreliable in many practical applications.
Regrouping CPE (ReCPE)
To address this, we propose Regrouping CPE (ReCPE), a meta-method that transforms the data distribution to satisfy the irreducibility assumption. Instead of modifying the base CPE algorithms, ReCPE creates an auxiliary distribution where the positive data is guaranteed to have a "pure" region.
The ReCPE algorithm follows a multi-step process:
- Initial Classification: A classifier is trained to distinguish between the confirmed Positive set and the Unlabeled set (treating the unlabeled set as "negative" for this step).
- Identification of "Super-Positives": Unlabeled samples that most closely resemble the positive set (based on the classifier's scores) are identified.
- Regrouping: A small fraction (typically 10%) of these high-confidence unlabeled samples is "copied" into the Positive set.
- Auxiliary Estimation: This creates a new positive distribution that is guaranteed to have a region not overlapping with the negatives.
- Base Method Execution: A standard CPE method (e.g., AlphaMax, KM2) is applied to this regrouped data, and the resulting estimate is analytically mapped back to the original prior.
Empirical Evaluation
ReCPE was evaluated on both synthetic Gaussian datasets and nine real-world benchmarks from the UCI repository. The results demonstrate that ReCPE acts as a universal performance booster. It improved the accuracy of all seven state-of-the-art CPE methods tested, including AlphaMax, DPL, EN, and KM2. Notably, "Regrouping AlphaMax" (ReAM) consistently achieved the lowest average estimation error across diverse datasets. For instance, on the shuttle dataset, ReCPE reduced the estimation error of the DPL method by nearly 50%.
Conclusion
ReCPE provides a robust framework for class-prior estimation by bypassing the restrictive irreducibility assumption. By regrouping data to create an auxiliary distribution, it ensures that base CPE methods can operate effectively even when positive and negative distributions overlap significantly. This approach not only reduces bias theoretically but also demonstrates superior empirical performance across a wide range of real-world tasks.
Summary updated