Manuscript Offprint
arXiv:2611.06021Attraction-Ranking Mismatch in Out-of-Distribution Detection: Theory and Evidence from Hamiltonian Feature Dynamics
Abstract
Attracting features toward learned in-distribution (ID) regions is an intuitive strategy for out-of-distribution (OOD) detection, but does such attraction improve detection? We investigate this question using class-conditioned Hamiltonian dynamics as a controlled testbed and identify an attraction-ranking mismatch: improving individual class-affinity scores need not improve the relative ordering of ID and OOD samples. Our analysis separates misalignment between the driving field and the detection score from ranking failure that persists even when they are aligned. An exact AUROC decomposition and a local boundary analysis identify relative score changes at the ID–OOD ranking boundary as the source of first-order AUROC change under regularity conditions. Experiments demonstrate that a score-aligned rule can improve performance on a held-out source validation split yet consistently degrade it after transfer, even without a single winning-class change. A separate perturbation study finds that near-boundary relative score changes track the direction of small AUROC changes in the tested settings. Finally, centroid approximation and shared scales connect the zero-step score to a static centroid family that includes the existing CTM detector. Together, these results explain why class attraction is insufficient to justify feature refinement and motivate evaluating its effect on the ranking boundary.
Keywords: Out-of-Distribution Detection, Attraction-Ranking Mismatch, Feature Dynamics, Hamiltonian Framework, Pairwise Ranking
1. Introduction
Post-hoc out-of-distribution (OOD) detection asks whether a test sample belongs to the distribution represented by a fixed classifier (Hendrycks and Gimpel, 2017; Liang et al., 2017). Existing detectors extract evidence from confidence, logits, or feature geometry (Liu et al., 2020; Wang et al., 2022; Sun et al., 2022). A recurring intuition is that an in-distribution (ID) feature should lie near, or move toward, a learned class region. The unresolved question is whether this pointwise geometric attraction improves the relative ordering of ID and OOD samples.
We turn that intuition into a minimal dynamical problem. Normalized training features define class-conditioned wells on the unit sphere; a query starts from rest; and the strongest class affinity visited along its trajectory is used as ID evidence. Hamiltonian dynamics provide a transparent testbed because the force, trajectory, and observed score are all explicit. We use this model to examine whether attraction implies better detection.
The implication fails in two logically distinct ways. First, the field that moves a feature can be misaligned with the instantaneous class evidence used by the detector: summing class forces may reduce the affinity of the currently winning class. Second, even a score-aligned flow can raise OOD scores more than ID scores near the baseline ranking boundary. We call these failures attraction-ranking mismatch. The distinction matters because AUROC is a functional of ID–OOD pairs, not an average of samplewise score changes.
The central ranking result identifies the relative score change at the ID–OOD ranking boundary that determines the first-order AUROC change under regularity conditions. An exact decomposition into corrected and spoiled pairs explains finite changes. A first-step analysis links the driving field to the detection score, while an ordering-preservation result states the limits of universal improvement by deterministic refinement.
Our experiments show that local score alignment does not ensure better OOD ranking. A rule that improves AUROC on a held-out source split reduces it on the target benchmarks when the refinement rule and step count are kept fixed. This failure occurs without observed winning-class changes within the fixed candidate sets, showing that class switching is not required to explain the loss in ranking quality. In a separate perturbation study, near-boundary relative score changes track the direction of small AUROC changes more consistently than their global average. The experiments thus illustrate ranking failure despite local alignment; they do not establish the destructive class interference allowed by the theory.
The T = 0 reference separates the static geometric information from the effect of motion. After removing candidate truncation, we bound the error of replacing each class field by a radial centroid score. Under shared scales, this approximate score is exactly rank-equivalent to centroid cosine similarity. CTM (Nguyen et al., 2023) is an existing full-bank, feature-norm-weighted member of the resulting family. This relation
Corresponding author.
Email address: xiaolh@jnu.edu.cn (Lianghai Xiao)

Figure 1: Research map. Class-conditioned concentration on the feature sphere defines potential wells and a testable Hamiltonian hypothesis. Positive-time attraction need not preserve ID–OOD ordering; the locked score-aligned audit shows that the mismatch can persist without a winning-class switch. The exact reference exposes a static geometry that reduces, after explicit candidate expansion, centroid approximation, and scale sharing, to a centroid family containing CTM as a full-bank member.
provides a static baseline for studying the contribution of motion.
The contribution of this study is threefold:
-
first, we analyze the attraction–ranking mismatch by separating field–score alignment from ID–OOD ranking and identifying the boundary condition that governs first-order AUROC change under regularity conditions;
-
second, we show through controlled experiments that local score alignment does not guarantee better ranking, even without winning-class changes, and examine the boundary-based explanation in a separate perturbation study;
-
third, we connect zero-step anchor scores to a static centroid family through approximation bounds and shared-scale ranking equivalence. This analysis also shows that CTM is an existing member of this family.
The rest of the paper is organized as follows. Section 2 positions the problem. Section 3 states the fundamental model, Section 4 develops the theory, and Section 5 derives its static consequence. Section 6 tests the theoretical chain, followed by discussion and limitations.
2.1. Post-hoc OOD scores and feature shaping
Post-hoc methods leave the classifier fixed. Output-based scores include maximum softmax probability (MSP), ODIN, Energy, MaxLogit, generalized entropy, and Logit-Gap (Hendrycks and Gimpel, 2017; Liang et al., 2017; Liu et al., 2020; Hendrycks et al., 2022; Liu et al., 2023; Liang et al., 2025). Feature shaping instead modifies the representation used for scoring: ReAct clips activations, DICE retains
high-contribution connections, ASH prunes and rescales activations, Scale rescales features, and RankFeat removes a dominant rank-one component (Sun et al., 2021; Sun and Li, 2022; Djurisic et al., 2023; Xu et al., 2024; Song et al., 2022). Gradient Short-Circuit studies post-hoc feature intervention, whereas FEVER-OOD uses dimensionality reduction and singular-value regularization to mitigate free-energy vulnerabilities (Gu et al., 2025; Isaac-Medina et al., 2025). These distinct training-time and inference-time approaches motivate our central question: when can a representation change be expected to improve ranking?
2.2. Geometric and prototype-based detection
Geometric detectors use class statistics, neighborhoods, or residual subspaces. Representative examples include Mahalanobis distance, RMDS, KNN, ViM, and SHE (Lee et al., 2018; Ren et al., 2021; Sun et al., 2022; Wang et al., 2022; Zhang et al., 2023a). NNGuide and SIRC combine geometric evidence with classifier confidence (Park et al., 2023; Xia and Bouganis, 2024). Recent prototype methods refine the class representative or enrich its comparison rule: SPROD suppresses spurious features, POT uses prototype transport with virtual outliers, GROOD introduces an artificial OOD prototype, and uncertainty-aware refinement couples prototype geometry with energy (Zohrabi et al., 2025; Ke et al., 2025; ElAraby et al., 2025; Wei and Liu, 2026). CADRef retains class-aware relative information beyond a single centroid (Ling et al., 2025).
The CTM method is the closest static construction to our zero-step family (Nguyen et al., 2023). It averages unnormalized training features class-wise, normalizes the resulting means, and uses maximum cosine similarity. Section 5 bounds the centroid approximation error and shows that the resulting radial centroid score is rank-equivalent to cosine similarity under shared scales. CTM is recovered as a full-bank special case.
2.3. From geometric attraction to ranking
Manifold and class-concentration arguments motivate localized feature geometry (Cayton, 2008; Fefferman et al., 2016), while spectral and information-geometric analyses relate learned representations to gradient or predictive geometry (Seleznova et al., 2026; Nguyen et al., 2026). These works explain why geometric structure can be informative. They do not imply that motion generated by this structure improves a distributional ranking.
Hamiltonian mechanics supplies a clean counterexample framework: a scalar potential generates coupled position-momentum motion (Arnold et al., 1989), whereas an OOD score evaluates a separate observable. We analyze why attraction need not improve ranking by separating (i) alignment between the dynamical driver and the observed score from (ii) alignment between samplewise score changes and ID-OOD pair ordering. The resulting pairwise decomposition, boundary derivative, and limitation on universal improvement apply to score refinement beyond this Hamiltonian implementation when their stated assumptions hold.
3. A Hamiltonian Model of Feature Refinement
To make the distinction between attraction and ranking explicit, we construct a model in which both the feature dynamics and the detection score are defined by class affinities. Normalized ID training features serve as anchors, and their affinities define a potential that drives query features toward the learned class regions. We then specify the Hamiltonian dynamics and the score evaluated along each trajectory, providing a concrete setting for analyzing how feature motion affects ID-OOD ranking. Further geometric motivation and details of the numerical update schemes are provided in Appendix A.1.
3.1. A class-induced landscape
Let be the penultimate representation of a fixed classifier, with on the populations under consideration, and retain only feature direction,
Let be the number of classes and the number of anchors per class. For and , let be normalized training features used as anchors, their weights, and bandwidths. A decreasing radial kernel defines the class affinity
The full-class reference potential is . In computation, a nonempty candidate set is selected at the initial feature and held fixed. The scalar driving the motion is
The dynamics then use the conditional potential .
3.2. The Hamiltonian question
Let . On the tangent bundle , augment with momentum and start the query from rest under
(4)
The normal term preserves tangency. Let be the numerical step size, the number of steps, and the feature after step . Define the instantaneous score and the maximum score along the trajectory by
Thus by construction even if instantaneous evidence decreases. The implementation stores because it sums rather than averages the anchors; this common positive factor does not change rankings. Figure 2 shows the complete construction: spherical class wells generate motion, while the detector observes a maximum class affinity along the resulting trajectory.
Hypothesis 3.1 (Hamiltonian attraction hypothesis). Within a specified field, step-size, and trajectory-length grid, nonzero attraction toward the learned class regions improves the ID-OOD ranking induced by the zero-step score , and this advantage persists across benchmark scale.
By construction, the trajectory score satisfies for every query. This samplewise guarantee does not establish the hypothesis, because OOD scores may increase more than ID scores. Moreover, the aggregate field driving the motion differs from the maximum class affinity used for scoring. These distinctions motivate the analysis in the next section.
4. Attraction-Ranking Mismatch Theory
We examine two links between feature motion and detection performance. First, does motion driven by the aggregate field increase the instantaneous detection score? Second, do the resulting score changes improve ID-OOD ranking? We begin with a step from rest to characterize the local effect of the driving field, then turn to the relative ordering of ID and OOD scores. Proofs and the connection between a single trajectory step and the continuous score family used in the boundary analysis are provided in Appendix A.2.
4.1. Field-score mismatch
Let be the tangent projector of the unit sphere. Both the constrained geodesic kick–drift–kick scheme and the original position-normalized update have the same first-step expansion from rest; Appendix A.1 treats both schemes. Gradients are taken with respect to the feature argument; the initial candidate set is held fixed. Smoothness near a point on the sphere refers to a smooth extension to an ambient neighborhood.

