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

Improving Adaptive Conformal Prediction Using Self-Supervised Learning

Nabeel Seedat, Alan Jeffares, Fergus Imrie, Mihaela van der Schaar

Abstract

In high-stakes decision-making environments such as healthcare and finance, point predictions are often insufficient without a reliable measure of uncertainty. Conformal Prediction (CP) provides a framework for generating prediction intervals with rigorous frequentist coverage guarantees. However, standard CP methods often struggle to produce efficient, adaptive intervals in regions of the input space where data is sparse. This paper introduces Self-Supervised Conformal Prediction (SSCP), a novel framework that utilizes the error signals from self-supervised pretext tasks to inform the difficulty of individual samples. By leveraging these signals, SSCP produces tighter, more adaptive intervals while maintaining the necessary coverage guarantees.

Introduction

Predictive modeling in critical domains requires not just accuracy, but well-calibrated uncertainty quantification. Conformal Prediction has emerged as a leading framework because it guarantees that the true value will fall within a predicted interval at a user-specified confidence level (e.g., 90%). Despite these guarantees, a significant challenge remains: efficiency. Standard CP often produces fixed-width intervals that do not account for heteroscedasticity—the variation in noise levels across different inputs.

Existing adaptive methods, such as Conformal Residual Fitting (CRF), attempt to address this by training a secondary "normalizer" model to predict the expected error (residual) for a given input. However, these normalizer models often perform poorly in data-sparse regions, leading to intervals that are either unnecessarily wide or fail to adapt to local data characteristics. SSCP addresses this "sparsity gap" by incorporating self-supervised learning (SSL) into the normalization process.

Methodology

SSCP is a three-phase framework designed to be post-hoc compatible, meaning it can be applied to existing pre-trained models without requiring retraining of the primary predictive architecture.

Phase 1: Predictive and SSL Training

A standard predictive model is trained on labeled data. Simultaneously, an auxiliary self-supervised task—such as an Autoencoder or VIME (Value Imputation and Masking Estimation)—is trained on the same data. In many implementations, the SSL task and the main predictive model share a common encoder. This allows the SSL task to capture the underlying structural distribution of the data.

Phase 2: Conformal Normalizer Training

The core innovation of SSCP lies in the training of the normalizer model. Unlike traditional adaptive CP, which only uses the input features to predict residuals, SSCP includes the error of the self-supervised task as an additional input feature. The underlying hypothesis is that if a model struggles to perform a self-supervised task (e.g., reconstructing a sample), that sample is likely an outlier or resides in a high-noise region, making it inherently more difficult for the primary supervised task as well.

Phase 3: Conformalization

Finally, the standard inductive conformal prediction process is applied. The SSL-informed normalizer scales the non-conformity scores, and a calibration set is used to determine the final quantile for the prediction intervals. This ensures that the marginal coverage guarantees of CP remain intact while benefiting from the increased sensitivity of the SSL signal.

Experimental Evaluation

The authors evaluated SSCP across synthetic and real-world benchmarks to test its robustness and efficiency.

Datasets

  • Synthetic Data: A 1D latent dimension mapped to a 20D feature space with specific "pockets" of high noise was used to evaluate the model's ability to handle heteroscedasticity.
  • UCI Regression Benchmarks: Six real-world datasets were utilized: Concrete (compressive strength), Community (crime rates), Star (astronomy), Bike (rental demand), Blog Data, and Facebook (comment volume).
  • Semi-Supervised Settings: The Facebook dataset was specifically used to test how the inclusion of additional unlabeled data could further refine the SSL signal.

Key Results and Insights

Efficiency and Adaptivity

SSCP demonstrated significant improvements in interval efficiency. On the "Star" dataset, SSCP reduced the average interval width from approximately 0.95 to 0.26 in challenging regions compared to standard CRF, all while maintaining the target 90% coverage. Across all six UCI datasets, SSCP consistently achieved lower average width and lower "excess" (the measure of interval space beyond what is necessary for coverage).

Leveraging the Sparsity Gap

The experiments confirmed that SSL errors serve as an effective proxy for predictive difficulty. In regions where labeled data is thin, the SSL signal provides a "free" source of information about the data distribution. This allows the normalizer to produce more informed scaling factors even when the primary model has seen few similar examples.

The Value of Unlabeled Data

A major advantage of the SSCP framework is its ability to utilize unlabeled data. In the Facebook dataset experiment, the addition of unlabeled samples to the SSL phase allowed the model to reduce relative interval width by nearly 20% compared to supervised-only adaptive methods. This suggests that SSCP is particularly valuable in domains where unlabeled data is abundant but labels are expensive to obtain.

Discussion and Future Work

While SSCP offers clear advantages, its performance is inherently linked to the choice of the pretext task. While Autoencoders are effective for tabular data, other modalities like computer vision or natural language processing may require more sophisticated SSL tasks (e.g., contrastive learning or masked language modeling).

Furthermore, the computational overhead of training an auxiliary SSL model and a normalizer is higher than simple inductive CP. However, for high-stakes applications, the gain in interval efficiency and the ability to handle data sparsity often justify the additional complexity. Future research may focus on "conformal-aware" self-supervised tasks designed specifically to maximize the correlation between SSL error and predictive residuals.

Summary updated

BibTeX
@inproceedings{seedat2023improving,
  author = {Nabeel Seedat and Alan Jeffares and Fergus Imrie and Mihaela van der Schaar},
  title = {{Improving Adaptive Conformal Prediction Using Self-Supervised Learning}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2023},
}
Figure