NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Pointwise Binary Classification with Pairwise Confidence Comparisons

Lei Feng, Senlin Shu, Nan Lu, Bo Han, Miao Xu, Gang Niu, Bo An, Masashi Sugiyama

TL;DR

This paper introduces pairwise comparison (Pcomp) classification, a novel weakly supervised learning setting. Instead of relying on exact labels, models are trained using only pairs of unlabeled data where one instance is known to be more likely positive than the other. The authors derive unbiased risk estimators and progressive learning techniques to train accurate binary classifiers from this weak signal, offering a powerful alternative when exact labels are private, secure, or too ambiguous to collect.

The Challenge: Learning from Ambiguous Data

Training standard binary classifiers typically requires pointwise labels (e.g., "Image A is a cat, Image B is a dog"). However, in many real-world scenarios—such as medical imaging or user behavior tracking—collecting exact labels is impossible due to privacy laws, confidentiality, or sheer ambiguity.

To bypass this, researchers often use weakly supervised learning, such as pairwise labels ("Image A and Image B belong to the same class"). But even pairwise labels are hard to assign if both instances are highly ambiguous. The authors propose a highly practical alternative: Pairwise Confidence Comparisons. Instead of asking a human annotator for an exact label, you simply ask, "Which of these two instances is more likely to be positive?" The challenge this paper tackles is how to train a standard, pointwise binary classifier using only this relative comparison data.

Proposed Methods

The authors tackle the Pcomp problem through two distinct mathematical lenses:

1. Unbiased Risk Estimators (URE)

The authors mathematically formulate the data generation process for pairwise comparisons. From this, they prove that you can derive an Unbiased Risk Estimator—a way to calculate the true classification error using only the relative pairs.

  • The Overfitting Fix: Standard UREs often contain negative terms, which causes complex models (like deep neural networks) to overfit by chasing negative empirical risks. To fix this, the authors apply consistent correction functions (like ReLU or Absolute value) to bound the risk, creating Pcomp-ReLU and Pcomp-ABS.

2. Progressive Pcomp (The Noisy-Label Perspective)

Alternatively, the authors reframe the problem as noisy-label learning. They treat the "more positive" item in a pair as a noisy positive label, and the other as a noisy negative.

  • They use a technique called RankPruning to filter out the most confident examples.
  • To make this robust, they introduce Pcomp-Teacher, which uses a "Mean Teacher" (an exponential moving average of the model's past states) to enforce consistency and improve the quality of the pseudo-labels during training.

Experimental Setup & Datasets

Because this is a novel setting, the authors adapted standard multi-class datasets into binary classification tasks, synthetically generating the pairwise comparisons based on their theoretical noise rates.

Dataset summary showing large-scale and small-scale datasets used in the experiments.
  • Large-scale (Deep Learning via MLP/ResNet-34): MNIST, Fashion-MNIST, Kuzushiji-MNIST, and CIFAR-10.
  • Small-scale (Linear Models): USPS, Pendigits, Optdigits, and CNAE-9.

Key Insights

  • Relative data contains absolute signals: The most significant theoretical contribution is the proof that you can extract independent, pointwise probability densities from purely pairwise, relative comparisons. You don't need absolute labels to learn absolute boundaries.
  • Naive approaches fail completely: A straightforward baseline is to just treat the "more positive" item as a true positive and the "less positive" as a true negative (Binary-Biased). The experiments show this fails miserably, proving that the authors' complex mathematical UREs are strictly necessary.
  • Bridging sub-fields yields the best results: By realizing that pairwise comparisons can be viewed through the lens of noisy-label learning, the authors successfully imported consistency regularization (Mean Teacher) from semi-supervised learning. This hybrid approach (Pcomp-Teacher) proved to be the most effective.

Results and Performance

  • Superior Accuracy: The proposed methods vastly outperformed baselines. For example, on the MNIST dataset (with a class prior of 0.5), the naive Binary-Biased method achieved only 53.7% accuracy. In contrast, Pcomp-Teacher achieved 94.2%, and Pcomp-ReLU achieved 87.5%.
  • Model Complexity Matters: On simple linear models, the uncorrected URE (Pcomp-Unbiased) worked perfectly fine. However, on complex models like ResNet-34 (CIFAR-10), Pcomp-Unbiased collapsed to 63.1% accuracy, while the corrected Pcomp-ReLU maintained 74.6%, proving the necessity of the risk correction functions for deep learning.
  • Data Scaling: Empirical tests confirmed the authors' theoretical bounds: as the volume of pairwise comparisons provided to the model increases, the classification accuracy steadily improves.
Classification accuracy improves as the number of pairwise comparisons increases across different datasets and class priors.

Limitations and Future Directions

  • Limitations: The experiments rely on synthetically generated pairwise comparisons derived from standard datasets. While mathematically sound, testing on real-world, human-annotated pairwise data (which includes human error and bias) would further validate the approach. Additionally, the method assumes the true class prior (the overall ratio of positive to negative examples in the wild) is known or can be accurately estimated.
  • Future Work: The authors plan to apply Pcomp classification to real-world datasets with heavy class overlapping (where ambiguity is highest). They also intend to extend this framework from binary classification to multi-class classification using a one-versus-all strategy.

Summary updated

BibTeX
@inproceedings{feng2021pointwise,
  author = {Lei Feng and Senlin Shu and Nan Lu and Bo Han and Miao Xu and Gang Niu and Bo An and Masashi Sugiyama},
  title = {{Pointwise Binary Classification with Pairwise Confidence Comparisons}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=ekEO1DSiSBc},
}
Figure