KMM-CP: Practical Conformal Prediction under Covariate Shift via Selective Kernel Mean Matching
About
Uncertainty quantification is essential for deploying machine learning models in high-stakes domains such as scientific discovery and healthcare. Conformal Prediction (CP) provides finite-sample coverage guarantees under exchangeability, an assumption often violated in practice due to distribution shift. Under covariate shift, restoring validity requires importance weighting, yet accurate density-ratio estimation becomes unstable when training and test distributions exhibit limited support overlap. We propose KMM-CP, a conformal prediction framework based on Kernel Mean Matching (KMM) for covariate-shift correction. We show that KMM directly controls the bias-variance components governing conformal coverage error by minimizing RKHS moment discrepancy under explicit weight constraints, and establish asymptotic coverage guarantees under mild conditions. We then introduce a selective extension that identifies regions of reliable support overlap and restricts conformal correction to this subset, further improving stability in low-overlap regimes. Experiments on molecular property prediction benchmarks with realistic distribution shifts show that KMM-CP reduces coverage gap by over 50% compared to existing approaches. The code is available at https://github.com/siddharthal/KMM-CP.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Covariate Shift Calibration | Tox21 | Mean Absolute Deviation (MAD)0.015 | 12 | |
| Covariate Shift Calibration | BBB-Martins | MAD0.213 | 12 | |
| Covariate Shift Calibration | hERG | MAD0.009 | 12 | |
| Covariate Shift Calibration | HIV | Mean Absolute Deviation (MAD)0.013 | 12 | |
| Covariate Shift Calibration | AMES | MAD6.5 | 12 |