arXiv:2609.00691cs.LGSep 2026

Manuscript Offprint

arXiv:2609.00691

Verdict Instability of OOD Scores under Reference Resampling

Donghoon Lee, Shinjin Kang

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 uu from the centroid of its assigned class cc with ncn_c reference points,

std[s(x)]≈σt(u)2nc+λ2Var[pen(x)],(1)\mathrm{std}\left[s(x)\right] \approx \sqrt{\frac{\sigma_t(u)^2}{n_c} + \lambda^2 \mathrm{Var}[\mathrm{pen}(x)]}, \tag{1}

where σt(u)2=u⊤Σcu\sigma_t(u)^2 = u^\top \Sigma_c u 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 R2=0.82R^2 = 0.82–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 ncn_c by its mean collapses R2R^2 from 0.923 to 0.276.

Our second result follows from the first, and it has practical implications. Instability rises with σt(u)\sigma_t(u), so any score anti-correlated with the dispersion moves against the reliability of the verdict. Far-OOD queries

Figure

Figure 1: The geometry of the sign. Verdict instability is the class cloud's dispersion along the query direction, scaled by nc−1/2n_c^{-1/2} (Eq. 1): the in-distribution QinQ_{in} lies along a high-variance eigen-direction (TT large), the farther QfarQ_{far} along a low-variance one (TT 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 sign[ρ(M,T)]=sign[ρ(M,T^)]\text{sign}[\rho(M,T)] = \text{sign}[\rho(M,\hat{T})] for any score MM, 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 1/nc1/\sqrt{n_c} dependence across classes under natural imbalance (58.7×58.7\times), 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.

References (63)