arXiv:2610.16048cs.LGOct 2026

Manuscript Offprint

arXiv:2610.16048

Backward Conformal Prediction under Covariate Shift

Amin Meghrazi, Yuanyuan Li

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Backward conformal prediction (BCP) fixes the size of a prediction set and estimates its miscoverage, but assumes calibration and test data are exchangeable. We extend BCP to covariate shift through importance weighting, preserving its guarantees when the density ratio is known. We show that BCP’s tight miscoverage report depends only on the relative weight assigned to missed calibration examples, explaining why a better domain classifier can sometimes produce a worse estimate. Motivated by the fact that BCP depends only on nonconformity scores, we propose estimating density ratios on sorted score vectors rather than high-dimensional inputs. We prove that this approach recovers the same report asymptotically under an interpretable condition and characterize the resulting bias otherwise. Experiments with simulated and benchmark distribution shifts show that the proposed method improves BCP’s miscoverage estimates, while score-based weighting consistently yields more accurate estimates than embedding-based weighting.

1 Introduction

Conformal prediction provides label sets with guaranteed coverage under exchangeable calibration and test data, where the true label is included with probability at least 1−α1-\alpha for the predetermined α\alpha (Vovk et al., 2005). The set size depends on the data. Backward conformal prediction (BCP) inverts this approach (Gauthier et al., 2025b): the user specifies a set size TT, and BCP reports the miscoverage level supported by the data, using e-values, nonnegative statistics with expectation at most one, which remain valid when the level is selected post hoc (Vovk, 2025; Gauthier et al., 2025a). Liu et al. (2026) tighten the reported level by transforming the nonconformity score. Fixing the set size is appropriate when a subsequent step can process only TT candidates, for example, when a clinician must evaluate a shortlist of diagnoses.

However, BCP requires exchangeable data, which fails under covariate shift, where test and calibration inputs follow different distributions, but the label distribution given the input is unchanged. Weighted conformal prediction handles covariate shift at a fixed level by weighting calibration scores with the test-to-calibration input density ratio (Tibshirani et al., 2019). To our knowledge, BCP has not been adapted to covariate shift.

We adapt BCP to covariate shift by weighting its e-values with the input density ratio, and show that its guarantees hold when the true ratio is known. For the two-point score of Liu et al. (2026), the resulting tight report equals the importance-weighted miss rate of the size-TT set on the calibration data, provided a non-degeneracy condition is met. In practice, the density ratio must be estimated, and the report depends on the weights only through the share of the total weight on the missed calibration points. Measures that average over all points, such as the mean squared error (MSE) of the weights, therefore do not determine its accuracy. In our experiments with a shift toward hard inputs, calibrating the classifier used to estimate the weights reduces their mean squared error and yet makes the tight report worse.

Because BCP relies only on the model’s scores, we propose estimating the density ratio from the sorted scores rather than the original inputs. We prove that, in the limit, this gives the same report as weighting on the full input whenever the set misses equally often on test and calibration inputs with the same sorted scores. Otherwise, the two reports differ by the average change in that miss rate, which we call the reliability shift. More strongly, when the rank of the true label given the sorted scores has the same distribution under the shift, all of BCP’s guarantees hold with this ratio. More broadly, the report’s asymptotic bias has two sources: error in estimating the density ratio of the chosen representation, measured on the missed points, and bias introduced by that representation. Either sorted scores or an embedding can have lower bias, but the density ratio of sorted scores is typically easier to estimate.

We evaluate our approach on the Dry Bean dataset, where the shifts are known, and on CIFAR-10-C with two image models. Because image corruptions only approximate covariate shift, the CIFAR-10-C experiments provide an empirical test of our reports. On CIFAR-10-C, score weights bring the tight report closer to the true miscoverage than embedding weights for both models, across three set sizes and two overlap levels between clean and corrupted embeddings, and the remaining error tracks a binned estimate of the reliability shift. On CIFAR-10.1 (Recht et al., 2018), a natural shift of CIFAR-10, score weights again outperform embedding weights. The tight report still tends to understate the miscoverage, and average thresholded confidence (ATC; Garg et al., 2022), which estimates a classifier’s error from unlabeled data, is more accurate there as a point estimate of the miscoverage. Our method adds e-value guarantees for fixed-size sets under the true density ratio and an exact account of how estimated weights affect the report.