This NeurIPS 2018 paper by Ishida et al. introduces a novel paradigm in machine learning: training a binary classifier using only positive data, provided that the data is accompanied by confidence scores.
The Core Problem
Standard binary classification requires both positive and negative examples. However, in many real-world scenarios, negative data is hard to come by. For instance:
- Market Research: A company has data on its own customers (positives) but lacks data on competitors' customers (negatives).
- Privacy Regulations: App developers may be legally required to delete the data of users who unsubscribe (negatives), leaving them with only active user data.
Existing solutions often fall short. One-Class Classification (e.g., One-Class SVM) is "descriptive"—it tries to cluster or wrap a boundary around the positive data. It struggles to "discriminate" between classes because it has no information about what a negative sample looks like, making hyperparameter tuning nearly impossible. Positive-Unlabeled (PU) learning exists but requires a large pool of unlabeled data and the estimation of a "class prior," which is notoriously difficult.
The authors propose Positive-Confidence (Pconf) classification, a framework that allows for training a discriminative binary classifier without any negative or unlabeled data. By leveraging "confidence" scores (the probability that a sample is positive), they derive a theoretically grounded objective function that achieves performance comparable to fully supervised learning.
Methods: The Mathematical Insight
The core contribution is a new Empirical Risk Minimization (ERM) framework. The authors prove a theorem showing that the standard classification risk $R(g)$—which normally requires an expectation over both positive and negative distributions—can be rewritten using only the expectation over the positive distribution $p(x|y=+1)$.
The resulting objective function for a classifier $g$ and loss function $\ell$ is:
$$\min_g \sum_{i=1}^n \left[ \ell(g(x_i)) + \frac{1 - r_i}{r_i} \ell(-g(x_i)) \right]$$
Where $r_i$ is the positive-confidence ($p(y=+1|x_i)$).
Why it Works
This formulation acts similarly to importance sampling. The term $\frac{1-r_i}{r_i}$ effectively weights the samples to "simulate" the missing negative distribution. Samples with low positive confidence are treated as "more likely to be negative," allowing the model to learn a decision boundary that pushes those points toward the negative class. The authors prove that this method is consistent (it converges to the optimal classifier as data increases) and provide an estimation error bound.
Key Insights and Ideas
- Confidence as a Bridge: Confidence scores are incredibly dense with information. They implicitly encode the relationship between the positive and negative class densities, as well as the class prior.
- Discriminative vs. Descriptive: Unlike One-Class SVMs, which just try to "fit" the positive data, Pconf is truly discriminative. It actively looks for the boundary where confidence drops, allowing it to generalize to negative regions it has never seen.
- Naive Weighting is Wrong: A common intuition might be to weight losses simply by $r_i$ and $(1-r_i)$. The authors show mathematically that this is "inconsistent"—it will not converge to the true optimal classifier. The specific ratio $\frac{1-r_i}{r_i}$ is the key to theoretical correctness.
Experimental Results
The researchers evaluated Pconf across three types of data:
- Synthetic Data: 2D Gaussian distributions with varying degrees of overlap.
- Fashion-MNIST: A dataset of clothing images (e.g., "T-shirt/top" as positive vs. other categories as negatives).
- CIFAR-10: An image dataset where "airplane" was used as the positive class.
(Note: Since standard benchmarks lack confidence scores, the authors trained a separate probabilistic classifier on a held-out subset to generate "synthetic" confidence scores for these experiments.)
Key Takeaways from the Results: * Superiority over One-Class Methods: In synthetic tests, Pconf significantly outperformed One-Class SVMs, which often failed to find an accurate decision boundary and merely wrapped the positive data. * Near-Supervised Performance: On Fashion-MNIST and CIFAR-10, Pconf achieved accuracies remarkably close to fully supervised models (which had access to the actual negative labels). For example, on Fashion-MNIST "T-shirt vs. Trouser," Pconf hit 92.14% accuracy, while the fully supervised baseline was 98.98%. * Robustness to Noise: The method remained effective even when Gaussian noise was added to the confidence scores, suggesting it can handle the "imperfect" confidence values found in real-world surveys or proxy measurements.
Limitations and Future Work
While powerful, the Pconf framework has a few practical constraints:
- Dependency on Quality Confidence: The method's success hinges entirely on the accuracy of the confidence scores $r_i$. If these scores are fundamentally biased or incorrect, the resulting classifier will be too.
- Numerical Stability: When $r_i$ is very close to zero, the weight $\frac{1-r_i}{r_i}$ becomes extremely large, which can lead to numerical instability during optimization. The authors used high-precision math libraries to handle this, but it remains a practical hurdle for standard deep learning frameworks.
- Support Assumption: The theory assumes that the "support" of the negative distribution is contained within the positive distribution (i.e., $p(y=+1|x)$ is never exactly zero where $p(x)$ is non-zero). If there are regions of space that are purely negative with zero positive density, the model may not learn them correctly.
Summary updated