SpeedCP: Fast Kernel-based Conditional Conformal Prediction

Yeo Jin Jung, Yating Liu, Zixuan Wu, So Won Jeong, Claire Donnat · DOI

TL;DR

This paper introduces SpeedCP, a novel method for constructing prediction sets that offer guaranteed coverage even when the underlying data distribution shifts. SpeedCP achieves this by leveraging kernel-based methods in a high-dimensional setting and introducing a significantly faster algorithm, making conditional conformal prediction practical for real-world applications.

What Problem Does This Paper Address?

Conformal prediction is a powerful framework for creating prediction sets with guaranteed coverage. However, standard methods often only provide marginal coverage, meaning the guarantee holds on average but can fail for specific subgroups of data. Achieving conditional coverage, where the guarantee holds for every possible input, is desirable but computationally challenging, especially in high-dimensional settings with complex data structures. Existing kernel-based methods for conditional coverage are notoriously slow, limiting their practical use. This paper addresses this gap by developing a faster, kernel-based approach to conditional conformal prediction that scales to high-dimensional data.

Methods

The core of SpeedCP lies in its efficient algorithm for fitting a regularized kernel quantile regression within a reproducing kernel Hilbert space (RKHS). The authors build upon existing work but introduce two key innovations:

  • Speed-Path Algorithms (X-Path and S-Path): Instead of brute-force grid searches, SpeedCP uses "path" algorithms that trace the solution as regularization parameters (λ) or score cutoffs (S) change. These algorithms efficiently update solutions only when critical "events" occur (e.g., when data points enter or leave the "elbow set" of the optimization problem), drastically reducing computation. This allows for efficient hyperparameter tuning and construction of prediction sets.
  • Low-Rank Embeddings: To handle high-dimensional data (where the number of features p is much larger than the number of data points n), SpeedCP first projects the data into a lower-dimensional latent space using techniques like PCA or topic modeling. The kernel and RKHS are then applied in this latent space, improving signal-to-noise and enabling more meaningful conditional coverage.

Datasets

The paper evaluates SpeedCP on several real-world datasets:

  • Synthetic Admixture Data: Used to test performance under covariate shifts and with different base predictors (linear regression and neural networks).
  • Molecule Graphs (QM9, QM7b, ESOL): Datasets for molecular property prediction, where graph embeddings are used.
  • Brain Tumor MRI: A dataset for image classification, where CNN features are extracted.
  • ArXiv Abstracts: A dataset for text analysis, where latent topics are extracted using pLSI.

Key Insights and Ideas

  • Speed is Key: The primary contribution is making conditional conformal prediction fast. The path-based algorithms are crucial for this, enabling practical application where previous methods were too slow.
  • Latent Space Matters: For high-dimensional data, conditioning on a learned low-rank representation is more effective and interpretable than trying to condition on raw, high-dimensional features.
  • Path Algorithms for Efficiency: The "elbow set" concept from LASSO is adapted to the conformal prediction setting, leading to efficient updates and avoiding costly recomputations.
  • Hyperparameter Tuning is Integrated: The A-path and S-path algorithms allow for efficient joint tuning of regularization and smoothness parameters, which are critical for prediction set tightness.

Key Results

  • Speedup: SpeedCP achieves a significant speedup, reported as up to 40-fold compared to previous state-of-the-art methods like CondCP.
  • Improved Prediction Set Size: SpeedCP produces prediction sets that are 30% shorter on average than those from CondCP.
  • Robust Conditional Coverage: The method demonstrates uniform conditional coverage across various settings, including synthetic data, molecule graphs, and MRI images, even with challenging covariate shifts.
  • Scalability: The approach scales well to high-dimensional data by leveraging low-rank embeddings.

Limitations and Future Work

  • Fixed Micoverage Level: The current method uses a fixed miscoverage level α for all test points. The authors suggest making α adaptive based on latent structure or user-specified utility for more critical subpopulations.
  • Scalar Regression Focus: The current framework is primarily for scalar regression tasks. Extending it to structured prediction problems (text, image, multivariate outputs) is a promising direction.
  • Hyperparameter Sensitivity: While the method is generally robust, the authors note that the choice of kernel and hyperparameters can affect efficiency and prediction set tightness, especially in sparse regions of the latent space. They suggest further investigation into optimal hyperparameter selection strategies.

Summary updated

BibTeX
@inproceedings{jung2026speedcp,
  author = {Yeo Jin Jung and Yating Liu and Zixuan Wu and So Won Jeong and Claire Donnat},
  title = {{SpeedCP: Fast Kernel-based Conditional Conformal Prediction}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=JWvRxvcmn3},
}
Figure