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

Multi-Class Classification from Single-Class Data with Confidences

Yuzhou Cao, Lei Feng, Senlin Shu, Yitian Xu, Gang Niu, Masashi SugiyamaOpenReview 2021

Abstract

Can we learn a multi-class classifier from only data of a single class? We show that without any assumptions on the loss functions, models, and optimizers, we can successfully learn a multi-class classifier from only data of a single class with a rigorous consistency guarantee when confidences (i.e., the class-posterior probabilities for all the classes) are available. Specifically, we propose an empirical risk minimization framework that is loss-/model-/optimizer-independent. Instead of constructing a boundary between the given class and other classes, our method can conduct discriminative classification between all the classes even if no data from the other classes are provided. We further theoretically and experimentally show that our method can be Bayes-consistent with a simple modification even if the provided confidences are highly noisy. Then, we provide an extension of our method for the case where data from a subset of all the classes are available. Experimental results demonstrate the effectiveness of our methods.

Introduction

In standard supervised learning, models require a balanced dataset containing examples from every class they are expected to recognize. However, in many real-world applications, some classes are "expensive" or "rare." For example, in climatic disaster forecasting, data for "normal" weather is plentiful, but data for rare events like typhoons or tornadoes is extremely limited. Traditional methods in such cases often fall back to "One-Class Classification," which can only detect anomalies (i.e., "not normal") but cannot distinguish between different types of rare events.

This paper addresses a fundamental question: Can we learn a discriminative multi-class classifier using only data from one class? The authors prove that if we have the "confidence" (the class-posterior probabilities) for that single class's data, we can mathematically reconstruct the classification risk for all classes.

Comparison of different classification paradigms: Ordinary, One-Class, Pconf, and the proposed SC-Conf classification.

Methodology

The researchers propose three main frameworks to address this problem:

  1. SC-Conf (Single-Class Confidence): This framework utilizes an unbiased risk estimator. By applying importance weighting, the authors demonstrate that the total classification risk—which typically requires data from all classes—can be recovered using only data from a single class $y_s$ and the posterior probabilities $p(y|x)$ for all classes $y$.
  2. NoRSC-Conf (Noise-Robust SC-Conf): Recognizing that "perfect" confidence scores are rare, this version is designed to work with "noisy" or inaccurate confidences. It utilizes unlabeled data and density ratio estimation to bridge the gap between the single-class distribution and the overall population distribution. Crucially, it remains Bayes-consistent as long as the most likely class identified in the noisy confidence is the same as the true most likely class.
  3. Sub-Conf (Subset Confidence): This is a generalization for scenarios where data from a subset of classes is available rather than just one.

Experimental Evaluation

The authors evaluated their methods on four standard image recognition benchmarks: Fashion-MNIST, CIFAR-10, MNIST, and Kuzushiji-MNIST. In these experiments, a single class (e.g., "Coat" in Fashion-MNIST or "Dog" in CIFAR-10) was chosen as the only available training data. The model's task was to classify all 10 classes in the test set.

Key Results

  • Superiority over Baselines: With accurate confidences, SC-Conf significantly outperformed simple weighted baselines.
  • Robustness to Extreme Noise: NoRSC-Conf remained effective even when confidences were "one-hot" (only identifying the most likely class), a scenario where standard SC-Conf fails due to zero denominators in the risk estimator.
  • Approaching Full Supervision: As the size of the training subset increased (using Sub-Conf), performance approached that of a model trained on the full, perfectly labeled dataset. For example, on CIFAR-10, training on a subset of 5 classes with confidences yielded results remarkably close to the fully supervised 10-class baseline.

Discussion and Insights

The core insight of this work is the realization that the decision boundary of a Bayes-optimal classifier is determined by the maximum class-posterior probability. If these probabilities are available for single-class data, they provide enough information to infer the boundaries between all classes. Furthermore, for the noise-robust version, the exact probability values are less important than the "ranking" — specifically, that the true most-likely class remains the most-likely class in the noisy data.

Limitations

The primary practical hurdle is the source of the initial "confidences." In this study, they were simulated using a pre-trained model. In practice, these would need to come from domain experts or auxiliary models. Additionally, the noise-robust method relies on density ratio estimation, which is challenging in high-dimensional spaces like raw images.

Conclusion

This work provides a rigorous framework for multi-class classification in data-scarce environments. By leveraging confidence scores and unlabeled data, it enables the training of discriminative models even when data for most classes is unavailable, offering a significant step forward for applications in rare event detection and specialized scientific fields.

Summary updated

BibTeX
@misc{cao2021multi,
  author = {Yuzhou Cao and Lei Feng and Senlin Shu and Yitian Xu and Gang Niu and Masashi Sugiyama},
  title = {{Multi-Class Classification from Single-Class Data with Confidences}},
  year = {2021},
  eprint = {2106.08864},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.08864},
  howpublished = {OpenReview},
}
Figure