Figure 2: Schematic construction of the trajectory score. (a) The surface height is , with wells labeled . (b) The same field and path in top view. Both views identify the initial state , best sampled state , illustrative turning state , and final state ; solid and dashed red curves show outward and returning motion. (c) Class potential along the outward branch , parameterized by for . Grid lines locate samples, and the red polygon joins their potential values. The continuous minimum (open circle) lies between samples and is lower than the best sampled value (star). (d) Each class contributes its maximum visited affinity ; their largest value defines , which need not equal the final-state affinity. Stars mark the same state in all panels. All panels share affinities and sampled states; the planar motion is schematic, not a Hamiltonian simulation.
Theorem 4.1 (First-step field-score mismatch). Fix and suppose and are twice continuously differentiable near . Write and . Starting from ,
Consequently,
Hence the aggregate driver's leading change is nonnegative, and is positive when , whereas an individual class affinity can either increase or decrease.
The theorem makes the first mismatch explicit: intuitive attraction follows the sum , but the detector observes the largest class affinity. Other classes can therefore pull against the class that currently provides the score.
Definition 4.2 (Class-interference index). Let be the unique maximizer of over and set . For
, define
Corollary 4.3 (Destructive class interference). Under Theorem 4.1 and Definition 4.2,
If , then for every sufficiently small nonzero , the aggregate field increases while the instantaneous maximum class affinity decreases.
For these sufficiently small steps, : the maximum along the trajectory retains the initial score. The instantaneous score decreases, but the trajectory score does not.
Definition 4.4 (Driver-score alignment). For a differentiable driver F and instantaneous score s on the sphere, the driver is locally score-aligned at q when
and strictly aligned when the inequality is strict.
For twice continuously differentiable and , a step from rest changes by . Choosing therefore removes the local field-score conflict away from ties. This is a statement about a step from rest. At a general point on the continuous trajectory,
so alignment of the driver alone does not imply a monotone instantaneous score. The trajectory score is nondecreasing in T because it retains the maximum. Neither property determines the relative changes of ID and OOD scores. Figure 3 contrasts these two levels.
4.2. From fixed winners to pairwise ranking
For score-aligned dynamics, let , using deterministic tie-breaking. The initial-winner driver is , while the current-winner driver is and reselects its active class at each force evaluation. The initial-winner control retains only ; the current-winner control uses .
Proposition 4.5 (Fixed-winner equivalence). Run the two systems from the same initial state with the same deterministic kick–drift–kick scheme and candidate set. If is the unique maximizer at every retained state of the initial-winner trajectory, then their states, active classes, driver values, and retained scores are identical at every step. For an integrator with additional internal force evaluations, the same condition is required at those evaluation points.
When the winner stays fixed, these controls cannot differ through class selection. Their common score can still change ID–OOD ordering. Define the score increase .
Let and be independent input samples, and set and . For a measurable input score , larger values indicate stronger ID evidence. We use
For feature scores, write .
Definition 4.6 (Corrected and spoiled pairs). For the independent features defined above, let
The sets
contain baseline errors corrected by the trajectory and baseline-correct pairs spoiled by it, respectively.
Theorem 4.7 (Exact AUROC decomposition). Assume score ties have probability zero for and , and write AUROC = AUROC - AUROC . Then
The identity shows why nonnegative score increases are insufficient: ranking improves only when corrected-pair mass exceeds spoiled-pair mass.
This finite-change identity applies to the trajectory score for any fixed . To identify which pairs control a small change, we next consider a score family indexed by a continuous parameter . Its expansion and distributional assumptions must be checked separately; integer step counts and maxima along a trajectory do not automatically satisfy them.
Theorem 4.8 (Boundary-conditioned AUROC derivative). For the independent inputs defined above, let be a measurable score family with
Suppose:
-
;
-
, and has a joint density continuous in at zero for almost every ;
-
for some and measurable , whenever , with , and .
Then
Here the conditional mean is defined by the density:
If the score family is defined only for , the derivative is right-sided. The ranking boundary consists of ID–OOD pairs with equal baseline scores; it is not a classifier's class decision boundary. Relative score change at this boundary controls the first-order AUROC change, whereas the global mean need not have the same sign.
Theorem 4.9 (No universal AUROC gain from deterministic refinement). Let be measurable baseline and deterministic refined scores. If but for some , then there exist ID and OOD distributions for which . Universal non-decrease over all ID/OOD distributions without baseline ties therefore requires strict preservation of every ordering induced by ; under that condition, the two AUROCs are equal for all such distributions.
Proof. Choose the point-mass distributions and . Equation (12) gives , while
(a) Field-score mismatch

(b) Score-ranking mismatch

