SpeedCP: Fast Kernel-based Conditional Conformal Prediction

Yating Liu, Yeo Jin Jung, Zixuan Wu, Sowon Jeong, Claire Donnat

Introduction

In modern machine learning, providing a prediction is often not enough; practitioners need to know how much to trust that prediction. Conformal prediction (CP) has emerged as a powerful framework to address this need, offering "distribution-free" guarantees. It ensures that a generated prediction set will contain the true label with a user-specified probability (e.g., 90%).

However, standard conformal prediction typically guarantees only marginal coverage—meaning the prediction is correct 90% of the time on average across the entire dataset. This poses significant challenges for fairness and safety in critical applications. A model might achieve perfect coverage for a majority demographic but fail significantly for a minority group, while still satisfying the 90% average. To resolve this, researchers rely on conditional conformal prediction, which strives to maintain the target coverage for every specific input or subgroup.

The current gold standard for achieving conditional coverage relies on Reproducing Kernel Hilbert Spaces (RKHS) to manage complex covariate shifts. Unfortunately, this approach suffers from prohibitive computational costs. Previous state-of-the-art methods, such as those proposed by Gibbs et al. (2025), require running a full optimization routine for every possible "candidate" score during a binary search. This computational bottleneck renders the method impractical for large-scale or high-dimensional applications.

Methodology: The SpeedCP Framework

To overcome these computational barriers, the authors introduce SpeedCP, a stable and efficient algorithm that computes the full solution path of the regularized RKHS conformal optimization problem. SpeedCP relies on two primary innovations:

1. The $(\lambda, S)$-Path Algorithm

Instead of treating the optimization process as a "black box" that must be repeatedly solved from scratch, the authors mathematically prove that the solution path is piecewise-linear. The algorithm tracks the "elbow set"—a small subset of data points that sit exactly on the quantile boundary.

As the regularization parameter ($\lambda$) or the imputed test score ($S$) changes, the solution's trajectory only shifts when a data point enters or leaves this elbow set. Because the elbow set is typically much smaller than the total number of calibration points ($|E| \ll n$), focusing exclusively on these critical boundary events allows SpeedCP to compute the entire solution path at essentially the same cost as a single kernel quantile fit. Furthermore, computing the full path for $\lambda$ provides simultaneous hyperparameter tuning, offering built-in smoothness control and data-adaptive calibration without expensive grid searches.

2. Low-Rank Latent Embeddings

Kernel methods often degrade in high-dimensional spaces because traditional distance metrics lose their meaning—a phenomenon known as the curse of dimensionality. To extend conditional validity to high-dimensional settings, SpeedCP integrates its path algorithm with low-rank latent embeddings. By mapping high-dimensional covariates into a lower-dimensional latent space (using techniques like PCA, topic modeling, or neural network embeddings) before applying the kernel, the method ensures that conditional guarantees are anchored to meaningful, data-driven features rather than raw noise.

Experimental Setup and Datasets

The authors rigorously evaluated SpeedCP across a diverse array of domains to test its robustness and efficiency:

  • Synthetic Admixture Data: A controlled environment utilizing a mixture of latent distributions to explicitly test performance under covariate shift.
  • Molecular Graphs (QM9, QM7b, ESOL): Predicting chemical properties using embeddings extracted from Graph Neural Networks (GNNs).
  • Brain Tumor MRI: Providing uncertainty estimates for tumor versus healthy tissue classifications using CNN-extracted features from medical imaging.
  • arXiv Abstracts: Predicting future citation counts based on latent topics extracted via topic modeling.

Key Findings and Results

The empirical results demonstrate that SpeedCP significantly outperforms existing methodologies in both speed and utility:

  • 40x Computational Speedup: By tracking boundary events precisely rather than relying on iterative black-box solvers, SpeedCP runs nearly 40 times faster than the previous state-of-the-art (CondCP).
  • 30% Tighter Prediction Intervals: Unlike previous solvers that often return conservative approximations, the exact nature of the path algorithm leads to prediction sets that are 30% smaller, making the uncertainty estimates much more practically useful while strictly maintaining the required coverage.
  • Uniform Conditional Coverage: In synthetic evaluations, SpeedCP achieved near-perfect 0.9 coverage uniformly across the entire latent space. In contrast, baseline methods frequently over-covered or under-covered in specific localized "bins."
  • Unprecedented Scalability: While previous RKHS-based methods struggled to scale beyond a few hundred data points, SpeedCP remains computationally feasible and highly efficient for datasets containing thousands of calibration points.

Limitations and Future Work

While SpeedCP marks a significant leap forward for conditional conformal prediction, the authors identify several promising avenues for future research:

  1. Adaptive Error Rates: Currently, the target error rate $\alpha$ is fixed globally for all points. Future iterations could introduce an adaptive $\alpha$, providing even tighter, dynamic guarantees tailored to critical or high-variance subgroups.
  2. Beyond Scalar Regression: The current paper focuses primarily on scalar outputs. However, the underlying RKHS framework could theoretically be extended to complex structured prediction tasks, such as text generation or image completion.
  3. Advanced Weighting Schemes: Incorporating uncertainty weights directly into the quantile regression objective could further refine how the model handles noisy or highly variable latent embeddings.

Conclusion

SpeedCP successfully bridges the gap between the rigorous theoretical guarantees of RKHS-based conditional conformal prediction and the practical demands of modern machine learning. By exploiting the piecewise-linear nature of the optimization path and leveraging low-rank latent spaces, SpeedCP delivers tighter, subgroup-specific uncertainty intervals at a fraction of the computational cost.

Summary updated

BibTeX
@inproceedings{liu2026speedcp,
  author = {Yating Liu and Yeo Jin Jung and Zixuan Wu and Sowon 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