Introduction
Standard machine learning typically requires labeled examples of both classes (Positive and Negative) to train an effective binary classifier. However, in many real-world scenarios—such as spam detection, disease identification, or land-cover classification—we might only have a set of confirmed positive examples and a large pool of unlabeled data. This paradigm is known as Positive-Unlabeled (PU) learning.
Most existing PU learning algorithms rely heavily on the SCAR (Selected Completely At Random) assumption. SCAR posits that the labeled positive samples are a fair, representative sample of the entire positive class. Unfortunately, in practice, this assumption is frequently violated due to:
- Adversarial Shift: In spam detection, malicious actors constantly change their tactics (shifting the positive class), while legitimate emails (the negative class) evolve much more slowly.
- Domain Shift: Training data might be collected from one geographic region, but the model must be deployed in another where the "positive" features look entirely different.
This paper tackles the arbitrary-positive, unlabeled (aPU) setting. In this scenario, the labeled positive data can be arbitrarily different from the target positive class, provided we have unlabeled data from both the source and target distributions.
Methodology
The core "aha moment" of this research is the concept of the Negative Anchor. The authors realize that you do not need representative positive data if you have a stable negative class. As long as the distribution of "normal" or "negative" samples remains consistent, any change in the overall unlabeled distribution must be due to the positive class shifting.
Building on this insight, the authors propose three main contributions to solve the aPU problem:
1. abs-PU (Absolute-Value Correction)
Standard PU learning often suffers from "overfitting" where the estimated risk becomes negative—a mathematical impossibility. Previous state-of-the-art methods (like nnPU) addressed this using a complex "max(0, x)" term and a "defitting" hyperparameter. The authors demonstrate that simply using the absolute value of the risk estimate acts as a natural penalty for implausible estimates. This simplifies optimization, eliminates a hyperparameter, and forces the model to spend more time optimizing the positive-labeled risk when the negative-risk estimate drops below zero.
2. Two-Step aPU Learning (PU2)
The authors introduce a practical two-step framework for handling arbitrary positive shift:
- Step 1: Train a probabilistic PU classifier on the source data to identify likely negative samples within the unlabeled set.
- Step 2: Use these identified "surrogate negatives" to train the final classifier on the target unlabeled data. This is done using either weighted-unlabeled, unlabeled (wUU) learning or a semi-supervised approach (aPNU).
3. PURR (Positive-Unlabeled Recursive Risk)
For a more unified approach, the authors developed PURR, a novel, single-step recursive risk estimator. It mathematically decomposes the test risk into terms that can be estimated solely from the available unlabeled sets and the biased positive set. If a risk cannot be estimated directly, it is recursively decomposed into a transformation of other estimable risks.
Experiments and Key Results
The researchers evaluated their methods on several benchmarks modified to simulate "positive shift," including image datasets (MNIST & CIFAR-10) with disjoint positive supports, text classification (20 Newsgroups), and real-world adversarial data (TREC Spam Datasets).
Superiority in Shifted Tasks: On datasets with partially or fully disjoint positive supports—where training positives look nothing like test positives—the proposed methods (PURR, PU2aPNU, and PU2wUU) statistically outperformed the previous state-of-the-art baseline (PUc) and standard PU learning (nnPU).
Adversarial Robustness: The TREC spam case study is particularly challenging because the "ham" (negative) emails also shift slightly between datasets, testing the limits of the "fixed negative" assumption. Despite this, the two-step PU2wUU method emerged as the top performer, proving the approach is robust even when its core assumption is slightly violated.
Stability: Across experiments, the abs-PU correction provided similar or better accuracy than nnPU while being notably easier to implement and tune.
Limitations and Future Work
While highly effective, the proposed methods do have limitations. Primarily, they rely on the negative class distribution being relatively stable; a massive shift in the negative class would likely break the estimators. Additionally, while the two-step methods are practical, the joint method (PURR) is harder to optimize because it involves three layers of risk decomposition, which can lead to noisier gradients.
Future work will focus on finding a "less restrictive yet statistically-sound" replacement for the fixed negative class assumption, aiming to make these models even more generalizable to volatile real-world environments.
Summary updated