Learning from Similarity-Confidence Data

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

Introduction

Weakly supervised learning has drawn considerable attention as a way to reduce the expensive time and labor consumption of labeling massive datasets. In traditional supervised learning, obtaining exact labels is costly. While "similarity labels"—simply stating whether two examples belong to the same class—are easier to collect, they pose a significant privacy risk. If you know the class of one item in a pair, a hard similarity label immediately reveals the class of the other, which is highly problematic for sensitive data like medical records or political affiliations.

Furthermore, existing similarity-based methods often require additional unlabeled data or rely on "hard" similarity labels that can be noisy in crowdsourcing scenarios. To address this gap, researchers introduce Similarity-Confidence (Sconf) learning, a novel weakly supervised framework. Sconf trains binary classifiers using only unlabeled data pairs and their "similarity confidence"—the probability that two points share the same label.

Comparison of Sconf learning with other paradigms

Methodology

The authors propose a framework that relies on Empirical Risk Minimization (ERM) using a novel unbiased risk estimator, completely bypassing the need for hard class labels. Key components of the methodology include:

  1. Unbiased Risk Estimator: The researchers mathematically derive a method to estimate the true classification risk (the error rate) using only pairs of unlabeled data $(x, x')$ and their similarity confidence $s = P(y=y' | x, x')$.
  2. Risk Correction Scheme: A common pitfall in weakly supervised learning with highly flexible models like deep neural networks is that the empirical risk can become negative during training, leading to severe overfitting. To counteract this, the authors employ Non-Negative (NN) and ABSolute (ABS) corrections to ensure the risk remains positive and the model generalizes well.
  3. Class-Prior Estimation: The framework includes a method to estimate the class prior ($\pi_+$, the proportion of positive samples in the dataset) directly from the average similarity confidence of the pairs, making the system truly "unlabeled-only."

Key Insights

A major theoretical insight from the paper is the failure of one-sided similarity. The authors prove that learning from only similar pairs (or only dissimilar pairs) leads to "collapsed" solutions where the model predicts everything as a single class. Utilizing a general distribution of unlabeled pairs with varying confidence levels is essential for stability.

Additionally, Sconf is privacy-preserving by design. Because it only utilizes a probability (e.g., "these two records are 70% likely to be the same class"), it is impossible to definitively infer the underlying label of a specific data point, thereby protecting sensitive information.

Finally, the paper highlights the "Negative Risk Trap." While unbiased estimators are theoretically sound, they can fail in practice with deep nets. The risk correction (ABS or NN) acts as the crucial mechanism that makes Sconf learning viable for modern deep learning architectures.

Learning curves showing the effectiveness of risk correction

Experimental Results

The researchers validated their approach on a mix of synthetic datasets (to test robustness against noise) and standard benchmarks (MNIST, Fashion-MNIST, Kuzushiji-MNIST, EMNIST, SVHN, and CIFAR-10), which were manually corrupted into binary tasks to simulate the Sconf environment.

  • Superior Performance: On benchmarks like MNIST and EMNIST-Digits, the proposed Sconf-ABS and Sconf-NN methods achieved accuracies over 96%, significantly outperforming baselines like Similarity-Dissimilarity (SD) learning and Siamese networks.
  • Robustness to Noise: In synthetic experiments, the model maintained high accuracy even when Gaussian noise was added to the similarity confidence values, proving it can handle messy, real-world probability estimates.
  • Optimal Convergence: Theoretical analysis confirmed that the estimation error bound achieves the optimal parametric convergence rate ($O_p(1/\sqrt{n})$), meaning the model improves efficiently as more data is added.

Limitations and Future Work

Currently, the Sconf framework is strictly designed for binary classification problems; extending this to multi-class scenarios is a logical next step. Furthermore, the underlying theory assumes that data points in pairs are drawn independently, an assumption that might be violated in real-world graphs or networks. Finally, while robust to moderate noise, the method still relies on having access to reasonably accurate similarity confidence values, which might be difficult to obtain for highly subjective data.

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