Manuscript Offprint
arXiv:2609.00691Verdict Instability of OOD Scores under Reference Resampling
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.
Abstract
Post-hoc out-of-distribution detectors are fitted on a finite reference set, so every score they produce is an estimate. If we had chosen a different set, some verdicts would have moved. We measure that movement by resampling the reference set and recording the bootstrap standard deviation of the score, which we call verdict instability. It admits a closed form with no fitted parameters. The instability of a verdict is the within-class dispersion of the assigned class along the query's direction, divided by the square root of that class's reference count. That count is what separates verdict instability from the geometry of the score distribution, and it is identifiable only under class imbalance. Instability grows with the local dispersion. Far-OOD queries lie along the low-variance directions of an anisotropic embedding, so every distance-based score we test assigns its highest values to the verdicts that are most reproducible. Only estimators of local dispersion carry the sign a practitioner expects. We give a rule that predicts this sign for any score from a single label-free correlation, and abstention driven by a wrong-signed score turns out worse than abstention at random on every dataset we test.
1 Introduction
Post-hoc out-of-distribution (OOD) detectors are built from a finite reference set. A Mahalanobis detector estimates class means and a covariance from it (Lee et al., 2018) and a kNN detector stores it outright (Sun et al., 2022). Even logit-based scores inherit the reference set through the classifier head (Hendrycks and Gimpel, 2017; Liu et al., 2020). The scores assigned to queries are therefore estimates. A different reference set would have changed the scores for some queries.
The question at a gate is not how far the query lies
from the training data but how much its verdict would move under a different draw of it. The two are routinely conflated, since OOD scores are read as uncertainty estimates and used to abstain. Yet nobody has measured how much the finiteness of the reference set drives a score or whether proxy scores reflect that contribution.
Fix a detector, resample the reference set by the bootstrap (Efron and Tibshirani, 1993) and record the standard deviation of the resulting score. We call this the query's verdict instability. It is epistemic and needs no labels, which lets us measure it in the far-OOD region where selective prediction (Geifman and El-Yaniv, 2017) cannot follow.
Our first result is that verdict instability admits a closed form. For a query at direction from the centroid of its assigned class with reference points,
where projects the within-class scatter onto the query direction and the second term is carried only by detectors with a global reference (Ren et al., 2021). Instability is the within-class dispersion of the assigned class along the query's direction, divided by the square root of that class's reference count. There are no free parameters. Eq. (1) tracks the bootstrap variance at –0.97 across CIFAR-100, CIFAR-10 and DermaMNIST.
The count is what separates verdict instability from the geometry of the score distribution. No score in common use falls with it, and the recent geometric analysis of Mahalanobis detectors (Janiak et al., 2026) does not either. We therefore exploit the natural class imbalance of DermaMNIST (Yang et al., 2023; Tschandl et al., 2018), whose reference counts span a factor of 58.7. Replacing by its mean collapses from 0.923 to 0.276.
Our second result follows from the first, and it has practical implications. Instability rises with , so any score anti-correlated with the dispersion moves against the reliability of the verdict. Far-OOD queries

