Learning from Similarity-Confidence Data

Yuzhou Cao, Lei Feng, Yitian Xu, Bo An, Gang Niu, Masashi Sugiyama

Abstract

This paper introduces Sconf learning, a novel weakly supervised framework designed to train binary classifiers using only unlabeled data pairs and a "similarity confidence" score—the probability that two items share the same class. By deriving an unbiased risk estimator and a robust risk correction scheme, the authors demonstrate that high classification accuracy can be achieved without hard labels, effectively preserving data privacy while reducing labeling costs.

Introduction: The Need for Anonymous Supervision

Traditional supervised learning relies on massive, accurately labeled datasets, which are often expensive and labor-intensive to produce. Moreover, in sensitive domains like healthcare or finance, sharing direct labels can lead to significant privacy risks. While existing weakly supervised methods utilize pairwise similarity (knowing if two items are the same or different), even these "hard" labels can inadvertently reveal underlying class information.

Sconf learning addresses this by utilizing data that is even more "anonymous." Instead of definitive labels, it uses the probability that two unlabeled samples belong to the same category. This approach is ideal for privacy-preserving data collection and for aggregating noisy inputs from crowdsourced workers who may disagree on similarity.

Comparison of learning paradigms: Supervised, Semi-Supervised, SU Learning, and the proposed Sconf Learning.

The Sconf Learning Framework

The proposed framework is built upon Empirical Risk Minimization (ERM) and consists of three technical pillars:

  1. Unbiased Risk Estimator: The authors mathematically prove that the true classification risk can be recovered using only Sconf data pairs. This allows the use of standard loss functions and deep neural network architectures.
  2. Consistent Risk Correction: Unbiased estimators in weak supervision can sometimes produce negative "risk" values during training, leading to overfitting. The authors implement Non-Negative (NN) and ABSolute (ABS) correction schemes to ensure the risk remains positive, stabilizing model convergence.
  3. Class-Prior Estimation: The framework includes a method to estimate the "class prior" (the ratio of positive to negative samples) directly from the average similarity confidence of the data pairs, removing the need for pre-defined global statistics.

Key Insights and the "One-Sided" Trap

A critical discovery in this research is the "One-Sided" Trap. The authors found that learning from only similar pairs (even with confidence scores) leads to collapsed solutions where the model predicts a single class for all inputs. To succeed, the model must sample pairs from the entire unlabeled distribution.

Decision boundaries for models trained only on similar or dissimilar pairs, illustrating the failure to capture the true data distribution.

Furthermore, the framework demonstrates Optimal Convergence, achieving an estimation error rate of $O_p(1/\sqrt{n})$. This indicates that the model learns from weak Sconf data as efficiently as a model learning from perfect labels. It also shows significant Robustness to Noise, where the error bound only increases linearly with the mean absolute error of the provided confidence scores.

Experimental Evaluation and Results

The researchers evaluated Sconf learning across various benchmarks, including synthetic 2D Gaussian distributions and complex image datasets like MNIST, CIFAR-10, and SVHN.

  • Superiority over Baselines: Sconf methods significantly outperformed traditional similarity-based baselines like Siamese networks and Contrastive loss, which are typically representation-oriented rather than classification-oriented.
  • Deep Learning Performance: On CIFAR-10, the Sconf-ABS method achieved 84.71% accuracy, vastly outperforming the basic unbiased version (60.39%) and other similarity baselines (~54-59%).
  • Near-Supervised Accuracy: On synthetic datasets, the Sconf approach reached accuracies (90.62%) nearly identical to fully supervised models (90.71%) trained on the same data.

Conclusion and Future Work

Sconf learning represents a significant advancement in training classifiers with minimal, privacy-preserving supervision. While currently focused on binary classification, future work will look toward extending the mathematical framework to multi-class settings and exploring practical workflows for generating accurate similarity confidence scores in real-world scenarios.

Summary updated

BibTeX
@inproceedings{cao2021learning,
  author = {Yuzhou Cao and Lei Feng and Yitian Xu and Bo An and Gang Niu and Masashi Sugiyama},
  title = {{Learning from Similarity-Confidence Data}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=qQ86PDqU8AP},
}
Figure