Mixture Proportion Estimation and PU Learning:A Modern Approach

Saurabh Garg, Yifan Wu, Alex Smola, Sivaraman Balakrishnan, Zachary Chase Lipton

The Challenge of Positive and Unlabeled Learning

Imagine you are a doctor trying to identify a new disease. You have a list of patients confirmed to have it (positive examples), and a massive database of general medical records (unlabeled examples), which contains a mix of healthy people and undiagnosed sick people. How do you train a model to distinguish sick from healthy patients without any confirmed negative examples?

This is the classic Positive and Unlabeled (PU) learning problem. It is typically broken down into two subtasks:

  1. Mixture Proportion Estimation (MPE): Estimating $\alpha$, the fraction of hidden positive examples within the unlabeled dataset.
  2. PU-learning: Training the actual positive-versus-negative classifier using the positive data, the unlabeled data, and the estimate of $\alpha$.

Historically, methods for MPE and PU learning fail in high-dimensional spaces like images or text. Modern overparameterized deep learning models are so powerful that if you tell them to treat the unlabeled data as "negative," they will simply memorize the hidden positive examples as negatives, ruining the model's ability to generalize. Previous state-of-the-art methods try to fix this with complex heuristics, but they often require "oracle early stopping"—meaning they rely on a validation set of labeled negatives to know when to stop training, which defeats the entire premise of the PU learning setup.

A Three-Pronged Solution

To address these fundamental issues, the authors introduce a theoretically grounded method to estimate the fraction of positives in unlabeled data and a novel training objective that discards likely positives during training.

They propose three interconnected techniques:

  1. Best Bin Estimation (BBE) for MPE: Instead of making heroic assumptions about the underlying data distribution, BBE relies on a simpler observation: if you train a basic Positive-vs-Unlabeled (PvU) classifier, it will generally score true positives higher than true negatives. BBE looks at the highest-scoring predictions (the "top bin") and finds a threshold that minimizes an upper confidence bound on the ratio of positive to unlabeled examples. If this top bin is mostly pure positives, BBE provides a mathematically consistent estimate of $\alpha$.
  2. Conditional Value Ignoring Risk (CVIR) for PU-learning: To prevent the neural network from memorizing unlabeled positives as negatives, CVIR dynamically intervenes during training. In every epoch, it ranks the unlabeled examples by their predicted probability of being positive. It then discards the top $\alpha$ fraction of these examples and trains the model on the remaining unlabeled data as if they were true negatives.
  3. (TED)$^n$ (Transform-Estimate-Discard): Because BBE needs a good classifier to estimate $\alpha$, and CVIR needs a good $\alpha$ to train the classifier, the authors combine them into an alternating loop. (TED)$^n$ iteratively updates the MPE estimate using BBE, and then refines the classifier using CVIR.
Best Bin Estimation and (TED)ⁿ training dynamics. Left: BBE finds a threshold to estimate the mixture proportion. Right: (TED)ⁿ maintains high accuracy over time, avoiding the overfitting seen in standard PvU learning.

Key Insights

  • The "Pure Positive Bin" Property: Prior theoretical work required strict conditions (like positive and negative data having completely disjoint support) to guarantee accurate MPE. The authors prove that you only need a "pure positive bin"—a small region in the input space where the classifier is highly confident and almost all examples are positive—to get strong statistical guarantees.
  • Memorization is the Enemy: Deep networks will confidently fit mislabeled data. By actively discarding the $\alpha$ fraction of unlabeled data that looks most "positive" during every epoch, the CVIR objective removes the model's incentive to overfit to the hidden positives.
  • Virtuous Cycles Beat Static Pipelines: Previous methods often estimated $\alpha$ once and then trained a classifier. By alternating between estimating $\alpha$ and updating the classifier, both representations improve each other. As the classifier gets better at separating the data, the top bin gets purer, making the $\alpha$ estimate more accurate, which in turn allows the classifier to discard the correct number of hidden positives.

Empirical Results

The authors simulated PU learning tasks by hiding negative labels in standard benchmark datasets, including Vision (CIFAR-10, MNIST) and Text (IMDb sentiment analysis using a fine-tuned BERT model).

  • Massive Reduction in MPE Error: On Binarized CIFAR using a ResNet, BBE achieved an absolute estimation error of just 0.026, compared to the next best baseline (DEDPUL) at 0.091.
  • State-of-the-art Classification: On the same Binarized CIFAR task, (TED)$^n$ achieved 82.7% accuracy, significantly outperforming the previous state-of-the-art (nnPU), which only reached 77.2%.
  • No More "Oracle" Tuning: Unlike baseline methods (like nnPU or DEDPUL) whose performance collapses if trained too long without an impossible-to-obtain validation set, (TED)$^n$ maintains its superior performance until convergence. It eliminates the need for "oracle early stopping."
Mixture proportion estimates over training epochs. (TED)ⁿ stably converges to the true MPE without requiring oracle early stopping, unlike baseline methods.

Limitations and Future Work

While highly effective, the (TED)$^n$ algorithm requires a "warm start" (initial training of a basic PvU classifier for a set number of epochs) to get off the ground. An untrained model's initial $\alpha$ estimate might be close to 1, which would cause it to erroneously discard all unlabeled data.

Furthermore, while the authors prove BBE works if a pure positive bin exists, they leave the theoretical investigation of exactly when and why off-the-shelf classifiers reliably produce this pure bin for future work. Finally, the authors suggest extending this framework to multiclass problems (e.g., a deployed $k$-way classifier encountering a novel $k+1$ class in the wild) to bridge the gap between PU learning and label shift adaptation.

Summary updated

BibTeX
@inproceedings{garg2021mixture,
  author = {Saurabh Garg and Yifan Wu and Alex Smola and Sivaraman Balakrishnan and Zachary Chase Lipton},
  title = {{Mixture Proportion Estimation and PU Learning:A Modern Approach}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=bJz3cFePTna},
}
Figure