Figure 1: The geometry of the sign. Verdict instability is the class cloud's dispersion along the query direction, scaled by (Eq. 1): the in-distribution lies along a high-variance eigen-direction ( large), the farther along a low-variance one ( small). The effect is the embedding's anisotropy (§5). Removing the anisotropy removes the sign.
sit along the low-variance directions of the class cloud, so the distance-based scores in common use assign their highest values to the queries whose verdicts are the most reproducible. Only the scores that estimate a dispersion directly carry the sign a practitioner expects. The sign is a property of the embedding rather than the theory, and it can be switched off by destroying the anisotropy of our self-supervised backbone (Caron et al., 2021).
The result is a rule that takes just one correlation to check. Its predictor is the model itself, and for any score , where the right-hand side needs no bootstrap and no labels. The count is essential here too, because under heavy imbalance a dispersion-only predictor reads the sign of several scores backwards where the full model does not. Abstaining on the queries a score flags as uncertain is then worse than random abstention, and this happens exactly when the score has the wrong sign. The wrong sign lands on a different score in each dataset, but the wrong-signed score fails in every case.
Our contributions are as follows.
-
We identify the bootstrap variance of an OOD score under reference-set resampling as the epistemic uncertainty of the detector, and give a closed form for it with no fitted parameters (Eq. 1).
-
We validate the dependence across classes under natural imbalance (), which no other
account of OOD scores depends on.
-
We establish a sign separation between distance and dispersion scores. A label-free rule (Eq. 9) predicts the sign of any new score, including the stretch channel that a geometric analysis tunes upward for detection.
-
Abstention driven by a wrong-signed score is worse than random abstention. The rule calls the side of the baseline correctly for every score on both datasets, over ten seeds.
The geometry of Mahalanobis detectors. The Mahalanobis family (Lee et al., 2018) has been refined at the score level by relative Mahalanobis (Ren et al., 2021) and by Mahalanobis++ (Müller and Hein, 2025). A recent line instead asks which properties of the feature space make the same quadratic detector succeed or fail (Janiak et al., 2026), and it is the closest work to ours. Its variance is taken over queries with the reference set held fixed and carries no dependence on the reference count, while ours is taken over reference sets with the query held fixed and is exactly . The two are built from the same geometry with reciprocal weights, and §5.4 shows the stretch they tune upward for detection to be anti-correlated with the reliability our rule predicts.
Uncertainty and its conflation with OOD. Predictive uncertainty splits into aleatoric and epistemic components (Kendall and Gal, 2017) and is estimated by MC dropout (Gal and Ghahramani, 2016), deep ensembles (Lakshminarayanan et al., 2017) or feature-space density (Mukhoti et al., 2023). OOD scores are routinely read as such estimates and used to abstain. That the conflation is unsafe is known in one direction, since ReLU classifiers can be arbitrarily confident far from the data (Ulmer and Cinà, 2021). We argue the other. An OOD score can be a fine detector and still be a harmful uncertainty proxy, because the epistemic uncertainty of the detector itself carries the opposite sign, and in this literature that uncertainty is always the model's and never the detector's.
Finite samples and selective prediction. That a decision rule inherits uncertainty from the finite sample used to fit it is standard statistics. The bootstrap (Efron and Tibshirani, 1993) is its canonical instrument and covariance shrinkage (Ledoit and Wolf, 2004) is an admission that is estimated, while conformal prediction quantifies the same dependence for a calibration set (Vovk et al., 2005; Angelopoulos and Bates, 2023). The corresponding statement for OOD scores is missing and this paper supplies it (§4). When a model may abstain, performance is summarized by the risk-coverage curve and its area (El-Yaniv and Wiener, 2010; Geifman and El-Yaniv, 2017; Geifman et al., 2019). That framework needs ground-truth labels and is confined to the in-distribution region, whereas the failure mode we identify lives where labels do not exist and reference resampling needs none (§6).
3 Problem Formulation
3.1 Setup
Let be a frozen feature extractor and the embedding of an input . A post-hoc detector is fitted on a reference set of labeled in-distribution data, partitioned into class subsets
with and . Write for the empirical centroid of class , for the global centroid and for the within-class scatter of class . Everything the detector knows about the in-distribution world it knows through .
The detector assigns to a query a scalar
where and is a low quantile of the global distance over . The first term is the nearest-class-mean distance and the second is a hinge against a global reference, in the spirit of the correction that relative Mahalanobis applies to the class-conditional distance (Ren et al., 2021). We analyze Eq. (2) because it is the simplest score carrying both ingredients that every member of the Mahalanobis family shares, a class-conditional term estimated from points and a global term estimated from . Section 5 treats eleven standard scores as observables evaluated against its instability rather than as objects to be re-derived. A verdict is obtained by thresholding at an operating point , so it is a statistic of exactly as the score is.
3.2 Verdict instability
Fix the query and resample the reference set. Let be a nonparametric bootstrap replicate of drawn class-wise so that the class counts are preserved (Efron and Tibshirani, 1993), and define
We call the verdict instability of . It is the standard deviation of the score under the counterfactual “had I collected different reference data”. It is epistemic and caused by what was not collected. We will show that it decays as . The standard deviation is taken over replicates throughout. The Monte-Carlo error this leaves in is common to every score compared against it and is absorbed by the seed-level intervals of §6.2, since each seed redraws the bootstrap.
Two properties make the object a practitioner actually needs. It converts directly into a flip probability. If the score is approximately Gaussian under resampling, the chance that the verdict at threshold reverses is
so instability is the natural denominator against which a margin should be read. A query far from the threshold in units of is safe and a query close to it is not, however far it sits from the training data in absolute terms.
also requires no labels, neither for the query nor for the notion of correct. It is a property of the estimator rather than of the ground truth, which is what allows us to evaluate it in the far-OOD region where the risk-coverage machinery of selective prediction (Geifman and El-Yaniv, 2017; Geifman et al., 2019) cannot follow.
We stress what is not. It is neither the probability that is OOD nor the model's predictive uncertainty, and it says nothing about whether the verdict is right. A confidently wrong detector can be perfectly stable. Instability and correctness are orthogonal by construction and we make no claim about the latter.
The remaining details of the evaluation protocol, the three query groups and the resolution and class-count controls that keep the comparison honest, are given in Appendix A. Correlations that treat as an observable to be tracked (§5.1) are computed after centering both variables within query group, so that they report within-population behavior. Section 6 evaluates a global abstention policy instead, so its correlations are computed over the pooled query set without centering. The two are reported separately and never mixed.
4 Verdict Instability as Projected Within-Class Dispersion
The bootstrap quantity of Eq. (3) costs refits, and a practitioner holding a single reference set cannot obtain it at all. We show that it is predicted to within a few percent by quantities computable from that set. The score of Eq. (2) has two terms estimated from different samples, and each contributes an independent channel of variance.
4.1 The class channel
Fix a query with embedding and let be its assigned class. Write for its radius from the class centroid and for its direction. Under class-wise resampling the bootstrap centroid obeys with . Substituting this into the class term of Eq. (2) and expanding the norm (Appendix B), the perturbation enters at first order only through its component along the query direction. Retaining that term,
where . We call the transverse dispersion, the standard deviation of the class cloud
projected onto the direction in which the query happens to lie.
Three features of Eq. (5) drive everything that follows. Only the assigned class matters, because the other centroids move under resampling but do not attain the minimum in Eq. (2). The dispersion is directional rather than global, since enters only through the scalar . It is constant in an isotropic embedding and varies by a factor of several across the directions of an anisotropic one. And is a plug-in functional of the reference set that needs no resampling and no labels.
4.2 The penalty channel
Write for the global distance. It is estimated from all reference points, so its bootstrap fluctuation is . This channel is quiet at the source, but the hinge of Eq. (2) rectifies it and rectification does not preserve variance. Write for the signed activation margin and model . The penalty is then a rectified Gaussian whose variance is available in closed form,
with the variance of a standard rectified Gaussian at margin (Appendix B). It is monotone in and vanishes as , so a query comfortably outside the hinge contributes nothing and one sitting at the elbow contributes most.
The penalty is therefore a tail phenomenon rather than a background term. On DermaMNIST the large majority of queries lie outside the hinge and contribute exactly zero, so the median penalty share of the variance vanishes while the variance-weighted share is carried by the small fraction at the elbow. The share also decays with the number of classes. It must, because the class channel scales as while the global channel scales as . Moving only the class-count threshold, the variance-weighted share falls monotonically as rises (Appendix C).
4.3 The two channels
The two channels are driven by different samples. They are not strictly independent, since depends on class with weight . We neglect the covariance and check the cost empirically. This gives the explicit form of Eq. (1),
Table 1: Equation (7) against the bootstrap ground truth, with nothing fitted. Here measures shape agreement and the median of measures scale agreement. Centering within query group lowers each by at most four points.
| Dataset | ||||
|---|---|---|---|---|
| CIFAR-100 | 50 | 400 | 0.820 | 0.953 |
| CIFAR-10 | 5 | 400 | 0.918 | 0.963 |
| DermaMNIST | 3 | 769–4693 | 0.974 | 1.005 |
| DermaMNIST | 7 | 80–4693 | 0.923 | 0.976 |
which has no fitted parameters. Here and are hyperparameters of the detector fixed before any instability is measured, and the remaining quantities are plug-in statistics of . Nothing is tuned against . We report a shape agreement and a scale agreement because they are different claims (Table 1).
The fit does not degrade as falls from 50 to 3, even though the composition of the variance changes completely over that range. The channels trade off and the sum tracks throughout. The scale is also right without being fitted, since every median in Table 1 sits within a few percent of unity.
4.4 The reference count
Equation (7) carries one claim that separates it from every other analysis of OOD scores we know of. The class channel is a dispersion divided by a count, and the count is what no score in common use falls with. Isolating it requires classes that differ in within a single fit, sharing an embedding and a detector and a query set. The standard protocol gives every class the same and cannot supply this, and sweeping the reference-set size moves every class at once. Natural imbalance can.
DermaMNIST (Yang et al., 2023; Tschandl et al., 2018) supplies exactly this, with seven lesion classes at clinical frequencies and reference counts running from 80 to 4693. We do not subsample the majority classes down to the minority level. That would destroy the only variation that identifies the count, and in a clinical reference set the common lesion is common. We instead use the class-count threshold of §A as a knob, which admits progressively smaller classes and widens the imbalance from at to at .
The test is a single substitution. Replace the count in Eq. (7) by its mean and leave every other quantity exactly as it was. The two models see the same directions and the same dispersions and the same penalty. They differ only in whether a class with 4693 reference points is treated differently from one with 80.
The gain grows with the imbalance, as it must if the count is doing real work. Replacing by drops the from 0.974 to 0.756 at and from 0.923 to 0.276 at , so at the widest imbalance discarding the count destroys 70% of the model's explanatory power (Appendix D). Once the reference set is unbalanced, the count carries most of the content.
The exponent itself is not fitted but read off the class-conditional means. If Eq. (5) is right then equals 1 for every class, the averages taken over queries assigned to . This is a sharp test with one scalar per class and nothing tuned, and we drop the penalty channel because it concentrates in the majority class. The ratio then holds at unity from 80 to 4693 with no free parameter, and the two endpoints track the argmin rather than the exponent (Appendix C).
The dispersion form is what makes this test available at all. Our embeddings have and the smallest classes have , so any whitened quantity would invert a singular scatter. Equation (5) never inverts . It evaluates the single quadratic form whose coefficient of variation is independently of , and the fit is undamaged at . This is a structural advantage of the dispersion form over the whitened form to which we return in §5.4.
5 The Sign of a Score
Verdict instability grows with and shrinks with . Any score that moves against that combination is anti-correlated with the reliability of the verdict it produces, and a practitioner who abstains on it abstains on exactly the wrong queries. Whether the standard scores are such quantities is an empirical question. They are.
5.1 Eleven scores against instability
We evaluate eleven post-hoc scores as observables. For each score we report Spearman correlations with the plug-in estimate and with the bootstrap instability of Eq. (3). Both are computed after centering within query group (§A), so that a correlation reports within-population behavior rather than the trivial fact that far-OOD queries differ from in-distribution ones on every axis at once.
Figure 2 is CIFAR-100, with the exact correlations tabulated in Appendix E. The pattern is not a scatter of signs but a partition by what the score measures. Every score that estimates a distance is negatively correlated with instability, whether it reads a class mean or the -th neighbor or the whitened metric or the residual outside the principal subspace. Only the two scores that estimate a local dispersion carry the pos-

