Split conformal classification with unsupervised calibration

Santiago Mazuelas

Introduction

Reliable machine learning requires models that not only provide predictions but also quantify their uncertainty. Conformal Prediction (CP) has emerged as a leading framework for this, offering rigorous "coverage guarantees"—ensuring that a predicted set of labels contains the true label with a user-defined probability (e.g., 90%). However, the standard "Split Conformal Prediction" method relies on a dedicated set of labeled calibration data. In many real-world scenarios, obtaining these labels is prohibitively expensive or impossible. This paper, presented at NeurIPS 2025, introduces a novel methodology for unsupervised calibration, enabling valid prediction sets using only unlabeled data.

The Problem: The Label Bottleneck

Standard CP requires a calibration dataset that is both labeled and independent of the training set. When labeled data is scarce, practitioners face a dilemma: use data for training to improve model accuracy, or reserve it for calibration to ensure reliability. Previous attempts at unsupervised calibration often resulted in either invalid coverage or excessively large, non-informative prediction sets. This work addresses this gap by leveraging the statistical properties of the original training set to calibrate on unlabeled samples.

Methodology

The proposed approach bypasses the need for ground-truth labels in the calibration set by estimating their distribution in a statistically rigorous manner. Rather than using biased model predictions (a "naive" approach), the authors employ Integral Probability Metrics (IPMs) to match distributions.

Label Weighting and Optimization

The core innovation lies in assigning label weights to unlabeled calibration samples. These weights are optimized to minimize the distance between the distribution of the calibration set and the known distribution of the labeled training set. By utilizing Reproducing Kernel Hilbert Spaces (RKHS), this distribution-matching problem is transformed into a tractable Quadratic Program.

Automated Kernel Selection

To ensure robustness, the method includes an automated procedure for selecting the optimal kernel (e.g., Gaussian kernel bandwidth). This selection is based on which kernel best interpolates the prediction set functions, further refining the accuracy of the weighted quantiles used to determine set sizes.

Experimental Evaluation

The methodology was rigorously tested across nine benchmark datasets, including tabular data (Drybean, Forestcov, Satellite, Letter) and image data (USPS, MNIST, FashionMNIST, CIFAR10, ImageNet10).

Performance and Coverage

The unsupervised method demonstrated performance remarkably close to the "gold standard" of supervised calibration. In 8 out of 9 datasets, the coverage achieved was nearly identical to the target. For instance, on the CIFAR10 dataset with a 90% target, the method achieved approximately 91% coverage.

Figure 1: Comparison of coverage probability between supervised and unsupervised calibration. As the number of samples increases, the unsupervised method (orange) converges toward the 0.90 target, mirroring the behavior of supervised calibration (purple).

Crucially, the size of the prediction sets remained efficient. Unlike previous unsupervised attempts that produced overly broad sets, this method's set sizes were highly comparable to those generated via supervised means.

Figure 2: Average prediction set sizes for supervised vs. unsupervised calibration. The unsupervised approach maintains set efficiency similar to supervised methods across different sample sizes.

Comparison with Naive Approaches

The "naive" unsupervised approach—simply using the model’s own predictions as labels—failed significantly on several benchmarks, often resulting in under-coverage. This highlights the necessity of the proposed distribution-matching framework.

Discussion and Limitations

While the results are promising, the paper identifies several key constraints:

  • The "Class Curse": Performance tends to degrade as the number of classes increases. For example, on the 'Letter' dataset (26 classes), the coverage gap was more pronounced. Theoretical analysis suggests that both bias and variance terms scale with the number of classes ($c$).
  • Computational Complexity: The optimization process involves solving a quadratic program with a complexity of $O(c^3n^3)$. While sparsity helps, scaling to very large datasets with many classes remains a challenge.
  • Model Smoothness: The guarantees are most robust when the underlying conformal scores are relatively smooth across the feature space.

Conclusion

This work represents a significant step toward "label-free" uncertainty quantification. By re-using training data as a distributional template, researchers can now generate reliable, calibrated prediction sets without the overhead of additional manual labeling, making trustworthy AI more accessible in data-constrained domains.

Summary updated

BibTeX
@inproceedings{mazuelas2025split,
  author = {Santiago Mazuelas},
  title = {{Split conformal classification with unsupervised calibration}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=ewP2Gx85wb},
}
Figure