Context. Many data sets list positives and nothing else: a curated database names the proteins that belong in it, and everything else mixes true negatives with positives nobody has labeled yet. Elkan and Noto show that if a positive's chance of being labeled does not depend on , a classifier trained to separate labeled from unlabeled is the right classifier up to one constant, the label frequency . Later unbiased risk estimators (du Plessis et al., 2014 and 2015) take the class prior and minimize any loss directly; with deep networks their training risk goes below zero, which no true risk can do, and the test risk climbs, so Kiryo et al. clip the offending term at zero. Under random labeling, PU learning reduces to one nuisance number, or equivalently the prior, a correction of the same kind as moving a classifier to a new base rate. And whenever an unbiased estimator subtracts one empirical term from another, a flexible model will fit the sampling error in the difference, and imposing the sign the population term must have is a simple correction.
Setting. Triples , with the indicator that a point was labeled, are drawn i.i.d. and only is recorded (the single-training-set scenario). Only positives are labeled, and labeling is selected completely at random (SCAR):equivalently . The nontraditional classifier is any probabilistic learner fit to labeled versus unlabeled; the target is . In the case-control scenario, used by Kiryo et al. with given, labeled positives and an unlabeled background sample are drawn separately, so the labeled share is a design choice and the prevalence is not identified.
SCAR makes labeling a constant thinning of the positives, so is the posterior. Every positive survives into the labeled set with probability and negatives never do, soSo ranking by is ranking by the posterior, and a team that only needs a ranking never needs . Also everywhere: even where a point is certainly positive, a fraction of its copies stay unlabeled, which is why labeled-versus-unlabeled classifiers look badly calibrated. And the prevalence is , which exceeds the labeled share , as it must.
Weighting turns any weighted learner into a PU learner. Instead of rescaling , give the learner the data it would have seen with labels, in expectation. A labeled point enters as a positive with weight 1. An unlabeled point enters twice, as a positive with weight and as a negative with weight , where Bayes on the event givesThe pair contributes the conditional mean of the loss given and , so any empirical risk becomes an estimate of the fully labeled risk given and , and any learner that takes per-example weights runs unchanged, each weight coming from a formula where the earlier biased SVM searched a grid.
C is read off held-out labeled points, and the recommended estimator is exact only for separable classes. The paper recommends , the mean of over the labeled points of a validation set, for its low variance, arguing that there because . That argument substitutes the realized label for the posterior. Since labeled points follow the positive distribution,with equality only for separable classes (the reading of Bekker and Davis). A low inflates , the weights and the prevalence. My check with exact , positives , negatives , prevalence 0.3 and : at , and the prevalence estimate ; at , 0.475 and 0.316; at the bias is gone. The alternative is exact when some region is purely positive, but rests on one point. All of this treats as a probability, so it holds only as far as the scores are calibrated; logistic regression stays roughly calibrated even when misspecified, and the paper passes SVM scores through Platt scaling.
On one real task both methods nearly match full supervision, far more cheaply than the biased SVM. On transporter proteins with linear SVMs, F1 is 0.947 fully supervised, 0.931 for rescaled , 0.942 weighted and 0.928 for the biased SVM, which needs 621 SVM fits per fold against 1 or 2. One data set and one learner show that the methods work and are cheap; they do not show how the methods rank in general.
Setting for the risk estimator. Now ( points) and ( points) are independent, with known. With and , the identity removes the missing negatives, . Sample averages give the unbiased PU (uPU) estimator, and clipping the rewritten term gives non-negative PU (nnPU):The theory assumes and the loss are bounded (by for the loss) and .
A flexible model makes the unbiased risk negative by learning instead of . The term estimates , but its two pieces average over different points. A model that can fit individual points scores the labeled positives high, which raises , and every unlabeled point low, positives included, which lowers . With the sigmoid loss this reaches the floor , and with an unbounded loss there is no floor. In the population this solution is impossible; on a sample it is the minimizer, and uPU's guarantees, which need a Rademacher complexity that decays with , cannot exclude it. On MNIST even versus odd with 100 labeled positives, a linear model trains and tests fine, while a one-hidden-layer MLP drives the uPU training risk below zero as its test risk rises above that of fully supervised training on 100 positives and 50 negatives. A negative value of the term is pure sampling error, so clipping it is justified.
For a fixed classifier, clipping costs an exponentially small bias. The estimators differ only on the event where , where the clip adds at most ; is a lower-tail event for a bounded-difference statistic with mean at least , so McDiarmid givesand at the CLT rate. The clip matters for the trained classifier, chosen from the data exactly where the term would have gone negative.
Clipping lowers the MSE by at least three times the squared amount clipped. Write and , so and . Expanding both squared errors, everything off cancels:Since on , the gain is at least once there. A symmetric loss, , rewrites the error of as , which is at most when and the unlabeled average is within of its mean. The assumption is used here: with many unlabeled points the unlabeled average is accurate, so a negative comes from the positive sample, and correcting it moves the estimate toward .
The estimation-error bound matches uPU's in order, and the gap in constants is a proof artifact. The clipped risk is not an average of per-point losses, so symmetrization does not apply directly. The inequality splits a difference of clipped risks into three differences of ordinary partial risks, each handled by symmetrization and Talagrand contraction for an -Lipschitz loss. Contraction with the absolute value inside the supremum costs a factor 2. For and over a class closed under negation, with probability at least ,with , and the bound of Step 6 with from the infimum over the class, against uPU's 8 and 4 with no term. The authors say plainly that the difference comes from proof technique and says nothing about which minimizer is better. For deep networks, whose Rademacher complexity does not decay at these sample sizes, both bounds are vacuous, so the case for nnPU rests on the experiments.
On a mini-batch where the term goes negative, the algorithm steps to raise it, and this fixes deep PU training. Clipping alone gives zero gradient on a batch where it binds, leaving the model where it overfit. Algorithm 1 computes on each mini-batch; if it takes an ordinary step on , and otherwise a step of size along , which raises and undoes the memorization on that batch. With , and 1,000 labeled positives, uPU overfits on all four data sets (MNIST, epsilon, 20News, CIFAR-10) and nnPU does not, beating fully supervised learning with negatives on three and tying on 20News. With misspecified from to , underestimates hurt more than overestimates; the authors explain that a larger prior makes the clip bind more often, moving the method further from the overfitting uPU at the cost of more bias.
Consequences and limits. nnPU became the default PU objective for deep models, and both methods rest on SCAR. Under selected-at-random labeling the propensity varies and the data identify only the productso dividing by a constant can reverse rankings, pushing rarely labeled positives below often labeled ones. For nnPU the labeled sample then comes from , the rewrite subtracts the wrong positive mass, and the estimator is biased however large the samples. Without a further assumption neither the posterior nor the prior is identified (Bekker and Davis), and even under SCAR the prior needs something like irreducibility or a purely positive region. Payment fraud puts SCAR in question: chargebacks are the labeled positives, unreported fraud sits in the unlabeled pool, reporting rates plausibly vary with amount, card type and how closely the cardholder reads statements, and recent transactions have had less time to be reported. Only the age effect is tractable, because the delays of chargebacks on older, matured transactions show how the propensity grows with age relative to the eventual reporting rate. Amount and card type are recorded, but PU data alone do not say how reporting varies with them, and attentiveness is not recorded at all, the case where the data cannot separate fraud that is rare from fraud that goes unreported. The prior nnPU needs is the true fraud rate including what is never reported, which no one observes, and the misspecification results suggest erring high. A flexible scorer fit to the unbiased objective will memorize the labeled frauds, and the batch quantity going negative in training is a direct warning that it has.
Terms
- SCAR
- for all ; labeling is a constant thinning of the positives
- , label frequency
- ; the one number the PU problem reduces to
- nontraditional classifier, labeled vs unlabeled; estimates
- The lemma
- under SCAR, ; same ranking as
- mean of on held-out labeled points; equals , so exact only for separable classes
- ; weight of an unlabeled point as a positive
- SAR, propensity
- varies with ; data identify only
- Key rewrite
- , the negative-class risk without negatives
- uPU
- ; unbiased, can go negative
- nnPU
- ; biased upward, consistent
Quiz
- A team only needs to rank unlabeled records by how likely they are to be positive. Under SCAR, why can they use the labeled-versus-unlabeled classifier without estimating ?Dividing by a positive constant is monotone, so ranking by is ranking by . Only the scale of is wrong (it never exceeds ), which matters for thresholds and probabilities.
- Labels follow a propensity that is high in region A and low in region B. What goes wrong if one applies anyway?Under selected-at-random labeling the data identify only the product . A region whose positives are rarely labeled looks negative, and no constant rescaling can undo a factor that varies with .
- Why is clipping at zero a principled change and not an arbitrary penalty?In the population the term is the negative-class risk times , which cannot be negative. The clip only acts on samples in , whose probability is exponentially small for a fixed .
- When the supplied prior is wrong, overestimating hurt nnPU less than underestimating it. What is the authors' explanation?With the subtracted term is larger, so is hit more often and the clip regularizes more. That adds bias but counters the overfitting that uPU shows on every data set.
Sources
- Charles Elkan and Keith Noto. Learning Classifiers from Only Positive and Unlabeled Data. KDD, 2008.
- Ryuichi Kiryo, Gang Niu, Marthinus C. du Plessis, and Masashi Sugiyama. Positive-Unlabeled Learning with Non-Negative Risk Estimator. NeurIPS, 2017.
- Marthinus C. du Plessis, Gang Niu, and Masashi Sugiyama. Analysis of Learning from Positive and Unlabeled Data. NeurIPS, 2014.
- Marthinus Du Plessis, Gang Niu, and Masashi Sugiyama. Convex Formulation for Learning from Positive and Unlabeled Data. ICML, 2015.