Figure 3: Two levels of the attraction–ranking mismatch. (a) A projected aggregate force can align with the winning-class score gradient (left), whereas nonwinning classes can reverse that alignment and produce the destructive condition (right). (b) Even when each sample's retained trajectory score is nondecreasing, unequal ID and OOD increases can reverse an initially correct pair. All class sums are over . Panel (a) is a theoretical schematic, not an observed audit sample; the geometry and values are illustrative.
Thus universal non-decrease requires for every pair. Applying this condition also with x, y exchanged preserves the sign of every nonzero baseline difference. If baseline ties have probability zero, then
and refined ties also have probability zero. Taking expectations proves equality of the two AUROCs.
The theorem limits guarantees over all ID/OOD distributions; it does not rule out improvement on a particular task. Preserving every strict baseline ordering leaves AUROC unchanged when baseline ties have probability zero, whereas changing such an ordering can reduce AUROC for some distributions.
5. Static Scores at Zero Steps
The preceding analysis studies how feature motion changes the ranking relative to the initial score . We now examine the structure of this baseline: what geometric information does the detector use before any motion takes place? Setting in Eq. (5) gives .
To study its relation to centroid scoring, we consider the full-class score . Removing candidate truncation is an additional modeling choice and need not preserve the original score. We first bound the error of replacing each class field by a centroid score, then examine when the resulting scores induce the same ranking as cosine similarity. Proofs are provided in Appendix A.3.
Write , and . Assume and for every class considered.
Proposition 5.1 (Centroid approximation). Suppose class uses a common bandwidth and is -Lipschitz. Define . Then
Consequently, the maximum-field error is bounded by the largest class-wise right-hand side.
Let be the maximum, over classes, of the right-hand side of Eq. (16), and write . Then . In particular,
Smaller margins need not be preserved. The following exact equivalence concerns the approximated centroid score, not the original anchor score.
Proposition 5.2 (Common-scale ranking equivalence). If and are shared across classes and is strictly decreasing, then for unit and ,
The two scores select the same classes and rank all samples identically.
Definition 5.3 (Static centroid family). Let , where is a nonempty set of training-example indices for class . For positive directional weights such that , define
(19)
The collection of all such is the static centroid family induced by the zero-step reduction.
Unequal bank sizes are also compatible with a common class multiplier. For , replace in the class affinity by and choose
Then , while the normalized anchor weights are . Thus bank selection and directional weighting identify different members of the same family under shared bandwidths.
Proposition 5.4 (CTM is a special case). Let contain all training indices for each class. Write each training feature as with . CTM's normalized class mean is , and its maximum-cosine score is exactly . Hence CTM is the full-bank, feature-norm-weighted member of Definition 5.3.
The reduction separates three operations: removing candidate truncation, approximating each class field by a centroid, and imposing shared scales. The approximation is controlled by an error bound; the resulting radial centroid and cosine scores are exactly rank-equivalent under the shared-scale conditions. CTM is an existing member of this static family. This connection provides static controls for separating feature motion from score construction; the ranking equivalence does not extend to the original anchor field without accounting for the approximation error.
6. Experiments
The experiments address three questions: whether the tested attraction improves OOD ranking, whether local score alignment prevents ranking failure, and whether a boundary statistic explains the direction of small AUROC changes. A final comparison separates the steps of the static reduction. Destructive first-step interference is a theoretical possibility; the real-data studies below do not establish its occurrence.
6.1. Protocol
We use OpenOOD v1.5 splits (Zhang et al., 2023b). CIFAR-10, CIFAR-100, and ImageNet-200 use three official ResNet-18 checkpoints; ImageNet-1K uses a pinned torchvision ResNet-50 V1, with DenseNet-121 as an additional backbone. Tables A.19–A.20 report the individual Near-/Far-OOD datasets and results.
The original position-normalized dynamics use Gaussian anchor fields, , and . CIFAR uses 80 anchors per class and all-class forces; ImageNet uses five anchors from 12 setup features per class and a fixed initial top-20 candidate set. The separate score-aligned audit uses five anchors from 12 setup features per class on every benchmark, all 10 classes on CIFAR-10, fixed top-20 candidates elsewhere, exact
Table 1: Gaussian trajectory ablation. The best nonzero is selected retrospectively from . Entries are AUROC/FPR@95; is the AUROC change from .
| ID | Group | best | |||
|---|---|---|---|---|---|
| CIFAR-10 | Near | 88.59/42.36 | 88.95/40.91 | 10 | + .36 |
| Far | 91.07/31.09 | 91.56/29.95 | 10 | + .49 | |
| CIFAR-100 | Near | 79.46/63.16 | 79.72/61.88 | 3 | + .26 |
| Far | 83.41/51.10 | 84.01/49.61 | 3 | + .60 | |
| IN-200 | Near | 79.44/64.42 | 80.22/61.89 | 3 | + .78 |
| Far | 91.18/31.66 | 91.29/31.36 | 1 | + .11 | |
| IN-1K | Near | 66.14/77.84 | 64.51/79.27 | 1 | -1.63 |
| Far | 77.44/65.16 | 74.37/69.75 | 3 | -3.07 |
geodesic drift, , and . Current-winner, is selected on an ImageNet-1K tuning split, checked on its disjoint holdout, and transferred without returning to CIFAR-10, CIFAR-100, and ImageNet-200. The score-aligned rule and step count are fixed across benchmarks; each benchmark uses its own classifier and anchor field. The score-aligned study and the separate stability probe use distinct validation partitions, with parameter selection and holdout evaluation kept separate. The probe step size is selected on the source and fixed across targets. Neither study uses Near-/Far-OOD test loaders. The original trajectory comparisons and static baselines report Near-/Far-OOD test results. Proxy OOD is Tiny ImageNet for CIFAR and OpenImage-O for ImageNet.
The static comparisons use the same backbones and loaders. CTM uses the full training bank, while the small-bank control uses 80 directions per class on CIFAR and 12 on ImageNet. Its maximum cosine similarity is combined with MSP at the previously selected weight after ID-only standardization. We call this the centroid–MSP baseline and use it to examine the static construction in Section 5.
We report AUROC and FPR@95; higher AUROC and lower FPR@95 are better. Following the evaluation code, FPR@95 uses OOD as positive: it is the ID rejection rate at 95% OOD recall. AUROC assigns half credit to ties. CIFAR and ImageNet-200 results average three independently trained model seeds. ImageNet-1K variability for anchor-based methods is over three sampled banks on a fixed backbone. Selection and calibration settings are described in Appendix A.14.
6.2. Testing the attraction hypothesis
Table 1 compares the zero-step Gaussian field with the best nonzero step count in the tested grid. Small gains occur on CIFAR and ImageNet-200, but every tested nonzero Gaussian trajectory is worse on ImageNet-1K: even the retrospective best loses 1.63 Near-OOD and 3.07 Far-OOD AUROC points. The complete grid, IMQ control, five-kernel study, and anchor-weighting ablation appear in Tables A.9, A.10, A.11, and A.12. Nonzero attraction is therefore not consistently better than across these benchmarks. This comparison does not exclude improvements at other step sizes or trajectory lengths.
6.3. Ranking failure without class switching
The current-winner flow raises AUROC from 71.79 to 72.93 on the ImageNet-1K holdout, but this improvement does not transfer. Table 2 shows negative AUROC change on every seed of the three target benchmarks. Spoiled pairs exceed corrected pairs in all nine runs, as accounted for exactly by Theorem 4.7. Moreover, none of the 20,205 audited sample-seed trajectories changes its initial winning class. Thus ranking can deteriorate without a change of winning class.
Away from ties, the current-winner flow satisfies the local alignment condition in Definition 4.4. Numerical checks support the local expansion and confirm that the geodesic update preserves the sphere and tangent momentum to numerical precision. The audit finds no destructive first-step interference. Appendix A.4 reports the numerical checks and the comparison with the initial-winner flow; the exact equivalence in Proposition 4.5 additionally requires a unique winner at every force evaluation.
6.4. Evaluating the boundary-based diagnostic
To examine the local diagnostic suggested by Theorem 4.8, we use a separate perturbation with an explicit score derivative. A small repulsive step from a fixed class centroid provides this control: its score decrease can be calculated for each sample and compared across ID–OOD pairs. The probe uses the score at the perturbed feature, not the maximum along an attractive trajectory. Let be MSP, , , with a deterministic rule for ties, and . Freeze , , and the ID-fit calibration statistics, and set
Here Exp is the spherical exponential map. The means , and positive standard deviations , are fitted on the ID-fit split and held fixed. The probe keeps the initial centroid and uses no maximum over the trajectory. Its score derivative is
Thus measures the decrease up to the common positive factor . Define
The repulsive step gives
Under the theorem's density conditions, the first-order AUROC change is positive exactly when . The uniform score remainder holds here because , , and the calibration scales are fixed.
To summarize pairs near this boundary, let contain the empirical fraction of ID–OOD pairs with the smallest absolute baseline margins, and define
Here , are validation inputs. We report and use for the mean over all pairs. Writing for the baseline margin density, the theorem gives
(23)
Both the boundary density and the calibration scale can vary across settings. We therefore use as a diagnostic of direction, rather than as a predictor of AUROC-change magnitude across settings.
The primary is selected on ImageNet-1K/ResNet-50 and then fixed before all reported transfers. Table 3 shows small positive changes on both ImageNet-1K backbones but no positive target mean. The 5% boundary statistic has the same sign as AUROC change in 14 of 15 runs across five dataset-backbone settings. In contrast, the unconditional statistic is positive on all three transfer targets and has the opposite sign to their observed changes. Figure 4 visualizes this separation. This finite-window agreement is descriptive, not a direct estimate of the infinitesimal derivative or a significance test. The probe tests this local mechanism, not a performance-improvement claim; detailed boundary fractions and descriptive correlations are in Appendix A.5.
6.5. Auditing the zero-step reduction
The static comparisons distinguish the effect of feature motion from the choices used to construct the zero-step score. The six-stage comparison in Table 4 separates field, scale, centroid, bank, and fusion effects on fixed ImageNet-1K validation features. Candidate truncation is removed before S1, which already uses the full class set; S2 then shares the class scales. These are additional modeling choices beyond setting T = 0. Sharing class scale produces the largest single increase; radial centroid affinity and cosine then give identical rankings, exactly as Proposition 5.2 predicts. The empirical gain from centroid replacement is not certified by the global approximation bound, which preserves no audited pair by itself. Enlarging the bank and adding MSP are empirical controls rather than consequences of the reduction.
The static controls are competitive but not uniformly dominant. CTM is slightly stronger than the centroid–MSP baseline on four of eight Near-/Far-OOD AUROC tasks, CADRef leads on several ImageNet groups, and Scale is strongest on ImageNet-1K. Complete baselines, component ablations, class-count analysis, bank/calibration sensitivity, and batch-one efficiency are therefore placed in Appendix A.9. These comparisons show how training-bank estimation and confidence fusion affect the static baselines.
Table 2: Validation-only score-alignment audit. ImageNet-1K is the holdout after selection; other rows transfer the selected current-winner geodesic rule without returning. Entries are mean±standard deviation AUROC/FPR@95; is aligned AUROC minus AUROC.
| Benchmark | Aggregate | Current winner | ||
|---|---|---|---|---|
| ImageNet-1K | +1.14 | |||
| CIFAR-10 | -1.43 | |||
| CIFAR-100 | -.42 | |||
| ImageNet-200 | -.56 |
Table 3: Stability probe with a fixed step size. Static and probe columns report AUROC; is from Eq. (22), averaged over three seeds.
| Target | Static | Probe | Positive seeds | ||
|---|---|---|---|---|---|
| IN-1K/ResNet-50 | +0.056 | +13.329 | 3/3 | ||
| IN-1K/DenseNet-121 | +2.219 | +34.395 | 3/3 | ||
| CIFAR-10 | -.006 | -.551 | 0/3 | ||
| CIFAR-100 | -.016 | -.589 | 1/3 | ||
| ImageNet-200 | -.027 | -1.871 | 0/3 |

