In many real-world classification tasks, we lack a fully labeled dataset. Instead, we often have a small set of confirmed Positive examples and a large pool of Unlabeled data that contains both hidden positives and negatives. This is the Positive-Unlabeled (PU) learning problem.
Traditionally, solving PU learning required knowing the "class prior"—the exact proportion of positive samples hidden within the unlabeled pool. However, recent research has shifted toward prior-independent methods that train accurate classifiers without ever needing to estimate this elusive number.
The Bottleneck of the Class Prior
Standard PU learning methods, such as unbiased PU (uPU) or non-negative PU (nnPU), treat the unlabeled set as a noisy version of the negative class. To correct for the "noise" (the hidden positives), these models use the class prior ($\pi$) to re-weight the loss function.
The problem is that in the real world, $\pi$ is almost always unknown. If your estimate of $\pi$ is even slightly off, the model’s performance collapses. Furthermore, traditional methods assume that the labeled positives are a uniform random sample of all positives. In reality, labeled data often suffers from selection bias, where only the "easiest" or most obvious positive examples are labeled.
The Variational Solution: Distribution Matching
A breakthrough in bypassing the class prior came from the development of Variational PU (VPU) learning. Instead of trying to weight a loss function based on a fixed ratio, researchers like Fangqing Liu, Yin Wang, and Hao Wu reframed the problem as distribution matching.
In A Variational Approach for Learning from Positive and Unlabeled Data, the authors propose minimizing the Kullback-Leibler (KL) divergence between two distributions:
- The distribution of the known Positive samples.
- An approximation of the positive distribution derived from the Unlabeled set, weighted by the model's own current predictions.
By using a variational upper bound, the model can optimize the classifier directly using only empirical averages from the data. This approach is naturally robust to selection bias because it focuses on matching the underlying distributions rather than counting samples. Qianqiao Liang and colleagues extended this in Positive Distribution Pollution: Rethinking Positive Unlabeled Learning from a Unified Perspective by using discrete normalizing flows to better handle the "pollution" caused by biased labeling.
Adversarial Selection
Another way to ignore the class prior is to treat PU learning as a game. In Predictive Adversarial Learning from Positive and Unlabeled Data, Wenpeng Hu and Bing Liu introduced Predictive Adversarial Networks (PAN).
In this framework, a classifier acts as a "generator" that attempts to identify which samples in the unlabeled pool are most likely to be positive. A discriminator then tries to distinguish these "selected" unlabeled positives from the true labeled positives. As the two compete, the classifier becomes highly adept at picking out hidden positives from the noise, achieving state-of-the-art results without needing to know the ratio of positives to negatives beforehand.
Leveraging Training Dynamics and Consistency
If we don't know the class prior, we can look at how the data behaves during the training process itself.
Predictive Trends: Xinrui Wang and Shaoyuan Li argue in Beyond Myopia: Learning from Positive and Unlabeled Data through Holistic Predictive Trends that we shouldn't just look at a model's final prediction. Instead, we should look at the trend of predictions over time. Hidden positives and true negatives in the unlabeled set often exhibit different "score paths" during training. By calculating a "trend score," the model can distinguish between the two classes based on their natural learning dynamics.
Consistency Augmentation: Tong Wei and Yu-feng Li introduced MixPUL in MixPUL: Consistency-based Augmentation for Positive and Unlabeled Learning. This method uses Mixup—a data augmentation technique that creates linear interpolations between samples—combined with a specialized margin loss. By enforcing consistency across these interpolations, the model learns a smoother decision boundary that is less sensitive to the lack of explicit negative labels or a known class prior.
Why It Works: The Shift to Robustness
The common thread across these works is a move away from risk estimation (which requires $\pi$) toward representation and distribution matching.
By treating the unlabeled set as a structural resource rather than just a source of noisy labels, these methods—whether variational, adversarial, or trend-based—allow machine learning models to operate in "wild" environments. As Zhangchi Zhu demonstrates with Robust-PU in Robust Positive-Unlabeled Learning via Noise Negative Sample Self-correction, identifying "easy" negatives and gradually correcting the "noisy" hidden positives allows for a curriculum that naturally adapts to the data's true distribution, making the class prior a relic of the past.