Manuscript Offprint
arXiv:2610.16048Backward Conformal Prediction under Covariate Shift
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 for the predetermined (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 , 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 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- 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.
Backward conformal prediction and e-values. Conformal e-prediction replaces p-values with e-values, which lets levels be chosen after seeing the data (Vovk, 2025). BCP uses this to fix the set size and report the level the data support, with a leave-one-out estimate of the expected level (Gauthier et al., 2025b), and ST-BCP (Liu et al., 2026) transforms the score to tighten the report. Both assume exchangeable data.
Weighted e-values. Importance-weighted conformal e-values have been used in false discovery rate control for selection and outlier detection (Lee and Ren, 2024), as well as in selective prediction with risk control (SCoRE; Bai and Jin, 2026). Our weighted e-value uses the same change-of-measure principle, but its application to fixed-size sets and the resulting reports is novel. SCoRE selects predictions to trust at a fixed risk level, while BCP keeps every prediction, as a size- set, and reports its miscoverage. When weights are estimated, Bai and Jin (2026) show that SCoRE remains asymptotically valid if the weights converge in , and present a doubly robust approach. For BCP, we provide the exact finite-sample change in the report, which depends on the weights only through the share of the total weight on the missed calibration points. Weighted conformal p-values are also used for selective inference under covariate shift (Jin and Candès, 2026) and, via test martingales, for deployment monitoring (Prinster et al., 2025). Fairness criteria can likewise be monitored at runtime with probabilistic guarantees, for which Meghrazi et al. (2025) provide an interactive interface.
Estimating error under shift. Without assumptions on the shift, a classifier’s accuracy on an unlabeled target distribution cannot be identified (Garg et al., 2022); under covariate shift, importance weighting can estimate it (see, e.g., Cortes et al., 2010). BCP’s tight report serves as an importance-weighted estimate for the size- set, aligning it with other estimators of classifier error from unlabeled test data, such as ATC, the proportion of test points with confidence below a threshold determined from labeled source data (Garg et al., 2022). We include ATC as a comparison. Risk estimation by reweighting on a low-dimensional function of the input is exact when the label is conditionally independent of the input given that function, and the loss depends on the input only through it (Stojanov et al., 2019). Mandoline reweights user-defined slices like predicted class and entropy (Chen et al., 2021), while Garg et al. (2022) include a confidence-reweighting baseline. Our reduction to sorted scores is the BCP analog of these approaches. Its condition holds exactly when the joint density ratio of the sorted scores and the rank of the true label depends only on the sorted scores; if not, we precisely characterize the asymptotic bias of the tight report.
3 Weighted Backward Conformal Prediction
We build our analysis on the formalism of BCP (Gauthier et al., 2025b). Appendix A contains all proofs and supporting results.
Definition 1 (Setting).
Let and . Let and be probability distributions on . Let , , be i.i.d. from , and let be independent of them. Assume for a measurable . Let be a measurable nonconformity score fixed independently of the data, and let . We define and for , and . We use the conventions and .
Definition 1 describes covariate shift. The test distribution reweights the calibration distribution by a function of the input alone, so the label given the input has the same distribution under both. The score can be any fixed nonnegative function of the input and the label, for example the negative log-probability that a classifier assigns to the label.
Definition 2 (Weighted e-value, level and set).
We define, for ,
For we define with . We define and .
The level is the smallest level at which the set has at most labels; when no level below one achieves this, and the set can have more labels. With , the e-value, level and set are those of BCP. The test score enters the numerator without its weight to obtain a valid e-value (Appendix B).
Theorem 1 (Weighted e-value validity).
Let the setting of Definition 1 hold. Then .
Theorem 1 extends the e-value used by Balinsky and Balinsky (2024) to covariate shift through the change of measure of weighted conformal prediction (Tibshirani et al., 2019). Because BCP chooses its level after seeing the test input, it needs the post-hoc form of this guarantee: the weighted version of Gauthier et al. (2025a, Proposition 3.3).
Theorem 2 (Post-hoc validity).
Let the setting of Definition 1 hold, and let be a random variable with values in . Then and .
The second inequality says that a miss, divided by the reported level, has expectation at most one, even though the level depends on the data. Under a further covariance condition, the expected level bounds the miscoverage itself (Theorem A.1), a bound that Gauthier et al. (2025b) state to first order.
4 Miscoverage Reports
BCP chooses the level after seeing the test input, so the number to report is its expectation, . It is unknown because we observe only through unlabeled inputs. Following Gauthier et al. (2025b), we estimate it by leave-one-out. Each calibration point is treated as the test point and yields one level; we then average these levels with weights so the weighted calibration sample approximates the test distribution. We use two such reports, one built on the score and one on the two-point score of ST-BCP (Liu et al., 2026), and compare both with the miscoverage of the size- set.
Definition 3 (Weighted e-value using the two-point score).
Let the setting of Definition 1 hold. We define as the -th smallest of , (so , with equality when the scores at are distinct), and . We define , and
and .
The size- set holds at most the labels with the smallest scores, and marks a miss. The two-point score is on and elsewhere, so it puts the whole e-value on the miss event. BCP’s sets and equal whenever their levels are below one and a calibration score is positive. We compare every report with the miscoverage of the size- set.
Definition 4 (Reports).
Let the setting of Definition 3 hold, and let be weights on the calibration points. For we define (with )
, and . We define the identity, transformed and tight reports
With constant weights, the transformed report is the ST-BCP report. We report its values only in the appendix and use the other two here. For a positive function on , such as or an estimate , we write and for the reports with weights .
The identity report. With bounded true weights and scores, and , (Theorem A.3). Under the covariance condition of Theorem A.1, its target bounds the miscoverage of , and hence that of when almost surely.
The tight report. ST-BCP proposes the corrected level, a Markov bound on the miscoverage of that needs no condition on , and estimates it by leave-one-out. The authors recommend it when is small. Our tight report extends their estimate to covariate shift by weighting.
Theorem 3 (Corrected level).
Let the setting of Definition 3 hold. Then .
With bounded true weights and scores, and , the tight report converges to the expected corrected level, (Theorem A.4). For the two-point score, both the level and the corrected level have closed forms.
Proposition 1 (Two-point closed form).
Let the setting of Definition 3 hold. We define . Then and . Assume moreover . Then .
The condition fails only on a miss whose is zero or below the weighted calibration average of , and when it holds, the expected corrected level equals the miscoverage of the size- set. When the condition holds in all leave-one-out folds, which we call non-degeneracy, every miss counts in full and the tight report is the importance-weighted miss rate of the size- set on the calibration data,
This is the classical importance-weighted estimate of the size- set error. Weighted BCP adds the bound this estimate targets and e-value guarantees for its set under the true weights.
5 Estimated Weights
In practice, is estimated, typically with a domain classifier that separates unlabeled test inputs from held-out inputs of the calibration distribution (Tibshirani et al., 2019). The real challenge is ensuring that the estimated weights represent the true weights . However, under non-degeneracy, only the share of the total weight on the missed calibration points matters for the tight report. As a result, measures of weight quality that average over all points, such as the mean squared error of the weights or the calibration and accuracy of the domain classifier, can improve while the error of the report grows. More formally, if the non-degeneracy condition holds for both the estimated and true weights, then
where and are the averages of the two weight vectors over the calibration points, so errors of the normalized weights on the covered calibration points do not enter the report error. As grows, the report converges, and its asymptotic bias splits according to the representation the weights are fitted on.
Proposition 2 (Asymptotic bias of the tight report).
Let the setting of Definition 4 hold. Let be a measurable function that is fixed, or fitted on data independent of ; in the latter case all probabilities are conditional on those data. Let , and assume as . We define . Let be a measurable map from to a measurable space . We define , and as versions of , and , the last two with values in . Then, as ,
in probability.
The assumption on is non-degeneracy with probability tending to one. The first term of the limit is the error in estimating the density ratio of , counted on the missed points. The second term is the bias of the representation. It is the negative of the average, over test inputs, of how much more often the set misses on test inputs than on calibration inputs with the same value of . It is zero when depends on the input only through , in particular when is the input itself. A coarser representation, a function of , typically has a density ratio that is easier to estimate, but its bias can be larger or smaller than that of (Proposition A.4).
BCP uses a data point only through the model’s scores and treats all labels alike. So, in weighted BCP, apart from the weights, its levels, miss events and reports depend on each data point only through its sorted scores and the rank of its label among them.
Definition 5 (Sorted scores and rank).
Let the setting of Definition 3 hold. We define as the vector sorted in increasing order, and as the position of label when is sorted by increasing with ties broken by label index, so that is a bijection and for every . We define as a version of with .
collects the scores of all candidate labels, so it is computed from the input alone, while the rank needs the label. The weights must be computed without the label, so conditions on alone; it is for . We call weights fitted on score weights. When we replace the full input with the score representation , a new bias is introduced, which is the negative of the reliability shift ; such a shift measures how much more often the set misses on test inputs compared to calibration inputs with the same sorted scores. This change in the miss rate at fixed sorted scores is a concept shift in the score representation, which a covariate shift in the input can induce. The reliability shift is zero when the set misses equally often on test and calibration inputs with the same sorted scores. It is positive and biases the tight report downward when the set misses more often on test inputs, as on corrupted images on which the model stays confident. When the rank of the true label has the same conditional distribution given the sorted scores under and , BCP with weights retains the finite-sample guarantees of Sections 3 and 4.
Proposition 3 (Reduction).
Let the setting of Definition 5 hold. Assume that there are measurable , , with -a.s. and -a.s. for every . We define , , , , and as in Definitions 2 and 3 with replaced by for (so is replaced by ). Then (i) for every bounded measurable , and (ii) , , , and .
The assumption holds when the density ratio depends on the input only through the sorted scores, , and also when the conditional distribution of the rank, given the input, depends on the input only through the sorted scores (Proposition A.5).
The choice of representation trades the two terms of the limit. The input is unbiased, but its density ratio is hard to estimate in high dimensions. The model’s penultimate embedding and its sorted scores both reduce the dimension. The sorted scores are a function of the embedding, since the logits are an affine map of it, yet either can have the smaller bias. What favors the sorted scores is estimation. They have scores per input, one per class, which is generally lower than the embedding dimension.
Procedure. We fit the domain classifier on the sorted scores of held-out inputs from the calibration distribution and unlabeled test inputs, evaluate the weights at the calibration points, and compute both reports. We use the tight report as the estimate of the miscoverage of the size- set and the identity report as the conservative number.
6 Experiments
We validate our theory on Dry Bean (Koklu and Ozkan, 2020), where we can construct the shift, and compare estimated weights with true ones. Additionally, we use CIFAR-10-C (Hendrycks and Dietterich, 2019), where the benchmark shift comes from image corruptions with unknown true density ratios; we compare score weights with embedding weights. The nonconformity score we used is for a fixed classifier , with probabilities clipped at . A setting is one shift, one model and one value of . The gap of a report is the report minus the truth, the exact miscoverage of the size- set under the test distribution; and a report is valid in a setting when its mean gap over the random draws is non-negative. On CIFAR-10-C, we also report the mean absolute gap in percentage points, the unit used for the errors of ST-BCP and ATC. Appendix C gives the remaining experimental details.
For our simulated experimental setup on Dry Bean, calibration inputs are drawn uniformly and test inputs with probability proportional to for a tilt and a severity , so the true weight is . The tilts are the standardized entropy of the classifier’s probabilities (hardness), its negative (easy), and the standardized feature ShapeFactor1, which is least correlated with the true-label score (benign). We use .
In our benchmark distribution shift setup on CIFAR-10 data (Krizhevsky, 2009), we obtain calibration images from clean data and test images from CIFAR-10-C under Gaussian noise, defocus blur, fog, contrast, and JPEG compression at severities , , and . We use the EfficientNet-B0 (Tan and Le, 2019) of Gauthier et al. (2025b) and a model trained for corruption robustness, the AugMix WideResNet-40-2 (Zagoruyko and Komodakis, 2016; Hendrycks et al., 2020) of RobustBench (Croce et al., 2021), with as in BCP. We call a model under one corruption at one severity a cell. Each cell has draws of calibration images and of unlabeled corrupted versions of other images, and its truth is computed over all corrupted images. We also report the cells in which a classifier separates held-out clean and corrupted embeddings with AUC at least , and call them walls. A wall marks nearly separable embeddings, not necessarily a cell in which the model errs often. Additionally, as a natural shift, we take CIFAR-10.1 (Recht et al., 2018), a later test set collected to match CIFAR-10, with the same calibration pool and models as in the CIFAR-10-C experiments. Its results show the same pattern and are given in Appendix D.
We use a gradient boosting domain classifier, fitted on the bean features (feature weights), the model’s embedding (embedding weights), or the sorted scores (score weights). On Dry Bean, we compare the true, feature, and score weights; on CIFAR-10-C, we compare no weights (), embedding weights, and score weights. Without weights, the identity report is the estimator of BCP and the tight report is the corrected estimator of ST-BCP, so the results without weights are those of the two original methods. Weighted split conformal prediction (WSCP; Tibshirani et al., 2019) fixes the level and lets the set size vary, and we use the smallest level at which its mean set size on the unlabeled test sample is at most . We also compare the tight report with ATC, using the negative entropy as the confidence (ATC-NE); at this is the method of Garg et al. (2022) without temperature scaling.
Table 1: Dry Bean, : exact miscoverage of the size- set under the tilted pool and gap (report miscoverage) of the identity and tight reports, by the weights used, and of ATC-NE. “Features”: gradient boosting on the features; “+ Platt”: the same classifier calibrated by Platt scaling on grouped out-of-fold predictions; “sorted scores”: gradient boosting on . Means over draws; the largest standard error in the table is 0.012. in Appendix D.
weights hardness hardness easy easy benign benign true miscoverage 0.274 0.406 0.023 0.010 0.072 0.036 identity report true weights +0.169 +0.343 +0.014 +0.014 +0.012 +0.023 features +0.013 +0.106 +0.028 +0.027 +0.009 +0.025 features + Platt 0.064 +0.046 +0.059 +0.042 +0.025 +0.034 sorted scores +0.267 +0.340 +0.014 +0.017 +0.016 +0.021 tight report true weights 0.006 0.020 0.000 0.000 0.001 0.000 features 0.081 0.101 +0.010 +0.009 0.011 0.007 features + Platt 0.121 0.129 +0.041 +0.027 +0.009 +0.011 sorted scores +0.042 0.006 0.003 0.001 +0.001 0.000 ATC-NE +0.211 +0.461 0.015 0.009 0.018 0.015
Tight report is accurate under true weights.
With the true weights, the tight report is within 0.020 of the miscoverage in every Dry Bean setting at , and the identity report stays above it (Table 1).
Figure 1: CIFAR-10-C at : the tight report against the true miscoverage of the size- set, one vertical segment per setting, both axes logarithmic. Hollow blue markers: mean over the draws with embedding weights; filled red markers: with score weights. Dotted line: no weights, the miss rate on the clean calibration images, the same in every setting. Squares: walls, cells with nearly separable clean and corrupted embeddings (AUC at least ). Points below the dashed diagonal understate the miscoverage. and are in Appendix D.
What matters is the weight share of the missed points. Estimated weights matter under the hardness shift, which moves the test distribution toward the beans the model finds hard; under the easy and benign shifts, both reports stay within 0.046 of the miscoverage with the true, feature, or score weights. Under the hardness shift at , feature weights underweight the missed beans, and the tight report has gaps of 0.081 and 0.101 at . Calibrating the domain classifier lowers the MSE of the normalized weights for every method and setting, yet under the hardness shift the four calibration methods and logistic regression all worsen the tight report further (Appendix F). The MSE weighs all beans, while under non-degeneracy the tight report depends on the weights only through the share of the total weight on the missed beans. Score weights bring the gaps to +0.042 and 0.006. The hardness and easy tilts are functions of the sorted scores , so the assumption of Proposition 3 holds and these two shifts validate the theory rather than test the method. The benign tilt is not a function of , and score weights correlate less with the true weights than feature weights do (Appendix F), yet the tight report with score weights stays within 0.002 of the miscoverage, which this shift moves from 0.087 to 0.036 at , .
Table 2: CIFAR-10-C by model, and overlap (walls: held-out embedding AUC at least ); each row averages over the settings of its group. Tight report with no, embedding and score weights, and ATC-NE: mean absolute gap in percentage points over the settings and their draws; without weights the tight report is the corrected estimator of ST-BCP. Identity report: settings in which it is valid, with score weights. Appendix D gives the signed gaps by group, and per-setting gaps of the weighted reports and ATC-NE with standard errors.
| true | tight report | identity report | ||||||
|---|---|---|---|---|---|---|---|---|
| model | miscoverage | none | emb. | score | ATC-NE | valid | ||
| EfficientNet-B0 | 1 | no wall | 23.6% | 14.69 | 8.15 | 4.74 | 3.12 | 9/12 |
| walls | 77.0% | 68.13 | 52.34 | 42.98 | 29.59 | 0/3 | ||
| 2 | no wall | 12.2% | 9.20 | 6.65 | 4.78 | 3.49 | 10/12 | |
| walls | 63.8% | 60.80 | 53.65 | 48.67 | 41.87 | 0/3 | ||
| 3 | no wall | 7.0% | 5.67 | 4.28 | 3.48 | 2.57 | 11/12 | |
| walls | 50.4% | 49.08 | 43.90 | 42.39 | 38.66 | 0/3 | ||
| WRN-40-2 (AugMix) | 1 | no wall | 7.9% | 3.13 | 1.95 | 1.61 | 0.83 | 0/9 |
| walls | 17.4% | 12.53 | 9.08 | 6.06 | 3.98 | 0/6 | ||
| 2 | no wall | 2.6% | 1.51 | 1.24 | 0.93 | 0.69 | 9/9 | |
| walls | 8.0% | 6.80 | 5.96 | 4.36 | 3.44 | 4/6 | ||
| 3 | no wall | 1.2% | 0.74 | 0.76 | 0.63 | 0.52 | 9/9 | |
| walls | 4.4% | 3.90 | 3.85 | 2.84 | 2.40 | 5/6 |
Score weights better match CIFAR-10-C truth. Score weights bring the tight report closer to the miscoverage than embedding weights or no weights across all 12 groups of the model, , and overlap (Table 2). Without weights, the tight report is the miss rate on the clean calibration images, the same in all cells of a model at each (the dotted lines in Figure 1), so the estimators of BCP and ST-BCP do not follow the shift. Setting by setting, the mean tight report with score weights is closer to the miscoverage than with embedding weights in 71 of the 90 settings, and the paired bootstrap interval of the difference over the draws excludes zero in 50 settings in favor of score weights and in 4 in favor of embedding weights. Score weights are also closer in all 12 groups with three other domain classifiers and with looser clips of the weights (Appendix D). Clean and corrupted images overlap more on the sorted scores; a classifier trained as in the wall criterion separates them with a lower held-out AUC on the sorted scores in all 30 cells.
Residual error tracks a binned reliability shift. The tight report with score weights still understates the miscoverage in 62 of the 90 settings. With score weights, Proposition 2 gives its asymptotic bias as the error of the weights on the missed points minus the reliability shift. A one-dimensional estimate of this shift, computed with the test labels, tracks the error. We bin the clean images by their top- softmax mass and predict the corrupted miss rate from the clean miss rate in each bin. With both errors divided by miscoverage, the prediction error and the error of the tight report have correlation 0.94 (EfficientNet-B0) and 0.95 (WideResNet) across each model’s settings (Appendix D). The WideResNet has the smaller reliability shift. Summed over the settings without walls, its absolute binned shift is 0.21 of its miscoverage, compared with 0.38 for EfficientNet-B0, and its tight report with score weights is less biased, with gaps summing to 3% of the miscoverage, compared with 21%.
The identity report is conservative except at on CIFAR-10-C and near the walls. With score weights, the identity report is valid in all Dry Bean settings and in 39 of the 42 CIFAR-10-C settings without a wall at , but in only 9 of the 21 at . Two of the three failures at are defocus blur at severity for EfficientNet-B0, whose embedding AUC (0.941) is just below the wall threshold. At the walls, it is valid in 9 of the 18 settings at and in none at . The failure at occurs even without shift. With clean calibration and test images and no weights, the identity report lies 1.7 points below the top-1 miscoverage of the WideResNet, whose scores are never clipped, while the tight report is within 0.1 points (Appendix E). At , a covered true label is the model’s top prediction, whose score is near zero, so covered points provide little slack; for EfficientNet-B0, the sign of the gap depends on our score clip.
Comparison with ATC and WSCP. ATC-NE estimates the miscoverage more accurately than the tight report with score weights in all 12 groups (Table 2), but it has no guarantee under covariate shift in general. It counts every test point below a confidence threshold as a miss, which is exact only if the threshold transfers to the test distribution (Garg et al., 2022). On Dry Bean, where the covariate shift is exact, it overstates the miscoverage under the hardness shift, with gaps of +0.211 and +0.461 at , and is further from the true miscoverage than the tight report with score weights in all 12 settings (Table 1, Appendix D). Summed over the walls of each model and , the tight report with score or embedding weights and ATC-NE all understate the summed miscoverage by 21% to 87%. WSCP keeps its miscoverage level with the true weights on Dry Bean (largest excess +0.002) but not with estimated weights. Under the hardness shift at , its miscoverage exceeds by up to +0.164 with feature weights, and on CIFAR-10-C with score weights it keeps its level in only 1 of the 12 EfficientNet-B0 and 4 of the 9 WideResNet settings without a wall at . Fixing its level in advance does not remove this excess (Appendix D). At , 18–27% of the test images receive more than labels, and it misses less often than the size- set (median ratio 0.72 and 0.35 for the two models). With the true weights on Dry Bean at , however, it misses more often than the size- set in all settings.
7 Conclusion & Discussion
Conclusion. We extended BCP to covariate shift. Weighted BCP fixes the set size and reports its miscoverage, with BCP guarantees under the true density ratio. Under non-degeneracy, its tight report depends on estimated weights only through their share on the missed calibration points, so a domain classifier with lower weight MSE can give a worse report. On CIFAR-10-C, score weights brought the tight report closer to the miscoverage than embedding weights in every group of the model, and overlap. ATC was more accurate there as a point estimate, but it has no guarantee under covariate shift in general.
Limitations. The finite-sample guarantees need the true density ratio, or the density ratio of the sorted scores under the condition of Proposition 3. With estimated weights, we describe the report error but do not bound it, and our consistency results are asymptotic. The tight report equals the weighted miss rate only under non-degeneracy, which fails when the miscoverage is high. Even with calibration data from the test distribution itself, the tight report still understates the miscoverage by up to 15.0 points for EfficientNet-B0 at (Appendix D). Neither the condition of Proposition 3 nor the reliability shift can be checked from the sorted scores and the calibration labels alone. The margin of the identity report above the miscoverage is an empirical finding, and at on CIFAR-10-C it fails in most settings. At the walls, where embeddings of calibration and test data barely overlap, the tight report with score or embedding weights, together with ATC-NE, understates the summed miscoverage by 21% to 87%, and our criterion for walls is a heuristic. On CIFAR-10-C and CIFAR-10.1, the density ratio assumed by the theory is at best an approximation. We clip probabilities at to bound the scores, as our consistency results assume; for EfficientNet-B0, this lowers the identity report at (Appendix E).
Open questions. The reliability shift is the bias that score weights leave, and estimating it needs either the input-space ratio or labels from the test distribution. Our binned estimate used the test labels and tracked the remaining error closely; whether a small labeled test sample suffices to correct the report is open. The theory does not decide between the sorted scores and an embedding, and a representation chosen to balance the two terms of Proposition 2 might do better than either. A check of when estimated weights can be trusted is also missing. This work does not cover adaptive set sizes, which BCP explores.
References
T. Bai and Y. Jin Conformal selective prediction with general risk control. External Links: 2603.24704, Link Cited by: §2.
A. A. Balinsky and A. D. Balinsky Enhancing conformal prediction using e-test statistics. In Proceedings of the Thirteenth Symposium on Conformal and Probabilistic Prediction with Applications, S. Vantini, M. Fontana, A. Solari, H. Boström, and L. Carlsson (Eds.), Proceedings of Machine Learning Research, Vol. 230, pp. 65–72. External Links: Link Cited by: §3.
R. F. Barber, E. J. Candès, A. Ramdas, and R. J. Tibshirani Conformal prediction beyond exchangeability. The Annals of Statistics 51 (2), pp. 816 – 845. External Links: Document, Link Cited by: §2.
M. Chen, K. Goel, N. S. Sohoni, F. Poms, K. Fatahalian, and C. Re Mandoline: model evaluation under distribution shift. In Proceedings of the 38th International Conference on Machine Learning, M. Meila and T. Zhang (Eds.), Proceedings of Machine Learning Research, Vol. 139, pp. 1617–1629. External Links: Link Cited by: Remark A.4, §2.
C. Cortes, Y. Mansour, and M. Mohri Learning bounds for importance weighting. In Advances in Neural Information Processing Systems, J. Lafferty, C. Williams, J. Shawe-Taylor, R. Zemel, and A. Culotta (Eds.), Vol. 23, pp. . External Links: Link Cited by: §2.
F. Croce, M. Andriushchenko, V. Sehwag, E. Debenedetti, N. Flammarion, M. Chiang, P. Mittal, and M. Hein RobustBench: a standardized adversarial robustness benchmark. In Proceedings of the Neural Information Processing Systems Track on Datasets and Benchmarks, J. Vanschoren and S. Yeung (Eds.), Vol. 1, pp. . External Links: Link Cited by: §6.
S. Garg, S. Balakrishnan, Z. C. Lipton, B. Neyshabur, and H. Sedghi Leveraging unlabeled data to predict out-of-distribution performance. In International Conference on Learning Representations, External Links: Link Cited by: §1, §2, §6, §6.
E. Gauthier, F. Bach, and M. I. Jordan E-values expand the scope of conformal prediction. External Links: 2503.13050, Link Cited by: §1, §3.
E. Gauthier, F. Bach, and M. Jordan Backward conformal prediction. In Advances in Neural Information Processing Systems, D. Belgrave, C. Zhang, H. Lin, R. Pascanu, P. Koniusz, M. Ghassemi, and N. Chen (Eds.), Vol. 38, Main Conference, pp. 103897–103929. External Links: Document, Link Cited by: §A.4, Appendix C, Appendix E, Appendix E, §1, §2, §3, §3, §4, §6.
D. Hendrycks and T. Dietterich Benchmarking neural network robustness to common corruptions and perturbations. In International Conference on Learning Representations, External Links: Link Cited by: §6.
D. Hendrycks, N. Mu, E. D. Cubuk, B. Zoph, J. Gilmer, and B. Lakshminarayanan AugMix: a simple data processing method to improve robustness and uncertainty. In International Conference on Learning Representations, External Links: Link Cited by: §6.
Y. Jin and E. J. Candès Model-free selective inference under covariate shift via weighted conformal p-values. Biometrika 113 (1), pp. asaf066. External Links: ISSN 1464-3510, Document, Link, https://academic.oup.com/biomet/article-pdf/113/1/asaf066/67273107/asaf066.pdf Cited by: §2.
M. Koklu and I. A. Ozkan Multiclass classification of dry beans using computer vision and machine learning techniques. Computers and Electronics in Agriculture 174, pp. 105507. External Links: ISSN 0168-1699, Document, Link Cited by: Appendix C, §6.
A. Krizhevsky Learning multiple layers of features from tiny images. Technical report University of Toronto. External Links: Link Cited by: §6.
J. Lee and Z. Ren Boosting e-BH via conditional calibration. External Links: 2404.17562, Link Cited by: §2.
J. Liu, H. Zeng, and H. Wei Improving backward conformal prediction via non-conformity score transformation. In Proceedings of the 43rd International Conference on Machine Learning, T. Zhang, M. Dudik, M. Jaggi, A. Agarwal, S. Li, D. Schuurmans, J. Zhu, F. Berkenkamp, H. Dong, and A. Bietti (Eds.), Proceedings of Machine Learning Research, Vol. 306, pp. 79675–79700. External Links: Link Cited by: §A.3, §A.3, §A.3, §A.4, §1, §1, §2, §4.
A. Meghrazi, P. Maneriker, S. Padhee, and S. Parthasarathy Interactive fairness auditing: leveraging AVOIR for dynamic evaluation and mitigation. In Companion of the 2025 International Conference on Management of Data, New York, NY, USA, pp. 191–194. External Links: Document, Link Cited by: §2.
S. Park, E. Dobriban, I. Lee, and O. Bastani PAC prediction sets under covariate shift. In International Conference on Learning Representations, External Links: Link Cited by: §2.
F. Pedregosa, G. Varoquaux, A. Gramfort, V. Michel, B. Thirion, O. Grisel, M. Blondel, P. Prettenhofer, R. Weiss, V. Dubourg, J. Vanderplas, A. Passos, D. Cournapeau, M. Brucher, M. Perrot, and É. Duchesnay Scikit-learn: machine learning in Python. Journal of Machine Learning Research 12 (85), pp. 2825–2830. External Links: Link Cited by: Appendix C.
D. Prinster, X. Han, A. Liu, and S. Saria WATCH: adaptive monitoring for AI deployments via weighted-conformal martingales. In Proceedings of the 42nd International Conference on Machine Learning, A. Singh, M. Fazel, D. Hsu, S. Lacoste-Julien, F. Berkenkamp, T. Maharaj, K. Wagstaff, and J. Zhu (Eds.), Proceedings of Machine Learning Research, Vol. 267, pp. 49830–49859. External Links: Link Cited by: §2.
B. Recht, R. Roelofs, L. Schmidt, and V. Shankar Do CIFAR-10 classifiers generalize to CIFAR-10?. External Links: 1806.00451, Link Cited by: Appendix C, §1, §6.
A. Srinivasan, A. T. Vadlamani, A. Meghrazi, and S. Parthasarathy FedCF: fair federated conformal prediction. External Links: 2509.22907, Link Cited by: §2.
P. Stojanov, M. Gong, J. Carbonell, and K. Zhang Low-dimensional density ratio estimation for covariate shift correction. In Proceedings of the Twenty-Second International Conference on Artificial Intelligence and Statistics, K. Chaudhuri and M. Sugiyama (Eds.), Proceedings of Machine Learning Research, Vol. 89, pp. 3449–3458. External Links: Link Cited by: §A.6, §A.6, §2.
M. Tan and Q. Le EfficientNet: rethinking model scaling for convolutional neural networks. In Proceedings of the 36th International Conference on Machine Learning, K. Chaudhuri and R. Salakhutdinov (Eds.), Proceedings of Machine Learning Research, Vol. 97, pp. 6105–6114. External Links: Link Cited by: §6.
R. J. Tibshirani, R. Foygel Barber, E. Candes, and A. Ramdas Conformal prediction under covariate shift. In Advances in Neural Information Processing Systems, H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alché-Buc, E. Fox, and R. Garnett (Eds.), Vol. 32, pp. . External Links: Link Cited by: Appendix C, §1, §2, §3, §5, §6.
V. Vovk, A. Gammerman, and G. Shafer Algorithmic learning in a random world. Springer, New York, NY. External Links: Document, Link Cited by: §1.
V. Vovk Conformal e-prediction. Pattern Recognition 166, pp. 111674. External Links: ISSN 0031-3203, Document, Link Cited by: §1, §2.
S. Zagoruyko and N. Komodakis Wide residual networks. In Proceedings of the British Machine Vision Conference (BMVC), E. R. H. Richard C. Wilson and W. A. P. Smith (Eds.), pp. 87.1–87.12. External Links: Document, ISBN 1-901725-59-6, Link Cited by: §6.
Appendix
Appendix A Proofs and additional results
A.1 Setting
Definition 1 (Setting), restated.
Let and . Let and be probability distributions on . Let , , be i.i.d. from , and let be independent of them. Assume for a measurable . Let be a measurable nonconformity score fixed independently of the data, and let . We define and for , and . We use the conventions and .
Since is a probability measure, .
Definition 2 (Weighted e-value, level and set), restated.
We define, for ,
For we define with . We define and .
Lemma A.1 (Closed form of ).
Let , and let be the -th smallest entry of , with . Then and .
Proof.
For , if and only if . So the set in the definition of is , whose infimum is if and which is empty otherwise. The map is -Lipschitz in , is -Lipschitz on , and takes values in .∎
A.2 Validity with the true weights
Theorem 1 (Weighted e-value validity), restated.
Let the setting of Definition 1 hold. Then .
Proof.
Let . At the true label on , and on it is ( there). Only the test point is drawn from ; replacing its law by and inserting gives, with i.i.d. from , . The integrand is at most and . The joint law is exchangeable and , are symmetric, so can be replaced by any index ; averaging over , the expectation equals . Since , , so by independence . Hence , with equality when .∎
Theorem 2 (Post-hoc validity), restated.
Let the setting of Definition 1 hold, and let be a random variable with values in . Then and .
Proof.
For and , . Take , , and use Theorem 1. The second claim is the first with (Lemma A.1), because iff .∎
Theorem A.1 (Miscoverage bound).
Let the setting of Definition 1 hold. We define . Assume . Then .
Proof.
by Theorem 2 and the assumption.∎
Remark A.1.
Let be a version of . The condition of Theorem A.1 is equivalent to , and holds when is non-increasing on the support of . Monotonicity is sufficient, not necessary: with uniform on and the covariance is .
Proposition A.1 (Unconditional bound).
Let the setting of Definition 1 hold. Then .
Proof.
With as above, and Cauchy–Schwarz give , and by Theorem 2.∎
A.3 The two-point score and the corrected level
Definition 3 (Weighted e-value using the two-point score), restated.
Let the setting of Definition 1 hold. We define as the -th smallest of , (so , with equality when the scores at are distinct), and . We define , and
and .
The score is the transformation of (Liu et al., 2026, eq. (21)) with threshold .
Theorem A.2 (Validity of the transformed e-value).
Let the setting of Definition 3 hold. Then .
Proof.
Theorem 1 applied to the score .∎
Lemma A.2 (Markov bound).
Let and be random variables. Then .
Proof.
pointwise. (This is the “corrected coverage level” of (Liu et al., 2026, Appendix E).)∎
Theorem 3 (Corrected level), restated.
Let the setting of Definition 3 hold. Then .
Proof.
Lemma A.2 with and .∎
Proposition 1 (Two-point closed form), restated.
Let the setting of Definition 3 hold. We define . Then and . Assume moreover . Then .
Proof.
for , at most labels, and otherwise. So the -th smallest entry is , and Lemma A.1 gives . At the true label , so . Under the extra assumption this equals -a.s.; the last equality is the change of measure. The unweighted closed form is (Liu et al., 2026, Corollary 3.4).∎
A.4 Two reports of the miscoverage
Definition 4 (Reports), restated.
Let the setting of Definition 3 hold, and let be weights on the calibration points. For we define (with )
, and . We define the identity, transformed and tight reports
The proof of Proposition 1 uses only the form of and Lemma A.1, so it applies to fold with any weights : with . For , iff , or and . We call for every non-degeneracy of the weights . The unweighted tight report is the estimator of (Liu et al., 2026, Appendix E).
Remark A.2 (Non-degeneracy).
Let the setting of Definition 4 hold. We define and, for , . Then for every with ,
the inequality is an equality if and only if for every , and for every if and only if and for every with . Let be a constant, and assume moreover for every . Then for every on the event . Assume moreover . Let be a measurable function that is fixed, or fitted on data independent of ; in the latter case all probabilities are conditional on those data. Let . We define . Assume . Then as .
Proof.
If then , so the denominator of is and ; if then and both sides are . By the note after Definition 4, , which gives the display. Since , equality holds iff for every with , that is, iff for every . Let . If then , and iff . If then . This gives the second equivalence, and the second claim follows from it. For the third claim, is the ratio of the averages of (since ) and of over . By Chebyshev these converge in probability to and , so in probability and . By the second claim, for every on this event.∎
Non-degeneracy thus compares the threshold of each missed point with one weighted average. With the weighted miss rate and the -weighted mean of over the missed points, , so non-degeneracy fails exactly when the miss rate exceeds the ratio of the smallest to the mean threshold among the missed points. For with a probability vector clipped from below at a constant , the -th largest probability at is at most , so the assumptions and of Remark A.2 hold with and .
Theorem A.3 (Consistency of the identity report).
Let the setting of Definition 4 hold with . Assume , and . Then as .
Proof.
Let and . Then , , and . Let ; by Chebyshev . Let be such that for . We define the surrogate by and .
Calibration folds. with and . On and for , and
By Lemma A.1, on and for , , and . Since , a bound that holds on for yields an bound. The summands are i.i.d. in , so , and .
Target. and . On and for the denominator is at least and . depends on the calibration data only. By Lemma A.1,
using .
Conclusion. With , , the numerator is by the three estimates and , and in probability.∎
With , the same rate was shown under stronger assumptions (Gauthier et al., 2025b, Theorem 3.1), namely scores bounded away from zero, and their conditions (P1)–(P2).
Theorem A.4 (Consistency of the tight report).
Let the setting of Definition 4 hold with . Assume , and . We define . Then as .
Proof.
Let be as above and , with and . Let , so . By the note after Definition 4, with , . We define and . On ,
and because is -Lipschitz and is shared. Hence, on , , where is the right-hand side of the display, and . The summands are i.i.d. in , so , and . Target. By Proposition 1, with . On the denominator is at least and . depends on the calibration data only, and , so . Conclusion. with ; the numerator is by the three estimates and , and in probability.∎
Remark A.3.
, and ; the proofs of Theorems A.3 and A.4 bound both through , and their constants also depend on and (resp. ); we do not claim that the effective sample size alone governs the error.
A.5 Estimated weights
Proposition A.2 (Finite-sample identity).
Let the setting of Definition 4 hold, and let and be two weight vectors on the calibration points. Assume and for every , that is, non-degeneracy of both weight vectors. We define and . Then
Proof.
Under the assumption , and likewise for ; subtract.∎
Proposition A.3 (Limit under estimated weights).
Let the setting of Definition 4 hold. Let be a measurable function that is fixed, or fitted on data independent of ; in the latter case all probabilities are conditional on those data. Let . Assume as . We define . Then, as , in probability and in probability.
Proof.
Let be the event in the assumption and . On , . Numerator and denominator are i.i.d. averages bounded by ; by Chebyshev they converge in probability to and , so in probability. For , . The second claim subtracts the constant .∎
Under non-degeneracy the tight report is the self-normalized importance-weighted estimate of the top- error, so Proposition A.3 is the classical limit of that estimator under misspecified weights.
Proposition 2 (Asymptotic bias of the tight report), restated.
Let the setting of Definition 4 hold. Let be a measurable function that is fixed, or fitted on data independent of ; in the latter case all probabilities are conditional on those data. Let , and assume as . We define . Let be a measurable map from to a measurable space . We define , and as versions of , and , the last two with values in . Then, as ,
in probability.
Proof.
The versions exist by the factorization lemma. Since , and have the same null sets, so no expectation below depends on the choice of versions. All of them are finite, since , is bounded and . By Proposition A.3 the limit is , and the last term equals by the first identity of Proposition A.4.∎
With the identity, and, under covariate shift, , so the second term vanishes and Proposition 2 reduces to the second claim of Proposition A.3.
Proposition A.4 (Comparing two representations).
Let the setting of Definition 3 hold. Let and be measurable maps into measurable spaces with for a measurable . We define , and as in Proposition 2, and , and , and in the same way with in place of . Then and
Assume moreover that is -measurable. Then .
Proof.
All expectations are finite and do not depend on the choice of versions, as in the proof of Proposition 2. For bounded measurable on , . Since is integrable and -measurable, , the last step by the previous identity with . Also . Subtracting gives the first identity. It also follows that , and likewise for . Since , the tower property gives and almost surely. Hence , which is the display. If is -measurable, then almost surely and .∎
By the first identity, is the second term of the limit in Proposition 2, the bias of the representation . The last expectation in the display above equals , the average under of the conditional covariance of and given . It can have either sign. Let with uniform, the identity, constant, and with , distinct scores at each , and a law of given with . Then the expectation equals . Neither of and is the smaller in general: with , uniform, , constant, distinct scores at each , and a law of given with , and give and , and and give and . All three examples arise with the penultimate embedding of a model and (Definition 5). Take , and , with in the first example and in the other two, and choose and so that the logits at the two values of are permutations of each other with distinct entries. The quantities above depend on only through , the scores at each are distinct, is constant, and with continuous.
A.6 Reduction to the sorted scores
Definition 5 (Sorted scores and rank), restated.
Let the setting of Definition 3 hold. We define as the vector sorted in increasing order, and as the position of label when is sorted by increasing with ties broken by label index, so that is a bijection and for every . We define as a version of with .
Proposition 3 (Reduction), restated.
Let the setting of Definition 5 hold. Assume that there are measurable , , with -a.s. and -a.s. for every . We define , , , , and as in Definitions 2 and 3 with replaced by for (so is replaced by ). Then (i) for every bounded measurable , and (ii) , , , and .
Proof.
(i) For bounded measurable , , by the assumption under , the change of measure, the definition of and the assumption under . Under the second condition of Proposition A.5, identity (i) is the conclusion of (Stojanov et al., 2019, Theorem 1) with replaced by . (ii) Consider the reduced problem with covariate , label and the fixed score . For every , , , and ; these are the quantities of Definition 3 for the score at . Since is a bijection, the vector of e-values of the original procedure with weights is a permutation of the vector of the reduced procedure, depends only on the multiset of entries, and iff is not in the reduced set; likewise for the transformed score. The reduced calibration data are i.i.d. from the law of under ; the reduced test point is a function of , hence independent of them, and by (i) its law has density with respect to the calibration law. So the reduced problem satisfies Definition 1 with density ratio and score , and Theorems 1, 2, A.2, 3 and Proposition A.1 applied to it give the stated inequalities.∎
Proposition A.5 (Conditions for the reduction).
Let the setting of Definition 5 hold. Assume that -a.s., or that -a.s. for every , or that for every bounded measurable . Then there are measurable , , with -a.s. and -a.s. for every .
Proof.
By the factorization lemma there are measurable with -a.s. It remains to show for every and every bounded measurable on . For bounded measurable , . If -a.s., then , conditioning on in the third step. If -a.s., then -a.s. and , conditioning on in the second step. This second condition is condition (i) of (Stojanov et al., 2019, Theorem 1) with replaced by . Under the third condition, its instances and , with conditioning on under in between, give .∎
By the third condition and part (i) of Proposition 3, the assumption of Proposition 3 holds exactly when the law of under has density with respect to its law under , that is, when the density ratio of the sorted scores and the rank depends only on the sorted scores.
Remark A.4.
Assume that the version of Definition 5 satisfies for a constant . Let , and assume . In Proposition 2 with and , (since ), and we may take , so the first term of the limit vanishes and the asymptotic bias of the tight report with weights is . The absolute value of this bias is bounded, for a bounded loss, by a total variation distance (Chen et al., 2021, Appendix B.3, Lemma 1); here it is given exactly for the loss . Since , under the assumption of Proposition 3 the conditional law of given is the same under and , so -a.s. and the asymptotic bias is zero.
Appendix B Why the test score is not reweighted
Remark B.1.
A seemingly natural alternative also reweights the test score in the numerator, . Repeating the change of measure of Theorem 1 leaves an extra factor , and by the law of large numbers as for bounded weights and scores, which exceeds when the shift moves mass toward inputs with larger scores. For example, with , on and on , and on and on , the limit is .
Appendix C Experimental details
Domain classifier.
Unless stated otherwise, the domain classifier in each draw is scikit-learn’s HistGradientBoostingClassifier (Pedregosa et al., 2011) with maximum depth and iterations, trained to separate the clean sample from the unlabeled test sample. With its predicted probability of the test class clipped to as in Tibshirani et al. (2019), the weights are ; a constant factor, such as the ratio of the two sample sizes, cancels in the reports. The clip bounds the weights, as Proposition 2 assumes. Appendix D gives the results under looser clips.
Dry Bean.
The data (Koklu and Ozkan, 2020) have beans with features and classes. They are split with scikit-learn’s train_test_split (test size , stratified, seed ) into training beans and a pool of . The classifier is XGBoost with trees of depth and multiclass log-loss; its accuracy on the pool is . The score is of the predicted probability, clipped at . Each of the draws (seed ) takes calibration beans and disjoint clean beans for the domain classifier; the rest of the pool is shuffled and split in halves, and unlabeled test beans and labeled test beans are drawn with replacement from the two halves with probability proportional to . The truth is the exact miscoverage of the size- set under the tilted pool, over the pool beans with labels ; the labeled test beans are used only to evaluate WSCP. Computed on the half from which the unlabeled test beans of a draw are drawn, this miscoverage differs from the pool value by at most 0.004 on average over the draws. Feature weights use standardized features. The calibrated variants use scikit-learn’s CalibratedClassifierCV (sigmoid or isotonic, with one final model or the average of five fold models) with folds grouped by bean, so that repeated draws of the same bean never appear in both a training and a held-out fold. Early stopping chooses the number of boosting iterations that minimizes log-loss on a grouped hold-out. Logistic regression is scikit-learn’s LogisticRegression with default settings and at most iterations, on the standardized features. ECE uses equal-width bins on a held-out domain sample of clean and test beans.
CIFAR-10-C.
Features are the logits and the input to the last linear layer of each model ( dimensions for EfficientNet-B0, for the WideResNet-40-2), computed once on the clean test images and on each corrupted set. The EfficientNet-B0 weights are those of the public code release of Gauthier et al. (2025b) (clean accuracy ); we did not find a stated license. The WideResNet-40-2 is RobustBench’s Hendrycks2020AugMix_WRN (RobustBench code and model weights: MIT license; AugMix code: Apache 2.0); its clean accuracy () and mean accuracy over the corrupted sets () match the RobustBench leaderboard. CIFAR-10-C is distributed under CC BY 4.0, and Dry Bean under CC BY 4.0. Image of every corrupted set is the corrupted version of clean image . Each cell uses draws, with the same images in every cell. A draw takes calibration images and further clean images for the domain classifier (seed ) and then, from the corrupted versions of the other images (seed ), unlabeled images for the domain classifier and ATC-NE, so no corrupted image of a draw is a version of one of its clean images. The wall criterion is the AUC of a gradient-boosting classifier trained on clean and corrupted embeddings and evaluated on other clean and other corrupted embeddings, the four samples being versions of different images (seed ). The sorted-score AUC uses the same procedure and the same samples on . At the walls the embedding AUC is at least 0.960 and the sorted-score AUC is between 0.527 and 0.972. The three walls of EfficientNet-B0 are its three cells with the largest top-1 error, but for the WideResNet contrast at severity is a wall (AUC 0.96) with a top-1 error of 7.2%, below that of JPEG compression at severities and (12.1% and 14.7%), which are not walls. Weighted split conformal prediction chooses its level on the unlabeled corrupted images used for the weights and is evaluated on the corrupted versions of the images that are neither in that sample nor among the clean images of the draw.
CIFAR-10.1.
We use version v6 (Recht et al., 2018), with images, per class. Its images are part of the Tiny Images data set, and its repository states that they can be used in the same way; the code of the repository is under the MIT license. Features are computed as for CIFAR-10-C. Each of the draws (seed ) takes calibration images and further images for the domain classifier from the clean CIFAR-10 test images, and unlabeled CIFAR-10.1 images for the domain classifier and ATC-NE. The truth is the miss rate of the size- set over all images. A gradient-boosting classifier fitted on clean and CIFAR-10.1 images separates others of each with an AUC of at most 0.66 on the embedding or the sorted scores (seed ), so there is no wall.
Weighted split conformal prediction.
We match the mean set size rather than cap every set at , because a WSCP set with at most labels lies inside the size- set, so a capped WSCP could not miss less often. Its level is chosen after seeing the calibration scores, so the guarantee of WSCP, which is for a level fixed in advance, does not strictly apply. Its miscoverage is measured on held-out labeled test points. Appendix D repeats it with a level fixed in advance.
Compute.
The WideResNet features were extracted on one NVIDIA V100 GPU in about two minutes; the EfficientNet-B0 features were computed once from the released weights. All other computations ran on CPUs. The CIFAR-10-C reports and WSCP for one model and corruption took to minutes as one job on cores, and the checks with other domain classifiers at most minutes.
Appendix D Additional results
The errors are understatements.
Table 3 gives the mean gaps behind the mean absolute gaps of Table 2. They are negative for every estimator in every group, except for the tight report with score weights in one group. Of the 90 settings, the tight report understates the miscoverage in 90 without weights, 79 with embedding weights and 62 with score weights, and ATC-NE understates it in 73.
Table 3: CIFAR-10-C by model, and overlap, as Table 2: mean gap (report truth) in percentage points over the settings of a group and their draws, for the tight report with no, embedding and score weights and for ATC-NE.
| tight report | ||||||
|---|---|---|---|---|---|---|
| model | none | emb. | score | ATC-NE | ||
| EfficientNet-B0 | 1 | no wall | 14.64 | 7.86 | 3.05 | 2.59 |
| walls | 68.13 | 52.33 | 42.98 | 29.59 | ||
| 2 | no wall | 9.15 | 6.36 | 3.43 | 2.79 | |
| walls | 60.80 | 53.65 | 48.67 | 41.87 | ||
| 3 | no wall | 5.64 | 4.03 | 2.27 | 1.88 | |
| walls | 49.08 | 43.90 | 42.39 | 38.66 | ||
| WRN-40-2 (AugMix) | 1 | no wall | 3.00 | 0.86 | +0.19 | 0.12 |
| walls | 12.53 | 5.03 | 5.26 | 3.68 | ||
| 2 | no wall | 1.46 | 0.86 | 0.36 | 0.29 | |
| walls | 6.80 | 4.94 | 4.23 | 3.31 | ||
| 3 | no wall | 0.69 | 0.44 | 0.19 | 0.02 | |
| walls | 3.90 | 3.21 | 2.65 | 2.13 |
Table 4: CIFAR-10-C: number of cells in which each method is valid (mean over draws of the report minus the true miscoverage is ; for WSCP, mean miscoverage its level ), for the identity report with score weights (“score”), embedding weights (“emb.”) and no weights (“none”). WSCP uses score weights; is the mean share of test images whose WSCP set has more than labels.
settings without a wall (embedding AUC ) walls (AUC ) model #cells identity valid WSCP #cells identity valid WSCP score emb. none valid score emb. none valid 1 12 9 2 0 7 2% 3 0 0 0 0 EfficientNet-B0 2 12 10 7 3 1 25% 3 0 0 0 0 3 12 11 9 6 2 30% 3 0 0 0 0 1 9 0 0 0 8 1% 6 0 2 0 1 WRN-40-2 (AugMix) 2 9 9 8 5 4 19% 6 4 6 1 0 3 9 9 9 7 4 23% 6 5 6 2 0
Figure 2: CIFAR-10-C at (top) and (bottom), with the layout of Figure 1.
Table 5: Dry Bean, , same layout as Table 1. Largest standard error 0.012.
weights hardness hardness easy easy benign benign true miscoverage 0.064 0.144 0.005 0.003 0.012 0.007 identity report true weights +0.170 +0.316 +0.025 +0.018 +0.043 +0.040 features +0.094 +0.152 +0.035 +0.028 +0.045 +0.044 features + Platt +0.055 +0.110 +0.051 +0.036 +0.050 +0.046 sorted scores +0.233 +0.287 +0.026 +0.021 +0.046 +0.037 tight report true weights 0.003 0.021 0.000 0.000 0.000 0.000 features 0.027 0.061 +0.002 +0.002 0.001 0.000 features + Platt 0.037 0.074 +0.007 +0.005 +0.001 +0.002 sorted scores +0.015 0.036 0.001 0.001 0.001 0.001 ATC-NE +0.120 +0.384 0.004 0.003 0.003 0.004
ATC on Dry Bean.
As on CIFAR-10-C, the threshold of ATC-NE is the confidence value below which the share of calibration points equals their miss rate. Here it is fitted on the calibration beans of a draw, and the estimate is the share of the unlabeled test beans below it; its gaps are the last rows of Table 1 and Table 5. Under the hardness shift ATC-NE overstates the miscoverage in all four settings, and under the easy and benign shifts it understates it. The hardness tilt is the model’s entropy, the negative of the confidence that ATC-NE thresholds, so this shift moves weight toward low confidence. ATC counts every bean below its threshold as a miss, but in the pool only 39% of the beans below the threshold at are misses, so such a shift is overcounted. The overstatement remains under other choices. At the gaps under the hardness shift are +0.179 and +0.409 with the maximum probability as the confidence, +0.201 and +0.445 when the probabilities are first calibrated by temperature scaling on the calibration beans, and +0.206 and +0.458 with the threshold of the authors’ code, which is the next lower confidence value among the calibration points.
For each CIFAR-10-C cell the tables below give the embedding AUC (∗: wall), the true miscoverage of the size- set, the mean gap over draws (standard error in parentheses) of the identity, transformed () and tight reports with score weights, of the identity and tight reports with embedding weights, and of ATC-NE, and, for WSCP with score weights, its level , its mean miscoverage and the mean share of test images whose set has more than labels. A gap that rounds to keeps its sign.
Table 6: CIFAR-10-C, EfficientNet-B0, .
cell AUC truth score weights: gap emb. weights: gap ATC-NE WSCP (score weights) identity transf. tight identity tight gap miscov. Gaussian noise 1 0.909 0.329 0.013 (0.007) 0.125 (0.004) 0.083 (0.005) 0.159 (0.007) 0.171 (0.006) 0.073 (0.003) 0.256 0.327 2% Gaussian noise 3 0.985∗ 0.727 0.230 (0.008) 0.407 (0.006) 0.397 (0.006) 0.477 (0.012) 0.525 (0.010) 0.336 (0.004) 0.343 0.728 3% Gaussian noise 5 0.993∗ 0.809 0.318 (0.007) 0.497 (0.005) 0.493 (0.004) 0.541 (0.013) 0.603 (0.010) 0.438 (0.004) 0.328 0.808 3% Defocus blur 1 0.513 0.091 +0.001 (0.003) 0.032 (0.001) +0.008 (0.002) +0.003 (0.009) 0.000 (0.002) 0.001 (0.001) 0.102 0.092 1% Defocus blur 3 0.769 0.177 +0.032 (0.006) 0.046 (0.003) 0.001 (0.003) 0.031 (0.004) 0.037 (0.003) 0.014 (0.002) 0.182 0.177 1% Defocus blur 5 0.941 0.492 +0.014 (0.009) 0.174 (0.006) 0.164 (0.006) 0.117 (0.010) 0.220 (0.007) 0.113 (0.004) 0.340 0.492 3% Fog 1 0.522 0.098 0.005 (0.003) 0.036 (0.002) +0.004 (0.002) +0.000 (0.010) 0.006 (0.002) 0.003 (0.001) 0.104 0.097 1% Fog 3 0.733 0.160 +0.017 (0.004) 0.044 (0.003) +0.005 (0.003) 0.025 (0.007) 0.026 (0.003) 0.003 (0.002) 0.169 0.160 1% Fog 5 0.915 0.426 +0.049 (0.008) 0.122 (0.006) 0.101 (0.006) 0.119 (0.008) 0.183 (0.007) 0.069 (0.003) 0.338 0.424 3% Contrast 1 0.596 0.102 0.006 (0.002) 0.037 (0.001) +0.005 (0.002) 0.007 (0.008) 0.006 (0.002) 0.005 (0.001) 0.109 0.103 1% Contrast 3 0.912 0.304 +0.069 (0.008) 0.067 (0.005) 0.031 (0.006) 0.067 (0.008) 0.101 (0.006) 0.019 (0.003) 0.282 0.304 2% Contrast 5 1.000∗ 0.775 0.114 (0.011) 0.355 (0.009) 0.399 (0.009) 0.249 (0.025) 0.442 (0.025) 0.113 (0.005) 0.410 0.776 6% JPEG 1 0.697 0.160 +0.029 (0.006) 0.038 (0.003) +0.012 (0.004) 0.028 (0.007) 0.036 (0.002) 0.000 (0.002) 0.179 0.159 1% JPEG 3 0.763 0.221 +0.053 (0.008) 0.048 (0.005) 0.002 (0.006) 0.055 (0.004) 0.066 (0.002) 0.002 (0.002) 0.227 0.220 2% JPEG 5 0.800 0.268 +0.066 (0.009) 0.058 (0.005) 0.016 (0.006) 0.064 (0.005) 0.091 (0.003) 0.009 (0.003) 0.264 0.265 2%
Table 7: CIFAR-10-C, EfficientNet-B0, .
cell AUC truth score weights: gap emb. weights: gap ATC-NE WSCP (score weights) identity transf. tight identity tight gap miscov. Gaussian noise 1 0.909 0.179 0.000 (0.004) 0.104 (0.003) 0.074 (0.005) 0.076 (0.004) 0.122 (0.003) 0.067 (0.003) 0.043 0.141 26% Gaussian noise 3 0.985∗ 0.577 0.295 (0.007) 0.457 (0.004) 0.430 (0.006) 0.421 (0.007) 0.504 (0.006) 0.398 (0.005) 0.087 0.567 27% Gaussian noise 5 0.993∗ 0.690 0.437 (0.005) 0.593 (0.003) 0.572 (0.004) 0.522 (0.007) 0.621 (0.007) 0.547 (0.004) 0.076 0.682 25% Defocus blur 1 0.513 0.032 +0.023 (0.002) 0.006 (0.001) +0.003 (0.001) +0.026 (0.006) +0.001 (0.002) +0.001 (0.001) 0.010 0.010 23% Defocus blur 3 0.769 0.079 +0.038 (0.004) 0.026 (0.003) 0.011 (0.003) +0.003 (0.002) 0.032 (0.002) 0.013 (0.002) 0.025 0.040 25% Defocus blur 5 0.941 0.334 0.053 (0.007) 0.212 (0.005) 0.188 (0.006) 0.128 (0.007) 0.231 (0.005) 0.152 (0.004) 0.087 0.303 25% Fog 1 0.522 0.032 +0.022 (0.001) 0.007 (0.001) +0.004 (0.001) +0.029 (0.006) +0.002 (0.002) +0.002 (0.001) 0.010 0.010 23% Fog 3 0.733 0.066 +0.034 (0.003) 0.023 (0.002) 0.002 (0.003) +0.013 (0.005) 0.021 (0.002) 0.005 (0.002) 0.021 0.030 25% Fog 5 0.915 0.263 +0.009 (0.006) 0.146 (0.004) 0.118 (0.006) 0.089 (0.005) 0.170 (0.004) 0.088 (0.004) 0.081 0.234 25% Contrast 1 0.596 0.035 +0.021 (0.001) 0.011 (0.001) +0.001 (0.001) +0.022 (0.005) 0.003 (0.002) 0.001 (0.001) 0.010 0.011 23% Contrast 3 0.912 0.153 +0.061 (0.006) 0.057 (0.004) 0.024 (0.006) 0.013 (0.005) 0.076 (0.004) 0.015 (0.003) 0.057 0.121 25% Contrast 5 1.000∗ 0.647 0.257 (0.010) 0.463 (0.007) 0.458 (0.008) 0.254 (0.019) 0.485 (0.020) 0.312 (0.007) 0.195 0.647 22% JPEG 1 0.697 0.064 +0.046 (0.004) 0.018 (0.002) +0.008 (0.004) +0.015 (0.004) 0.017 (0.002) +0.006 (0.002) 0.022 0.030 25% JPEG 3 0.763 0.095 +0.062 (0.005) 0.027 (0.003) +0.004 (0.005) +0.001 (0.002) 0.036 (0.002) +0.006 (0.002) 0.035 0.061 24% JPEG 5 0.800 0.128 +0.063 (0.006) 0.045 (0.004) 0.014 (0.006) 0.012 (0.003) 0.059 (0.002) 0.009 (0.002) 0.046 0.092 25%
Table 8: CIFAR-10-C, EfficientNet-B0, .
cell AUC truth score weights: gap emb. weights: gap ATC-NE WSCP (score weights) identity transf. tight identity tight gap miscov. Gaussian noise 1 0.909 0.105 +0.028 (0.003) 0.067 (0.002) 0.053 (0.003) 0.023 (0.003) 0.075 (0.002) 0.048 (0.002) 0.016 0.075 32% Gaussian noise 3 0.985∗ 0.431 0.228 (0.005) 0.370 (0.003) 0.356 (0.005) 0.305 (0.005) 0.394 (0.004) 0.340 (0.004) 0.035 0.442 31% Gaussian noise 5 0.993∗ 0.546 0.370 (0.003) 0.500 (0.002) 0.493 (0.003) 0.408 (0.006) 0.513 (0.005) 0.482 (0.003) 0.030 0.547 31% Defocus blur 1 0.513 0.015 +0.029 (0.001) 0.002 (0.001) +0.001 (0.001) +0.033 (0.005) +0.001 (0.002) +0.000 (0.001) 0.006 0.005 28% Defocus blur 3 0.769 0.036 +0.053 (0.003) 0.009 (0.002) 0.003 (0.002) +0.029 (0.002) 0.014 (0.001) 0.003 (0.001) 0.011 0.018 30% Defocus blur 5 0.941 0.215 0.009 (0.005) 0.148 (0.003) 0.133 (0.005) 0.059 (0.005) 0.163 (0.004) 0.114 (0.003) 0.032 0.205 30% Fog 1 0.522 0.015 +0.028 (0.001) 0.003 (0.001) +0.001 (0.001) +0.034 (0.005) +0.002 (0.002) 0.000 (0.001) 0.005 0.005 28% Fog 3 0.733 0.033 +0.045 (0.002) 0.011 (0.001) 0.001 (0.002) +0.031 (0.004) 0.010 (0.001) 0.001 (0.001) 0.008 0.013 30% Fog 5 0.915 0.163 +0.036 (0.005) 0.099 (0.003) 0.083 (0.005) 0.030 (0.003) 0.110 (0.003) 0.059 (0.003) 0.030 0.141 30% Contrast 1 0.596 0.016 +0.029 (0.001) 0.003 (0.001) +0.001 (0.001) +0.031 (0.004) 0.000 (0.001) 0.000 (0.001) 0.005 0.005 29% Contrast 3 0.912 0.089 +0.073 (0.004) 0.035 (0.003) 0.015 (0.004) +0.020 (0.004) 0.051 (0.003) 0.012 (0.003) 0.020 0.060 30% Contrast 5 1.000∗ 0.535 0.236 (0.007) 0.419 (0.005) 0.423 (0.007) 0.182 (0.017) 0.410 (0.017) 0.339 (0.007) 0.091 0.536 32% JPEG 1 0.697 0.032 +0.052 (0.003) 0.007 (0.002) +0.007 (0.003) +0.031 (0.004) 0.010 (0.001) +0.005 (0.001) 0.008 0.014 29% JPEG 3 0.763 0.050 +0.071 (0.004) 0.012 (0.002) +0.006 (0.004) +0.026 (0.002) 0.022 (0.001) +0.006 (0.002) 0.012 0.027 30% JPEG 5 0.800 0.067 +0.078 (0.005) 0.020 (0.003) 0.001 (0.005) +0.024 (0.002) 0.033 (0.002) +0.001 (0.002) 0.015 0.042 30%
Table 9: CIFAR-10-C, WideResNet-40-2 (AugMix), .
cell AUC truth score weights: gap emb. weights: gap ATC-NE WSCP (score weights) identity transf. tight identity tight gap miscov. Gaussian noise 1 0.927 0.086 0.026 (0.003) 0.045 (0.002) 0.011 (0.002) 0.017 (0.003) 0.003 (0.003) 0.005 (0.001) 0.079 0.085 1% Gaussian noise 3 0.993∗ 0.204 0.081 (0.005) 0.124 (0.003) 0.080 (0.004) 0.058 (0.008) 0.079 (0.009) 0.058 (0.002) 0.136 0.203 1% Gaussian noise 5 0.997∗ 0.288 0.135 (0.006) 0.187 (0.004) 0.145 (0.005) 0.082 (0.012) 0.143 (0.013) 0.109 (0.002) 0.156 0.286 2% Defocus blur 1 0.529 0.049 0.013 (0.001) 0.023 (0.001) +0.005 (0.002) 0.018 (0.001) 0.001 (0.001) +0.001 (0.001) 0.055 0.049 0% Defocus blur 3 0.834 0.054 0.014 (0.001) 0.026 (0.001) +0.003 (0.002) 0.010 (0.001) +0.008 (0.002) +0.001 (0.001) 0.058 0.055 0% Defocus blur 5 0.977∗ 0.095 0.022 (0.003) 0.044 (0.002) 0.009 (0.003) 0.010 (0.004) 0.005 (0.006) 0.000 (0.002) 0.088 0.095 1% Fog 1 0.598 0.049 0.012 (0.001) 0.023 (0.001) +0.006 (0.001) 0.017 (0.001) 0.001 (0.001) +0.002 (0.001) 0.056 0.049 0% Fog 3 0.888 0.063 0.015 (0.001) 0.029 (0.001) +0.003 (0.002) 0.004 (0.003) +0.006 (0.003) 0.000 (0.001) 0.068 0.063 0% Fog 5 0.987∗ 0.175 0.042 (0.005) 0.086 (0.003) 0.043 (0.004) 0.039 (0.007) 0.061 (0.009) 0.037 (0.002) 0.139 0.175 1% Contrast 1 0.684 0.050 0.013 (0.001) 0.023 (0.001) +0.005 (0.002) 0.016 (0.001) 0.001 (0.001) +0.003 (0.001) 0.056 0.050 0% Contrast 3 0.961∗ 0.072 0.016 (0.002) 0.033 (0.001) +0.002 (0.002) +0.009 (0.005) +0.010 (0.005) 0.001 (0.001) 0.076 0.071 1% Contrast 5 0.999∗ 0.209 0.015 (0.008) 0.082 (0.005) 0.040 (0.006) +0.084 (0.014) 0.024 (0.021) 0.015 (0.002) 0.184 0.208 2% JPEG 1 0.746 0.087 0.014 (0.003) 0.038 (0.002) +0.003 (0.003) 0.033 (0.002) 0.015 (0.002) 0.001 (0.001) 0.094 0.086 1% JPEG 3 0.844 0.121 0.007 (0.005) 0.047 (0.003) +0.001 (0.005) 0.047 (0.003) 0.030 (0.003) 0.006 (0.002) 0.130 0.120 1% JPEG 5 0.880 0.147 0.001 (0.006) 0.049 (0.004) +0.002 (0.005) 0.057 (0.004) 0.041 (0.005) 0.006 (0.002) 0.157 0.147 1%
Table 10: CIFAR-10-C, WideResNet-40-2 (AugMix), .
cell AUC truth score weights: gap emb. weights: gap ATC-NE WSCP (score weights) identity transf. tight identity tight gap miscov. Gaussian noise 1 0.927 0.029 +0.010 (0.001) 0.016 (0.001) 0.008 (0.001) +0.021 (0.002) 0.001 (0.002) 0.005 (0.001) 0.006 0.010 20% Gaussian noise 3 0.993∗ 0.093 0.016 (0.003) 0.064 (0.002) 0.053 (0.003) +0.019 (0.005) 0.041 (0.007) 0.043 (0.002) 0.020 0.075 20% Gaussian noise 5 0.997∗ 0.151 0.056 (0.004) 0.115 (0.002) 0.103 (0.003) +0.017 (0.010) 0.092 (0.008) 0.088 (0.002) 0.028 0.144 20% Defocus blur 1 0.529 0.013 +0.012 (0.001) 0.005 (0.000) +0.000 (0.001) +0.009 (0.000) 0.002 (0.000) +0.001 (0.001) 0.004 0.003 18% Defocus blur 3 0.834 0.017 +0.009 (0.001) 0.008 (0.000) 0.004 (0.001) +0.013 (0.001) 0.004 (0.001) 0.003 (0.001) 0.004 0.004 18% Defocus blur 5 0.977∗ 0.037 +0.008 (0.002) 0.022 (0.001) 0.016 (0.001) +0.023 (0.002) 0.022 (0.003) 0.011 (0.001) 0.010 0.015 18% Fog 1 0.598 0.014 +0.011 (0.001) 0.006 (0.000) 0.000 (0.001) +0.009 (0.000) 0.002 (0.001) 0.001 (0.001) 0.004 0.003 18% Fog 3 0.888 0.019 +0.012 (0.001) 0.009 (0.000) 0.003 (0.001) +0.022 (0.002) 0.004 (0.001) 0.003 (0.001) 0.004 0.004 19% Fog 5 0.987∗ 0.076 +0.005 (0.003) 0.048 (0.001) 0.037 (0.002) +0.023 (0.005) 0.059 (0.002) 0.032 (0.002) 0.015 0.045 22% Contrast 1 0.684 0.014 +0.011 (0.001) 0.005 (0.000) 0.000 (0.001) +0.010 (0.001) 0.002 (0.001) 0.000 (0.001) 0.004 0.003 18% Contrast 3 0.961∗ 0.022 +0.014 (0.001) 0.010 (0.001) 0.003 (0.001) +0.037 (0.003) 0.004 (0.003) 0.002 (0.001) 0.005 0.006 19% Contrast 5 0.999∗ 0.099 +0.021 (0.005) 0.054 (0.003) 0.042 (0.004) +0.149 (0.010) 0.079 (0.008) 0.022 (0.003) 0.031 0.070 19% JPEG 1 0.746 0.028 +0.019 (0.002) 0.011 (0.001) 0.001 (0.002) +0.008 (0.001) 0.009 (0.001) 0.000 (0.001) 0.005 0.008 20% JPEG 3 0.844 0.044 +0.027 (0.003) 0.019 (0.002) 0.006 (0.003) +0.004 (0.002) 0.021 (0.002) 0.005 (0.001) 0.009 0.015 21% JPEG 5 0.880 0.059 +0.031 (0.004) 0.026 (0.002) 0.010 (0.003) 0.001 (0.002) 0.033 (0.002) 0.010 (0.002) 0.013 0.028 21%
Table 11: CIFAR-10-C, WideResNet-40-2 (AugMix), .
cell AUC truth score weights: gap emb. weights: gap ATC-NE WSCP (score weights) identity transf. tight identity tight gap miscov. Gaussian noise 1 0.927 0.012 +0.021 (0.001) 0.004 (0.000) 0.002 (0.001) +0.032 (0.002) 0.002 (0.002) 0.000 (0.001) 0.003 0.005 24% Gaussian noise 3 0.993∗ 0.051 +0.011 (0.002) 0.033 (0.001) 0.030 (0.002) +0.050 (0.004) 0.035 (0.004) 0.027 (0.002) 0.009 0.042 25% Gaussian noise 5 0.997∗ 0.091 0.015 (0.003) 0.069 (0.001) 0.067 (0.002) +0.063 (0.008) 0.067 (0.006) 0.061 (0.002) 0.013 0.094 25% Defocus blur 1 0.529 0.005 +0.016 (0.001) 0.000 (0.000) +0.000 (0.000) +0.014 (0.000) 0.000 (0.000) +0.001 (0.001) 0.002 0.002 21% Defocus blur 3 0.834 0.007 +0.016 (0.001) 0.002 (0.000) 0.001 (0.000) +0.020 (0.001) 0.002 (0.000) 0.001 (0.001) 0.002 0.002 22% Defocus blur 5 0.977∗ 0.016 +0.021 (0.001) 0.007 (0.001) 0.007 (0.001) +0.038 (0.002) 0.012 (0.001) 0.005 (0.001) 0.005 0.006 24% Fog 1 0.598 0.005 +0.017 (0.000) 0.000 (0.000) +0.001 (0.000) +0.015 (0.000) +0.001 (0.000) +0.001 (0.001) 0.002 0.002 21% Fog 3 0.888 0.008 +0.018 (0.001) 0.003 (0.000) 0.002 (0.001) +0.027 (0.001) +0.001 (0.001) 0.000 (0.001) 0.002 0.002 22% Fog 5 0.987∗ 0.039 +0.026 (0.002) 0.024 (0.001) 0.022 (0.002) +0.049 (0.004) 0.028 (0.002) 0.019 (0.002) 0.007 0.022 26% Contrast 1 0.684 0.005 +0.017 (0.001) 0.000 (0.000) +0.001 (0.000) +0.016 (0.000) +0.001 (0.001) +0.001 (0.001) 0.002 0.002 21% Contrast 3 0.961∗ 0.009 +0.021 (0.001) 0.003 (0.000) 0.001 (0.001) +0.043 (0.002) +0.003 (0.002) 0.000 (0.001) 0.002 0.003 23% Contrast 5 0.999∗ 0.056 +0.042 (0.004) 0.034 (0.002) 0.033 (0.003) +0.179 (0.009) 0.054 (0.001) 0.016 (0.003) 0.014 0.035 25% JPEG 1 0.746 0.011 +0.028 (0.002) 0.003 (0.001) 0.000 (0.002) +0.020 (0.001) 0.004 (0.001) +0.002 (0.001) 0.003 0.004 24% JPEG 3 0.844 0.021 +0.037 (0.003) 0.008 (0.001) 0.004 (0.002) +0.020 (0.001) 0.012 (0.001) 0.000 (0.001) 0.004 0.006 25% JPEG 5 0.880 0.030 +0.043 (0.003) 0.014 (0.001) 0.011 (0.002) +0.019 (0.002) 0.021 (0.001) 0.006 (0.002) 0.005 0.011 26%
Non-degeneracy fails when the miscoverage is high.
By Remark A.2, non-degeneracy asks that the threshold of every missed calibration point be positive and at least , the weighted miss rate times the weighted mean threshold of the missed points. A missed point with a smaller threshold counts for less than one miss, so the tight report is then below the weighted miss rate. Table 12 shows how often this happens on CIFAR-10-C. In our runs it is rare. With score weights a degenerate fold occurs in 33 of the 900 EfficientNet-B0 draws at and in no other draw, and changes the mean tight report of a setting by less than 0.02 points, so the tight report is in effect the importance-weighted miss rate of the size- set. With embedding weights it is more frequent and changes a setting’s mean by less than one point. The last two columns take the weights out of the question. They give the limit of the tight report when the calibration data come from the corrupted images themselves, with no shift and no weights. By the proof of Theorem A.4 this limit is , and under the assumptions of that theorem exact weights give the same limit. It is below the miscoverage in seven of the EfficientNet-B0 cells at . Every cell in which it is below has a miscoverage of at least 28%, and the shortfall is up to 15.0 points. In each of these settings the weighted miss rate of our runs is below the miscoverage, so the estimated weights give the missed points less weight than the corrupted images do. This lowers and makes degenerate folds rarer in our runs than in this limit. On Dry Bean a degenerate fold occurs only under the hardness shift at and , in of the draws with the true weights and in with score weights, and changes the tight report by at most 0.001.
Table 12: Non-degeneracy on CIFAR-10-C. Score and embedding weights: number of the draws of a row ( cells, draws each) with a degenerate fold, and the largest change of a setting’s mean tight report relative to the weighted miss rate, in percentage points. Last two columns: the limit of the tight report when the calibration data come from the corrupted images themselves, without weights, which is also its limit under exact weights; number of the cells in which this limit is below the miscoverage, and the largest such shortfall in percentage points.
| score weights | embedding weights | corrupted calibration data | |||||
|---|---|---|---|---|---|---|---|
| model | draws | largest change | draws | largest change | cells | largest shortfall | |
| EfficientNet-B0 | 1 | 33 | 0.01 | 62 | 0.99 | 7 | 14.96 |
| 2 | 0 | 0.00 | 13 | 0.00 | 4 | 5.31 | |
| 3 | 0 | 0.00 | 0 | 0.00 | 3 | 0.83 | |
| WRN-40-2 (AugMix) | 1 | 0 | 0.00 | 26 | 0.02 | 1 | 0.16 |
| 2 | 0 | 0.00 | 0 | 0.00 | 0 | 0.00 | |
| 3 | 0 | 0.00 | 0 | 0.00 | 0 | 0.00 |
The binned reliability shift.
The clean images are binned by their top- softmax mass into equal-count bins, and the corrupted miss rate is predicted as the clean miss rate of each bin averaged over the bins of the corrupted images. The error of this prediction, which uses the corrupted labels through the truth, estimates the negative of the binned reliability shift. With both errors divided by the miscoverage, its correlation with the error of the tight report with score weights is 0.88 (EfficientNet-B0) and 0.87 (WideResNet) without walls; with , or bins the correlations lie between 0.92 and 0.96, and between 0.83 and 0.91 without walls. Without the division they are 0.995 and 0.969, which partly reflects that larger miscoverages give larger errors, and 0.97 and 0.42 without walls. The binned prediction lies below the tight report with score weights in 44 and 45 of the 45 settings of each model, by 2.4 and 0.8 points on average. At the walls the summed absolute binned shift is 0.51 of the summed miscoverage for the WideResNet and 0.73 for EfficientNet-B0.
The comparison does not depend on the domain classifier.
Section 6 fits one domain classifier, gradient boosting, on both the embedding and the sorted scores. To check that this choice does not favor the sorted scores, we repeated the CIFAR-10-C runs on the same draws with three other domain classifiers (Table 13). They are scikit-learn’s LogisticRegression and MLPClassifier (one hidden layer of units, early stopping), both on standardized features, and the gradient boosting of Appendix C stopped early on a held-out fifth of its training sample. With every classifier, score weights bring the tight report closer to the miscoverage than embedding weights in all 12 groups of Table 2. Gradient boosting also gives embedding weights their smallest mean absolute gap among the four classifiers, with and without walls, and the score weights of the main text are closer than the embedding weights of every classifier in all 12 groups.
Table 13: CIFAR-10-C: mean absolute gap of the tight report, in percentage points, with embedding and with score weights from four domain classifiers fitted on the same draws. Means over the settings without walls or at the walls and their draws. Last column: groups of Table 2 in which score weights have the smaller mean absolute gap.
| no walls | walls | score weights | |||
|---|---|---|---|---|---|
| domain classifier | embedding | score | embedding | score | closer in |
| Gradient boosting (main text) | 4.20 | 2.93 | 20.85 | 17.84 | 12 of 12 groups |
| Logistic regression | 5.40 | 3.37 | 23.13 | 17.83 | 12 of 12 groups |
| Multilayer perceptron | 4.77 | 3.45 | 22.14 | 17.98 | 12 of 12 groups |
| Gradient boosting, early stopping | 4.27 | 3.53 | 20.94 | 18.89 | 12 of 12 groups |
A looser weight clip leaves the comparison unchanged.
The clip of to caps the weights at . Table 14 gives the reports of the same fitted classifiers under two looser clips. Under every clip, score weights are closer than embedding weights in all 12 groups, and at the walls the tight report stays more than points below the miscoverage on average. The clip does matter for the level of the report with score weights. In a setting without walls at most 0.27% of the calibration images have with score weights, but under a looser clip these few images take large weights, so the tight report rises on average and varies more from draw to draw. Its mean gap moves toward zero while its mean absolute gap grows, so neither clip is better on both counts. Without walls the report with embedding weights changes by less than points. On Dry Bean under the hardness shift, the gap with feature weights changes by at most 0.003 and the gap with score weights rises.
Table 14: Sensitivity to the clip of the domain classifier’s probability . The classifiers are fitted once and only the clip changes. CIFAR-10-C: tight report over the settings without walls or at the walls and their draws; SD is the standard deviation of the gap over the draws of a setting, averaged over the settings; “closer in” counts the groups of Table 2 in which score weights have the smaller mean absolute gap. Dry Bean: gap of the tight report as in Table 1, means over draws.
CIFAR-10-C, tight report (percentage points) Dry Bean, hardness, score weights, no walls embedding, no walls walls, mean gap score feature weights score weights clip of mean gap SD mean gap score emb. closer in (main text) 1.72 2.20 2.93 3.79 4.20 17.6 19.6 12 of 12 0.081 0.101 +0.042 0.006 0.93 3.60 3.18 3.75 4.23 16.9 18.6 12 of 12 0.081 0.104 +0.085 +0.032 0.85 3.89 3.26 3.75 4.23 16.9 18.0 12 of 12 0.081 0.104 +0.093 +0.021
Fixing the level of WSCP in advance does not remove its excess.
WSCP chooses its level on the unlabeled test sample of the draw, so its guarantee, which is for a level fixed in advance, does not strictly apply. To check whether this choice explains why its miscoverage exceeds its level, we reran it with the level chosen in the previous draw, which is fixed before the current draw (Table 15). The excess changes by less than one point in every row, and WSCP keeps its level in no more settings than before. The data-dependent level is therefore not what makes WSCP exceed its level. With the true weights on Dry Bean, WSCP keeps its level under the same data-dependent choice (Section 6), which points to the estimated weights.
Table 15: WSCP with its level chosen as in the main text and with the level chosen in the previous draw. CIFAR-10-C: score weights, settings without walls. Dry Bean: feature weights. Valid: settings in which the mean miscoverage is at most the mean level. Excess: miscoverage minus level in percentage points, averaged over the settings of a row and their draws ( on CIFAR-10-C, on Dry Bean; the first draw of a setting has no previous level).
| level of the main text | level of the previous draw | |||||
|---|---|---|---|---|---|---|
| settings | valid | excess | valid | excess | ||
| CIFAR-10-C, EfficientNet-B0 | 1 | 12 | 7 | +2.24 | 7 | +2.16 |
| 2 | 12 | 1 | +5.29 | 1 | +5.35 | |
| 3 | 12 | 2 | +3.68 | 1 | +3.71 | |
| CIFAR-10-C, WRN-40-2 (AugMix) | 1 | 9 | 8 | 0.54 | 8 | 0.37 |
| 2 | 9 | 4 | +0.30 | 3 | +0.35 | |
| 3 | 9 | 4 | +0.10 | 3 | +0.15 | |
| Dry Bean, hardness, | 1 | 1 | 0 | +9.67 | 0 | +10.29 |
| Dry Bean, hardness, | 1 | 1 | 0 | +16.41 | 0 | +17.25 |
A natural shift shows the same pattern.
CIFAR-10.1 was collected to match CIFAR-10, yet the miscoverage of both models at least doubles on it (Table 16). Without weights the tight report stays at the clean miss rate and misses the whole rise. With each of the four domain classifiers of Table 13, score weights have a smaller mean absolute gap than embedding weights and than no weights in all six settings, and the identity report with score weights stays above the miscoverage at . With logistic regression, the perceptron and early-stopped gradient boosting, the tight report still understates, and its mean gap is within 0.34 points of that of the binned prediction, computed as above with CIFAR-10.1 in place of the corrupted images. That gap estimates the negative of the reliability shift, the bias that score weights leave by Proposition 2. At the same top- mass the set misses more often on CIFAR-10.1 than on clean images. The gradient boosting of the main text gives mean gaps closer to zero. Since the reliability shift does not depend on the domain classifier, this difference is the other term of Proposition 2, the error of its weights on the missed points. With it the mean absolute gap of the tight report is the largest of the four in three of the six settings. At the identity report fails in seven of the eight combinations of model and classifier, and ATC-NE has a smaller mean absolute gap than the tight report with any of the score weights in five of the six settings.
Table 16: CIFAR-10.1 as the test distribution, with calibration on clean CIFAR-10 test images. Miscoverage: miss rate of the size- set over the CIFAR-10.1 images. Other columns: gap (report miscoverage) in percentage points, means over draws. The tight report is given without weights, with embedding and score weights from the gradient boosting of the main text, and with score weights from logistic regression (LR), the perceptron (MLP) and early-stopped gradient boosting (GB-ES). The binned prediction uses all images and has no draws. The identity report uses the score weights of the main text. The largest standard error over draws is 0.64.
tight report identity gradient boosting score weights from binned report model miscoverage no weights embedding score LR MLP GB-ES prediction ATC-NE (score) EfficientNet-B0 1 18.05% 8.99 5.02 0.68 3.40 3.35 3.73 3.55 0.66 +0.90 2 7.00% 3.85 2.03 +0.77 1.57 1.38 1.26 1.53 +1.05 +4.21 3 4.00% 2.59 1.65 +0.02 1.52 1.49 1.25 1.46 +0.56 +4.78 WRN-40-2 (AugMix) 1 11.30% 6.55 3.26 0.57 2.21 2.71 2.85 2.55 1.21 1.61 2 3.65% 2.46 1.45 0.30 1.09 1.14 1.26 1.22 +0.34 +2.44 3 1.65% 1.23 0.90 0.61 0.69 0.74 0.80 0.66 +0.10 +3.30
Appendix E The identity report at
Table 17 gives a no-shift control: draws (seed ) of calibration images from the clean CIFAR-10 test images, the other images as test points, and no weights. It gives the exact miscoverage of the size- set on the test points; the gap of the identity report with our clipped score and with the unclipped cross-entropy of Gauthier et al. (2025b), each against the miscoverage under the same score; and, for the clipped score, the gap of the tight report and the terms of
over the test points of all draws; the last column gives the covariance with the unclipped score. With the clipped score the level is below one at every test point, so is the size- set. With the clipped score the covariance is positive at every , so the condition of Theorem A.1 fails, and the identity report stays above the miscoverage at because the middle factor is small. At the covariance is positive without the clip as well. Since , that factor is at most , so it is small when covered points carry much of the e-value’s expectation. They carry 10% (EfficientNet-B0) and 16% (WideResNet) of it at , where a covered true label is the model’s top prediction and its score is near zero, and at least 50% at . At the sign of the gap therefore depends on the scale of the levels, which is roughly proportional to the mean calibration score. The unclipped cross-entropy of EfficientNet-B0 has a few extreme values that raise at by 2.3 points; the WideResNet has no score above the clip. For EfficientNet-B0 the clip ties scores at the top- boundary for 70 of the 480,000 pairs of image and , which our results allow.
Table 17: No shift: clean CIFAR-10, no weights, , means over draws. Truth: miscoverage of the size- set with the clipped score. Gaps (report miscoverage under the same score) and covariances in percentage points.
identity gap covariance model truth clipped unclipped tight gap clipped unclipped EfficientNet-B0 1 8.91% 1.29 +1.05 0.03 7.66% 0.67 +3.80 +3.19 2 3.05% +1.59 +3.02 +0.03 4.63% 0.43 +1.06 0.14 3 1.40% +2.41 +3.67 0.01 3.81% 0.26 +0.41 +0.52 WRN-40-2 (AugMix) 1 4.93% 1.73 1.73 0.09 3.21% 0.71 +2.65 +2.65 2 1.24% +0.95 +0.95 0.00 2.19% 0.30 +0.59 +0.59 3 0.48% +1.43 +1.43 0.05 1.91% 0.14 +0.21 +0.21
The code of Gauthier et al. (2025b).
In their notebook, is found by bisection on with tolerance , and coverage is counted on the set computed at the last level the bisection tries, which can lie on the side where the set has more than labels. We replayed this search with their score on the draws above ( and all test points of each draw; their runs use one test point per run). At that set has more than one label for 50% of the test points (mean size 1.66), and its miscoverage is 5.9%, against 8.9% for the size- set; is 10.0%, above both.
The floor on the score binds only for EfficientNet-B0.
No probability of the WideResNet or of the Dry Bean classifier is below , so their scores are never clipped. The identity report of the WideResNet still fails at , without shift (Table 17) and in all 9 of its settings without walls under shift, so this failure does not come from the floor. For EfficientNet-B0 the floor does lower the identity report. It caps 10 of the clean true-label scores, which lowers the mean calibration score and with it every level. Table 18 compares the two scores under shift with the same score weights. Without the floor the identity report is valid in two more settings at and one more at , all without walls, and its validity at the walls does not change. Under non-degeneracy the tight report depends on the scores only through the size- set, and its mean absolute gap changes by at most 0.02 points in any row.
Table 18: EfficientNet-B0 on CIFAR-10-C with the floor on the probabilities in the score and without it, with the same score weights. Each report is compared with the miscoverage under the same score. Gaps in percentage points, averaged over the settings of a row and their draws.
| identity report | tight report | |||||||
|---|---|---|---|---|---|---|---|---|
| valid settings | mean gap | mean | ||||||
| settings | floor | no floor | floor | no floor | floor | no floor | ||
| no walls | 1 | 12 | 9 | 11 | +2.55 | +4.51 | 4.74 | 4.74 |
| 2 | 12 | 10 | 11 | +2.71 | +3.91 | 4.78 | 4.78 | |
| 3 | 12 | 11 | 11 | +4.29 | +5.27 | 3.48 | 3.49 | |
| walls | 1 | 3 | 0 | 0 | 22.06 | 22.01 | 42.98 | 42.98 |
| 2 | 3 | 0 | 0 | 32.96 | 32.93 | 48.67 | 48.67 | |
| 3 | 3 | 0 | 0 | 27.78 | 27.76 | 42.39 | 42.39 |
Appendix F Calibrating the domain classifier
Table 19 gives, for each Dry Bean shift and each way of fitting the weights, the ECE and log-loss of the domain classifier on held-out data, the Spearman correlation between the estimated and the true weights on the calibration beans, the mean squared error of the normalized weights relative to the true weights (MSE), and the gaps of the identity report () and the tight report (). The four calibration methods are, in the order of the table, Platt scaling with one model, Platt scaling with five models, isotonic regression with five models, and early stopping on held-out log-loss. Under the hardness shift at they lower the MSE from 3.17 to between 2.19 and 2.81, and they lower it in 24 of the 24 combinations of method and setting.
Table 19: Dry Bean: calibrated domain classifiers. Means over draws; the largest standard error of a gap is 0.010.
shift weights ECE log-loss rank corr. MSE identity gap () tight gap () tight gap () hardness features 0.054 0.576 0.68 3.17 +0.013 0.081 0.027 hardness + Platt (1 model) 0.041 0.565 0.68 2.27 0.064 0.121 0.037 hardness + Platt (5 models) 0.046 0.561 0.71 2.19 0.065 0.121 0.037 hardness + isotonic (5 models) 0.038 0.561 0.70 2.81 0.030 0.104 0.031 hardness features, early stopping 0.043 0.560 0.73 2.20 0.042 0.110 0.036 hardness logistic regression 0.061 0.600 0.58 2.82 0.127 0.165 0.046 hardness sorted scores 0.056 0.546 0.80 5.36 +0.267 +0.042 +0.015 hardness features 0.049 0.364 0.76 21.29 +0.106 0.101 0.061 hardness + Platt (1 model) 0.039 0.357 0.76 20.14 +0.046 0.129 0.074 hardness + Platt (5 models) 0.046 0.354 0.77 19.03 +0.027 0.139 0.082 hardness + isotonic (5 models) 0.041 0.357 0.76 20.47 +0.077 0.111 0.070 hardness features, early stopping 0.051 0.364 0.75 20.07 +0.024 0.145 0.080 hardness logistic regression 0.071 0.523 0.56 25.81 0.245 0.292 0.122 hardness sorted scores 0.043 0.301 0.86 15.81 +0.340 0.006 0.036 easy features 0.084 0.649 0.61 2.05 +0.028 +0.010 +0.002 easy + Platt (1 model) 0.030 0.621 0.61 0.28 +0.059 +0.041 +0.007 easy + Platt (5 models) 0.032 0.620 0.64 0.26 +0.059 +0.042 +0.007 easy + isotonic (5 models) 0.030 0.620 0.63 0.41 +0.049 +0.032 +0.006 easy features, early stopping 0.040 0.619 0.67 0.35 +0.048 +0.032 +0.006 easy logistic regression 0.037 0.624 0.59 0.37 +0.059 +0.043 +0.007 easy sorted scores 0.080 0.625 0.77 1.47 +0.014 0.003 0.001 easy features 0.069 0.590 0.74 2.82 +0.027 +0.009 +0.002 easy + Platt (1 model) 0.048 0.576 0.74 0.70 +0.042 +0.027 +0.005 easy + Platt (5 models) 0.051 0.573 0.76 0.53 +0.043 +0.029 +0.005 easy + isotonic (5 models) 0.037 0.569 0.76 0.92 +0.037 +0.021 +0.004 easy features, early stopping 0.049 0.570 0.76 0.62 +0.038 +0.025 +0.004 easy logistic regression 0.060 0.598 0.61 1.15 +0.058 +0.042 +0.007 easy sorted scores 0.064 0.551 0.89 2.22 +0.017 0.001 0.001 benign features 0.073 0.608 0.80 3.30 +0.009 0.011 0.001 benign + Platt (1 model) 0.030 0.584 0.80 0.61 +0.025 +0.009 +0.001 benign + Platt (5 models) 0.033 0.580 0.83 0.50 +0.025 +0.009 +0.002 benign + isotonic (5 models) 0.034 0.584 0.82 1.45 +0.021 +0.004 +0.001 benign features, early stopping 0.034 0.565 0.93 0.35 +0.017 +0.003 0.000 benign logistic regression 0.032 0.556 0.98 0.09 +0.012 0.001 0.000 benign sorted scores 0.073 0.623 0.61 1.81 +0.016 +0.001 0.001 benign features 0.048 0.442 0.91 6.22 +0.025 0.007 0.000 benign + Platt (1 model) 0.035 0.429 0.91 4.76 +0.034 +0.011 +0.002 benign + Platt (5 models) 0.039 0.422 0.93 4.26 +0.034 +0.015 +0.003 benign + isotonic (5 models) 0.035 0.427 0.92 5.17 +0.032 +0.009 +0.002 benign features, early stopping 0.035 0.403 0.96 3.31 +0.024 +0.006 +0.001 benign logistic regression 0.029 0.392 0.99 0.58 +0.023 +0.002 +0.001 benign sorted scores 0.053 0.495 0.69 8.93 +0.021 0.000 0.001