Figure 4: Boundary-conditioned mechanism and validation evidence. (a) AUROC changes when an ID–OOD pair crosses the ranking boundary; filled and open markers denote initial and final margins. (b) Mean over all pairs and over the closest 5% of baseline margins. The lower view enlarges the negative boundary means on the three transfer targets. (c) Boundary statistic versus AUROC change at , with the nine cross-dataset target-seed audits enlarged below. Signs agree in 14 of 15 audits overall and 8 of 9 cross-dataset audits; the circled point is the sole disagreement. AUROC changes are percentage points. R50 and DN121 denote the ImageNet-1K ResNet-50 and DenseNet-121 settings; C10, C100, and IN200 denote CIFAR-10, CIFAR-100, and ImageNet-200. Both statistics are computed on the same validation holdout.
7. Discussion and Limitations
7.1. Interpretation of the mismatch theory
The theory separates the driving field, the instantaneous detection score, and the relative ordering of ID and OOD scores. The first-step theorem connects the field to the instantaneous score for a step from rest. Keeping the maximum score along a trajectory guarantees a nonnegative score increase, but the exact pair decomposition shows why this need not improve AU-
ROC. For score families satisfying the additional expansion and density conditions, the boundary theorem shows that the mean relative score derivative at equal baseline scores, together with the margin density there, determines the first-order AUROC change.
The transfer experiment shows that local score alignment and an unchanged winning class are insufficient to ensure better ranking. This failure does not require the destructive class interference allowed by the first-step analysis. The separate probe
Table 4: Step-by-step static comparison on ImageNet-1K validation data. Values are mean±standard deviation over three detector banks; deltas are relative to MSP.
| Stage | Interpretation | AUROC | FPR@95 | ΔAUROC | ΔFPR@95 |
|---|---|---|---|---|---|
| MSP | output reference | 0.00 | 0.00 | ||
| S1 | exact full-class field | -11.61 | +23.08 | ||
| S2 | common class scale | +2.30 | -2.82 | ||
| S3 | radial anchor centroid | +5.47 | -10.65 | ||
| S4 | cosine implementation | +5.47 | -10.65 | ||
| S5 | setup-bank centroid | +6.43 | -13.90 | ||
| S6 | fixed centroid–MSP control | +7.26 | -17.68 |
illustrates why averaging score changes over all pairs can miss the direction of AUROC change: the pairs near equal baseline scores can move differently from the population as a whole.
The zero-step analysis identifies the geometric information present before motion. Removing candidate truncation is an additional modeling choice. The approximation bound then controls the replacement of full-class anchor fields by radial centroid scores. Under shared scales, the resulting centroid score is rank-equivalent to maximum cosine similarity. CTM is an existing full-bank, feature-norm-weighted member of this centroid family. The step-by-step experiment examines these scoring choices separately from the additional effects of bank size and confidence fusion. These comparisons help attribute static performance to scoring choices; they do not establish that centroid replacement improves AUROC in general.
7.2. A practical diagnostic and its scope
Theorem 4.8 suggests a validation diagnostic for score refinements satisfying its regularity conditions. On ID and proxy-OOD validation data allowed by the evaluation protocol, estimate each sample’s score derivative, form ID–OOD pairs, retain a fixed fraction with the smallest absolute baseline margins, and average the ID-minus-OOD relative derivative. Its sign provides a local prediction to compare with the observed validation AUROC change. Stability across seeds and boundary fractions should be checked in the intended validation setting. The mean relative derivative over all pairs provides a useful comparison, because its sign can differ from that near the ranking boundary.
The empirical conclusions are limited to the tested settings. The dynamics use fixed initial candidate sets, and the no-switch audit covers ; the ImageNet audit excludes classes outside the retained top-20 set. The score-aligned transfers and the separate probe use validation data. The probe’s 15 runs cover three seeds in each of five dataset–backbone settings, with shared validation images within each setting. For each ImageNet-1K backbone, variation is over sampled banks. These runs provide descriptive evidence, not 15 independent datasets or a significance test.
The diagnostic also has a local scope. The fixed 5% window summarizes pairs near the ranking boundary; it does not directly estimate the conditional mean at exactly equal scores. The observed AUROC changes at are finite-step changes, several of which are very small. Agreement between their signs and the boundary statistic therefore supports a local interpretation without guaranteeing gains at other step sizes or
on other distributions. Theorem 4.9 further shows that changing a strict baseline ordering can reduce AUROC for some ID/OOD distributions.
The numerical model and static approximation impose further limits. The original position-normalized scheme has substantial energy and tangency errors, so the geodesic control provides the evidence for constrained feature motion. The centroid approximation bound is too loose to certify the observed static rankings. Whether the diagnostic extends to transformers and foundation-model features, or can be used with ID-only validation objectives, remains open.
8. Conclusion
Class attraction and local score alignment do not guarantee improved OOD ranking. The transfer study demonstrates this failure even without observed winning-class changes within the fixed candidate sets. Under regularity conditions, the mean relative score derivative at the ID–OOD ranking boundary determines the direction of first-order AUROC change. A separate perturbation study finds that near-boundary relative score changes generally track the direction of small AUROC changes. Through centroid approximation and shared-scale ranking equivalence, the static analysis relates zero-step anchor scores to a centroid family that includes CTM. Together, these results show why samplewise score increases are insufficient and why feature refinement should be evaluated by its effect on ID–OOD ordering.
Code availability
Implementation and evaluation scripts are available in our public GitHub repository. Software versions, pinned dependencies, and checkpoint identifiers are specified in the appendix.
Appendix A. Mathematical Details and Supplementary Results
Appendix A.1. Fundamental-model properties and numerical update
Lemma A.1 (Transport of local class concentration). Let be the class-c image manifold and let be -Lipschitz on . If a class-c random image satisfies
then its normalized feature satisfies
where .
Proof. For every and , Lipschitz continuity gives
Taking the infimum over yields . Applying this deterministic inequality on the event in Eq. (A.1) gives Eq. (A.2).
Original position-normalized update.. The original trajectory experiments use ambient kicks with position normalization. With the initial candidate set fixed, one update is
The normalization keeps positions on , but momentum is not constrained to the tangent space. This is a distinct heuristic discretization, not a symplectic integrator for Eq. (4); no long-time energy or tangency guarantee is claimed for it.
Constrained geodesic update.. For the score-aligned audit, let denote the aggregate or single-class driver in Section 4.2. Starting with tangent , set
Exact kinetic drift followed by a tangent kick gives
The quotient is interpreted as when . For a tangent vector , the spherical exponential map is
The two kicks and the drift preserve the tangent bundle in exact arithmetic. A deterministic active class is selected at a current-winner tie, and smooth-flow claims are made only away from ties. Both schemes keep fixed; only the active class within that set may change.
Appendix A.2. Proofs for the attraction-ranking analysis
Proof of Theorem 4.1. The first half-step and position update give
For a unit vector and small ,
Substitution of proves Eq. (6) for the original update. For the geodesic scheme, and , which has the same expansion with remainder . Taylor expansion at gives
which is Eq. (7) because is an orthogonal projector. The same expansion for yields Eq. (8).
Proof of Proposition 4.5. Write and . The initial states agree. Suppose . Since is the unique maximizer at , continuity gives a neighborhood on which . Hence
The first kicks produce identical intermediate momenta, and the deterministic drift produces the same and intermediate momentum. The unique-winner assumption at gives the same equality of projected gradients there, so the second kicks imply . Induction proves equality of all states and active classes. The same argument applies at any additional internal force evaluation points covered by the assumption. Finally, at every retained state,
Taking maxima over proves equality of trajectory scores.
Proof of Corollary 4.3. Linearity of and Eq. (3) imply
Hence
which proves Eq. (10). If , its leading coefficient is negative. It also follows that , so Eq. (7) has a positive leading coefficient. The condition requires at least two candidate classes. Since is the unique maximizer, define
Continuity and finiteness of the candidate set give a neighborhood of on which for every candidate class. Thus for all and . Since as , the maximizer is unchanged for all sufficiently small nonzero steps. The instantaneous maximum therefore decreases while increases.
Proof of Theorem 4.7. Under the no-tie assumption,
The pointwise indicator identity is
Taking expectations proves the first statement. A changed ordering requires , so
If ties are present, Eq. (12) instead gives the exact identity
Thus empirical pair counts must include the change in tie mass when compared with AUROC computed using half credit for ties.
Proof of Theorem 4.8. First control the tail of the relative score derivative. Omit the remainder and write . Set for . Since ,
Next evaluate the derivative on the remaining region. For , the oriented integral identity
is bounded in absolute value by . Continuity in m, dominated convergence, and the negligible tail therefore give
Finally restore the remainder. Since
a change in ordering, including the creation of a tie, requires . For sufficiently small , the corresponding intervals in lie in whenever , so
Thus the remainder does not change the derivative, also under the usual half-credit convention for ties. Finally, by the stated density definition.
Connection to a single trajectory step.. For a unique initial winner, Theorem 4.1 and the positive class margin imply, with ,
Since is 1-Lipschitz, retaining the initial score gives
This is a pointwise expansion. Applying the boundary theorem to this family would additionally require a uniform remainder over the two populations and the stated joint-density conditions. The separate probe in Section 6.4 provides a simpler score family with a uniform remainder.
Appendix A.3. Proofs for the static reduction
Proof of Proposition 5.1. The definitions give
The reverse triangle inequality and Lipschitz continuity of imply
Because and the anchors lie on the unit sphere,
A second application of the Lipschitz inequality bounds the replacement of by by . The triangle inequality combines the two displays into Eq. (16). To obtain the score bound, use
and apply the class-wise bound. For two queries , it follows that
This proves the margin condition in Eq. (17).
Proof of Proposition 5.2. For unit vectors,
Thus maximizing cosine similarity over classes minimizes radial distance. Because is strictly decreasing and , substituting the minimizing distance gives Eq. (18). The map is strictly increasing on , which proves both the sample-ranking and class-selection statements.
Proof of Proposition 5.4. CTM forms an unnormalized class mean proportional to
Normalizing this vector removes the irrelevant factor and yields in Eq. (19). Maximizing its cosine with is therefore exactly .
Appendix A.4. Score-aligned transfer and winner-switch audit
Table A.5 gives the per-seed validation results under the locked geodesic rule. Corrected and spoiled columns are the probability masses from Theorem 4.7, expressed as percentages. AUROC uses half credit for ties; when tie mass changes, the exact relation includes Eq. (A.5). Displayed pair masses and AUROC changes are rounded separately.
Table A.5: Per-seed score-aligned mechanism audit. Static, aggregate, and aligned columns report AUROC; C/S gives corrected/spoiled pair mass in percent for the aligned flow relative to .
| Validation benchmark | Seed | Aggregate | Aligned | C/S | |
|---|---|---|---|---|---|
| ImageNet-1K | 0 | 72.27 | 65.77 | 73.07 | 2.74/1.94 |
| 1 | 70.84 | 66.24 | 72.30 | 3.02/1.57 | |
| 2 | 72.27 | 65.95 | 73.41 | 3.02/1.88 | |
| CIFAR-10 | 0 | 89.23 | 89.93 | 87.63 | 0.57/2.17 |
| 1 | 89.18 | 90.18 | 87.93 | 0.77/2.01 | |
| 2 | 89.85 | 90.29 | 88.39 | 0.46/1.92 | |
| CIFAR-100 | 0 | 85.15 | 86.44 | 84.73 | 0.50/0.91 |
| 1 | 83.40 | 84.40 | 82.95 | 0.53/0.97 | |
| 2 | 84.24 | 85.31 | 83.84 | 0.48/0.88 | |
| ImageNet-200 | 0 | 87.62 | 85.79 | 87.16 | 0.78/1.25 |
| 1 | 88.88 | 88.44 | 88.59 | 0.75/1.04 | |
| 2 | 87.77 | 85.98 | 86.85 | 0.59/1.51 |
The post-hoc switch audit uses all retained states rather than only the selected result. Table A.6 aggregates the three seeds. “Candidate classes” denotes the set fixed at initialization; the ImageNet-200 and CIFAR-100 statement does not claim that classes outside the top-20 set were re-evaluated during motion. The two driver implementations also have zero maximum absolute difference in trajectory score, instantaneous score, driver value, and Hamiltonian energy.
Table A.6: Winner-switch audit over 20,205 sample-seed trajectories and 11 retained states. Switch counts are summed over seeds and populations.
| Benchmark | Candidates | ID | OOD | Current switches | Initial switches |
|---|---|---|---|---|---|
| CIFAR-10 | all 10 | 3000 | 3000 | 0 | 0 |
| CIFAR-100 | top 20 | 3000 | 2916 | 0 | 0 |
| ImageNet-200 | top 20 | 3000 | 5289 | 0 | 0 |
The mechanism and numerical checks average over ID/OOD populations and three anchor banks. The aggregate and current-winner alignment cosines are 0.634 and 1.000; neither produces a first-step winner decrease, and the audited fraction satisfying is zero. Thus these data do not demonstrate destructive class interference, although they test its local alignment expansion. Both attain 100% Taylor sign agreement. Winner and driver Taylor residuals have log–log slopes 4.138–4.162 and 3.833–4.179, consistent with the remainder underlying Definition 4.4. The geodesic controls keep maximum sphere error below and maximum tangency error below ; their mean maximum relative energy drifts are 0.0352 (aggregate) and 0.00265 (current winner). For comparison, the original retraction-based aggregate integrator has drift 1.327 and tangency error 8.604. The stable geodesic experiments therefore provide the basis for the aligned-flow mechanism claim; their failed locked transfer is not explained by leaving the sphere or tangent bundle.
Appendix A.5. Boundary-conditioned stability-probe audit
The primary stability-probe rule fixes from the ImageNet-1K ResNet-50 selection split. No transfer target re-selects the step size. A secondary scale control sets
using only the ID fit split; its results are retained in the accompanying CSV archive as an additional control rather than in the primary tables. Both rules retain the same MSP component and the same ID-fit standardization as the static score.
The probe in Eq. (20) is generated by the conditional potential , where and the initial confidence and centroid are held fixed. One geodesic kick–drift step from rest has ; the final kick does not change its position. Thus this is a one-step repulsive perturbation, not an exact finite-time solution of the full nonlinear flow or a maximum score along a trajectory. For completeness, with , the initial-winning geodesic has the exact endpoint
Substitution into the fixed standardized fusion yields Eq. (21) in the main text. Table A.7 reports the primary rule. Corrected and spoiled masses are percentages of all ID–OOD pairs. Their difference gives the AUROC change in percentage points, with the tie adjustment in Eq. (A.5) when needed.
Table A.7: Per-seed stability-probe results. is the mean among the nearest 5% of pairs to the static ranking boundary. C/S denotes corrected/spoiled pair mass in percent.
| Validation target | Seed | Static | Probe | C/S | ||
|---|---|---|---|---|---|---|
| IN-1K / R50 | 0 | 92.165 | 92.205 | +0.040 | +11.734 | 0.296/0.256 |
| 1 | 91.269 | 91.342 | +0.073 | +13.950 | 0.336/0.263 | |
| 2 | 91.583 | 91.638 | +0.055 | +14.302 | 0.325/0.269 | |
| IN-1K / DN121 | 0 | 90.065 | 90.281 | +0.216 | +34.302 | 0.553/0.337 |
| 1 | 89.357 | 89.600 | +0.243 | +36.159 | 0.581/0.338 | |
| 2 | 90.049 | 90.246 | +0.198 | +32.726 | 0.537/0.339 | |
| CIFAR-10 | 0 | 88.859 | 88.851 | -0.008 | -0.694 | 0.008/0.016 |
| 1 | 89.135 | 89.131 | -0.003 | -0.691 | 0.006/0.010 | |
| 2 | 90.377 | 90.372 | -0.005 | -0.268 | 0.001/0.006 | |
| CIFAR-100 | 0 | 85.375 | 85.343 | -0.032 | -2.998 | 0.108/0.140 |
| 1 | 84.127 | 84.098 | -0.029 | -2.666 | 0.122/0.152 | |
| 2 | 85.392 | 85.407 | +0.015 | +3.897 | 0.143/0.128 | |
| IN-200 | 0 | 92.069 | 92.026 | -0.043 | -5.378 | 0.106/0.149 |
| 1 | 92.448 | 92.441 | -0.006 | +0.733 | 0.113/0.120 | |
| 2 | 91.819 | 91.788 | -0.032 | -0.966 | 0.109/0.141 |
The single sign disagreement occurs for ImageNet-200 seed 1, where both the boundary statistic and the AUROC change are close to zero. The pair decomposition accounts for AUROC change by construction. The additional finding is the sign agreement with , which is computed from baseline margins and score derivatives on the same holdout. Across the 15 runs in five dataset–backbone settings, the descriptive Pearson and Spearman correlations between and AUROC change are 0.991 and 0.979. These pooled correlations do not establish a common quantitative relation across settings: the boundary density and calibration scale also enter the first-order AUROC change. Runs within a setting share validation images, so these correlations are not significance tests based on 15 independent datasets.
Table A.8 varies the width of the empirical boundary layer. ImageNet-1K has a positive boundary statistic throughout. For every transfer target the full-pair mean is positive, yet the narrowest layers are negative. This is the observed global-to-boundary sign reversal behind the failed transfer.
Table A.8: Mean boundary statistic , multiplied by , over three seeds. Columns retain the stated fraction of ID–OOD pairs with the smallest absolute static margin.
| Validation target | 1% | 2.5% | 5% | 10% | 25% | 100% |
|---|---|---|---|---|---|---|
| IN-1K / R50 | 11.128 | 12.013 | 13.329 | 18.480 | 43.652 | 182.907 |
| IN-1K / DN121 | 32.548 | 33.590 | 34.395 | 38.253 | 59.390 | 199.719 |
| CIFAR-10 | -0.527 | -0.567 | -0.551 | -0.457 | 0.277 | 65.996 |
| CIFAR-100 | -0.934 | -1.616 | -0.589 | 1.831 | 16.693 | 180.182 |
| IN-200 | -4.551 | -3.871 | -1.871 | 4.976 | 40.295 | 219.853 |
The predefined transfer criteria for AUROC and boundary consistency are not met, although the FPR@95 criterion is met. The probe was therefore not evaluated on the Near-/Far-OOD test sets; no corresponding test loader or score file was accessed in this study.
Appendix A.6. Full ImageNet trajectory ablation
Table A.9 reports the aggregated ImageNet trajectory grid. Values are Near-/Far-OOD macro averages; each cell is AUROC/FPR@95. The Gaussian and IMQ fields share the same anchors, optimizer schedule, candidate count, and step size.
Table A.9: ImageNet trajectory ablation. ImageNet-200 varies three official model seeds; ImageNet-1K varies three centroid banks on one fixed backbone.
| ID | Potential | ||||
|---|---|---|---|---|---|
| IN-200 Near | Gaussian | 79.44/64.42 | 79.64/63.99 | 80.22/61.89 | 79.63/62.10 |
| IN-200 Far | Gaussian | 91.18/31.66 | 91.29/31.36 | 90.68/33.10 | 88.82/34.61 |
| IN-200 Near | IMQ | 78.23/65.27 | 78.41/64.95 | 79.34/62.99 | 78.16/63.37 |
| IN-200 Far | IMQ | 89.79/34.33 | 89.90/34.06 | 90.17/33.50 | 87.09/37.39 |
| IN-1K Near | Gaussian | 66.14/77.84 | 64.51/79.27 | 61.42/79.63 | 60.94/79.63 |
| IN-1K Far | Gaussian | 77.44/65.16 | 72.71/71.29 | 74.37/69.75 | 68.51/70.71 |
| IN-1K Near | IMQ | 63.46/80.45 | 60.91/82.52 | 61.94/81.33 | 58.03/82.91 |
| IN-1K Far | IMQ | 73.76/69.48 | 65.68/78.21 | 75.58/66.79 | 63.44/75.60 |
Table A.10 gives the uncertainty and precision–recall statistics for the ImageNet-1K column.
Table A.10: ImageNet-1K full-evaluation results over three independently sampled centroid banks on the fixed ResNet-50. Values are mean±standard deviation; ID accuracy is 76.1867% for every run.
| Potential | Group | AUROC | FPR@95 | AUPR-IN | AUPR-OUT |
|---|---|---|---|---|---|
| Gaussian | Near | 60.94 ± .07 | 79.63 ± 1.29 | 75.14 ± .17 | 34.70 ± .24 |
| Gaussian | Far | 68.51 ± .33 | 70.71 ± 1.75 | 90.86 ± .26 | 26.15 ± .04 |
| IMQ | Near | 58.03 ± .83 | 82.91 ± 1.79 | 73.52 ± .22 | 33.27 ± .14 |
| IMQ | Far | 63.44 ± 1.05 | 75.60 ± 1.52 | 88.96 ± .53 | 23.21 ± .15 |
Table A.11: Five potential families on CIFAR. Bandwidths are fitted from zero-step class affinities and scores use . Values are macro averages over all six OOD datasets and three seeds.
| ID | Potential | AUROC | FPR@95 |
|---|---|---|---|
| CIFAR-10 | Gaussian | ||
| Laplacian | |||
| Cauchy | |||
| IMQ | |||
| Matérn-3/2 | |||
| CIFAR-100 | Gaussian | ||
| Laplacian | |||
| Cauchy | |||
| IMQ | |||
| Matérn-3/2 |
Appendix A.7. Effective-rank anchor-weighting ablation
Table A.12 reports the fitted anchor-weighting variants, and Fig. A.5 displays changes from uniform weights. Image weights are the effective rank of mean-centered luminance arrays, computed as the exponential entropy of normalized singular values. Bandwidths are refitted for each variant; global weight normalization alone would leave a fixed static field's ranking unchanged.
Table A.12: Static Gaussian anchor-weighting ablation. Each Near/Far entry is AUROC/FPR@95 at T = 0 over three seeds. "Class" and "global" divide raw effective-rank weights by their class-wise or global mean.
| ID | Anchor weighting | Near-OOD | Far-OOD |
|---|---|---|---|
| CIFAR-10 | Uniform | 88.59/42.36 | 91.07/31.09 |
| Effective rank/raw | 76.99/77.43 | 81.43/55.91 | |
| Effective rank/class | 88.53/42.85 | 91.04/31.12 | |
| Effective rank/global | 79.35/71.87 | 83.17/55.49 | |
| CIFAR-100 | Uniform | 79.46/63.16 | 83.41/51.10 |
| Effective rank/raw | 72.55/74.41 | 84.33/50.11 | |
| Effective rank/class | 79.41/63.35 | 83.66/50.63 | |
| Effective rank/global | 75.69/71.72 | 85.27/48.29 | |
| IN-200 | Uniform | 79.44/64.42 | 91.18/31.66 |
| Effective rank/raw | 77.17/69.34 | 89.14/41.41 | |
| Effective rank/class | 78.67/65.05 | 90.11/33.86 | |
| Effective rank/global | 75.03/69.75 | 85.22/48.57 |

