Balancing Positive and Negative Classification Error Rates in Positive-Unlabeled Learning

Ximing Li, Yuanchao Dai, Bing Wang, Changchun Li, Jianfeng Qu, Renchu GuanNeurIPS 2025

This paper addresses a persistent headache in Positive-Unlabeled (PU) learning: the tendency of models to become "too good" at identifying negative samples at the expense of the positive ones. The authors introduce DC-PU (Dual-Constrained PU), a risk estimator designed to force a balance between positive and negative classification error rates.

TL;DR

Standard PU learning algorithms often suffer from imbalanced error rates because their internal risk estimators over-optimize for the negative class. DC-PU solves this by introducing dual constraints—a dynamic lower bound and an explicit equality constraint—ensuring the model treats both classes with equal importance. This leads to higher accuracy and significantly more stable training.

What Problem Does This Paper Address?

In many real-world scenarios, like medical diagnosis or fraud detection, we have a set of confirmed "positive" cases (e.g., patients with a disease) and a massive pile of "unlabeled" data (everyone else). We don't have confirmed "negative" cases. This setup is known as Positive-Unlabeled (PU) learning.

The gold standard for this has been nnPU (non-negative PU). Because the math behind PU learning can sometimes result in "negative risk" (which is physically impossible), nnPU forces the estimated risk of the negative class to be at least zero.

However, the authors observed a critical flaw: in practice, this negative risk estimator often hits exactly zero. When this happens, the model "over-plays" the negative class. It becomes hyper-sensitive to negatives, leading to a massive gap between the False Negative Rate (FNR) and the False Positive Rate (FPR). Essentially, the model becomes biased, and its performance often crashes or fluctuates wildly during training.

Methods: The Dual-Constrained Approach

The authors propose DC-PU, which replaces the simple "non-negativity" constraint with two more sophisticated "Dual Constraints":

  1. The Weak Constraint (Dynamic Lower Bound): Instead of saying the negative risk must be $\ge 0$, they argue it should be lower-bounded by the positive-class risk. They use an exponential moving average to track the positive risk and ensure the negative risk doesn't drop below it.
  2. The Strong Constraint (Equality): They incorporate an explicit constraint requiring the positive and negative empirical risks to be equal. This directly targets the "imbalance" problem.

To make this optimization tractable for deep learning, they employ the Augmented Lagrange Multiplier framework. This transforms the constrained optimization problem into a loss function with a penalty term that "punishes" the model if the risks start to diverge.

Key Insights and Results

The researchers evaluated DC-PU on five benchmarks, including standard image recognition datasets (CIFAR-10, F-MNIST) partitioned into binary tasks, and a real-world Alzheimer's medical dataset.

  • The "Zero" Trap: The paper highlights that the non-negativity constraint in previous methods is too loose. By allowing the negative risk to approach zero, we inadvertently tell the model that errors on the negative class are "cheaper" than errors on the positive class.
  • Stability is a Feature: Older methods like uPU often show a "U-shaped" performance curve, peaking early and then crashing due to overfitting. DC-PU maintains stable, high performance throughout the entire training process by keeping the FPR and FNR in check.
Training dynamics showing FPR and FNR across epochs for various datasets
  • Lower Error Gap: The authors measured the "GAP" ($|FNR - FPR|$). DC-PU consistently achieved the lowest GAP across all datasets, often reducing it drastically compared to nnPU.
  • Superior Accuracy: DC-PU outperformed classical risk estimators (uPU, nnPU, abs-PU, etc.) in both Micro-F1 and Macro-F1 scores, proving that balancing the error rates directly translates to better overall predictive performance.
Performance comparison table showing DC-PU achieving the lowest GAP and highest F1 scores

Limitations and Future Work

  • The SCAR Assumption: Like most PU learning research, this work assumes data is "Selected Completely At Random" (SCAR). In many real-world cases, the labeled positives might be biased (e.g., only the most obvious cases are labeled), which could violate this assumption.
  • Binary Focus: The current framework is strictly for binary classification. Extending these dual constraints to multi-class or multi-label PU learning remains an open challenge.
  • Hyperparameter Sensitivity: While the authors found the method relatively robust, the penalty parameters and moving average coefficients still require tuning to find the sweet spot between constraint enforcement and optimization stability.

Summary updated

BibTeX
@inproceedings{li2025balancing,
  author = {Ximing Li and Yuanchao Dai and Bing Wang and Changchun Li and Jianfeng Qu and Renchu Guan},
  title = {{Balancing Positive and Negative Classification Error Rates in Positive-Unlabeled Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=DTq0CLhN4A},
}
Figure