Figure 2: Nine of eleven post-hoc scores carry the wrong sign. Each score on CIFAR-100 by its correlation with the plug-in estimate (label-free) and with the bootstrap instability , within-group centered. Only the dispersion scores sit in the positive quadrant. The distance and logit scores call the most reproducible verdicts the most suspicious. Every point shares the sign of both axes (shaded), which is the rule of Eq. 9.
itive sign, and the logit family inherits the distance sign because a logit is a soft minimum over class distances. Nine of eleven scores are anti-correlated with the reliability of the verdict they produce.
5.2 Why distance carries the negative sign
The sign is inherited from the geometry of the embedding through a single correlation. For a query far from the class cloud the bootstrap fluctuation of the distance collapses onto a one-dimensional projection and the spread of that projection is . The sign of any distance-like score is therefore the sign of , which asks whether far queries lie along high- or low-variance directions of the class cloud. Table 2 shows they lie along the low-variance ones, with both regimes visible in a single dataset.
The second column of Table 2 is the mechanism, and it is worth stating in the eigenbasis in which the geometry of these detectors has been analyzed (Janiak et al., 2026). Write and let be the allocation of the query's deviation onto the -th eigendirection, so that . Then
the allocation-weighted mean of the spectrum. An in-
Table 2: Far queries lie along low-variance directions. The allocation effective dimension rises from in- to far-OOD and falls with it. DermaMNIST is in-distribution here.
| Query group | ρ(r, σt) | Alloc. eff. dim. |
|---|---|---|
| in | +0.15 | 8.5 |
| near | +0.12 | 12.9 |
| SVHN | -0.24 | 34.7 |
| DTD | -0.61 | 64.9 |
| CIFAR-10 | -0.47 | 75.5 |
| pooled | -0.83 | — |
distribution deviation is concentrated on the few high-variance directions the embedding gave the class, while a far-OOD deviation aligns with nothing in particular and spreads across a spectrum that decays steeply, so its allocation is pulled toward the small eigenvalues. The allocation effective dimension of Table 2 rises by nearly an order of magnitude from in-distribution to far-OOD data and falls with it. That is the whole of .
The sign reverses inside the in-distribution cloud, because a query that never leaves its class has a larger radius only by running further along a high-variance direction. It is a property of the embedding rather than of the theory, since Eq. (1) holds whatever the sign of turns out to be, and §5.3 shows it can be switched off.
5.3 A falsification, and the rule
If the account above is right, removing the anisotropy should erase the sign rather than weaken it. Whitening the embedding would equalize the eigenvalues, turning the transverse dispersion into a constant independent of the query direction and collapsing the correlations of the distance family with . Whitening changes the metric as well, so we isolate the mechanism with a weaker intervention. It is sufficient to fix where the deviation lies in the leading principal directions. This drives the pooled to zero on CIFAR-100 (Appendix G). The sign is not an artifact of our estimator. It is the anisotropy, and it can be switched off. The rule below is therefore conditional on the embedding. In an isotropic feature space there is no sign to predict, because no direction matters. The rule survives a change of training objective in fifty-two of fifty-five cells and a change of architecture family in fifty-four (Appendix H).
What survives is a rule that costs no labels to check. The predictor is the model itself. Verdict instability is estimated by of Eq. (7), a plug-in functional of the reference set. The claim is that its sign against a score matches that of the true instability,
The predictor on the right-hand side needs no boot-strap and no labels, since is computed from the reference set alone. A practitioner can evaluate the rule for any candidate score before deploying it. The rule is not a separate device. It is the model of §4 used as a predictor, and it inherits the model's lack of free parameters.
The count is the part of the model this criterion identifies. Weakening the predictor to and counting sign agreements over five settings and eleven scores, dropping the count at costs ten agreements out of fifty-five that no penalty weight recovers, while the model's own values reach a plateau at the maximum (Appendix I). The plateau is wide, so the ablation pins down neither the exponent nor the penalty weight; the warrant for those is the fit of Table 1, not this grid. The count is essential because under heavy imbalance a logit reflects the class prior and so couples to the in the denominator of instability, which a dispersion-only predictor cannot see. This is the mechanism behind the logit reversal on DermaMNIST in §6.3.
5.4 The rule predicts a quantity it was not built from
Equation (9) is a claim about any score, including scores designed by other people for other purposes. We test it on one we did not choose. Geometric analyses of Mahalanobis detectors factor the score into a size channel and a whitened stretch channel (Janiak et al., 2026),
and shape representations to control its variability because doing so improves detection performance. Comparing Eq. (10) with Eq. (8), the two are built from the same allocation and the same spectrum combined with reciprocal weights. Cauchy–Schwarz then gives , so stretch and dispersion are reciprocal proxies. The inequality is violated in none of 3021 queries and .
Equation (9) therefore predicts before we measure anything. Deferring by stretch should be worse than deferring at random. On DermaMNIST and , and costs 12.75% against a coin flip (Appendix J). The claim holds for the size channel and the Mahalanobis score as well. This is no criticism of that work, whose target is detec-
tion performance and which achieves it. It is a statement about what that target omits. In this embedding, the quantity one maximizes to separate in- from out-of-distribution inputs is the reciprocal of the quantity that governs whether the verdict would survive a different reference set.
6 The Cost of the Wrong Sign
Section 5 established a sign and a rule that predicts it without labels. This section measures what the sign costs a practitioner who ignores it. Abstention driven by a wrong-signed score is worse than abstention driven by nothing at all, and which scores are wrong-signed is what Eq. (9) says in advance.
6.1 Instability-coverage
Fix a score used to abstain. At coverage we retain the fraction of queries on which is smallest and record the mean verdict instability of the retained set. Sweeping from 1 to 0.5 traces an instability-coverage curve whose area (AURC) summarizes how much stability the abstention buys, in analogy with the risk-coverage curves of selective prediction (Geifman and El-Yaniv, 2017; Geifman et al., 2019). Random abstention is the baseline and its curve is flat by construction, since removing a random subset leaves the mean unchanged. A useful score bends the curve down and a harmful one bends it up. That flatness also fixes the baseline exactly at for the mean instability , so a different draw of queries rescales every row of a table together. We therefore report the position of a score relative to the baseline as , which that rescaling leaves fixed.
The curve needs no labels, which is the point. Risk-coverage is defined only where correctness is defined, so it cannot be evaluated in the far-OOD region at all. Ours can, because the target is a property of the estimator rather than of the truth.
6.2 Worse than random
Deferring the queries an energy detector calls uncertain leaves behind a population whose verdicts are less reproducible than the one it started with, and the retained instability rises monotonically as coverage falls while random abstention holds flat. The abstention is not merely useless but anti-informative.
The sign of says which side of the baseline a score lands on, and it is right for all five scores on both datasets. The interval on excludes zero in all ten cells and its sign agrees in all ten seeds. The narrowest
Table 3: Abstention against verdict instability on two datasets. is the position of a score relative to the random baseline in percent, so a positive value (bold) costs more than random. Entries average ten seeds and carry half the width of a 95% interval over them. We pool correlations without centering to match the policy under evaluation (§3). The identity of the failing score changes with the dataset while the sign of predicts it in both.
| Score | CIFAR-100 (C=50) | DermaMNIST (C=3) | ||||
|---|---|---|---|---|---|---|
| AURC | (%) | AURC | (%) | |||
| knn_std | +0.714 | 0.1201 | -6.99 ±0.12 | +0.747 | 0.0500 | -19.70 ±0.17 |
| lid | +0.541 | 0.1220 | -5.57 ±0.13 | +0.714 | 0.0500 | -19.68 ±0.17 |
| energy | -0.129 | 0.1319 | +2.15 ±0.17 | +0.530 | 0.0534 | -14.19 ±0.25 |
| msp | -0.199 | 0.1321 | +2.32 ±0.10 | +0.320 | 0.0580 | -6.82 ±0.34 |
| maha | -0.534 | 0.1342 | +3.93 ±0.09 | -0.696 | 0.0704 | +13.09 ±0.16 |
| random | +0.000 | 0.1291 | — | +0.000 | 0.0622 | — |
margin is energy on CIFAR-100 at +2.15% with an interval of [+1.98, +2.31]. The level moves between runs and the contrast does not (Appendix K).
The magnitudes order the extremes as well. The score most strongly aligned with the class channel buys the most stability and the score most strongly anti-aligned costs the most. Ranking by reproduces the ranking by in both datasets, but not every adjacent pair separates. The closest pair differs by 0.02 percentage points over an interval that straddles zero. We claim the direction and not the magnitude.
The failure is not a small-sample artifact. Sweeping the reference count over a wide range leaves every score on the same side of the baseline at every size, while the mean instability falls as predicts (Appendix L). Collecting more reference data shrinks the instability without repairing the sign.
6.3 Which score fails is not universal
Table 3 might be read as a verdict on energy, but the failure travels with the sign rather than with the detector, and on a different dataset a different score carries it.
On DermaMNIST the logit scores carry a positive correlation with the class channel, because under imbalance a logit reads the class prior and the prior enters instability through (Appendix I). Energy now helps and Mahalanobis, mediocre on CIFAR-100, now carries the failure. The identity of the failing detector changed while the law did not, and the sign calls the side of the baseline correctly for every score on both datasets.
The scores that fail here are not bad scores but scores optimized against a different target, and the two targets turn out close to antipodal. Evaluated against misclassification of the in-distribution classifier in the conventional way, the same scores invert their order
almost exactly, so each is beaten by a coin flip in the column it was not designed for (Appendix M). “Uncertainty” is thereby asked to name at least three separate quantities, how likely the classifier is to be wrong and how unfamiliar the input is and how reproducible the verdict is, and on real embeddings these are not merely distinct but oppositely ordered.
7 Conclusion
An out-of-distribution score is an estimate fitted on a reference set that could have been drawn differently. We asked how much a verdict would move if it had been. The answer has a closed form with no fitted parameters, the within-class dispersion of the assigned class along the query’s direction divided by the square root of that class’s reference count. That count is identifiable only under class imbalance and is what distinguishes verdict instability from the geometry of the score distribution. Its consequence is a sign. Far-from-cloud queries in an anisotropic embedding lie along the low-dispersion directions, so every distance-based score is anti-correlated with the reliability of the verdict it produces where only the dispersion scores carry the sign a practitioner expects. The sign is cheap to check. It needs one label-free correlation, and deferring on a wrong-signed score is worse than deferring at random.
The broader point is that “uncertainty” has been asked to name at least three quantities at once, which §6.3 and Appendix M show to be oppositely ordered on real representations rather than merely distinct. One of them is the reliability of a detector’s own output. This quantity is measurable and predictable but remains unmeasured. We argue that it belongs in the budget.
References
Angelopoulos, A. N. and Bates, S. (2023). Conformal prediction: A gentle introduction. Foundations and Trends in Machine Learning, 16:494–591.
Bitterwolf, J., Müller, M., and Hein, M. (2023). In or out? fixing ImageNet out-of-distribution detection evaluation. In Proceedings of the 40th International Conference on Machine Learning, volume 202, pages 2471–2506. PMLR.
Caron, M., Touvron, H., Misra, I., Jégou, H., Mairal, J., Bojanowski, P., and Joulin, A. (2021). Emerging properties in self-supervised vision transformers. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 9650–9660.
Cimpoi, M., Maji, S., Kokkinos, I., Mohamed, S., and Vedaldi, A. (2014). Describing textures in the wild. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 3606–3613.
Efron, B. and Tibshirani, R. J. (1993). An Introduction to the Bootstrap, volume 57 of Monographs on Statistics and Applied Probability. Chapman & Hall.
El-Yaniv, R. and Wiener, Y. (2010). On the foundations of noise-free selective classification. Journal of Machine Learning Research, 11(53):1605–1641.
Fang, Z., Li, Y., Lu, J., Dong, J., Han, B., and Liu, F. (2022). Is out-of-distribution detection learnable? In Advances in Neural Information Processing Systems, volume 35, pages 37199–37213. Curran Associates, Inc.
Fort, S., Ren, J., and Lakshminarayanan, B. (2021). Exploring the limits of out-of-distribution detection. In Advances in Neural Information Processing Systems, volume 34, pages 7068–7081. Curran Associates, Inc.
Gal, Y. and Ghahramani, Z. (2016). Dropout as a bayesian approximation: Representing model uncertainty in deep learning. In Proceedings of the 33rd International Conference on Machine Learning, volume 48, pages 1050–1059. PMLR.
Geifman, Y. and El-Yaniv, R. (2017). Selective classification for deep neural networks. In Advances in Neural Information Processing Systems, volume 30, pages 4878–4887. Curran Associates, Inc.
Geifman, Y., Uziel, G., and El-Yaniv, R. (2019). Bias-reduced uncertainty estimation for deep neural classifiers. In International Conference on Learning Representations.
He, K., Zhang, X., Ren, S., and Sun, J. (2016). Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 770–778.
Hendrycks, D., Basart, S., Mazeika, M., Zou, A., Kwon, J., Mostajabi, M., Steinhardt, J., and Song, D. (2022). Scaling out-of-distribution detection for real-world settings. In Proceedings of the 39th International Conference on Machine Learning, volume 162, pages 8759–8773. PMLR.
Hendrycks, D. and Gimpel, K. (2017). A baseline for detecting misclassified and out-of-distribution examples in neural networks. In International Conference on Learning Representations.
Janiak, D., Binkowski, J., and Kajdanowicz, T. J. (2026). A geometry-based view of mahalanobis OOD detection. In Proceedings of the 43rd International Conference on Machine Learning.
Kendall, A. and Gal, Y. (2017). What uncertainties do we need in bayesian deep learning for computer vision? In Advances in Neural Information Processing Systems, volume 30, pages 5574–5584. Curran Associates, Inc.
Krizhevsky, A. (2009). Learning multiple layers of features from tiny images. Technical report, University of Toronto.
Lakshminarayanan, B., Pritzel, A., and Blundell, C. (2017). Simple and scalable predictive uncertainty estimation using deep ensembles. In Advances in Neural Information Processing Systems, volume 30, pages 6402–6413. Curran Associates, Inc.
Ledoit, O. and Wolf, M. (2004). A well-conditioned estimator for large-dimensional covariance matrices. Journal of Multivariate Analysis, 88(2):365–411.
Lee, K., Lee, K., Lee, H., and Shin, J. (2018). A simple unified framework for detecting out-of-distribution samples and adversarial attacks. In Advances in Neural Information Processing Systems, volume 31, pages 7167–7177. Curran Associates, Inc.
Liang, S., Li, Y., and Srikant, R. (2018). Enhancing the reliability of out-of-distribution image detection in neural networks. In International Conference on Learning Representations.
Liu, W., Wang, X., Owens, J., and Li, Y. (2020). Energy-based out-of-distribution detection. In Advances in Neural Information Processing Systems, volume 33, pages 21464–21475. Curran Associates, Inc.
Ma, X., Li, B., Wang, Y., Erfani, S. M., Wijewickrema, S., Schoenebeck, G., Song, D., Houle, M. E., and Bailey, J. (2018). Characterizing adversarial subspaces using local intrinsic dimensionality. In International Conference on Learning Representations.
Mukhoti, J., Kirsch, A., van Amersfoort, J., Torr, P. H. S., and Gal, Y. (2023). Deep deterministic uncertainty: A new simple baseline. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 24384–24394.
Müller, M. and Hein, M. (2025). Mahalanobis++: Improving OOD detection via feature normalization. In Proceedings of the 42nd International Conference on Machine Learning, volume 267, pages 45151–45184. PMLR.
Netzer, Y., Wang, T., Coates, A., Bissacco, A., Wu, B., and Ng, A. Y. (2011). Reading digits in natural images with unsupervised feature learning. In NIPS Workshop on Deep Learning and Unsupervised Feature Learning.
Radford, A., Kim, J. W., Hallacy, C., Ramesh, A., Goh, G., Agarwal, S., Sastry, G., Askell, A., Mishkin, P., Clark, J., Krueger, G., and Sutskever, I. (2021). Learning transferable visual models from natural language supervision. In Proceedings of the 38th International Conference on Machine Learning, volume 139, pages 8748–8763. PMLR.
Ren, J. J., Fort, S., Liu, J. Z., Roy, A. G., Padhy, S., and Lakshminarayanan, B. (2021). A simple fix to mahalanobis distance for improving near-ood detection. arXiv preprint arXiv:2106.09022. Presented at ICML 2021 Workshop on Uncertainty and Robustness in Deep Learning.
Sun, Y., Ming, Y., Zhu, X., and Li, Y. (2022). Out-of-distribution detection with deep nearest neighbors. In Proceedings of the 39th International Conference on Machine Learning, volume 162, pages 20827–20840. PMLR.
Tschandl, P., Rosendahl, C., and Kittler, H. (2018). The ham10000 dataset, a large collection of multi-source dermatoscopic images of common pigmented skin lesions. Scientific Data, 5(1):180161.
Ulmer, D. and Cinà, G. (2021). Know your limits: Uncertainty estimation with relu classifiers fails at reliable ood detection. In Proceedings of the Thirty-Seventh Conference on Uncertainty in Artificial Intelligence, volume 161, pages 1766–1776. PMLR.
Vovk, V., Gammerman, A., and Shafer, G. (2005). Algorithmic Learning in a Random World. Springer.
Wang, H., Li, Z., Feng, L., and Zhang, W. (2022). Vim: Out-of-distribution with virtual-logit matching. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 4911–4920.
Xu, P., Ehinger, K. A., Zhang, Y., Finkelstein, A., Kulkarni, S. R., and Xiao, J. (2015). TurkerGaze: Crowdsourcing saliency with webcam based eye tracking. arXiv preprint arXiv:1504.06755.
Yang, J., Shi, R., Wei, D., Liu, Z., Zhao, L., Ke, B., Pfister, H., and Ni, B. (2023). Medmnist v2 - a large-
scale lightweight benchmark for 2d and 3d biomedical image classification. Scientific Data, 10(1):41.
Yang, J., Wang, P., Zou, D., Zhou, Z., Ding, K., Peng, W., Wang, H., Chen, G., Li, B., Sun, Y., Du, X., Zhou, K., Zhang, W., Hendrycks, D., Li, Y., and Liu, Z. (2022). OpenOOD: Benchmarking generalized out-of-distribution detection. In Advances in Neural Information Processing Systems, volume 35, pages 32598–32611. Curran Associates, Inc. Datasets and Benchmarks Track.
Yang, J., Zhou, K., Li, Y., and Liu, Z. (2024). Generalized out-of-distribution detection: A survey. International Journal of Computer Vision, 132(12):5635–5662.
Yu, F., Seff, A., Zhang, Y., Song, S., Funkhouser, T., and Xiao, J. (2015). LSUN: Construction of a large-scale image dataset using deep learning with humans in the loop. arXiv preprint arXiv:1506.03365.
Zhou, B., Lapedriza, A., Khosla, A., Oliva, A., and Torralba, A. (2018). Places: A 10 million image database for scene recognition. IEEE Transactions on Pattern Analysis and Machine Intelligence, 40(6):1452–1464.
A Evaluation Protocol
Datasets. The in-distribution sets are CIFAR-100 and CIFAR-10 (Krizhevsky, 2009) and DermaMNIST (Yang et al., 2023; Tschandl et al., 2018). In the CIFAR settings the far-OOD sources are SVHN (Netzer et al., 2011), DTD (Cimpoi et al., 2014), LSUN (Yu et al., 2015), iSUN (Xu et al., 2015), Places365 (Zhou et al., 2018) and the other CIFAR set. DermaMNIST draws its far-OOD from SVHN, DTD and CIFAR-10 alone. Five settings recur throughout: CIFAR-100 at , CIFAR-10 at , and DermaMNIST at . Every source is public and used as released. DermaMNIST is CC BY 4.0 and repackages HAM10000, which is CC BY-NC 4.0 and collects de-identified dermatoscopic images released for research by its curators. Places365 is CC BY. The remaining sources carry no license beyond the research-use terms of the publications that introduced them.
Backbone. The frozen feature extractor is a ViT-B/16 trained with DINO (Caron et al., 2021), taken as the public timm checkpoint vit_base_patch16_224.dino. It carries no classification head and gives . Images are encoded at under that checkpoint's default evaluation transform, a resize to 248 followed by a center crop and ImageNet normalization. The two check encoders of Appendix H are vit_base_patch16_clip_224.openai and resnet50.a1_in1k, the second at . All three share the resize and crop geometry above. The first matches it natively and only the convolutional encoder is overridden, so the same crop of the same image enters every encoder, while the normalization constants remain each backbone's own. Nothing is fine-tuned.
Query groups. Queries are drawn from three disjoint groups. These are held-in test data, near-OOD (held-out classes of the same dataset) and far-OOD (unrelated datasets). The groups differ enormously in both and , so a pooled correlation between any score and is dominated by between-group structure. Correlations that track as an observable (§5.1) therefore center both variables within each group. The abstention experiments of §6 rank the pooled query set instead, because that is the policy a practitioner deploys. Their correlations pool the same way and skip the centering. Each table states which convention it follows, and we never compare one against the other.
Resolution control. Because our claims compare in-distribution and OOD populations inside one embedding, where conclusions are known to be fragile to contamination (Bitterwolf et al., 2023) and to representation choice (Fort et al., 2021), any systematic difference in preprocessing between them is a confound. When a medical dataset is paired against natural-image OOD sets, every OOD image is downsampled to before feature extraction, so that upsampling artifacts cannot be mistaken for distributional distance. We report the mean feature norm of each group as a check.
Class filtering. Held-in classes are selected by a sample-count threshold and the classes that fall below it are recycled as near-OOD rather than discarded. We do not subsample majority classes down to the minority level, because imbalance is the deployed condition and is the only setting in which the dependence of Eq. (3) is identifiable at all (§4.4).
Detector hyperparameters. The detector of Eq. (2) runs at , with the 20th percentile of the global distance over . Both are fixed before any instability is measured. The eleven scores of §5.1 take their conventional settings: knn reads the 5th neighbor, l1d the maximum-likelihood estimate over 20, vim a principal subspace of dimension 64, maha a shrinkage of 0.3 toward the scaled identity (Ledoit and Wolf, 2004), and knn_std the standard deviation over a window of neighbors inside the assigned class. The logit family reads a multinomial logistic probe fitted on (Appendix F) at its default regularization and at most 1000 iterations, and odin uses the published and . Reference sets hold 400 points per class in the CIFAR settings and the full training split on DermaMNIST, and each query group contributes at most 800 queries on CIFAR and 700 on DermaMNIST. None of these values is selected against .
Seeds. Every number in §6 is a mean over ten seeds. A seed redraws the reference subsample, the query subsample, the bootstrap replicates and the random baseline. The intervals we report are therefore end-to-end rather than conditional on a fixed draw. DermaMNIST keeps the full training split as its reference set by design, because subsampling it would destroy the natural imbalance the identification depends on. A seed there varies the query subsample and the bootstrap alone. Query counts are 6400 on CIFAR-100 and 3021 on DermaMNIST.
Compute. Everything runs on one workstation with a single NVIDIA RTX 4090 of 24 GB, 16 cores and 30 GB of system memory available to the environment. Feature extraction is the only step that loads the GPU and takes a few minutes per encoder over the images the study encodes. The exception is odin, which recomputes an embedding from raw pixels with an input gradient and takes about twenty minutes per encoder. Once the features are cached the rest runs on CPU, since a bootstrap replicate recomputes only the centroids and Eq. (2). One setting at together with all eleven scores takes one to three minutes, so a full replication over the five settings costs under fifteen minutes.
B Derivation of the Two Channels
The class channel. Fix a query with embedding and assigned class . Write
for the radius and for the direction. Under class-wise bootstrap resampling the centroid obeys the central limit behavior
Substituting into the class term of Eq. (2) and expanding the norm,
The perturbation enters at first order only through its component along the query direction. Retaining that term and using gives Eq. (5) of the main text. The dropped quadratic term is with , which stays under 0.4% everywhere.
The penalty channel. Let be the signed activation margin and the bootstrap standard deviation of the global distance. With the penalty is a rectified Gaussian. Its variance is with
where and are the standard normal density and distribution function. The function is monotone in and vanishes as .
C Additional Tables
Penalty share and the imbalance knob. With the dataset and the embedding and the resolution fixed and only the class-count threshold of §A moving, the variance-weighted share of Var[s] carried by the penalty channel decays with as Eq. (7) requires. The median share is 0 at every , since 94% of queries never activate the hinge. The same threshold serves as an imbalance knob, because classes below it are recycled as near-OOD rather than discarded, so lowering it admits progressively smaller classes and widens the imbalance without any subsampling.
Table 4: The class-count threshold governs two quantities at once. As it admits smaller classes the imbalance widens without subsampling, and the variance-weighted penalty share decays with as the scaling of the global channel requires. The median share is 0 throughout.
| min_n | 400 | 200 | 80 |
|---|---|---|---|
| Held-in classes | 3 | 5 | 7 |
| Imbalance max /min | |||
| Variance-weighted penalty share | 34.9% | 21.9% | 9.8% |
| Median per-query share | 0% | 0% | 0% |
Query groups are held fixed across the three settings in the main text, so that only the reference partition moves. Letting the groups vary naturally with the threshold changes nothing material. The fit is unchanged. It reads and 0.978 and 0.912 at against the 0.974 and 0.973 and 0.923 obtained with groups held fixed.
Reading the exponent off the classes. The ratio equals 1 if the class channel scales as . Evaluated on all queries it returns 1.77 in the majority class, which is the penalty channel being misattributed to the scaling. The penalty-inactive subset removes the contamination.
Table 5: The exponent read off the classes. The ratio equals 1 if the class channel scales as . Evaluated on all queries it returns 1.77 in the majority class, which is the penalty channel being misattributed to the scaling. The second row holds the argmin at its observed assignment.
| 80 | 99 | 228 | 359 | 769 | 779 | 4693 | |
|---|---|---|---|---|---|---|---|
| 0.80 | 0.90 | 0.98 | 0.98 | 1.01 | 1.00 | 1.25 | |
| fixed | 0.97 | 1.00 | 1.02 | 0.98 | 0.99 | 0.99 | 1.03 |
Holding the argmin at its observed assignment puts the ratio within 0.03 of unity over the whole range with no free parameter. The two endpoints of the first row move with the assignment rather than with the exponent.
Why the endpoints move. Equation (13) expands the norm for a fixed class, and the score takes a minimum over all of them. A bootstrap replicate can therefore change which centroid wins. The share of replicates that switch runs from 26% at down to 7% at , and the switch compresses in the small classes while it inflates in the majority class. The two rows of Table 5 differ by that effect alone.
D The Reference Count Against the Mean
Table 6 isolates the contribution of the reference count in Eq. (7). Replacing by the mean count leaves every other quantity untouched, including , so the two models differ only in whether a class with 4693 reference points is treated differently from one with 80. The gain from the count grows with the imbalance, and at the count contributes 0.647 of the total of 0.923, or 70%.
Table 6: The reference count is not a refinement. Replacing in Eq. (7) by the mean count leaves every other quantity untouched, including . The gain grows with the imbalance.
| Imbalance | |||
|---|---|---|---|
| with | 0.974 | 0.973 | 0.923 |
| with | 0.756 | 0.483 | 0.276 |
| Gain from the count | +0.218 | +0.490 | +0.647 |
E The Eleven Scores in Full
Figure 2 places each of the eleven post-hoc scores by its two correlations but does not print the values. Table 7 supplies them and adds the transverse dispersion , which the plot leaves out. The scores fall into three families by what they estimate, and the sign of each correlation follows the family rather than the individual score. The two dispersion scores carry the positive sign a practitioner expects while the distance and logit families carry the negative one, so nine of eleven are anti-correlated with the reliability of the verdict they produce. Every point agrees in the sign of both axes, which is the rule of Eq. (9) read off the raw correlations. Appendix F states how we compute the logit family and what odin does.
The dispersion column is the one §5.2 reasons about, and it is not the input the rule takes. On CIFAR-100 the two coincide closely enough to hide the difference. Every class holds reference points, so departs from only through the penalty channel. The two rank the queries at , and all eleven scores therefore agree in sign across the two columns.
F How We Compute the Logit Family
The frozen backbone carries no classification head, so we fit a multinomial logistic probe on itself and read the logit family off that probe. All five of energy, msp, maxlogit, entropy and odin use it.
Table 7: Eleven post-hoc scores on CIFAR-100. Spearman correlations against the transverse dispersion, the plug-in estimate and the bootstrap instability, centered within query group. The middle and right columns are the two sides of Eq. (9) and they are the coordinates plotted in Figure 2. Nine of eleven are anti-correlated with the reliability of the verdict they produce.
| Family | Score | Agree | |||
|---|---|---|---|---|---|
| Dispersion | knn_std | +0.767 | +0.734 | +0.695 | ✓ |
| lid | +0.532 | +0.509 | +0.483 | ✓ | |
| Distance | d_cls | -0.202 | -0.309 | -0.334 | ✓ |
| knn | -0.419 | -0.495 | -0.481 | ✓ | |
| maha | -0.265 | -0.390 | -0.355 | ✓ | |
| vim | -0.326 | -0.321 | -0.373 | ✓ | |
| Logit | energy | -0.257 | -0.194 | -0.273 | ✓ |
| maxlogit | -0.257 | -0.195 | -0.273 | ✓ | |
| odin | -0.153 | -0.123 | -0.179 | ✓ | |
| msp | -0.164 | -0.131 | -0.180 | ✓ | |
| entropy | -0.177 | -0.138 | -0.193 | ✓ |
odin applies both components that Liang et al. (2018) describe. Temperature scaling runs at 1000 and input perturbation at , which are the published values. We tune neither. The original recipe selects on a labeled out-of-distribution validation set and that would contradict the label-free protocol of §3, so we treat exactly as we treat the neighbor count of knn or the subspace dimension of vim.
Perturbation acts on the normalized input tensor, which makesodin the one score we compute from raw pixels rather than from a cached embedding. Its embedding therefore depends on through the probe that supplies the gradient, while the other ten scores read a fixed embedding. Table 8 sweeps across the range Liang et al. (2018) consider. The sign of survives every value and the top row of Table 11 settles at its reported value for every .
Table 8: The perturbation magnitude decides nothing. Spearman correlations ofodin on CIFAR-100, centered within query group, beside the row of Table 11. The published default is (bold) and recovers temperature scaling alone.
| row | |||
|---|---|---|---|
| 0 | -0.257 | -0.273 | 42 |
| 0.0005 | -0.202 | -0.227 | 42 |
| 0.001 | -0.167 | -0.194 | 44 |
| 0.0014 | -0.153 | -0.179 | 44 |
| 0.002 | -0.142 | -0.165 | 44 |
| 0.004 | -0.123 | -0.142 | 44 |
G Falsifying the Sign
The negative sign of the distance family is a property of the embedding rather than of the theory, and §5.3 argues it can be switched off by destroying the anisotropy. Whitening does so but changes the metric as well, so we isolate the mechanism by conditioning instead. Stratifying on the alignment of the deviation with the leading principal directions, and leaving the metric and untouched, takes pooled over all query groups on CIFAR-100 from -0.31 to +0.01. The allocation is the mechanism and the anisotropy is its cause.
H A Representation Check
The intervention above reshapes the embedding we have. A coarser one on the same axis is to build the embedding differently, and we use it to check that Eq. (9) still calls the sign. We re-encode every dataset twice. The first encoder is trained on a different objective (Radford et al., 2021) with the architecture, the embedding dimension, the input resolution and the patch size held at the values our backbone uses, so that the pretraining objective is the only thing that moves. The second is a convolutional network trained with labels (He et al., 2016), which moves the architecture family and the embedding dimension with it. We pin its crop geometry to ours, so the same crop enters all three encoders. Every hyperparameter of the detector is transplanted unchanged and nothing is reselected, so neither check introduces a free parameter. The reference sets, the query sets and the bootstrap draws are the same images in the same order.
Run on our own embedding the same code path returns all thirty-three entries of Table 7 to three decimals and recovers the grid of Table 11 in each of the five settings, so the numbers in Tables 9 and 10 differ from our own only by the encoding. Equation (7) is undamaged by either change. Across the ten fits the median lies between 0.91 and 0.99 and the between 0.66 and 0.97.
The sign of is unchanged from the one our own embedding gives in fifty-two of the fifty-five score-and-setting pairs under the first encoding and in fifty-four under the second, and the rule calls it in fifty-two and in fifty-four. The convolutional encoder moves the most and agrees with our own backbone everywhere but one pair. The logit family carries the positive sign under imbalance on all three encodings, so the reversal of §6.3 travels with the class prior rather than with the representation.
Table 9: The eleven scores under the objective-only re-encoding, , centered within query group. Daggers mark the cells in which Eq. (9) reads the sign backwards. The first summary row counts the scores whose sign matches the one our own embedding gives and the second those satisfying Eq. (9).
| Family | Score | CIFAR-100 | CIFAR-10 | Derma | Derma | Derma |
|---|---|---|---|---|---|---|
| Dispersion | knn_std | +0.787 | +0.790 | +0.528 | +0.253 | +0.372 |
| lid | +0.570 | +0.536 | +0.479 | +0.510 | +0.550 | |
| Distance | d_cls | -0.331 | -0.536 | -0.500 | -0.458 | -0.213 |
| knn | -0.511 | -0.681 | -0.568 | -0.532 | -0.387 | |
| maha | -0.443 | -0.660 | -0.560 | -0.505 | -0.388 | |
| vim | -0.420 | -0.368 | -0.327 | -0.323 | -0.294 | |
| Logit | energy | +0.051 | +0.232 | +0.293 | +0.218 | |
| maxlogit | +0.042 | +0.232 | +0.289 | +0.205 | ||
| odin | -0.095 | -0.185 | +0.270 | +0.369 | +0.229 | |
| msp | -0.119 | -0.029 | +0.154 | +0.153 | +0.009 | |
| entropy | -0.120 | +0.171 | +0.173 | +0.018 | ||
| Sign unchanged from ours | 11 / 11 | 9 / 11 | 11 / 11 | 11 / 11 | 10 / 11 | |
| Eq. (9) holds | 9 / 11 | 10 / 11 | 11 / 11 | 11 / 11 | 11 / 11 | |
Table 10: The same eleven scores under the convolutional re-encoding, which moves the architecture family and the embedding dimension as well. Columns, conventions and summary rows are those of Table 9.
| Family | Score | CIFAR-100 | CIFAR-10 | Derma | Derma | Derma |
|---|---|---|---|---|---|---|
| Dispersion | knn_std | +0.656 | +0.566 | +0.391 | +0.248 | +0.180 |
| lid | +0.474 | +0.350 | +0.427 | +0.471 | +0.352 | |
| Distance | d_cls | -0.181 | -0.454 | -0.457 | -0.533 | -0.009 |
| knn | -0.334 | -0.570 | -0.431 | -0.524 | -0.014 | |
| maha | -0.343 | -0.589 | -0.456 | -0.521 | ||
| vim | -0.361 | -0.367 | -0.172 | -0.276 | +0.142 | |
| Logit | energy | -0.210 | -0.100 | +0.219 | +0.294 | +0.227 |
| maxlogit | -0.219 | -0.093 | +0.223 | +0.291 | +0.211 | |
| odin | -0.126 | -0.074 | +0.172 | +0.256 | +0.265 | |
| msp | -0.211 | -0.068 | +0.197 | +0.216 | +0.100 | |
| entropy | -0.214 | -0.083 | +0.212 | +0.256 | +0.132 | |
| Sign unchanged from ours | 11 / 11 | 11 / 11 | 11 / 11 | 11 / 11 | 10 / 11 | |
| Eq. (9) holds | 11 / 11 | 11 / 11 | 11 / 11 | 11 / 11 | 10 / 11 | |
The four daggered cells sit at and , so in none of them does the predictor carry a sign for the rule to read backwards. Where the sign does differ from ours the rule follows the re-encoding and calls the new one in three of the four such pairs; the fourth is the daggered cell at . In the three settings that identify the reference count it calls sixty-five of sixty-six.
I The Ablation Behind the Rule
Section 5.3 states that the rule of Eq. (9) uses the full model and that the count is essential. Here we weaken the predictor along its two non-trivial axes and count sign agreements against the true instability. The axes are the exponent on the reference count and the weight of the penalty channel. Writing the predictor as , the model sits at with equal to the detector's own hinge weight. The square root of Eq. (7) is a monotone transform and leaves every rank correlation unchanged, so these two axes are the only ones that matter.
Table 11: The count is what this grid identifies. Entries are sign agreements out of fifty-five, over five settings and eleven scores, for the predictor . The model sits at and (bold). Dropping the count entirely, the top row, costs ten agreements that no penalty weight recovers. At the derived exponent the penalty channel recovers two agreements, but the maximum is a plateau: this criterion does not identify the exponent or the penalty weight sharply.
| 0 | 1 | 2.5 | 5 | 10 | |
|---|---|---|---|---|---|
| 0.00 | 44 | 44 | 44 | 44 | 44 |
| 0.25 | 53 | 53 | 53 | 54 | 54 |
| 0.50 | 53 | 53 | 53 | 53 | 53 |
| 0.75 | 54 | 54 | 54 | 54 | 54 |
| 1.00 | 52 | 52 | 54 | 54 | 54 |
| 1.25 | 52 | 53 | 54 | 54 | 49 |
Dropping the count entirely at costs ten agreements out of fifty-five, and no choice of penalty weight recovers them. The model's own values reach the maximum of the grid and the maximum is a plateau, so the rule is robust to the exact exponent and to the penalty weight alike. The grid reads the sign of a rank correlation and is insensitive to the precise exponent by construction, and the stronger claim that the exponent is one half is made where the model itself is fit, in §4.4. The count is essential for the same reason it is there. A logit reflects the class prior, so under heavy imbalance it correlates with , which instability carries in its denominator. A score coupled to that denominator reaches without passing through , so a predictor that omits the count reads the sign backwards. This is why the dispersion-only predictor at scores 44 where the full model scores 54.
J The Stretch Channel
Section 5.4 puts the stretch channel of Eq. (10) through Eq. (9). The rule reads , so Table 12 reports beside . The size channel and the product of the two, which is the Mahalanobis score itself, run alongside it.
Table 12: The three channels of the Mahalanobis decomposition against instability. Spearman correlations, centered within query group, as means over the ten seeds of Appendix K. The two columns of each dataset are the two sides of Eq. (9). Every entry is negative, so all three channels rank the most reproducible verdicts as the most suspicious.
| Channel | CIFAR-100 | DermaMNIST | ||
|---|---|---|---|---|
| Stretch | -0.293 | -0.184 | -0.271 | -0.231 |
| Size | -0.299 | -0.325 | -0.403 | -0.395 |
| Product | -0.388 | -0.347 | -0.394 | -0.369 |
The prediction of §5.4 is a statement about deferral, so we measure it with the instrument of §6 as well. Table 13 defers on each channel and compares the area against the random baseline. It follows the pooled convention of Appendix A, which is the one Table 3 uses.
The product row is the Mahalanobis score written in the notation of the decomposition, and it tracks the maha row of Table 3 on both datasets. The stretch channel is the one Janiak et al. (2026) shape representations to
Table 13: Deferring by any channel of the Mahalanobis decomposition is worse than deferring at random. AURC and its position against the random baseline, pooled and uncentered, as means over the ten seeds of Appendix K with a 95% interval on . Lower AURC is better and a positive is a loss. The sign is unanimous in all ten seeds in all six cells.
| Channel | CIFAR-100 | DermaMNIST | ||||
|---|---|---|---|---|---|---|
| AURC | (%) | AURC | (%) | |||
| Stretch | -0.405 | 0.1323 | -0.663 | 0.0701 | ||
| Size | -0.451 | 0.1342 | -0.693 | 0.0703 | ||
| Product | -0.537 | 0.1343 | -0.696 | 0.0704 | ||
| random | +0.000 | 0.1291 | — | +0.000 | 0.0622 | — |
control, and of the three it is the one that costs the least, at 2.4% on CIFAR-100 against the 3.9% of the size channel it compensates. Controlling it buys detection performance and sells the stability of the verdict.
K Seeds
Table 14 gives the seed-to-seed behavior of behind Table 3, and Table 15 separates the two quantities that a re-run moves. A seed redraws the reference subsample, the query subsample, the bootstrap replicates and the random baseline (Appendix A).
Table 14: The relative position of each score across ten seeds, in percent. The sign is the claim and it is unanimous in every cell. The spread within a score is an order of magnitude smaller than its distance from the baseline.
| Score | CIFAR-100 | DermaMNIST | ||||||
|---|---|---|---|---|---|---|---|---|
| mean | sd | range | sign | mean | sd | range | sign | |
| knn_std | -6.99 | 0.20 | [-7.24, -6.67] | 10/10 | -19.70 | 0.28 | [-20.06, -19.30] | 10/10 |
| lid | -5.57 | 0.22 | [-5.84, -5.19] | 10/10 | -19.68 | 0.27 | [-20.09, -19.22] | 10/10 |
| energy | +2.15 | 0.27 | [+1.76, +2.60] | 10/10 | -14.19 | 0.41 | [-14.76, -13.44] | 10/10 |
| msp | +2.32 | 0.16 | [+2.15, +2.67] | 10/10 | -6.82 | 0.55 | [-7.60, -5.98] | 10/10 |
| maha | +3.93 | 0.15 | [+3.68, +4.20] | 10/10 | +13.09 | 0.25 | [+12.70, +13.49] | 10/10 |
The level and the contrast behave differently, which is why we report rather than the area itself. The baseline area matches its predicted value to four decimals on both datasets. That confirms it as a functional of the query set rather than an estimate drawn from it. The level then moves by a few percent between seeds and carries every score with it at a correlation of 0.85 or above in all ten cells. The contrast holds still. The widest interval on is 0.68 percentage points against margins between 2 and 20.
Table 15: What a re-run moves. The level of the table drifts by a few percent and takes every row with it. The position of a score relative to the baseline does not.
| CIFAR-100 | DermaMNIST | |
|---|---|---|
| Baseline area AURC | 0.1291 | 0.0622 |
| Predicted | 0.1291 | 0.0622 |
| Level spread across seeds | 1.22% | 3.83% |
| Widest interval on | 0.33 pp | 0.68 pp |
| corr(AURC, AURC) | 0.85–0.96 | 0.91–0.99 |
We evaluate the baseline as the mean of twenty uniform draws rather than one. A single draw is itself an estimate, with a coefficient of variation of 0.13% on CIFAR-100 and 0.55% on the smaller DermaMNIST query set, and that noise would propagate into every in the column. Averaging removes it. The result agrees with , which carries no noise at all.
The predictor of the rule is stable across the same seeds. The sign of is unanimous over ten seeds for all five scores on both datasets, including the smallest magnitude in either table, energy on CIFAR-100 at . Eq. (9) holds in all ten seeds in all ten cells.
L The Reference-Count Sweep
Table 16 sweeps the reference count on CIFAR-100 and reports per-score AURC at each size. Every score stays on the same side of the random baseline throughout, while the mean verdict instability at full coverage falls with an exponent of 0.45. Holding the argmin fixed raises that exponent to 0.50, so the same competition that moves the endpoints of Table 5 also flattens the sweep. This is the evidence behind the small-sample claim of §6.2.
The margins themselves are not constant across the sweep. Read as , those of the logit scores narrow as grows, from +6.4% to +2.3% for energy, while maha holds near +4% and knn_std near -7%. We therefore claim the sign at the reference sizes we test and do not extrapolate it past them.
Table 16: Per-score AURC on CIFAR-100 across reference-set sizes . Lower is better. The two dispersion scores beat the random baseline at every size and the three distance and logit scores below it fall short at every size, twenty-five cells with no crossing, while the mean instability shrinks with . The column is an independent run from Table 3 and predates the seeded protocol of Appendix K. Its baseline area sits 0.43% from the seeded one, which is the level moving with the query draw. Against that, agrees in sign on all five scores and in magnitude to within 0.21 percentage points. An unreplicated run reproduces the claim but does not pin down the level.
| 25 | 50 | 100 | 200 | 400 | |
|---|---|---|---|---|---|
| Mean instability | 0.908 | 0.674 | 0.495 | 0.356 | 0.260 |
| knn_std | 0.4139 | 0.3112 | 0.2284 | 0.1649 | 0.1209 |
| lid | 0.4142 | 0.3119 | 0.2299 | 0.1669 | 0.1227 |
| random | 0.4521 | 0.3365 | 0.2474 | 0.1783 | 0.1297 |
| energy | 0.4810 | 0.3500 | 0.2573 | 0.1834 | 0.1327 |
| msp | 0.4817 | 0.3512 | 0.2563 | 0.1832 | 0.1329 |
| maha | 0.4762 | 0.3504 | 0.2574 | 0.1848 | 0.1348 |
M The Two Targets Are Antipodal
Section 6.3 notes that the scores failing against verdict instability are not bad scores but scores optimized against a different target. Table 17 makes the point on CIFAR-100. The left column is abstention against verdict instability and the right is abstention against misclassification of the in-distribution classifier, the conventional selective-prediction target. MSP is the best score in the right column and the second worst in the left, and knn_std is the best in the left and the worst in the right. Each is beaten by a coin flip in the column it was not designed for, and the same reversal appears on DermaMNIST.
Table 17: The two targets are close to antipodal on CIFAR-100. The left column is abstention against verdict instability and the right is abstention against misclassification of the in-distribution classifier. Lower is better in both. Each score is beaten by a coin flip in the column it was not designed for. Both columns are means over the ten seeds of Appendix K; the left column is the AURC of Table 3 and the right is measured on the same queries at the same seeds.
| Score | AURC (instab.) | AURC (misclass.) |
|---|---|---|
| knn_std | 0.1201 | 0.0761 |
| lid | 0.1220 | 0.0751 |
| random | 0.1291 | 0.0592 |
| energy | 0.1319 | 0.0273 |
| msp | 0.1321 | 0.0194 |
| maha | 0.1342 | 0.0450 |
The reading is not that one column is correct. A deployment that abstains on MSP is buying accuracy and selling stability, and one that abstains on knn_std is doing the reverse. Neither is wrong and neither is what the word suggests, and the choice is currently made by default.