Figure A.5: Effective-rank anchor weighting relative to the uniform static field. Raw and global normalization usually reduce AUROC; class-wise normalization mostly returns to the uniform baseline. The isolated CIFAR-100 Far-OOD gain does not transfer to its Near-OOD counterpart or ImageNet-200.
Appendix A.8. Validation analysis of the static reduction
The staged analysis uses 5000 ImageNet-1K ID and 1763 OpenImage-O validation examples. Table 4 reports stage performance; the following diagnostics quantify adjacent transitions and approximation error.
Table A.13: Full-split transition deltas in the static-reduction sequence. Each entry is the mean change over the three detector seeds and is written as AU-ROC/FPR@95.
| Transition | ΔAUROC | ΔFPR@95 |
|---|---|---|
| S1 → S2 | +13.91 | -25.90 |
| S2 → S3 | +3.18 | -7.83 |
| S3 → S4 | 0.00 | 0.00 |
| S4 → S5 | +0.95 | -3.25 |
| S5 → S6 | +0.83 | -3.78 |
| MSP → S6 | +7.26 | -17.68 |
The radial-centroid bound audit evaluates S2 to S3. All six seed/population combinations satisfy the bound, with zero violations and negative maximum bound excess. The empirical class-level MAE ranges from 0.0340 to 0.0429, and maximum observed errors range from 0.209 to 0.295. Mean class bounds are approximately 0.685–0.692, with maxima 0.974–1.042. The bound identifies the dependence on class dispersion and directional coherence, but is conservative in this experiment. The uniform Gaussian scores lie in [0, 1], whereas the global 2ε from Eq. (17) exceeds the largest possible score margin. Consequently, the global error bound does not certify any pairwise ranking here. The observed ranking improvement is an empirical result, not a consequence of a tight error guarantee.
Appendix A.9. Complete local baseline matrix
Tables A.14 and A.15 expose the complete local baseline matrix used to locate the static controls. Each entry is mean AUROC/FPR@95 under the same OpenOOD loaders and checkpoints. ImageNet-1K KNN and ViM were not evaluated and are marked with a dash. The best AUROC and FPR@95 in each task column are boldfaced independently.
Table A.14: Complete Near-OOD local comparison including CTM, CADRef, and LogitGap. Each entry is AUROC/FPR@95 under the unified OpenOOD v1.5 protocol. FPR@95 is the ID rejection rate at 95% OOD recall (OOD positive).
| Method | CIFAR-10 | CIFAR-100 | IN-200 | IN-1K |
|---|---|---|---|---|
| MSP | 88.03/48.17 | 80.27/54.80 | 83.34/54.84 | 76.02/65.67 |
| Energy | 87.58/61.33 | 80.91/55.60 | 82.50/60.22 | 75.89/68.57 |
| MaxLogit | 87.52/61.32 | 81.05/55.46 | 82.90/59.75 | 76.46/67.85 |
| GEN | 88.20/53.67 | 81.31/54.41 | 83.71/55.11 | 76.85/65.30 |
| ReAct | 87.11/63.55 | 80.77/56.39 | 81.87/62.46 | 77.38/66.74 |
| Scale | 82.55/80.46 | 80.99/55.68 | 84.84/57.30 | 81.36/59.77 |
| KNN | 90.64/34.00 | 80.18/61.23 | 81.57/60.18 | – |
| ViM | 88.68/44.85 | 74.98/62.63 | 78.68/59.19 | – |
| ASH | 75.27/86.79 | 78.19/65.72 | 82.38/64.88 | 78.17/63.33 |
| DICE | 78.40/70.12 | 79.38/57.95 | 81.78/61.87 | 73.07/72.45 |
| SHE | 81.54/79.64 | 78.95/59.06 | 80.18/66.79 | 73.78/73.03 |
| RMDS | 86.20/47.20 | 80.15/55.47 | 82.57/54.02 | 76.54/65.24 |
| RankFeat | 79.46/60.89 | 61.88/80.58 | 56.92/92.04 | 50.99/91.83 |
| CADRef | 88.97/39.46 | 79.63/57.18 | 85.57/52.97 | 79.62/61.57 |
| LogitGap | 88.72/52.34 | 81.37/54.36 | 83.37/57.63 | 76.70/66.47 |
| Centroid-only | 89.35/38.16 | 80.12/59.07 | 82.57/60.11 | 74.34/69.41 |
| Centroid–MSP | 89.27/38.15 | 80.35/58.75 | 83.33/58.62 | 76.29/67.93 |
| CTM | 89.49/37.29 | 80.16/59.18 | 83.13/58.21 | 75.69/67.86 |
Table A.15: Complete Far-OOD local comparison including CTM, CADRef, and LogitGap. Each entry is AUROC/FPR@95 under the unified OpenOOD v1.5 protocol. FPR@95 is the ID rejection rate at 95% OOD recall (OOD positive).
| Method | CIFAR-10 | CIFAR-100 | IN-200 | IN-1K |
|---|---|---|---|---|
| MSP | 90.73/31.72 | 77.76/58.71 | 90.13/35.44 | 85.23/51.46 |
| Energy | 91.21/41.70 | 79.77/56.58 | 90.86/34.85 | 89.47/38.38 |
| MaxLogit | 91.10/41.67 | 79.67/56.73 | 91.11/34.03 | 89.58/38.21 |
| GEN | 91.35/34.73 | 79.68/56.71 | 91.36/32.11 | 89.77/35.62 |
| ReAct | 90.42/44.90 | 80.39/54.21 | 92.31/28.50 | 93.67/26.31 |
| Scale | 86.39/67.54 | 81.42/54.08 | 93.98/26.47 | 96.53/16.53 |
| KNN | 92.96/24.28 | 82.40/53.64 | 93.16/27.27 | – |
| ViM | 93.48/25.06 | 81.70/50.73 | 91.26/27.20 | – |
| ASH | 78.49/79.03 | 80.58/59.20 | 93.90/27.30 | 95.74/19.53 |
| DICE | 84.29/51.71 | 80.01/56.25 | 90.80/36.51 | 90.95/41.82 |
| SHE | 85.32/66.48 | 76.92/64.12 | 89.81/42.16 | 90.92/41.43 |
| RMDS | 91.30/29.41 | 82.92/52.82 | 88.06/32.45 | 86.95/39.65 |
| RankFeat | 75.87/57.44 | 67.10/69.45 | 38.22/97.72 | 53.93/87.15 |
| CADRef | 91.51/28.19 | 83.49/50.33 | 95.50/19.58 | 96.27/16.85 |
| LogitGap | 91.88/33.41 | 79.74/55.95 | 91.24/32.17 | 89.69/36.02 |
| Centroid-only | 91.62/28.24 | 82.52/52.43 | 94.18/23.72 | 94.50/24.54 |
| Centroid–MSP | 91.58/28.18 | 81.70/52.88 | 94.02/24.17 | 94.85/23.60 |
| CTM | 91.68/27.76 | 82.62/52.50 | 93.89/24.52 | 95.20/21.68 |
Table A.16: Recent and centroid references on ImageNet-1K/DenseNet-121. CADRef, LogitGap, and CTM are single fixed-model estimates; centroid-only and fixed fusion show mean±standard deviation over three sampled setup banks on the same model. Boldface compares the displayed methods. FPR@95 uses OOD as the positive class, as defined in Section 6.
| Group | Method | AUROC | FPR@95 |
|---|---|---|---|
| Near | CADRef | 76.13 | 66.60 |
| LogitGap | 75.49 | 67.42 | |
| CTM | 72.91 | 71.61 | |
| Centroid-only | 71.18 ± 0.35 | 73.29 ± 0.56 | |
| Centroid–MSP | 73.88 ± 0.31 | 70.80 ± 0.88 | |
| Far | CADRef | 95.32 | 21.46 |
| LogitGap | 89.14 | 39.69 | |
| CTM | 94.02 | 25.88 | |
| Centroid-only | 93.01 ± 0.53 | 29.59 ± 1.63 | |
| Centroid–MSP | 93.95 ± 0.43 | 26.97 ± 1.46 |
Table A.17: Additional CTM precision–recall metrics on ImageNet-1K/DenseNet-121. AUROC and FPR@95 are reported in Table A.20. The ID accuracy is 74.86%.
| OOD dataset | AUPR-IN | AUPR-OUT |
|---|---|---|
| SSB-hard | 63.73 | 64.98 |
| NINCO | 96.83 | 36.02 |
| iNaturalist | 98.65 | 82.65 |
| Textures | 99.67 | 87.78 |
| OpenImage-O | 95.99 | 76.59 |
Appendix A.10. Complete-coverage ranking
For each ID/group pair, all available methods are ranked by AUROC and FPR@95, including KNN and ViM on the six tasks they cover. Ties receive the minimum rank. Table A.18 reports mean ranks for the 16 scoring configurations with complete eight-task coverage, including centroid-only. Ranks use the two-decimal means displayed in the complete baseline matrices. The composite averages the AUROC and FPR@95 ranks.
Table A.18: Mean ranks for scoring configurations with complete eight-task coverage, ordered by AUROC rank. Per-task rankings include all available configurations, including KNN and ViM where evaluated; only complete-coverage configurations are listed. Ranks use the two-decimal means displayed in Tables A.14 and A.15, with minimum ranks for ties. Lower is better.
| Configuration | AUROC rank | FPR rank | Composite |
|---|---|---|---|
| CADRef | 4.000 | 3.250 | 3.625 |
| Centroid–MSP | 5.750 | 6.375 | 6.063 |
| CTM | 6.000 | 6.000 | 6.000 |
| Scale | 6.000 | 7.625 | 6.813 |
| Centroid-only | 6.750 | 7.250 | 7.000 |
| LogitGap | 6.875 | 7.750 | 7.313 |
| GEN | 7.375 | 7.750 | 7.563 |
| ReAct | 9.125 | 10.375 | 9.750 |
| MaxLogit | 10.000 | 10.375 | 10.188 |
| RMDS | 10.250 | 6.750 | 8.500 |
| ASH | 10.375 | 12.375 | 11.375 |
| Energy | 10.625 | 11.625 | 11.125 |
| MSP | 11.250 | 9.125 | 10.188 |
| DICE | 13.625 | 13.500 | 13.563 |
| SHE | 14.625 | 15.375 | 15.000 |
| RankFeat | 17.250 | 16.250 | 16.750 |
Appendix A.11. Per-dataset OOD detection results
Tables A.19 and A.20 report the named OOD datasets underlying the Near-/Far-OOD aggregates in the main text. Each cell is AUROC/FPR@95. CIFAR-10, CIFAR-100, and ImageNet-200 values are mean±standard deviation over three official model seeds. ImageNet-1K uses a fixed pretrained backbone: MSP and Scale are therefore single runs, while the centroid–MSP baseline reports variation over three independently sampled centroid banks. Within each dataset row, the highest AUROC and the lowest FPR@95 are boldfaced independently.


Figure A.6: Per-dataset AUROC change of the centroid–MSP baseline relative to MSP on CIFAR. Blue bars indicate improvement and red indicates degradation. Gains are broad but heterogeneous; peer CIFAR under CIFAR-100 is the only negative case. Exact AUROC/FPR@95 values are reported in Table A.19.
Table A.19: Per-dataset CIFAR results under the unified OpenOOD v1.5 protocol. Each entry is AUROC/FPR@95; all values are mean±standard deviation over three official ResNet-18 seeds.
| ID | OOD dataset | Type | MSP | Scale | CTM | Centroid–MSP |
|---|---|---|---|---|---|---|
| CIFAR-10 | CIFAR-100 | Near | ||||
| Tiny ImageNet | Near | |||||
| MNIST | Far | |||||
| SVHN | Far | |||||
| Places365 | Far | |||||
| Textures | Far | |||||
| CIFAR-100 | CIFAR-10 | Near | ||||
| Tiny ImageNet | Near | |||||
| MNIST | Far | |||||
| SVHN | Far | |||||
| Places365 | Far | |||||
| Textures | Far |


Figure A.7: Per-dataset change of the centroid–MSP baseline relative to MSP on the ImageNet benchmarks. Positive values are favorable in both panels. Grouping the three backbone/scale settings within each dataset exposes the shared pattern: large Far-OOD gains, especially on Textures, and a consistent loss on SSB-hard. Exact values appear in Table A.20.
Table A.20: Per-dataset ImageNet results. Each entry is AUROC/FPR@95. ImageNet-200 uses three official ResNet-18 seeds. ImageNet-1K MSP, Scale, and CTM use one fixed backbone, whereas Centroid–MSP varies three centroid banks.
| ID/backbone | OOD dataset | Type | MSP | Scale | CTM | Centroid–MSP |
|---|---|---|---|---|---|---|
| IN-200/R18 | SSB-hard | Near | ||||
| NINCO | Near | |||||
| iNaturalist | Far | |||||
| Textures | Far | |||||
| OpenImage-O | Far | |||||
| IN-1K/R50 | SSB-hard | Near | ||||
| NINCO | Near | |||||
| iNaturalist | Far | |||||
| Textures | Far | |||||
| OpenImage-O | Far | |||||
| IN-1K/D121 | SSB-hard | Near | ||||
| NINCO | Near | |||||
| iNaturalist | Far | |||||
| Textures | Far | |||||
| OpenImage-O | Far |
Appendix A.12. Validation mechanism, sample efficiency, and calibration budget
The following tables and plots give the numerical detail for Section 6.5. Pointwise best weights maximize mean AUROC on the designated validation holdout retrospectively, the evaluated rule remains fixed at .
Table A.21: Exact values for the controlled nested class-count validation study. maximizes mean holdout AUROC at each class count. The two columns evaluate the single pre-test choice against MSP () and centroid-only (); positive values favor the fixed mixture. Results use one nested class sequence.
| Classes | Pointwise | vs. MSP | vs. centroid | |
|---|---|---|---|---|
| 10 | 1.0 | +0.64 | -1.00 | - |
| 25 | 0.9 | +2.39 | -0.14 | - |
| 50 | 0.8 | +2.37 | +0.33 | ✓ |
| 100 | 0.8 | +2.76 | +0.67 | ✓ |
| 200 | 0.8 | +4.74 | +0.45 | ✓ |
| 500 | 0.8 | +5.45 | +0.69 | ✓ |
| 1000 | 0.7 | +6.45 | +0.86 | - |

Figure A.8: ImageNet-1K validation-only sample efficiency over three centroid seeds. Six samples per class capture most of the 12-sample performance, and the fixed curve nearly meets the retrospective holdout envelope from six samples onward. The blue curve maximizes mean holdout AUROC over separately at each bank size; panel (b) uses the corresponding weights.
Table A.22: ImageNet-1K validation-only calibration-budget sensitivity of the centroid–MSP baseline. Columns vary the number of ID calibration images per class; each entry is AUROC/FPR@95. One ID image per class is held out for evaluation, calibration subsets are nested within the other four, and all OOD validation examples are evaluated. The centroid bank is fixed. Positive affine standardization leaves either component's rankings unchanged.
| Method | 1 image | 2 images | 3 images | 4 images |
|---|---|---|---|---|
| Fixed | 92.185/31.17 | 92.184/31.13 | 92.185/31.13 | 92.183/31.13 |
Table A.23: Validation-holdout mechanism audit on the five natural dataset/backbone targets. “Corr.” is Pearson correlation between MSP and centroid scores on the designated OOD validation holdout. Score cells are AUROC/FPR@95; values aggregate three centroid seeds where applicable.
| Target | Classes | OOD corr. | Best | MSP | Fixed | Centroid-only |
|---|---|---|---|---|---|---|
| CIFAR-10/R18 | 10 | .880 ± .002 | 1.0 | 88.65/42.73 | 89.72/36.40 | 89.80/36.53 |
| CIFAR-100/R18 | 100 | .828 ± .003 | 1.0 | 83.62/46.53 | 84.99/45.07 | 85.00/44.67 |
| IN-200/R18 | 200 | .677 ± .016 | 1.0 | 87.81/38.33 | 90.75/30.94 | 90.77/31.44 |
| IN-1K/R50 | 1000 | .410 ± .015 | .8 | 85.27/47.13 | 91.72/32.91 | 90.86/36.89 |
| IN-1K/D121 | 1000 | .315 ± .003 | .6 | 83.77/51.90 | 90.31/39.16 | 88.81/42.57 |
Recomputing the 12-sample centroids reproduces the archived checkpoint within maximum absolute error for each of the three seeds.
Appendix A.13. Extended batch-one efficiency comparison
Table A.24 reports the complete batch-one latency ratios underlying the abbreviated discussion in Section 6. All measurements use the same RTX 4090 D, include the backbone forward pass, exclude data loading, and use MSP measured in the corresponding timing session as ratio one. CTM and the centroid–MSP baseline are measured in one paired runner on identical preloaded inputs.
Appendix A.14. Implementation details
For the small-bank static control, normalized feature directions are averaged within each class and renormalized to obtain . The query statistic is . If is MSP and denote pooled ID-standardized components, the reported fixed control is with .
Table A.24: End-to-end batch-one latency relative to MSP. Lower is better. Per-image latency measures online inference; setup-sample counts for CTM and the centroid–MSP baseline are described in the accompanying resource audit.
| Method | CIFAR-10 | CIFAR-100 | IN-200 | IN-1K |
|---|---|---|---|---|
| CTM | 0.994 | 1.043 | 1.037 | 1.016 |
| MSP | 1.000 | 1.000 | 1.000 | 1.000 |
| Centroid–MSP | 1.041 | 1.085 | 1.090 | 1.039 |
| SHE | 1.045 | 1.180 | 0.776 | 1.069 |
| RMDS | 1.137 | 1.146 | 1.103 | 1.509 |
| Scale | 1.141 | 1.122 | 1.158 | 1.516 |
| DICE | 1.146 | 1.120 | 1.138 | 1.670 |
| ASH | 1.149 | 1.115 | 1.207 | 1.735 |
| RankFeat | 3.073 | 3.045 | 4.741 | 4.505 |
Training banks and candidate classes.. All feature directions are normalized before anchor or centroid construction. The original trajectory settings below are distinct from the mechanism audits. For the original CIFAR trajectories, 80 anchors per class are sampled from the extracted training features using a seeded random permutation. All classes participate in both bandwidth fitting and inference. For ImageNet, the setup bank contains 12 training examples per class, and five are selected by a seeded random permutation as field anchors. The normalized mean of all 12 feature directions defines the class centroid used for candidate selection. At inference, the 20 classes with the largest cosine similarities to the initial query are retained for both force computation and trajectory scoring. This candidate set remains fixed as the query moves. The centroid–MSP baseline uses all class centroids, without candidate truncation.
The score-aligned mechanism audit instead uses five anchors from 12 setup features per class on every benchmark, fits on that setup bank, and uses min(C, 20) initial candidates. The stability probe uses normalized means of all 12-feature setup banks on every benchmark, compares all class centroids, and does not evaluate an anchor kernel during the probe.
Bandwidth fitting.. The reported trajectory grids, anchor-weighting study, and five-kernel comparison fit bandwidths using zero-step affinities. With the backbone, anchors, and anchor weights fixed, the objective is
where are ID fitting features and labels. On CIFAR, contains every class and fitting uses the extracted training features. On ImageNet, fitting uses the setup bank and contains the true class and the 19 other classes with highest centroid cosine. The true class is included only because labels are available during fitting; inference uses the 20 highest-scoring classes without this intervention.
The factor matches the implementation’s summed-anchor affinities. It does not change the ordering of a fixed field, but it matters in the fitting loss and force magnitude. We optimize log-bandwidths with Adam at an initial learning rate of and cosine learning-rate decay. Bandwidths are initialized to 1.0 on CIFAR and 0.5 on ImageNet and constrained to [0.05, 4.0]. CIFAR uses 25 epochs with batches of 64; ImageNet uses 10 epochs with batches of 32. No trajectory is differentiated through in this fitting objective, even when inference uses a nonzero step count. The static centroid–MSP baseline requires neither bandwidth fitting nor integration.
Score calibration and fusion.. The aligned audit uses a seeded floor-half split within each ID class and a separate floor-half OOD split for tuning, with the complements held out. Current-winner is selected by mean ImageNet-1K tuning AUROC over three banks, breaking ties by lower FPR@95 and then smaller . The selected is transferred without retuning. The no-switch audit uses the full validation caches, rather than only the evaluation holdouts. Per seed, the ImageNet-1K selection and holdout counts are respectively 2000/881 and 3000/882 (ID/OOD). Target holdouts contain 500/500 for CIFAR-10, 500/486 for CIFAR-100, and 600/882 for ImageNet-200; no target-side selection is performed for this study.
The probe uses a separate partition with calibration seed zero: two ID examples per class for fit, one for selection, and the remainder for the holdout. A separate OOD permutation has split endpoints and ; OOD-fit examples are not used for calibration. On ResNet-50 source selection data, is chosen by mean AUROC over three banks, breaking ties by smaller . The selected .04 is fixed for all other settings; target selection subsets are unused. Probe statistics and AUROC changes are measured on the same holdout, so their agreement is descriptive rather than an independent prediction test. Per seed, ImageNet-1K uses 2000 ID-fit examples, 1000/440 selection examples, and 2000/706 holdout examples (ID/OOD), for both backbones; only ResNet-50 is used to select . CIFAR-10, CIFAR-100, and ImageNet-200 use 20, 200, and 400 ID-fit examples, respectively, with holdout counts of 970/400, 700/389, and 400/706. ID-fit examples standardize the probe scores; training-feature banks are separate.
For each benchmark and backbone, the two component scores are standardized using the same deterministic, class-stratified subset of ID validation data. The stored statistics are the pooled means and population standard deviations; inference denominators are floored at . Selecting the maximum-cosine rule and uses an ImageNet-1K ID/OOD tuning split for the static baseline, with scanned on and only the ID tuning part used for standardization. The rule is checked on the complementary holdout. The probe inherits this fixed ; its separate selection split is used to choose , as described above. These choices remain fixed during transfer, while the ID calibration statistics are recomputed for each target. In the static bridge, S1 already uses all classes; S2 replaces the bandwidths by their per-bank median and uses uniform anchor weights, S3 normalizes each anchor mean to obtain a radial centroid, and S4 applies the equivalent maximum-cosine score. Thus scale sharing and candidate expansion are explicit modeling changes, not consequences of setting .
Appendix A.15. Reproducibility notes
The experiments were executed with Python 3.10.8, PyTorch 2.1.2, torchvision 0.16.2, CUDA 12.1, and an NVIDIA RTX 4090 D. The archived evaluation code records OpenOOD commit 3c35632ee91b54b09d1f085d04f94744cece7d0b; the CTM completion metadata records official reference commit 3587259bd6a69abd6b4103cb7311ffaa0857d60f. Dataset preparation validates archive integrity, image-list counts, and missing paths. The ImageNet-1K ResNet-50 file has SHA256 0676ba61b6795bbe1773cffd859882e5e297624d384b6993f7c9e683e722fb8a; the pinned DenseNet-121 file has SHA256 42bd2c384fae0b346f977fe9feed1bcfdbd6ea4727478c6c76177d725b218e89. The extended audit covers 50 full-dataset ASH/DICE/SHE/RMDS/RankFeat runs. RankFeat uses full exact SVD, and RMDS streaming statistics match direct tensor computation within in float64. The CADRef/LogitGap audit adds 22 full-dataset method/model runs: 11 runs per method across the five dataset/backbone targets. The two fixed ImageNet-1K backbones are not counted as independent training seeds. CADRef processes all ID training images for setup, while fixed LogitGap is training-free; neither uses OOD data for setup or parameter selection. The accompanying CADRef/LogitGap export includes raw Near-/Far-OOD rows, mean and standard-deviation summaries, and completion metadata. The expanded rank table is regenerated from the displayed two-decimal baseline means so that its tie convention is reproducible from the paper itself. The score-aligned mechanism study stores its ImageNet-1K selection gate, locked cross-benchmark transfer gate, pair-decomposition rows, and all stepwise winner traces. The transfer gate has SHA256 1199cf9e330f4e2f623ce7409193306bfc38672daa5bfb1d6c2471624563ec2b; the winner-switch explanation gate has SHA256 f75a83c4a94edd36713ca5e505a01f8a4df28fafd6ae0bf210a8327bd747d9a2. Both studies are validation-only and record that no Near-/Far-OOD test loader was accessed. The boundary-conditioned stability-probe transfer uses the previously saved validation caches and formal detectors only. Its locked gate has SHA256 c824da104d547c80416682c39e12b55041af190b0312534bd19787f35b06a6bb and rejects benchmark-test access. The accompanying result archive has SHA256 a2ed6b0dfed5310b343dec71dc7dd5a3d7538d45a3e4100cd77b2d954db34401. The complete result matrix, per-run configurations, completion markers, and summary CSV files are retained in the accompanying reproducibility archive. The main text and supplementary tables report the formal full-dataset aggregate experiment families; smoke tests, exploratory score-rule candidates, and duplicate per-seed raw rows remain available in the audit archive.
References
Arnold, V. I., Vogtmann, K., and Weinstein, A. (1989). Mathematical methods of classical mechanics, volume 60. Springer.
Cayton, L. (2008). Algorithms for manifold learning. Technical report, Department of Computer Science & Engineering, UC San Diego. https://escholarship.org/uc/item/8969r8tc.
Djuristic, A., Bozanic, N., Ashok, R., and Liu, R. (2023). Extremely simple activation shaping for out-of-distribution detection. In The Eleventh International Conference on Learning Representations. https://openreview.net/forum?id=ndYXTEL6cZz.
ElAraby, M., Sahoo, S., Pequignot, Y., Novello, P., and Paull, L. (2025). GROOD: Gradient-aware out-of-distribution detection. Transactions on Machine Learning Research.
Fefferman, C., Mitter, S., and Narayanan, H. (2016). Testing the manifold hypothesis. Journal of the American Mathematical Society, 29(4):983–1049. https://doi.org/10.1090/jams/852.
Gu, J., Qiao, Z., and Li, Z. (2025). Gradient short-circuit: Efficient out-of-distribution detection via feature intervention. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 457–466.
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 of Proceedings of Machine Learning Research, pages 8759–8773. PMLR. https://proceedings.mlr.press/v162/hendrycks22a.html.
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. https://openreview.net/forum?id=Hkg4TI9x1.
Isaac-Medina, B. K. S., Che, M., Gauss, Y. F. A., Akcay, S., and Breckon, T. P. (2025). FEVER-OOD: Free energy vulnerability elimination for robust out-of-distribution detection. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 4529–4538.
Ke, A., Chen, W., Feng, C., Cao, Y., Xie, X., Zhou, S. K., and Feng, L. (2025). Prototype-based optimal transport for out-of-distribution detection. In Kwok, J., editor, Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence, IJCAI-25, pages 3018–3026. International Joint Conferences on Artificial Intelligence Organization. Main Track.
Lee, K., Lee, K., Lee, H., and Shin, J. (2018). A simple unified framework for detecting out-of-distribution samples and adversarial attacks. In Bengio, S., Wallach, H., Larochelle, H., Grauman, K., Cesa-Bianchi, N., and Garnett, R., editors, Advances in Neural Information Processing Systems, volume 31. Curran Associates, Inc. https://proceedings.neurips.cc/paper_files/paper/2018/file/abdeb6f575ac5c6676b747bca8d09cc2-Paper.pdf.
Liang, J., Hou, R., Hu, M., Chang, H., Shan, S., and Chen, X. (2025). Revisiting logit distributions for reliable out-of-distribution detection. In Advances in Neural Information Processing Systems, volume 38.
Liang, S., Li, Y., and Srikant, R. (2017). Principled detection of out-of-distribution examples in neural networks. CoRR, abs/1706.02690. http://arxiv.org/abs/1706.02690.
Ling, Z., Chang, Y., Zhao, H., Zhao, X., Chow, K., and Deng, S. (2025). CADRef: Robust out-of-distribution detection via class-aware decoupled relative feature leveraging. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 4968–4977.
Liu, W., Wang, X., Owens, J., and Li, Y. (2020). Energy-based out-of-distribution detection. In Larochelle, H., Ranzato, M., Hadsell, R., Balcan, M., and Lin, H., editors, Advances in Neural Information Processing Systems, volume 33, pages 21464–21475. Curran Associates, Inc. https://proceedings.neurips.cc/paper_files/paper/2020/file/f5496252609c43e8a3d147ab9b9c006-Paper.pdf.
Liu, X., Lochman, Y., and Zach, C. (2023). Gen: Pushing the limits of softmax-based out-of-distribution detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 23946–23955. https://openaccess.thecvf.com/content/CVPR2023/html/Liu_GEN_Pushing_the_Limits_of_Softmax-Based_Out-of_Distribution_Detection_CVPR_2023_paper.html.
Nguyen, A., Bertrand, A., Le Hégarat-Mascle, S., Aldea, E., El-Korso, M. N., Lustrat, R., and Florin, F. (2026). Fisher-rao sensitivity for out-
of-distribution detection in deep neural networks. In The Fourteenth International Conference on Learning Representations.
Nguyen, N.-H., Nguyen, H.-Q., Ta, T.-A., Nguyen-Tang, T., Doan, K. D., and Hoang, T.-T. (2023). A cosine similarity-based method for out-of-distribution detection. In ICML 2023 Workshop on Spurious Correlations, Invariance, and Stability. https://openreview.net/forum?id=QuXApq8Yl.
Park, J., Jung, Y. G., and Teoh, A. B. J. (2023). Nearest neighbor guidance for out-of-distribution detection. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 1686–1695.
Ren, 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. CoRR, abs/2106.09022. https://arxiv.org/abs/2106.09022.
Seleznova, M., Chou, H.-H., Mayrink Verdun, C., and Kutyniok, G. (2026). GradPCA: Leveraging NTK alignment for reliable out-of-distribution detection. In The Fourteenth International Conference on Learning Representations.
Song, Y., Sebe, N., and Wang, W. (2022). RankFeat: Rank-1 feature removal for out-of-distribution detection. In Advances in Neural Information Processing Systems, volume 35, pages 17885–17898. https://proceedings.neurips.cc/paper_files/paper/2022/hash/71c9eb0913e6c7fda3afd69c914b1a0c-Abstract-Conference.html.
Sun, Y., Guo, C., and Li, Y. (2021). React: Out-of-distribution detection with rectified activations. In Advances in Neural Information Processing Systems, volume 34. https://proceedings.neurips.cc/paper/2021/hash/01894d6f048493d2cacde3c579c315a3-Abstract.html.
Sun, Y. and Li, Y. (2022). DICE: Leveraging sparsification for out-of-distribution detection. In Computer Vision – ECCV 2022, pages 691–708. https://www.ecva.net/papers/eccv_2022/papers_ECCV/papers/136840680.pdf.
Sun, Y., Ming, Y., Zhu, X., and Li, Y. (2022). Out-of-distribution detection with deep nearest neighbors. In Chaudhuri, K., Jegelka, S., Song, L., Szepesvari, C., Niu, G., and Sabato, S., editors, Proceedings of the 39th International Conference on Machine Learning, volume 162 of Proceedings of Machine Learning Research, pages 20827–20840. PMLR. https://proceeding.s.mlr.press/v162/sun22d.html.
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 (CVPR), pages 4921–4930. https://openaccess.thecvf.com/content/CVPR2022/html/Wang_Vim_Out-of-Distribution_With_Virtual-Logit_Matching_CVPR_2022_paper.html.
Wei, T. and Liu, M. (2026). Uncertainty-aware prototype refinement for out-of-distribution detection. Neurocomputing, 699:134310.
Xia, G. and Bouganis, C.-S. (2024). Augmenting the softmax with additional confidence scores for improved selective classification with out-of-distribution data. International Journal of Computer Vision, 132(9):3714–3752.
Xu, K., Chen, R., Franchi, G., and Yao, A. (2024). Scaling for training time and post-hoc out-of-distribution detection enhancement. In Kim, B., Yue, Y., Chaudhuri, S., Fragkiadaki, K., Khan, M., and Sun, Y., editors, International Conference on Learning Representations, volume 2024, pages 16316–16329. https://proceedings.iclr.cc/paper_files/paper/2024/file/46d943bc6a15a57c923829efc0db7c7a-Paper-Conference.pdf.
Zhang, J., Fu, Q., Chen, X., Du, L., Li, Z., Wang, G., Liu, X., Han, S., and Zhang, D. (2023a). Out-of-distribution detection based on in-distribution data patterns memorization with modern hopfield energy. In The Eleventh International Conference on Learning Representations. https://openreview.net/forum?id=KkazG41gKL.
Zhang, J., Yang, J., Wang, P., Wang, H., Lin, Y., Zhang, H., Sun, Y., Du, X., Li, Y., Liu, Z., Chen, Y., and Li, H. (2023b). Openood v1.5: Enhanced benchmark for out-of-distribution detection. arXiv preprint arXiv:2306.09301. https://arxiv.org/abs/2306.09301.
Zohrabi, R., Hasani, H., Baghshah, M., Rohrbach, A., Rohrbach, M., and Rohban, M. H. (2025). Spurious-aware prototype refinement for reliable out-of-distribution detection. In Advances in Neural Information Processing Systems, volume 38.