Manuscript Offprint
arXiv:2610.32255Anti-coherence Regularized Absolute Scaling for Out-of-Distribution Detection
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Donghwan Kim
Department of Industrial Engineering
Yonsei University
Seoul, South Korea
Youngwoong Jin
Department of Intelligent Data and Optimization
Yonsei University
Seoul, South Korea
Hyunsoo Yoon
Department of Industrial Engineering
Yonsei University
Seoul, South Korea
ABSTRACT
Out-of-distribution (OOD) detection is recognized as a critical problem in AI safety. SCALE is an effective post-hoc OOD detection method in the activation-shaping family that requires no training data and rescales penultimate activations using a percentile-based magnitude ratio. However, this ratio is ill-defined when negative activations are present, since positive and negative contributions cancel within the underlying sum, causing SCALE to degenerate on backbones such as ViT. We address this with an Absolute Fix that computes the ratio over absolute-valued activations rather than discarding negative activations through ReLU. Building on this corrected scale, we propose Anti-coherence regularization, which penalizes the scaling factor by the fraction of a sample's max-logit contributions to the max logit that are sign-mismatched and thereby suppresses unreliable evidence for the predicted class. Despite requiring no access to training data or training labels, our method ties or outperforms activation-shaping methods that rely on training data in terms of AUROC and FPR@95 on CIFAR-10 and ImageNet under the OpenOOD v1.5 protocol.
1 INTRODUCTION
A fundamental limitation of deep neural networks stems from the closed-world assumption under which they are trained: once deployed, these models frequently encounter inputs that deviate from the training distribution while continuing to produce confident predictions despite this mismatch. Such failures are consequential in safety-critical domains such as robotics (Isaku et al., 2025), cyber security (Corsini & Yang, 2023), and medical imaging (Hong et al., 2024), where an undetected distribution shift can lead to severe real-world harm. Out-of-distribution (OOD) detection has therefore emerged as a key safeguard that flags unfamiliar inputs before they translate into erroneous decisions, supporting the broader goal of building reliable and trustworthy AI (Yang et al., 2024).
Existing OOD detection methods can be broadly divided into two categories. The first category consists of training-based methods incorporating synthetic or real OOD data or auxiliary objectives into training to encourage better separation between in-distribution (ID) and OOD samples (Ming et al., 2023; Du et al., 2022; Zhu et al., 2023; Tao et al., 2023). However, practical access to OOD datasets is often restricted and the additional training adds computational cost that renders these methods impractical for real-world deployment (Yang et al., 2024). The second category consists of post-hoc methods, which operate on a frozen pretrained feature extractor without updating its weights. While some rely on statistics computed from training data or additional gradient computation, none require retraining the model or auxiliary OOD datasets.
Within post-hoc approaches, methods can be further categorized according to what they utilize to compute the OOD score. Logit-based methods (Hendrycks & Gimpel, 2017; Hendrycks et al., 2022) utilize the values of the output logits to compute the OOD score, representation-based methods (Ren et al., 2021; Lee et al., 2018; Sun et al., 2022) leverage statistics such as distance estimated from penultimate layer activations, and activation-shaping methods (Sun et al., 2021; Xu et al., 2023) manipulate the penultimate layer activations themselves prior to scoring. Among these, activation shaping has emerged as a promising direction, as it often requires no ID statistics and is implemented through simple operations (Regmi, 2026), such as scaling, rectifying, or pruning (e.g., Sun et al. (2021); Djurisic et al. (2023); Xu et al. (2024)), which are then combined with another post-hoc scoring function such as Energy (Liu et al., 2020) to compute the final OOD score.
The activation-shaping method SCALE (Xu et al., 2024) defines a scaling factor as the ratio between the sum of all penultimate activations and the sum of those exceeding a given percentile and applies this factor uniformly across the entire penultimate layer to achieve strong OOD detection performance. However, this percentile-based scaling has been reported to suffer substantial performance degeneration on architectures with negative penultimate activations such as ViT (Dosovitskiy et al., 2021) and Swin Transformer (Liu et al., 2021), whereas it remains stable on architectures such as ResNet (He et al., 2016) whose penultimate layer follows a ReLU and therefore contains no negative activations (Regmi, 2026). To address this architecture-dependent limitation, Djurisic et al. (2025) explicitly apply ReLU to the penultimate activations before computing the scaling factor and show that removing negative activations in this way improves performance. Yet this approach discards all information carried by negative activations, and thus a limitation remains in that it fails to fully reflect the entire penultimate layer when computing the scaling factor. Since this leaves room for improvement, we propose the Absolute Fix, which applies the absolute value function to the penultimate activations so that negative activations are also reflected in the scaling factor and yields more consistent performance gains than the ReLU-based rectification.
Building on this corrected scale, we decompose each sample's contribution to the max-logit and use the fraction of this contribution that drives the max-logit downward, which we term Anti-coherence, to regularize the scaling factor. In real-world deployment, training data is often inaccessible due to privacy constraints (Wagner et al., 2025), and our method requires no access to it. Despite this, it ties or outperforms activation-shaping methods that rely on training data or additional gradient computation under the OpenOOD v1.5 (Zhang et al., 2024) protocol on CIFAR-10 (Krizhevsky et al., 2009) and ImageNet (Deng et al., 2009) in-distribution settings. In particular, our method achieves consistent performance across a diverse set of backbones on ImageNet.
In summary, our contributions are threefold.
• We propose the Absolute Fix, which computes SCALE’s scaling factor over absolute-valued penultimate activations rather than through ReLU-based rectification, thereby preserving the magnitude of negative activations and yielding consistent performance gains across architectures with negative penultimate activations.
• We introduce Anti-coherence, a regularization term derived from decomposing each sample’s contribution to the maximum logit, which regularizes the scaling factor according to the fraction of this contribution that drives the maximum logit downward.
• We validate our method under the OpenOOD v1.5 protocol on CIFAR-10 and ImageNet, demonstrating that it ties or outperforms activation shaping methods that rely on training data or additional gradient computation, despite requiring neither.
Representation-based Methods primarily exploit the geometric structure of the penultimate layer's feature vector, computing a distance metric for the OOD score. Lee et al. (2018) propose the class-wise Mahalanobis distance, fitting class-conditional Gaussians from training data statistics of the penultimate layer. Subsequent work has refined this distance by incorporating additional global information or feature normalization (Ren et al., 2021; Müller & Hein, 2025; Kim & Yoon, 2026). Other approaches instead measure distance non-parametrically, using the k-nearest-neighbor distance to training feature vectors (Sun et al., 2022) or fusing such a distance with a logit-based score (Park et al., 2023). Liu & Qin (2024) use the distance between a test sample and the decision boundary as the OOD score, while Liu & Qin (2025) exploit the Neural Collapse phenomenon (Papyan et al., 2020) observed in the penultimate layer of pretrained backbones. Additionally, Wang et al. (2022) derive a virtual OOD-class logit from the residual of penultimate features outside the principal subspace of training features and score samples by the softmax probability assigned to it. CADRef (Ling et al., 2025) partitions feature components by whether their weighted contribution to the max logit aligns in sign with the classifier weight, and computes the deviation from class-conditional training averages within each partition, normalizing the result by a logit-based score. All of these methods, however, require access to the training dataset, a requirement our method does not share.
Logit-based Methods derive the OOD score directly from the logit values. Hendrycks & Gimpel (2017) propose the maximum softmax probability as a baseline OOD score. Liu et al. (2020), motivated by energy-based models from statistical physics, propose an energy score derived from the logits. Liu et al. (2023) introduce a generalized entropy score that captures small variations in the softmax probabilities overlooked by standard entropy. Djurisic et al. (2025) scale the logits themselves rather than the penultimate activations and compute the scaling factor from ReLU-rectified activations to further improve performance.
3 ABSOLUTE FIX: HANDLING NEGATIVE ACTIVATIONS IN
3.1 PRELIMINARIES
Let denote the feature extractor that maps an input to its -dimensional penultimate layer activation, where the input space is partitioned into disjoint ID and OOD subsets and , with . We assume that is pretrained on samples drawn from for a downstream task such as classification (e.g., pretrained on ImageNet). Let denote the penultimate activation, with components . SCALE (Xu et al., 2024) computes a scaling factor from the ratio between the sum of all components of and the sum of components exceeding the percentile of , given by
and denotes the percentile value among the components of . Intuitively, decreases when activation mass concentrates in a small number of large components and increases when it spreads across many, and Xu et al. (2024) report that is on average larger for ID samples than for OOD samples. This can be interpreted through Sun et al. (2021), who observe that OOD samples tend to trigger disproportionately high activations at a small number of units. The activation is then rescaled by and passed through the classifier's fully connected layer to obtain the logit ,

Figure 1: Top: per-sample density of raw penultimate activation values for ID (ImageNet test) samples on ResNet-50, ViT-B/16 and Swin-B. ResNet-50, whose penultimate layer follows a ReLU, exhibits only non-negative activations whereas ViT-B/16 and Swin-B exhibit substantial negative activation mass. Bottom: distribution of for ID and OOD datasets on the same backbones. On ResNet-50, ID samples exhibit a visibly higher ratio than OOD samples, while on ViT-B/16 and Swin-B negative activations cause and to lose their intended meaning and this pattern no longer holds.
from which the final OOD score is computed using the energy score (Liu et al., 2020),
where and are the weight and bias of the fully connected layer for classes, and is the -th component of . A test sample is classified as in-distribution when exceeds a threshold , and as OOD otherwise. Following standard practice, is fixed so that the true positive rate (TPR) on ID samples equals 95%. Under this threshold, the false positive rate, denoted FPR@95, measures the proportion of OOD samples incorrectly classified as ID.
3.2 ABSOLUTE-VALUE PERCENTILE SCALING
We now revisit more closely. Its computation relies on the percentile threshold which is intended to isolate the components with the largest activation magnitude. When the penultimate activation is non-negative as in architectures such as ResNet where the penultimate layer follows a ReLU, magnitude coincides with value and identifies these components as designed. However, for architectures such as ViT and Swin Transformer where the penultimate activation contains negative components, magnitude and value no longer coincide and summing over signed components allows positive and negative contributions to cancel. Consequently, and no longer reflect the intended notion of activation magnitude and the scaling factor deviates from its intended behavior. Following the OpenOOD v1.5 setting we set the ImageNet test split as ID and examine the distributions of for five OOD datasets in Figure 1. On ResNet, which always yields non-negative activations, is clearly larger for ID than for OOD. However, on ViT and Swin, whose activations are zero-centered by LayerNorm and therefore contain negative values, the empirical no longer separates ID from OOD and can even be larger for OOD.
The scoring function used here is not restricted to Energy, but we adopt it as it is conventionally used with activation shaping methods.

Figure 2: Per-sample density (log scale) of raw penultimate activation values for ID and OOD samples on backbones with negative penultimate activations.
This motivates the following observation, illustrated in Figure 2. The figure shows the distribution of penultimate activations for ID and OOD samples on backbones with negative activations, where OOD exhibits a heavier tail than ID. This extends the single-sided heavy tail observed on ReLU-based backbones such as ResNet, where activations are strictly positive, into a tail that is heavy symmetrically on both sides of zero. To reflect this symmetric distribution when computing r, we propose the Absolute Fix, a simple improvement over the original formulation of r. This method computes r using the absolute value of the penultimate activation at every step, denoted by the corrected ratio and formulated as
where denotes the percentile of . Note that when is strictly non-negative, as in architectures such as ResNet and MobileNetV2, reduces to .
We analyze the behavior of and across the six backbones, with full detail deferred to Appendix B. On ViT-B/16, Swin-B, and ConvNeXt-B, consistently separates ID from OOD in the intended direction. Despite lacking the symmetric heavy tail observed on these LayerNorm-based backbones due to its lower-bounded SiLU activation, EfficientNet-B1 still benefits from the Absolute Fix. On DeiT3-B the separation between ID and OOD visually worsens, while on BEiTv2-B improves in the intended direction yet ID and OOD nearly coincide. Nonetheless both backbones show an improvement in OOD detection performance over the original SCALE and the ReLU-based fix. We provide a detailed discussion in Section 5 and Appendix B.
4 REGULARIZING SCALE WITH ANTI-COHERENCE
Activation-shaping methods are typically implemented by combining the shaped activation with a logit-based scoring function such as the energy score. We therefore first analyze how our primary object of study, SCALE, affects the energy score when combined in this manner. Throughout this analysis, refers to as defined in the previous section. We first show, in Lemma 4.1, that as the scaling factor increases, the max logit accounts for an increasingly large share of the energy score.
Lemma 4.1. Let be the classifier head's weight, and let with the unique maximizer, . For simplicity, we assume the bias is zero. The scaled logit and energy score are
which decomposes as
Table 1: Mean ratio (ID/OOD) across ten backbones, without scaling (Raw Energy) and after applying our scaling .
| ResNet-50 | ResNet-101 | Swin-B | SwinV2-B | ViT-B/16 | ConvNeXt-B | EfficientNet-B1 | MobileNetV2 | BEiTv2-B | DeiT3-B | |
|---|---|---|---|---|---|---|---|---|---|---|
| Raw (Energy) | 0.976/0.923 | 0.981/0.934 | 0.971/0.928 | 0.970/0.921 | 0.962/0.906 | 0.943/0.879 | 0.947/0.881 | 0.970/0.922 | 0.970/0.908 | 0.780/0.318 |
| SCALE+Abs | 1.000/0.999 | 1.000/0.999 | 1.000/1.000 | 1.000/1.000 | 1.000/1.000 | 1.000/1.000 | 0.999/0.998 | 1.000/0.999 | 0.999/0.997 | 0.997/0.989 |
where is the contribution of the non-maximal logits. Let denote the fraction of the energy score attributable to the max logit. Then is non-decreasing in with as .
Lemma 4.1 implies that as the scaling factor grows, the remaining terms of the energy score contribute progressively less. To verify this empirically, we compute the mean value of , the fraction of the energy score attributable to the max logit, on ID and OOD ImageNet data under the OpenOOD v1.5 protocol; the results are reported in Table 1. We find that after applying the max logit term dominates the energy score for both ID and OOD samples across all backbones. This motivates us to reduce our subsequent analysis from the energy score itself to the max logit term alone. We therefore analyze how the max logit is affected by scaling.
Recall from the previous section that denotes the classifier head's weight matrix and let denote its -th row, the weight vector of the predicted class . We decompose the contribution to the max logit prior to scaling as:
where denotes the component of , is the contribution to the max logit from components whose sign matches that of , and is the contribution from sign-mismatched components. Since scaling multiplies every component of by the same factor , it acts uniformly on this decomposition, giving . Under this decomposition, is the term that increases the max logit, whereas is the term that decreases it. We define the fraction of the terms constituting the logit that exert a negative influence as the Anti-coherence, denoted and formulated as:
Note that is order-preserving so that under the zero-bias assumption the identity of the predicted class remains invariant under scaling. Consequently, the sign of each , and the partition into and , is also unaffected by , which makes itself independent of : it can be computed from either the pre-scaling or post-scaling activation without affecting its value. This is consistent with Lemma 4.1, where scaling alters only how much the max logit contributes to the energy score rather than which logit attains the maximum or how it decomposes into and .
To verify that provides a signal meaningful for OOD detection, we visualize on ID and OOD ImageNet data under the OpenOOD v1.5 protocol, with the results shown in Figure 3. The results show that the fraction of negatively contributing terms tends to be smaller for ID samples than for OOD samples on all backbones. This suggests that samples exhibiting such a larger fraction are more likely to be OOD and we therefore use it as a regularization term on the scaling factor, yielding
where is a non-negative hyperparameter controlling the strength of the regularization. This regularization suppresses the scaling factor in proportion to the strength of the sign-mismatched contribution and thereby incorporates information from the classifier head directly into the scaling operation. Since requires only the activation and classifier weight of a single test sample, our method remains practical and requires neither access to training data nor gradient computation, unlike existing methods that rely on such resources, including CADRef, which partitions by a similar sign criterion but requires class-conditional training averages to compute its error terms.

EfficientNet-B1
DeiT3-B
BEiTv2-B
Anti-coh
Anti-coh
Figure 3: Distribution of the Anti-coherence term for ID and OOD samples across six backbones. OOD samples tend to exhibit higher values than ID samples on all backbones. Additionally, SwinV2-B is omitted as it exhibits a similar pattern to Swin-B.
5 EXPERIMENTS
5.1 EXPERIMENTAL SETUP
Following the OpenOOD v1.5 protocol, we evaluate on both a small-scale and a large-scale benchmark. For the small-scale benchmark, we adopt CIFAR-10 as the ID dataset with a ResNet-18 backbone, using the pretrained checkpoint released with OpenOOD v1.5. MNIST (Deng, 2012), SVHN (Netzer et al., 2011), Texture (Cimpoi et al., 2014), and Places365 (Zhou et al., 2017) serve as far-OOD datasets, and TIN (Le et al., 2015) and CIFAR-100 as near-OOD datasets; results for each individual OOD dataset are reported in Table 3.
For the large-scale benchmark, we adopt ImageNet as the ID dataset and evaluate across ten backbone architectures spanning convolutional and transformer families: ResNet-50, ResNet-101, Swin-B, SwinV2-B (Liu et al., 2022a), ViT-B/16, ConvNeXt-B (Liu et al., 2022b), EfficientNet-B1 (Tan & Le, 2019), MobileNetV2 (Sandler et al., 2018), BEiTv2-B (Peng et al., 2022), and DeiT3-B (Touvron et al., 2022). Pretrained weights are obtained from torchvision (maintainers & contributors, 2016) where available and from the timm library (Wightman, 2019) otherwise. iNaturalist (Van Horn et al., 2018), Texture, and OpenImage-O (Wang et al., 2022) serve as far-OOD datasets and SSB-Hard (Vaze et al., 2021) and NINCO (Bitterwolf et al., 2023) as near-OOD datasets; Table 2 reports results for each backbone averaged over the five OOD datasets.
We compare our method against activation-shaping methods and basic post-hoc baselines: MSP (Hendrycks & Gimpel, 2017), MaxLogit (Hendrycks et al., 2022), Energy, ReAct, ASH-S, SCALE, VRA, OptFS, LTS (Djurisic et al., 2025), LAPS, and AdaSCALE-A/L (Regmi, 2026). We exclude DAVIS and Catalyst, which require a GAP-based architecture, and BATS, which requires batch normalization, as these methods cannot be implemented in an architecture-agnostic manner across all backbones considered. We refer to our method, which scales the activation using , as Anti-coh. We report AUROC and FPR@95, the two metrics most commonly used to measure OOD detection performance, for all methods. Hyperparameter search spaces and other implementation details are provided in Appendix F, and the hyperparameter sensitivity analysis is provided in Appendix E.
Table 2: OOD detection performance (AUROC/FPR@95, %) averaged over five OOD datasets, across ten ImageNet backbones under the OpenOOD v1.5 protocol. Methods are grouped by resource requirement. The best value in each column is highlighted in bold.
| Method | RN-50 | Swin-B | ViT-B/16 | SwinV2-B | ConvNeXt-B | RN-101 | DeiT3-B | EfficientNet-B1 | MobileNetV2 | BEiTv2-B | Avg |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Training-data-dependent | |||||||||||
| ReAct | 86.92/50.72 | 81.47/68.06 | 78.71/70.81 | 84.87/59.48 | 80.10/74.95 | 87.65/49.18 | 74.73/82.19 | 77.71/85.36 | 83.36/61.45 | 84.94/54.49 | 82.05/65.67 |
| VRA | 87.69/46.53 | 71.80/83.00 | 41.40/90.44 | 77.49/83.27 | 69.10/80.89 | 88.13/44.23 | 41.36/94.86 | 78.33/74.65 | 84.01/56.44 | 38.95/96.07 | 67.83/75.04 |
| OptFS | 87.64/47.38 | 83.12/63.55 | 82.25/66.98 | 84.13/62.06 | 85.50/59.41 | 88.00/47.25 | 83.31/61.89 | 83.62/58.66 | 83.98/60.11 | 85.81/53.92 | 84.74/58.12 |
| LAPS | 86.34/52.15 | 83.22/67.58 | 80.25/71.50 | 85.13/61.99 | 84.76/68.22 | 87.37/49.96 | 83.81/66.59 | 79.41/74.50 | 86.40/47.35 | 86.04/54.77 | 84.27/61.46 |
| Gradient-dependent | |||||||||||
| AdaSCALE-A | 88.85/47.66 | 79.06/66.18 | 78.62/68.03 | 81.15/60.44 | 83.65/63.81 | 89.05/46.79 | 82.78/61.06 | 78.59/68.24 | 84.48/59.47 | 83.71/54.00 | 82.99/59.57 |
| AdaSCALE-L | 89.81/42.79 | 78.51/69.53 | 75.87/74.40 | 80.14/62.76 | 82.61/73.38 | 90.03/42.49 | 82.23/65.51 | 75.23/79.84 | 85.70/53.80 | 82.21/57.63 | 82.23/62.21 |
| Training-free, gradient-free | |||||||||||
| MSP | 81.21/68.59 | 79.33/66.07 | 80.62/65.99 | 81.75/62.90 | 80.33/62.75 | 81.19/68.08 | 83.01/61.05 | 79.47/68.31 | 79.00/74.55 | 83.81/56.42 | 80.97/65.47 |
| MaxLogit | 84.00/64.49 | 72.15/67.56 | 77.08/65.60 | 78.12/61.89 | 73.80/69.17 | 84.52/62.49 | 81.49/62.10 | 74.38/72.76 | 81.61/69.15 | 81.51/53.97 | 78.87/64.92 |
| Energy | 83.71/64.91 | 64.20/76.41 | 72.05/70.83 | 72.82/68.84 | 57.63/87.01 | 84.31/63.05 | 77.71/75.02 | 66.60/87.28 | 81.33/68.80 | 78.72/59.03 | 73.91/72.12 |
| ASH-S | 89.53/40.20 | 23.63/98.94 | 22.89/99.07 | 20.41/99.13 | 26.60/97.05 | 89.68/39.83 | 52.26/90.67 | 47.94/98.59 | 85.47/50.74 | 20.13/99.15 | 47.85/81.34 |
| SCALE | 90.24/38.97 | 63.58/87.50 | 68.31/72.90 | 51.24/89.40 | 64.32/92.10 | 90.37/38.73 | 80.49/65.09 | 50.79/97.87 | 86.66/47.43 | 66.84/73.95 | 71.28/70.39 |
| LTS | 90.12/39.38 | 76.71/66.93 | 79.35/63.43 | 79.66/60.71 | 80.37/62.02 | 90.34/38.91 | 82.04/60.75 | 64.32/86.78 | 86.64/47.72 | 78.23/57.83 | 80.78/58.45 |
| Anti-coh (Ours) | 90.65/38.65 | 83.29/61.39 | 82.92/63.18 | 85.06/56.00 | 86.32/57.33 | 90.62/38.46 | 83.44/57.21 | 82.52/57.48 | 87.27/46.10 | 86.00/51.82 | 85.81/52.76 |
Table 3: OOD detection performance (AUROC/FPR@95, %) on CIFAR-10 (ResNet-18) under the OpenOOD v1.5 protocol. Methods are grouped by resource requirement. The best value in each column is highlighted in bold.
| Method | Near-OOD | Far-OOD | Avg | ||||
|---|---|---|---|---|---|---|---|
| TIN | CIFAR-100 | MNIST | Places365 | SVHN | Texture | ||
| Training-data-dependent | |||||||
| ReAct | 86.25/50.24 | 84.87/56.02 | 99.26/4.40 | 90.20/42.83 | 88.74/53.55 | 86.62/53.60 | 89.32/43.44 |
| VRA | 86.31/50.16 | 84.96/55.90 | 99.25/4.44 | 90.21/42.89 | 88.82/53.34 | 86.76/53.46 | 89.39/43.36 |
| OptFS | 85.63/54.59 | 84.38/59.60 | 98.96/5.90 | 89.90/46.30 | 87.95/59.09 | 85.70/58.28 | 88.75/47.29 |
| LAPS | 86.91/49.42 | 85.68/54.68 | 99.29/4.21 | 89.34/44.62 | 90.01/49.48 | 88.72/49.36 | 89.99/41.96 |
| Gradient-dependent | |||||||
| AdaSCALE-A | 83.65/50.79 | 81.99/56.04 | 98.62/8.12 | 88.63/41.84 | 89.20/49.24 | 84.18/52.15 | 87.71/43.03 |
| AdaSCALE-L | 77.94/53.45 | 75.86/58.37 | 96.49/16.89 | 87.41/39.95 | 83.52/54.36 | 77.28/56.40 | 83.08/46.57 |
| Training-free, gradient-free | |||||||
| MSP | 86.73/58.84 | 86.13/61.86 | 97.51/16.08 | 87.89/56.38 | 90.50/58.41 | 88.30/58.76 | 89.51/51.72 |
| MaxLogit | 86.36/48.52 | 84.95/53.75 | 99.30/3.52 | 88.11/44.60 | 90.92/45.21 | 87.67/48.85 | 89.55/40.74 |
| Energy | 86.44/48.25 | 85.00/53.82 | 99.43/3.06 | 88.22/44.03 | 91.04/44.37 | 87.74/48.78 | 89.64/40.38 |
| ASH-S | 81.52/51.39 | 79.26/57.06 | 98.50/9.25 | 87.05/44.10 | 83.20/56.87 | 81.87/51.58 | 85.23/45.04 |
| SCALE | 82.58/50.77 | 80.41/56.73 | 98.87/6.28 | 87.79/42.23 | 84.89/55.86 | 82.71/52.93 | 86.21/44.13 |
| LTS | 75.10/54.35 | 71.77/60.39 | 97.34/12.13 | 85.11/41.18 | 70.30/65.27 | 73.33/58.24 | 78.82/48.59 |
| Anti-coh (Ours) | 89.04/47.15 | 88.18/52.72 | 98.89/6.56 | 91.16/41.45 | 91.34/49.90 | 91.12/46.28 | 91.62/40.68 |
5.2 MAIN RESULTS
Table 2 shows that our method achieves the lowest average FPR@95 across all ten backbones and the highest average AUROC on six of the ten. Our method also improves upon SCALE, on which it is built, across every backbone and shows especially large gains on backbones with negative penultimate activations. On ResNet and MobileNet, however, the improvement over SCALE is comparatively modest. Since these architectures always yield non-negative activations, the original scaling factor already captures sufficient information about ID/OOD separability, leaving less additional signal for the sign-based Anti-coherence term to contribute.
As for the four backbones where our method ranks second in AUROC, namely SwinV2-B, DeiT3-B, EfficientNet-B1, and BEiTv2-B, the gap to the best-performing method is only 0.07, 0.37, 1.10, and 0.04 points, respectively, with LAPS attaining the best AUROC on SwinV2-B, DeiT3-B, and BEiTv2-B and OptFS on EfficientNet-B1. Despite requiring no access to training data, unlike LAPS and OptFS, our method thus ties or nearly ties these training-data-dependent methods in AUROC while consistently improving upon them in FPR@95.
On the small-scale benchmark (Table 3), our method outperforms SCALE on most individual datasets and achieves the highest average AUROC among baselines. As for the gain over SCALE, recall that ResNet-18 always yields non-negative activations and this was the setting where the gain was previously modest on the large-scale benchmark. On CIFAR-10, however, the pattern differs: our method achieves substantial gains over SCALE on most datasets and delivers overall stronger performance. Compared to methods that require additional resources such as training data or gradients, our method achieves the best overall average performance despite trailing several of them in FPR@95 on MNIST and Places365, most notably AdaSCALE-L on Places365 by 1.50 points. Interestingly, the plain Energy baseline achieves strong performance on MNIST and SVHN, yet fails to maintain such strong performance on the remaining datasets.
In summary, our method consistently improves upon SCALE across both ID settings and, within the training-free, gradient-free group, attains the best average AUROC and FPR@95 on every individual ImageNet backbone and the best average AUROC on CIFAR-10. Beyond this group, it further ties or outperforms methods that require additional resources such as training data or gradients on most backbones in both settings. We additionally evaluate on CIFAR-100 using the pretrained checkpoint provided by OpenOOD. Our method underperforms several baselines here, but most methods attain noticeably lower absolute performance on CIFAR-100 than on CIFAR-10 or ImageNet with ResNet backbones, which is somewhat unexpected given the smaller scale. We suspect this stems from the limited number of images per class, and discuss this along with per-dataset results for every backbone under the ImageNet ID setting further in Appendix G.
5.3 ABLATION STUDIES
Effect of Absolute Fix. To verify that the Absolute Fix yields a genuine improvement, we report in Table 4 the performance of the original SCALE and the ReLU-based fixing method proposed in LTS, compared against our method, on backbones with negative penultimate activations. Our method not only improves performance over SCALE on every model but also achieves a consistent improvement over the ReLU-based method while always outperforming the plain Energy baseline. Notably, on BEiTv2-B the ReLU-based method actually underperforms Energy. This improvement remains substantial on EfficientNet-B1, despite lacking the symmetric heavy tail that originally motivated the Absolute Fix, and on BEiTv2-B, whose activation distribution resembles that of ViT. On DeiT3-B, however, our method leaves AUROC unchanged, which we attribute to fluctuations in the activation density at large absolute values rather than a clean monotonic decay, causing confusion when estimating the scaling factor. Detailed per-dataset performance is provided in Appendix B.
Table 4: Average AUROC/FPR@95 (%) of the Absolute Fix against Energy, SCALE, and the ReLU-based correction, averaged over five OOD datasets, on backbones with negative penultimate activations under the ImageNet ID setting. (SCALE) and (ReLU) denote the change from SCALE and SCALE+ReLU to SCALE+Abs. The best value in each column is highlighted in bold.
| Method | Swin-B | SwinV2-B | ViT-B/16 | ConvNeXt-B | DeiT3-B | EfficientNet-B1 | BEiTv2-B |
|---|---|---|---|---|---|---|---|
| Energy (Baseline) | 64.20/76.41 | 72.82/68.84 | 72.05/70.83 | 57.63/87.01 | 77.71/75.02 | 66.60/87.28 | 78.72/59.03 |
| SCALE | 63.58/87.50 | 51.24/89.40 | 68.31/72.90 | 64.32/92.10 | 80.49/65.09 | 50.79/97.87 | 66.84/73.95 |
| SCALE+ReLU | 76.06/70.90 | 76.72/66.88 | 78.73/63.94 | 79.62/65.80 | 80.19/66.26 | 67.30/77.54 | 75.38/62.96 |
| SCALE+Abs (Ours) | 77.51/69.03 | 81.05/61.72 | 81.59/61.10 | 81.45/64.08 | 80.49/62.53 | 80.89/62.79 | 81.17/55.14 |
| Δ(SCALE) | +13.93/-18.47 | +29.81/-27.68 | +13.28/-11.80 | +17.13/-28.02 | +0.00/-2.56 | +30.10/-35.08 | +14.33/-18.81 |
| Δ(ReLU) | +1.45/-1.87 | +4.33/-5.16 | +2.86/-2.84 | +1.83/-1.72 | +0.30/-3.73 | +13.59/-14.75 | +5.79/-7.82 |
Effect of Anti-coherence. Building on the Absolute Fix, we further isolate the effect of the Anti-coherence term by comparing Anti-coh against SCALE+Abs, which already incorporates the gains from the Absolute Fix. The results show improvement on every metric except FPR@95 on ViT-B/16. In particular, the improvement is largest on backbones with negative penultimate activations, whereas, as noted in Section 5.2, backbones with only non-negative activations show a comparatively modest gain. These results indicate that the Anti-coherence term provides a contribution beyond the Absolute Fix alone.
Table 5: Average AUROC/FPR@95 (%) of Anti-coh (Ours) against SCALE+Abs, averaged over five OOD datasets across ten ImageNet backbones. denotes the change from SCALE+Abs to Anti-coh. The best value in each column is highlighted in bold.
| Method | RN-50 | RN-101 | MobileNetV2 | Swin-B | SwinV2-B | ViT-B/16 | ConvNeXt-B | DeiT3-B | EfficientNet-B1 | BEiTv2-B |
|---|---|---|---|---|---|---|---|---|---|---|
| SCALE+Abs | 90.24/38.97 | 90.37/38.73 | 86.66/47.43 | 77.51/69.03 | 81.05/61.72 | 81.59/61.10 | 81.45/64.08 | 80.49/62.53 | 80.89/62.79 | 81.17/55.14 |
| Anti-coh (Ours) | 90.65/38.65 | 90.62/38.46 | 87.27/46.10 | 83.29/61.39 | 85.06/56.00 | 82.92/63.18 | 86.32/57.33 | 83.44/57.21 | 82.52/57.48 | 86.00/51.82 |
| Δ | +0.41/-0.32 | +0.25/-0.27 | +0.61/-1.33 | +5.78/-7.64 | +4.01/-5.72 | +1.33/+2.08 | +4.87/-6.75 | +2.95/-5.32 | +1.63/-5.31 | +4.83/-3.32 |
6 CONCLUSION
Towards addressing OOD detection, we show that SCALE fails to compute a well-defined scaling factor on backbones with negative penultimate activations, since positive and negative contributions cancel within the underlying signed sum. We propose the Absolute Fix, which computes the scaling factor over absolute-valued activations to preserve this information, and Anti-coherence, which decomposes each sample's contribution to the maximum logit into sign-aligned and sign-mismatched terms and regularizes the scaling factor by the fraction that drives the logit downward. Under the OpenOOD v1.5 protocol, our method requires no training data or gradient computation yet achieves the best average AUROC and FPR@95 among training-free methods on every individual ImageNet backbone and the best average AUROC on CIFAR-10, tying or outperforming methods relying on such resources on most backbones in both settings. These gains are especially large on backbones with negative activations though a gap with representation-based methods remains (see Appendix D), and closing it without relying on training data is an important direction for future work.
AI USE STATEMENT
In this work, we used generative AI tools to assist with implementing methods and with retrieval and discovery of related work. We have not used generative AI tools to propose or refine hypotheses; the core ideas of this work originate solely from the authors. We also used generative AI tools to verify the correctness of the mathematical proof, checking each derivation step against the stated assumptions. Additionally, we used generative AI tools for editing the paper to improve readability and clarity of writing. We have reviewed all AI-assisted work: LLM-generated code was verified and tested for correctness by the authors, the proof verification was independently confirmed by the authors, and all AI-edited text was manually checked against the intended scientific content. We take responsibility for the final content of this work, including text, claims, or artifacts produced with the aid of generative AI.
ETHICS STATEMENT
This work proposes an algorithmic improvement to OOD detection and is evaluated exclusively on established public benchmark datasets under the OpenOOD v1.5 protocol. It does not involve human subjects, new data collection, or the release of any dataset. Although the proposed method is intended to improve the reliability of deployed machine learning systems, no OOD detection method offers a strict guarantee of coverage and should not be treated as a sole safeguard in high-stakes deployment settings. We do not foresee privacy, discrimination, or conflict-of-interest concerns arising from this research.
REPRODUCIBILITY STATEMENT
Our method builds on publicly available ImageNet-1K pretrained checkpoints from torchvision (maintainers & contributors, 2016) and the timm library (Wightman, 2019), and is evaluated on the publicly available OpenOOD v1.5 benchmark (Zhang et al., 2024), which specifies the ID/OOD dataset splits and evaluation protocol used throughout the paper. The complete proof of Lemma 4.1 is provided in Appendix A, along with the assumptions under which it holds. Hyperparameter search spaces, checkpoint details, and other implementation details are provided in Appendix F and source code is included in the supplementary material.
REFERENCES
Julian Bitterwolf, Maximilian Müller, and Matthias Hein. In or out? fixing imagenet out-of-distribution detection evaluation. In International Conference on Machine Learning, pp. 2471–2506. PMLR, 2023.
Mircea Cimpoi, Subhransu Maji, Iasonas Kokkinos, Sammy Mohamed, and Andrea Vedaldi. Describing textures in the wild. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 3606–3613, 2014.
Andrea Corsini and Shanchieh Jay Yang. Are existing out-of-distribution techniques suitable for network intrusion detection? In 2023 IEEE Conference on Communications and Network Security (CNS), pp. 1–9. IEEE, 2023.
Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pp. 248–255. Ieee, 2009.
Li Deng. The mnist database of handwritten digit images for machine learning research [best of the web]. IEEE signal processing magazine, 29(6):141–142, 2012.
Andrija Djurisic, Nebojsa Bozanic, Arjun Ashok, and Rosanne Liu. Extremely simple activation shaping for out-of-distribution detection. In The Eleventh International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=ndYXTEL6cZz.
Andrija Djurisic, Rosanne Liu, and Mladen Nikolic. Logit scaling for out-of-distribution detection. Machine Vision and Applications, 36(5):108, 2025.
Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. An image is worth words: Transformers for image recognition at scale. In International Conference on Learning Representations, 2021. URL https://openreview.net/forum?id=YicbFdNTTy.
Xuefeng Du, Zhaoning Wang, Mu Cai, and Sharon Li. Vos: Learning what you don't know by virtual outlier synthesis. In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=TW7d65uYu5M.
Abid Hassan, Tuan Ngo, Saad Shafiq, and Nenad Medvidovic. Catalyst: Out-of-distribution detection via elastic scaling. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) Findings, pp. 1618–1628, June 2026a.
Abid Hassan, Tuan Ngo, Saad Shafiq, and Nenad Medvidovic. Davis: Ood detection via dominant activations and variance for increased separation. arXiv preprint arXiv:2601.22703, 2026b.
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016.
Rundong He, Yue Yuan, Zhongyi Han, Fan Wang, Wan Su, Yilong Yin, Tongliang Liu, and Yongshun Gong. Exploring channel-aware typical features for out-of-distribution detection. In Proceedings of the AAAI conference on artificial intelligence, volume 38, pp. 12402–12410, 2024.
Dan Hendrycks and Kevin Gimpel. A baseline for detecting misclassified and out-of-distribution examples in neural networks. In International Conference on Learning Representations, 2017. URL https://openreview.net/forum?id=Hkg4TI9xl.
Dan Hendrycks, Steven Basart, Mantas Mazeika, Andy Zou, Joseph Kwon, Mohammadreza Mostajabi, Jacob Steinhardt, and Dawn Song. Scaling out-of-distribution detection for real-world settings. In International Conference on Machine Learning, pp. 8759–8773. PMLR, 2022.
Zesheng Hong, Yubiao Yue, Yubin Chen, Lele Cong, Huanjie Lin, Yuanmei Luo, Mini Han Wang, Weidong Wang, Jialong Xu, Xiaoqi Yang, et al. Out-of-distribution detection in medical image analysis: A survey. arXiv preprint arXiv:2404.18279, 2024.
Erblin Isaku, Hassan Sartaj, Shaukat Ali, Beatriz Sanguino, Tongtong Wang, Guoyuan Li, Houxiang Zhang, and Thomas Peyrucain. Out of distribution detection in self-adaptive robots with air-powered digital twins. In 2025 40th IEEE/ACM International Conference on Automated Software Engineering (ASE), pp. 3403–3414. IEEE, 2025.
Donghwan Kim and Hyunsoo Yoon. Mahavar: Ood detection via class-wise mahalanobis distance variance under neural collapse. arXiv preprint arXiv:2605.14413, 2026.
Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. 2009.
Yann Le, Xuan Yang, et al. Tiny imagenet visual recognition challenge. CS 231N, 7(7):3, 2015.
Kimin Lee, Kibok Lee, Honglak Lee, and Jinwoo Shin. A simple unified framework for detecting out-of-distribution samples and adversarial attacks. Advances in neural information processing systems, 31, 2018.
Zhiwei Ling, Yachen Chang, Hailiang Zhao, Xinkui Zhao, Kingsum Chow, and Shuiguang Deng. Cadref: Robust out-of-distribution detection via class-aware decoupled relative feature leveraging. In 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 4968–4977. IEEE, 2025.
Litian Liu and Yao Qin. Fast decision boundary based out-of-distribution detector. In International Conference on Machine Learning, pp. 31728–31746. PMLR, 2024.
Litian Liu and Yao Qin. Detecting out-of-distribution through the lens of neural collapse. In Proceedings of the Computer Vision and Pattern Recognition Conference, pp. 15424–15433, 2025.
Weitang Liu, Xiaoyun Wang, John Owens, and Yixuan Li. Energy-based out-of-distribution detection. Advances in neural information processing systems, 33:21464–21475, 2020.
Xixi Liu, Yaroslava Lochman, and Christopher Zach. 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), pp. 23946–23955, June 2023.
Ze Liu, Yutong Lin, Yue Cao, Han Hu, Yixuan Wei, Zheng Zhang, Stephen Lin, and Baining Guo. Swin transformer: Hierarchical vision transformer using shifted windows. In Proceedings of the IEEE/CVF international conference on computer vision, pp. 10012–10022, 2021.
Ze Liu, Han Hu, Yutong Lin, Zhuliang Yao, Zhenda Xie, Yixuan Wei, Jia Ning, Yue Cao, Zheng Zhang, Li Dong, et al. Swin transformer v2: Scaling up capacity and resolution. In 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 11999–12009. IEEE, 2022a.
Zhuang Liu, Hanzi Mao, Chao-Yuan Wu, Christoph Feichtenhofer, Trevor Darrell, and Saining Xie. A convnet for the 2020s. In 2022 IEEE/CVF conference on computer vision and pattern recognition (CVPR), pp. 11966–11976. IEEE, 2022b.
TorchVision maintainers and contributors. Torchvision: Pytorch's computer vision library. https://github.com/pytorch/vision, 2016.
Yifei Ming, Yiyou Sun, Ousmane Dia, and Yixuan Li. How to exploit hyperspherical embeddings for out-of-distribution detection? In The Eleventh International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=aEFaE0W5pAd.
Maximilian Müller and Matthias Hein. Mahalanobis++: Improving ood detection via feature normalization. In International Conference on Machine Learning, pp. 45151–45184. PMLR, 2025.
Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Baolin Wu, Andrew Y Ng, et al. Reading digits in natural images with unsupervised feature learning. In NIPS workshop on deep learning and unsupervised feature learning, volume 2011, pp. 4. Granada, 2011.
Vardan Papyan, XY Han, and David L Donoho. Prevalence of neural collapse during the terminal phase of deep learning training. Proceedings of the National Academy of Sciences, 117(40):24652–24663, 2020.
Jaewoo Park, Yoon Gyo Jung, and Andrew Beng Jin Teoh. Nearest neighbor guidance for out-of-distribution detection. In Proceedings of the IEEE/CVF international conference on computer vision, pp. 1686–1695, 2023.
Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, et al. Pytorch: An imperative style, high-performance deep learning library. Advances in neural information processing systems, 32, 2019.
Zhiliang Peng, Li Dong, Hangbo Bao, Qixiang Ye, and Furu Wei. Beit v2: Masked image modeling with vector-quantized visual tokenizers. arXiv preprint arXiv:2208.06366, 2022.
Sudarshan Regmi. AdaSCALE: Adaptive scaling for OOD detection. In Forty-third International Conference on Machine Learning, 2026. URL https://openreview.net/forum?id=iXPK0rsCE9.
Jie Ren, Stanislav Fort, Jeremiah Liu, Abhijit Guha Roy, Shreyas Padhy, and Balaji Lakshminarayanan. A simple fix to mahalanobis distance for improving near-ood detection. arXiv preprint arXiv:2106.09022, 2021.
Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zhmoginov, and Liang-Chieh Chen. Mobilenetv2: Inverted residuals and linear bottlenecks. In 2018 IEEE/CVF conference on computer vision and pattern recognition, pp. 4510–4520. Ieee, 2018.
Yiyou Sun and Yixuan Li. Dice: Leveraging sparsification for out-of-distribution detection. In European conference on computer vision, pp. 691–708. Springer, 2022.
Yiyou Sun, Chuan Guo, and Yixuan Li. React: Out-of-distribution detection with rectified activations. Advances in neural information processing systems, 34:144–157, 2021.
Yiyou Sun, Yifei Ming, Xiaojin Zhu, and Yixuan Li. Out-of-distribution detection with deep nearest neighbors. In International conference on machine learning, pp. 20827–20840. PMLR, 2022.
Mingxing Tan and Quoc Le. Efficientnet: Rethinking model scaling for convolutional neural networks. In International conference on machine learning, pp. 6105–6114. PmLR, 2019.
Leitian Tao, Xuefeng Du, Jerry Zhu, and Yixuan Li. Non-parametric outlier synthesis. In The Eleventh International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=JHklpEZqduQ.
Hugo Touvron, Matthieu Cord, and Hervé Jégou. Deit iii: Revenge of the vit. In European conference on computer vision, pp. 516–533. Springer, 2022.
Grant Van Horn, Oisin Mac Aodha, Yang Song, Yin Cui, Chen Sun, Alex Shepard, Hartwig Adam, Pietro Perona, and Serge Belongie. The inaturalist species classification and detection dataset. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 8769–8778, 2018.
Sagar Vaze, Kai Han, Andrea Vedaldi, and Andrew Zisserman. Open-set recognition: A good closed-set classifier is all you need. In International conference on learning representations, 2021.
Felix Wagner, Pramit Saha, Harry Anthony, Alison Noble, and Konstantinos Kamnitsas. Dison: Decentralized isolation networks for out-of-distribution detection in medical imaging. In D. Belgrave, C. Zhang, H. Lin, R. Pascanu, P. Koniusz, M. Ghassemi, and N. Chen (eds.), Advances in Neural Information Processing Systems, volume 38, Main Conference, pp. 162740–162769. Curran Associates, Inc., 2025. doi: 10.52202/085713-5433. URL https://proceedings.neurips.cc/paper_files/paper/2025/file/ee4432ad0aa3ab4c6c3dee47b2d541b5-Paper-Conference.pdf.
Haoqi Wang, Zhizhong Li, Litong Feng, and Wayne Zhang. Vim: Out-of-distribution with virtual-logit matching. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 4921–4930, 2022.
Ross Wightman. Pytorch image models. https://github.com/rwightman/pytorch-image-models, 2019.
Kai Xu, Rongyu Chen, Gianni Franchi, and Angela Yao. Scaling for training time and post-hoc out-of-distribution detection enhancement. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=RDSTjtnqCg.
Mingyu Xu, Zheng Lian, Bin Liu, and Jianhua Tao. Vra: Variational rectified activation for out-of-distribution detection. Advances in Neural Information Processing Systems, 36:28941–28959, 2023.
Jingkang Yang, Kaiyang Zhou, Yixuan Li, and Ziwei Liu. Generalized out-of-distribution detection: A survey. International Journal of Computer Vision, 132(12):5635–5662, 2024.
Jingyang Zhang, Jingkang Yang, Pengyun Wang, Haoqi Wang, Yueqian Lin, Haoran Zhang, Yiyou Sun, Xuefeng Du, Yixuan Li, Ziwei Liu, et al. Openood v1. 5: Enhanced benchmark for out-of-distribution detection. Journal of Data-centric Machine Learning Research, 2024.
Qinyu Zhao, Ming Xu, Kartik Gupta, Akshay Asthana, Liang Zheng, and Stephen Gould. Towards optimal feature-shaping methods for out-of-distribution detection. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=dm8e7gsH0d.
Bolei Zhou, Agata Lapedriza, Aditya Khosla, Aude Oliva, and Antonio Torralba. Places: A 10 million image database for scene recognition. IEEE transactions on pattern analysis and machine intelligence, 40(6):1452–1464, 2017.
Jianing Zhu, Yu Geng, Jiangchao Yao, Tongliang Liu, Gang Niu, Masashi Sugiyama, and Bo Han. Diversified outlier exposure for out-of-distribution detection via informative extrapolation. Advances in neural information processing systems, 36:22702–22734, 2023.
Yao Zhu, YueFeng Chen, Chuanlong Xie, Xiaodan Li, Rong Zhang, Hui Xue, Xiang Tian, Yaowu Chen, et al. Boosting out-of-distribution detection with typical features. Advances in Neural Information Processing Systems, 35:20758–20769, 2022.
A PROOF OF LEMMA 4.1
Lemma 4.1. Let be the classifier head's weight, and let with the unique maximizer, . For simplicity, we assume the bias is zero. The scaled logit and energy score are
which decomposes as
where is the contribution of the non-maximal logits. Let denote the fraction of the energy score attributable to the max logit. Then is non-decreasing in with as .
Proof. By the shift-invariance of log-sum-exp,
where the last line separates out the term, for which . Since , we have , where for all by the definition of . Thus
Let , so that . Differentiating with respect to ,
so that
The denominator is strictly positive. In the numerator, and each term since . Hence , so is non-increasing in . Assuming is the unique maximizer, for all , so as . Thus for every , and , giving
Since , is strictly increasing in and diverges as . As is non-increasing and bounded while is strictly increasing and unbounded, the ratio is non-increasing in and tends to as . Writing
it follows that is non-decreasing in and as .
B ADDITIONAL ABLATIONS ON THE ABSOLUTE FIX
Figure 4 extends the analysis of Figure 1 by visualizing how r differs before and after applying the Absolute Fix across six backbones with negative penultimate activations. Consistent with the main text, the Absolute Fix shifts r so that ID samples exhibit a higher value than OOD samples on all backbones except DeiT3-B, whereas the original r frequently fails to separate ID from OOD or even reverses this ordering. This further confirms that the Absolute Fix restores the intended behavior of the scaling factor across a broader range of architectures with negative penultimate activations. We additionally examined SwinV2-B and found that, although the Absolute Fix separates ID from OOD even more clearly than on Swin-B, the qualitative pattern does not differ from Swin-B, and we therefore omit it from Figure 4 for brevity.

Figure 4: Effect of the Absolute Fix on the separability of across six backbones with negative penultimate activations. In each panel, the top row shows the original ratio and the bottom row shows after applying the Absolute Fix. The top block covers ViT-B/16, Swin-B, and ConvNeXt-B; the bottom block covers EfficientNet-B1, DeiT3-B, and BEiTv2-B.
Table 6 compares the Absolute Fix against Energy, SCALE, and SCALE+ReLU to verify its performance gain on a per-dataset basis. Across all seven backbones, SCALE+Abs achieves the best average AUROC and FPR@95, except on DeiT3-B, where its average AUROC ties with the original SCALE. On several backbones, most notably SwinV2-B, BEiTv2-B and EfficientNet-B1, the original SCALE performs worse than the plain Energy baseline; on SwinV2-B the degradation is most severe, with SCALE trailing Energy by over 21 points in average AUROC. On BEiTv2-B, SCALE+ReLU likewise fails to outperform Energy. These results underscore the need for a correction on architectures with negative penultimate activations, and validate that the Absolute Fix consistently yields a genuine improvement even in cases where SCALE or the ReLU-based correction fails to surpass the basic Energy baseline.
Table 6: Comparison of the Absolute Fix against Energy and SCALE baselines on backbones with negative penultimate activations, evaluated under the OpenOOD v1.5 protocol on ImageNet. Results are reported as AUROC/FPR@95 (%); the best value in each column within each backbone block is highlighted in bold. Notably, on some backbones the original SCALE underperforms the plain Energy baseline, motivating the need for a correction.
| Backbone | Method | Near-OOD | Far-OOD | Avg | |||
|---|---|---|---|---|---|---|---|
| NINCO | SSB-Hard | iNaturalist | Texture | OpenImage | |||
| Swin-B | Energy (Baseline) | 64.28/79.82 | 59.27/86.00 | 67.79/73.19 | 69.28/66.29 | 60.40/76.75 | 64.20/76.41 |
| SCALE | 62.51/89.69 | 55.97/92.86 | 63.10/91.18 | 69.60/79.27 | 66.71/84.48 | 63.58/87.50 | |
| SCALE+ReLU | 73.90/76.51 | 63.09/85.74 | 83.81/60.23 | 78.65/65.18 | 80.83/66.83 | 76.06/70.90 | |
| SCALE+Abs (Ours) | 75.08/74.94 | 63.21/86.24 | 86.82/53.16 | 80.08/65.27 | 82.35/65.52 | 77.51/69.03 | |
| SwinV2-B | Energy (Baseline) | 72.14/72.88 | 66.41/81.83 | 77.87/62.67 | 76.25/59.72 | 71.44/67.08 | 72.82/68.84 |
| SCALE | 49.15/91.66 | 44.58/95.98 | 50.23/90.69 | 64.20/78.99 | 48.04/89.70 | 51.24/89.40 | |
| SCALE+ReLU | 74.10/74.45 | 64.13/83.43 | 88.81/44.82 | 75.47/69.31 | 81.10/62.42 | 76.72/66.88 | |
| SCALE+Abs (Ours) | 79.80/67.88 | 67.52/80.80 | 92.59/35.20 | 79.09/68.19 | 86.24/56.52 | 81.05/61.72 | |
| ViT-B/16 | Energy (Baseline) | 66.05/78.45 | 59.16/88.16 | 79.26/64.06 | 79.32/58.46 | 76.49/65.05 | 72.05/70.83 |
| SCALE | 61.34/79.94 | 56.78/88.75 | 73.62/69.13 | 77.31/59.36 | 72.51/67.33 | 68.31/72.90 | |
| SCALE+ReLU | 74.55/73.15 | 64.17/85.46 | 87.93/48.63 | 84.08/53.32 | 82.91/59.14 | 78.73/63.94 | |
| SCALE+Abs (Ours) | 78.37/70.60 | 65.77/84.90 | 90.63/43.63 | 87.05/49.04 | 86.11/57.35 | 81.59/61.10 | |
| ConvNeXt-B | Energy (Baseline) | 64.43/82.68 | 65.67/84.36 | 55.97/90.24 | 49.12/88.40 | 52.95/89.38 | 57.63/87.01 |
| SCALE | 67.77/90.66 | 61.35/92.97 | 57.62/98.73 | 69.53/86.10 | 65.35/92.05 | 64.32/92.10 | |
| SCALE+ReLU | 81.77/65.21 | 70.48/80.44 | 90.06/45.95 | 72.26/74.10 | 83.54/63.28 | 79.62/65.80 | |
| SCALE+Abs (Ours) | 81.07/67.27 | 72.27/81.64 | 91.86/39.35 | 76.81/70.30 | 85.25/61.85 | 81.45/64.08 | |
| DeiT3-B | Energy (Baseline) | 74.91/82.65 | 68.70/87.96 | 84.76/67.37 | 80.56/63.05 | 79.63/74.06 | 77.71/75.02 |
| SCALE | 77.59/75.48 | 66.36/86.23 | 87.45/53.05 | 85.77/51.60 | 85.27/59.08 | 80.49/65.09 | |
| SCALE+ReLU | 76.53/75.59 | 70.63/83.54 | 88.55/50.64 | 81.58/61.60 | 83.65/59.96 | 80.19/66.26 | |
| SCALE+Abs (Ours) | 78.20/72.03 | 69.18/83.12 | 89.03/45.50 | 82.25/54.57 | 83.81/57.43 | 80.49/62.53 | |
| EfficientNet-B1 | Energy (Baseline) | 66.12/87.77 | 63.51/88.10 | 70.54/87.57 | 61.84/89.45 | 70.99/83.52 | 66.60/87.28 |
| SCALE | 43.47/99.52 | 48.47/97.87 | 49.45/99.59 | 62.85/93.87 | 49.71/98.48 | 50.79/97.87 | |
| SCALE+ReLU | 63.63/82.78 | 62.82/85.00 | 71.70/72.73 | 68.81/73.32 | 69.53/73.88 | 67.30/77.54 | |
| SCALE+Abs (Ours) | 77.73/76.13 | 65.92/85.79 | 90.15/44.25 | 83.76/53.67 | 86.90/54.12 | 80.89/62.79 | |
| BEiTv2-B | Energy (Baseline) | 74.76/69.28 | 67.64/80.40 | 86.88/42.58 | 82.65/50.12 | 81.68/52.76 | 78.72/59.03 |
| SCALE | 62.86/79.94 | 60.79/84.78 | 72.30/66.23 | 73.88/63.85 | 64.38/74.96 | 66.84/73.95 | |
| SCALE+ReLU | 72.13/70.55 | 65.16/82.17 | 82.41/51.07 | 79.70/52.71 | 77.52/58.28 | 75.38/62.96 | |
| SCALE+Abs (Ours) | 78.40/64.29 | 69.57/78.63 | 88.97/37.39 | 84.25/48.07 | 84.68/47.33 | 81.17/55.14 | |
C VISUALIZATION OF THE ANTI-COHERENCE ON RELU-BASED BACKBONES
Figure 5 visualizes the Anti-coherence term on ReLU-based backbones where OOD samples also tend to exhibit higher values than ID samples. Nevertheless the performance gain over SCALE is comparatively modest on these backbones (see Table 5). We attribute this to the fact that the scaling factor already provides sufficient separability under the ImageNet ID setting as discussed in Section 5.2. Hence, on backbones with only non-negative activations there is little room for the Anti-coherence term to contribute additional signal.

Figure 5: Distribution of the Anti-coherence term for ID and OOD samples on backbones with non-negative penultimate activations due to ReLU.
D COMPARISON WITH REPRESENTATION-BASED METHODS
Table 7 compares our method against representation-based methods that require access to training statistics. On architectures with non-negative activations (ResNet-50, ResNet-101, and MobileNetV2), our training-data-free method already achieves the best performance among all methods compared. On architectures with negative penultimate activations, however, our method still trails the strongest representation-based methods, most notably CADRef and Mahalanobis. This suggests that activation-shaping methods including ours remain fundamentally strongest on architectures such as ResNet, and while our use of sign information yields substantial improvements it still falls short of representation-based methods on architectures with negative activations. Therefore, closing this gap on negative-activation architectures without relying on training data remains an important direction for future activation-shaping methods.
Table 7: OOD detection performance (AUROC/FPR@95, %) of Anti-coh (Ours) against representation-based methods that require training statistics, averaged over five OOD datasets on ImageNet. The best value in each column is highlighted in bold.
| Method | ResNet-50 | ResNet-101 | Swin-B | SwinV2-B | ViT-B/16 | ConvNeXt-B | DeiT3-B | EfficientNet-B1 | MobileNetV2 | BEiTv2-B |
|---|---|---|---|---|---|---|---|---|---|---|
| Mahalanobis | 66.58/83.64 | 72.49/78.77 | 86.74/56.72 | 87.99/50.26 | 86.77/48.91 | 87.30/53.67 | 86.76/56.74 | 83.44/65.57 | 51.56/90.07 | 88.67/46.06 |
| k-NN | 81.69/59.76 | 83.83/55.75 | 85.67/60.38 | 86.07/62.60 | 84.01/64.05 | 86.61/59.82 | 83.69/71.19 | 82.16/68.94 | 76.18/69.52 | 87.83/48.82 |
| NCI | 84.31/61.82 | 84.89/60.49 | 84.00/62.16 | 85.17/58.20 | 82.29/66.46 | 85.76/58.07 | 83.48/62.28 | 84.23/68.59 | 79.67/71.95 | 86.56/50.86 |
| fDBD | 85.96/58.40 | 86.44/57.01 | 84.06/62.33 | 85.42/57.24 | 82.51/65.62 | 86.40/55.98 | 85.06/58.33 | 82.90/70.35 | 84.00/63.48 | 86.28/51.22 |
| NNGuide | 86.50/50.15 | 87.59/48.21 | 86.74/56.67 | 86.86/58.60 | 84.56/61.95 | 86.92/58.20 | 82.09/65.57 | 81.68/70.12 | 82.91/58.63 | 88.31/45.95 |
| CADRef | 89.43/40.71 | 89.67/41.02 | 87.24/54.27 | 87.85/51.07 | 86.24/57.89 | 88.07/52.20 | 87.28/52.87 | 79.35/76.31 | 86.60/47.91 | 89.47/42.12 |
| Anti-coh (Ours) | 90.65/38.65 | 90.62/38.46 | 83.29/61.39 | 85.06/56.00 | 82.92/63.18 | 86.32/57.33 | 83.44/57.21 | 82.52/57.48 | 87.27/46.10 | 86.00/51.82 |
E EXPERIMENTS OF HYPERPARAMETER SENSITIVITY
Figure 6 shows how AUROC on iNaturalist, OpenImage, and Texture responds to varying across six backbones. On the four backbones with substantial negative activation mass (Swin-B, ViT-B/16, ConvNeXt-B, and BEiTv2-B) AUROC increases with and then changes only gradually, indicating that our method is not overly sensitive to the exact choice of within this range. On EfficientNet-B1 and MobileNetV2 whose penultimate activations are predominantly non-negative, AUROC peaks at a moderate and then declines, most notably on Texture. This suggests that excessive regularization can be detrimental on backbones dominated by positive activations.

EfficientNet-B1
MobileNetV2
BEiTv2-B
Figure 6: Sensitivity of AUROC to the Anti-coherence regularization strength across six backbones. Swin-B, ViT-B/16, ConvNeXt-B, and BEiTv2-B have substantial negative activation mass whereas EfficientNet-B1 and MobileNetV2 have predominantly non-negative penultimate activations. The percentile is fixed to the value selected in Table 9 for all and corresponds to SCALE+Abs at this percentile.
F IMPLEMENTATION DETAILS
F.1 METHOD IMPLEMENTATIONS
All methods are implemented in PyTorch 2.4.1 (Paszke et al., 2019), and all experiments are conducted on a machine equipped with an AMD Ryzen 9 7950X CPU and an NVIDIA RTX 4090 GPU. Below we describe our implementation of each compared method, along with its hyperparameters and how they are set.
MSP. MSP (Hendrycks & Gimpel, 2017) scores a sample by the largest post-softmax class probability. Using the logit , where and denote the classifier head weight matrix and bias vector, the score is given by
MaxLogit. MaxLogit (Hendrycks et al., 2022) instead takes the maximum component of the raw logit directly, without the softmax normalization:
Energy. Rather than relying on a single class, the energy score (Liu et al., 2020) aggregates all logit components through a log-sum-exp:
where the temperature T is fixed to 1 throughout.
ASH-S. ASH-S (Djurisic et al., 2023) prunes activations below a threshold and applies exponential rescaling to the surviving components:
where denotes the -th percentile of , with as the sole hyperparameter. The shaped activation is then passed through the classifier head and scored using the energy score,
SCALE. SCALE (Xu et al., 2024) applies the same exponential rescaling as ASH-S but without the pruning step:
where is again the -th percentile of , with as the sole hyperparameter. The shaped activation is then passed through the classifier head and scored using the energy score,
LTS. LTS (Djurisic et al., 2025) rectifies the penultimate activation with ReLU before computing SCALE's percentile ratio, and applies the square of the resulting factor to the logit rather than to the activation itself, with the percentile threshold p serving as the sole hyperparameter. With , the scaling factor is
(27) where denotes the -th percentile of . The original, unrectified activation is passed through the classifier head to obtain the logit , which is then scaled by and scored using the energy score,
ReAct. ReAct (Sun et al., 2021) clips penultimate activations at a threshold set to the -th percentile of the training features, prior to energy scoring. With the clipped logit , the score is given by
where truncates each activation at from above, and the percentile is the sole hyperparameter.
VRA. VRA (Xu et al., 2023) rectifies each activation with a two-sided piecewise function, suppressing values below a lower bound and clipping values above an upper bound :
The rectified activation is then passed through the classifier head and scored using the energy score,
Following the original implementation, and are set to the - and -quantiles of the pooled ID training activations, respectively, with and selected as hyperparameters subject to .
OptFS. OptFS (Zhao et al., 2024) learns a closed-form scaling vector from ID training statistics and applies it to the penultimate activation. Activations are grouped into equal-width bins over where and are the 0.1-th and 99.9-th percentile of the pooled ID training activations and bin() denotes the index of the bin containing value . For each bin an importance score is computed using the ID training set as the average of over all components falling in that bin where is the predicted class from the original unscaled logit. The scaling vector is then obtained by normalizing in closed form as . At test time each activation is rescaled by the factor of its own bin,
and the OOD score is given by where is again determined from the original unscaled logit. The bias term is omitted from the score following the official implementation. The number of bins is the sole hyperparameter while is computed in closed form from ID training statistics without further tuning.
LAPS. LAPS (He et al., 2024) clips each channel of the penultimate activation to a channel-specific asymmetric range, calibrated from how far that channel's ID training statistics deviate from the average across all channels. Let and denote the per-channel mean and standard deviation over the ID training features, and let and denote their averages across all channels. The clamping bounds for channel are
and each activation is clipped as
The clipped activation is then passed through the classifier head and scored using the energy score,
The base level and the deviation weights m and n are jointly tuned as hyperparameters.
AdaSCALE-A/L. AdaSCALE (Regmi, 2026) determines the percentile threshold used in SCALE's ratio adaptively per sample, by perturbing the input along a gradient direction and using the resulting shift in the pooled feature as an estimate of how OOD-like that sample is. This estimate is compared against a reference distribution built from the ID validation set to obtain a sample-specific percentile, which is then used in place of SCALE's fixed percentile. AdaSCALE-A applies the resulting factor to the feature before recomputing the logit, while AdaSCALE-L instead scales the original logit by the square of the factor; both are then scored using the energy score. The method has hyperparameters , , , , and the percentile range , which we set following Section 5.2 of the original paper: and are fixed, and only is tuned as a hyperparameter.
Anti-coh (Ours). Our method computes the scaling factor over the absolute-valued penultimate activation, and regularizes it with the Anti-coherence term , the fraction of the max logit's contribution that is sign-mismatched with the classifier weight. The predicted class used for is the of the unscaled logit including the bias and the denominators of and are clamped at for numerical stability. This yields the regularized scaling factor
The shaped activation is then given by
which is passed through the classifier head and scored using the energy score,
The percentile used to compute and the regularization strength are jointly tuned as hyperparameters. Although Lemma 4.1 assumes zero bias for the analysis, we include the classifier bias when combining the shaped activation with the energy score for consistency with the compared methods since excluding it did not affect performance. Equivalently so that the regularization acts as a multiplicative damping factor on the activation scale independently of the magnitude of .
Backbones and checkpoints. All ImageNet backbones are pretrained on ImageNet-1K only. DeiT3-B and BEiTv2-B are loaded from timm as deit3_base_patch16_224.fb_in1k and beitv2_base_patch16_224.in1k_ft_in1k respectively. For CIFAR-10 and CIFAR-100 we use a single checkpoint released with OpenOOD v1.5 and report the results of this checkpoint without standard deviation.
F.2 HYPERPARAMETER SEARCH AND SELECTION
Table 8 lists the hyperparameter search space explored for each method. Table 9 and Table 10 report the hyperparameters selected by validation AUROC on the validation splits provided by OpenOOD v1.5, for the ImageNet and CIFAR-10 ID settings, respectively. The validation splits provided by OpenOOD v1.5 contain both ID and OOD validation samples and no training data is used for hyperparameter selection.
Table 8: Hyperparameters, search grids, and tuning procedures for all compared methods on the ImageNet experiments.
| Method | Hyperparameter(s) | Search grid |
|---|---|---|
| ReAct | threshold percentile | |
| ASH-S | pruning percentile | |
| SCALE | percentile | |
| VRA | quantile pair | |
| OptFS | number of bins | |
| LTS | percentile | |
| LAPS | jointly | |
| AdaSCALE-A / L | percentile pair | |
| Anti-coh (Ours) | jointly |
Table 9: Selected hyperparameters for each method across the ten ImageNet backbones, chosen via validation AUROC.
| Method | RN-50 | RN-101 | Swin-B | SwinV2-B | ViT-B/16 | ConvNeXt-B | DeiT3-B | EfficientNet-B1 | MobileNet-V2 | BEiTv2-B |
|---|---|---|---|---|---|---|---|---|---|---|
| ReAct | 0.95 | 0.95 | 0.90 | 0.90 | 0.90 | 0.90 | 0.95 | 0.95 | 0.90 | 0.90 |
| ASH-S | 0.85 | 0.85 | 0.65 | 0.65 | 0.65 | 0.95 | 0.65 | 0.65 | 0.85 | 0.65 |
| SCALE | 0.85 | 0.85 | 0.95 | 0.65 | 0.65 | 0.95 | 0.90 | 0.65 | 0.85 | 0.65 |
| VRA () | (0.7, 0.95) | (0.7, 0.90) | (0.5, 0.85) | (0.5, 0.80) | (0.5, 0.80) | (0.5, 0.80) | (0.7, 0.99) | (0.5, 0.95) | (0.6, 0.80) | (0.5, 0.90) |
| OptFS () | 100 | 100 | 3 | 100 | 100 | 3 | 10 | 5 | 100 | 50 |
| LTS | 0.85 | 0.85 | 0.95 | 0.95 | 0.95 | 0.95 | 0.85 | 0.65 | 0.85 | 0.70 |
| LAPS (, , ) | (2.0, 0.6, 1.0) | (2.0, 0.6, 1.0) | (1.5, 0.6, 1.0) | (1.5, 0.6, 1.0) | (1.5, 0.0, 1.0) | (1.5, 0.6, 1.0) | (2.0, 0.0, 0.5) | (3.0, 0.0, 0.5) | (0.5, 0.0, 0.9) | (1.5, 0.6, 1.0) |
| AdaSCALE-A | (60, 75) | (60, 75) | (60, 99) | (60, 99) | (60, 70) | (60, 99) | (60, 80) | (60, 99) | (60, 75) | (60, 80) |
| AdaSCALE-L | (60, 70) | (60, 70) | (60, 99) | (60, 99) | (60, 70) | (60, 99) | (60, 95) | (60, 99) | (60, 70) | (60, 80) |
| Anti-coh () | (0.9, 3) | (0.9, 3) | (0.95, 12) | (0.95, 12) | (0.95, 12) | (0.9, 12) | (0.85, 5) | (0.95, 8) | (0.95, 8) | (0.75, 8) |
Table 10: Selected hyperparameters for each method on CIFAR-10 (ResNet-18), chosen via validation AUROC.
| ReAct | ASH-S | SCALE | VRA () | OptFS () | LTS | LAPS (, , ) | AdaSCALE-A | AdaSCALE-L | Anti-coh () |
|---|---|---|---|---|---|---|---|---|---|
| 0.99 | 0.65 | 0.65 | (0.5, 0.99) | 1 | 0.65 | (2.0, 0.6, 0.5) | (60, 65) | (60, 65) | (0.5, 12) |
G FULL PER-BACKBONE RESULTS
Table 11 reports results on CIFAR-100 under the OpenOOD setting where most methods attain noticeably lower performance than on CIFAR-10. We suspect this stems from the limited number of training images per class which prevents the pretrained model from learning sufficiently discriminative penultimate activations. In the CIFAR-10 setting (Table 3) detection performance on MNIST, which we consider the simplest OOD dataset, is nearly saturated. On CIFAR-100, however, MNIST detection performance is substantially lower across every method despite CIFAR-100 not containing any digit-related classes. We take this as suggestive evidence that the activation itself fails to carry adequate feature information rather than any inherent difficulty in distinguishing MNIST from a specific ID class. Additionally, Tables 12 through 21 report per-backbone results on each OOD dataset under the ImageNet ID setting.
Table 11: OOD detection performance (AUROC/FPR@95, %) on CIFAR-100 (ResNet-18) under the OpenOOD v1.5 protocol. Methods are grouped by resource requirement. The best value in each column is highlighted in bold.
| Method | MNIST | Places365 | SVHN | Texture | TIN | CIFAR-10 | Avg |
|---|---|---|---|---|---|---|---|
| Training-data-dependent | |||||||
| ReAct | 77.47/84.48 | 77.51/80.66 | 82.48/76.10 | 80.55/77.57 | 80.63/75.02 | 78.71/79.76 | 79.56/78.93 |
| VRA | 77.95/83.72 | 77.68/80.41 | 83.10/74.37 | 81.23/76.70 | 80.77/74.91 | 78.78/79.64 | 79.92/78.29 |
| OptFS | 76.86/86.46 | 77.39/80.41 | 81.79/77.36 | 80.20/78.51 | 80.49/74.92 | 78.49/79.58 | 79.20/79.54 |
| LAPS | 75.73/85.34 | 77.92/81.22 | 81.82/77.20 | 81.67/77.00 | 80.76/75.49 | 78.49/80.46 | 79.40/79.45 |
| Gradient-dependent | |||||||
| AdaSCALE-A | 79.96/82.36 | 78.21/78.74 | 85.53/68.10 | 81.23/74.63 | 80.52/75.61 | 79.28/79.19 | 80.79/76.44 |
| AdaSCALE-L | 81.76/77.96 | 78.57/78.05 | 88.09/58.16 | 82.56/70.20 | 79.93/76.36 | 78.92/79.48 | 81.64/73.37 |
| Training-free, gradient-free | |||||||
| MSP | 74.45/88.53 | 77.17/80.24 | 79.37/79.29 | 78.07/79.61 | 80.11/75.54 | 78.54/79.97 | 77.95/80.53 |
| MaxLogit | 77.82/86.21 | 77.36/80.20 | 82.33/77.22 | 79.36/78.72 | 80.69/74.71 | 79.20/79.40 | 79.46/79.41 |
| Energy | 78.22/84.45 | 77.12/80.51 | 82.67/76.03 | 79.33/77.91 | 80.51/74.91 | 79.01/79.66 | 79.48/78.91 |
| ASH-S | 80.08/80.06 | 78.12/78.68 | 85.84/66.58 | 81.79/72.80 | 80.23/75.29 | 79.17/79.34 | 80.87/75.46 |
| SCALE | 79.62/81.63 | 78.09/78.35 | 85.14/68.94 | 81.28/74.29 | 80.47/74.66 | 79.24/79.16 | 80.64/76.17 |
| LTS | 80.91/77.67 | 78.30/77.79 | 87.14/61.76 | 82.49/69.95 | 79.87/75.27 | 78.85/79.46 | 81.26/73.65 |
| Anti-coh (Ours) | 77.34/86.86 | 77.42/80.85 | 80.39/79.05 | 80.42/77.71 | 81.61/73.84 | 79.12/80.28 | 79.38/79.77 |
Table 12: OOD detection performance (AUROC/FPR@95, %) on ResNet-50 (ImageNet) under the OpenOOD v1.5 protocol. Methods are grouped by resource requirement. The best value in each column is highlighted in bold.
| Method | iNaturalist | NINCO | OpenImage | SSB-Hard | Texture | Avg |
|---|---|---|---|---|---|---|
| Training-data-dependent | ||||||
| ReAct | 96.32/19.96 | 81.71/70.43 | 91.88/41.33 | 73.08/80.47 | 91.62/41.44 | 86.92/50.72 |
| VRA | 96.79/17.48 | 82.23/70.28 | 93.08/36.66 | 71.30/83.94 | 95.05/24.29 | 87.69/46.53 |
| OptFS | 96.62/18.43 | 82.45/70.48 | 92.55/39.26 | 71.11/83.79 | 95.47/24.91 | 87.64/47.38 |
| LAPS | 95.09/27.80 | 80.80/72.42 | 91.94/42.26 | 70.96/83.22 | 92.89/35.05 | 86.34/52.15 |
| Gradient-dependent | ||||||
| AdaSCALE-A | 95.26/27.99 | 84.13/66.52 | 94.04/33.51 | 77.96/77.86 | 92.84/32.41 | 88.85/47.66 |
| AdaSCALE-L | 96.48/19.78 | 85.00/63.70 | 94.70/29.39 | 78.16/77.19 | 94.69/23.90 | 89.81/42.79 |
| Training-free, gradient-free | ||||||
| MSP | 88.43/52.73 | 79.98/75.94 | 84.99/63.61 | 72.16/84.49 | 80.47/66.15 | 81.21/68.59 |
| MaxLogit | 91.15/50.82 | 80.41/76.61 | 89.26/57.13 | 72.75/83.70 | 86.41/54.20 | 84.00/64.49 |
| Energy | 90.61/53.83 | 79.70/77.56 | 89.15/57.09 | 72.35/83.82 | 86.74/52.23 | 83.71/64.91 |
| ASH-S | 97.70/12.33 | 84.42/63.51 | 93.83/30.66 | 74.59/80.89 | 97.11/13.60 | 89.53/40.20 |
| SCALE | 98.00/10.52 | 85.27/61.79 | 93.97/29.92 | 77.23/78.00 | 96.73/14.65 | 90.24/38.97 |
| LTS | 97.85/11.23 | 85.23/61.77 | 94.03/30.12 | 77.04/78.08 | 96.43/15.67 | 90.12/39.38 |
| Anti-coh (Ours) | 98.08/10.04 | 86.44/60.77 | 94.46/29.33 | 77.64/77.86 | 96.61/15.27 | 90.65/38.65 |
Table 13: OOD detection performance (AUROC/FPR@95, %) on ResNet-101 (ImageNet) under the OpenOOD v1.5 protocol. Methods are grouped by resource requirement. The best value in each column is highlighted in bold.
| Method | iNaturalist | NINCO | OpenImage | SSB-Hard | Texture | Avg |
|---|---|---|---|---|---|---|
| Training-data-dependent | ||||||
| ReAct | 95.62/23.05 | 83.27/68.07 | 92.56/39.51 | 74.41/78.27 | 92.40/36.99 | 87.65/49.18 |
| VRA | 96.54/18.28 | 82.90/67.37 | 93.65/33.35 | 71.45/82.65 | 96.10/19.49 | 88.13/44.23 |
| OptFS | 95.67/24.19 | 83.28/68.71 | 92.97/37.36 | 72.31/82.22 | 95.78/23.78 | 88.00/47.25 |
| LAPS | 94.69/29.03 | 82.80/69.39 | 92.55/39.67 | 73.11/80.59 | 93.67/31.10 | 87.37/49.96 |
| Gradient-dependent | ||||||
| AdaSCALE-A | 93.86/34.17 | 85.09/62.45 | 94.43/31.51 | 78.50/75.78 | 93.37/30.02 | 89.05/46.79 |
| AdaSCALE-L | 95.19/26.85 | 86.00/60.45 | 95.14/27.51 | 78.70/75.57 | 95.14/22.06 | 90.03/42.49 |
| Training-free, gradient-free | ||||||
| MSP | 86.24/57.02 | 80.66/74.55 | 84.91/62.62 | 72.61/83.66 | 81.51/62.57 | 81.19/68.08 |
| MaxLogit | 88.78/55.81 | 82.31/72.49 | 89.36/55.07 | 74.60/80.77 | 87.57/48.30 | 84.52/62.49 |
| Energy | 88.23/58.34 | 81.81/73.43 | 89.24/55.57 | 74.38/80.58 | 87.87/47.34 | 84.31/63.05 |
| ASH-S | 96.65/18.16 | 85.30/61.04 | 94.36/28.09 | 74.55/79.99 | 97.55/11.90 | 89.68/39.83 |
| SCALE | 97.01/15.69 | 86.12/59.63 | 94.50/27.99 | 77.06/76.95 | 97.17/13.39 | 90.37/38.73 |
| LTS | 96.79/16.71 | 86.18/59.19 | 94.54/27.97 | 77.24/76.54 | 96.94/14.15 | 90.34/38.91 |
| Anti-coh (Ours) | 97.20/14.62 | 86.99/59.14 | 95.04/26.90 | 76.90/77.53 | 96.98/14.13 | 90.62/38.46 |
Table 14: OOD detection performance (AUROC/FPR@95, %) on Swin-B (ImageNet) under the OpenOOD v1.5 protocol. Methods are grouped by resource requirement. The best value in each column is highlighted in bold.
| Method | iNaturalist | NINCO | OpenImage | SSB-Hard | Texture | Avg |
|---|---|---|---|---|---|---|
| Training-data-dependent | ||||||
| ReAct | 88.60/58.96 | 80.24/75.16 | 85.83/62.41 | 68.61/84.90 | 84.05/58.87 | 81.47/68.06 |
| VRA | 81.11/76.37 | 68.84/87.31 | 81.43/72.95 | 60.34/88.61 | 67.28/89.77 | 71.80/83.00 |
| OptFS | 90.82/49.66 | 80.56/72.90 | 90.08/50.97 | 68.90/85.30 | 85.22/58.90 | 83.12/63.55 |
| LAPS | 90.54/60.50 | 80.60/77.78 | 90.32/54.17 | 68.47/86.88 | 86.15/58.56 | 83.22/67.58 |
| Gradient-dependent | ||||||
| AdaSCALE-A | 86.10/54.83 | 79.23/70.53 | 82.94/62.14 | 69.35/82.26 | 77.68/61.15 | 79.06/66.18 |
| AdaSCALE-L | 85.14/61.89 | 79.05/71.96 | 82.33/67.01 | 69.29/83.19 | 76.74/63.58 | 78.51/69.53 |
| Training-free, gradient-free | ||||||
| MSP | 86.46/50.79 | 78.42/71.66 | 81.76/62.34 | 71.30/80.20 | 78.72/65.37 | 79.33/66.07 |
| MaxLogit | 78.89/55.39 | 71.87/72.58 | 70.92/66.17 | 65.22/81.38 | 73.87/62.27 | 72.15/67.56 |
| Energy | 67.79/73.19 | 64.28/79.82 | 60.40/76.75 | 59.27/86.00 | 69.28/66.29 | 64.20/76.41 |
| ASH-S | 15.22/99.69 | 26.43/99.06 | 16.83/99.40 | 35.54/98.21 | 24.15/98.33 | 23.63/98.94 |
| SCALE | 63.10/91.18 | 62.51/89.69 | 66.71/84.48 | 55.97/92.86 | 69.60/79.27 | 63.58/87.50 |
| LTS | 84.82/52.99 | 75.66/72.54 | 79.49/63.65 | 65.41/82.51 | 78.18/62.94 | 76.71/66.93 |
| Anti-coh (Ours) | 91.66/45.54 | 80.24/71.74 | 90.71/48.42 | 67.72/85.20 | 86.14/56.05 | 83.29/61.39 |
Table 15: OOD detection performance (AUROC/FPR@95, %) on SwinV2-B (ImageNet) under the OpenOOD v1.5 protocol. Methods are grouped by resource requirement. The best value in each column is highlighted in bold.
| Method | iNaturalist | NINCO | OpenImage | SSB-Hard | Texture | Avg |
|---|---|---|---|---|---|---|
| Training-data-dependent | ||||||
| ReAct | 92.52/44.05 | 82.85/68.88 | 90.33/49.21 | 72.77/81.37 | 85.87/53.87 | 84.87/59.48 |
| VRA | 87.12/75.12 | 73.58/88.62 | 85.96/74.17 | 65.34/90.31 | 75.44/88.14 | 77.49/83.27 |
| OptFS | 91.93/46.20 | 81.43/74.33 | 90.86/48.99 | 70.41/85.27 | 86.01/55.53 | 84.13/62.06 |
| LAPS | 92.66/48.97 | 82.52/74.97 | 91.61/49.04 | 71.46/85.86 | 87.38/51.13 | 85.13/61.99 |
| Gradient-dependent | ||||||
| AdaSCALE-A | 88.81/45.58 | 80.03/66.43 | 85.61/54.45 | 72.85/78.39 | 78.45/57.34 | 81.15/60.44 |
| AdaSCALE-L | 87.42/51.84 | 79.06/67.25 | 84.30/58.10 | 72.93/77.65 | 76.99/58.94 | 80.14/62.76 |
| Training-free, gradient-free | ||||||
| MSP | 89.00/46.42 | 80.95/68.94 | 84.65/57.78 | 73.30/78.81 | 80.83/62.54 | 81.75/62.90 |
| MaxLogit | 85.44/46.96 | 77.31/68.07 | 78.76/57.84 | 70.16/78.30 | 78.91/58.26 | 78.12/61.89 |
| Energy | 77.87/62.67 | 72.14/72.88 | 71.44/67.08 | 66.41/81.83 | 76.25/59.72 | 72.82/68.84 |
| ASH-S | 12.06/99.73 | 23.61/98.55 | 13.75/99.63 | 30.08/98.61 | 22.58/99.11 | 20.41/99.13 |
| SCALE | 50.23/90.69 | 49.15/91.66 | 48.04/89.70 | 44.58/95.98 | 64.20/78.99 | 51.24/89.40 |
| LTS | 90.87/37.50 | 77.90/66.91 | 84.06/54.90 | 68.17/79.26 | 77.29/64.98 | 79.66/60.71 |
| Anti-coh (Ours) | 93.83/33.74 | 82.39/68.95 | 92.01/42.43 | 70.13/82.97 | 86.92/51.90 | 85.06/56.00 |
Table 16: OOD detection performance (AUROC/FPR@95, %) on ViT-B/16 (ImageNet) under the OpenOOD v1.5 protocol. Methods are grouped by resource requirement. The best value in each column is highlighted in bold.
| Method | iNaturalist | NINCO | OpenImage | SSB-Hard | Texture | Avg |
|---|---|---|---|---|---|---|
| Training-data-dependent | ||||||
| ReAct | 86.00/65.22 | 75.47/78.60 | 84.23/64.88 | 63.19/88.30 | 84.67/57.04 | 78.71/70.81 |
| VRA | 17.86/98.99 | 42.69/92.89 | 42.53/90.37 | 37.52/96.73 | 66.39/73.21 | 41.40/90.44 |
| OptFS | 89.92/56.08 | 80.51/74.63 | 88.22/60.09 | 66.18/87.22 | 86.44/56.86 | 82.25/66.98 |
| LAPS | 87.21/68.73 | 78.06/78.46 | 86.48/64.77 | 63.63/88.88 | 85.86/56.67 | 80.25/71.50 |
| Gradient-dependent | ||||||
| AdaSCALE-A | 84.77/59.27 | 76.48/73.80 | 83.45/60.77 | 68.03/85.81 | 80.38/60.53 | 78.62/68.03 |
| AdaSCALE-L | 79.84/74.55 | 75.30/76.56 | 80.76/67.06 | 66.87/87.34 | 76.56/66.47 | 75.87/74.40 |
| Training-free, gradient-free | ||||||
| MSP | 88.16/51.61 | 78.08/73.32 | 84.85/59.96 | 69.03/84.77 | 83.00/60.27 | 80.62/65.99 |
| MaxLogit | 85.25/52.38 | 72.39/74.21 | 81.61/58.82 | 64.45/85.72 | 81.70/56.86 | 77.08/65.60 |
| Energy | 79.26/64.06 | 66.05/78.45 | 76.49/65.05 | 59.16/88.16 | 79.32/58.46 | 72.05/70.83 |
| ASH-S | 9.75/99.96 | 22.87/99.42 | 18.19/99.60 | 34.41/97.91 | 29.21/98.48 | 22.89/99.07 |
| SCALE | 73.62/69.13 | 61.34/79.94 | 72.51/67.33 | 56.78/88.75 | 77.31/59.36 | 68.31/72.90 |
| LTS | 88.89/46.28 | 75.46/72.97 | 83.44/59.99 | 64.36/85.13 | 84.59/52.80 | 79.35/63.43 |
| Anti-coh (Ours) | 91.22/49.08 | 80.99/72.83 | 89.13/56.73 | 65.10/87.06 | 88.16/50.20 | 82.92/63.18 |
Table 17: OOD detection performance (AUROC/FPR@95, %) on ConvNeXt-B (ImageNet) under the OpenOOD v1.5 protocol. Methods are grouped by resource requirement. The best value in each column is highlighted in bold.
| Method | iNaturalist | NINCO | OpenImage | SSB-Hard | Texture | Avg |
|---|---|---|---|---|---|---|
| Training-data-dependent | ||||||
| ReAct | 87.73/68.54 | 81.32/75.28 | 82.92/73.48 | 73.79/84.36 | 74.73/73.09 | 80.10/74.95 |
| VRA | 74.22/78.71 | 68.00/85.20 | 75.69/74.51 | 55.73/91.36 | 71.83/74.68 | 69.10/80.89 |
| OptFS | 92.81/41.73 | 84.04/68.48 | 91.07/48.80 | 73.90/82.44 | 85.66/55.59 | 85.50/59.41 |
| LAPS | 91.67/60.68 | 83.30/75.25 | 90.35/59.19 | 73.45/87.89 | 85.03/58.10 | 84.76/68.22 |
| Gradient-dependent | ||||||
| AdaSCALE-A | 91.44/49.10 | 84.12/65.14 | 88.61/60.31 | 75.29/75.84 | 78.80/68.63 | 83.65/63.81 |
| AdaSCALE-L | 88.84/71.72 | 83.41/70.74 | 87.89/70.22 | 74.42/79.19 | 78.52/75.04 | 82.61/73.38 |
| Training-free, gradient-free | ||||||
| MSP | 89.51/44.25 | 81.07/66.49 | 83.15/59.26 | 75.38/76.11 | 72.53/67.62 | 80.33/62.75 |
| MaxLogit | 82.68/57.41 | 76.58/69.39 | 73.50/68.81 | 72.90/76.86 | 63.33/73.39 | 73.80/69.17 |
| Energy | 55.97/90.24 | 64.43/82.68 | 52.95/89.38 | 65.67/84.36 | 49.12/88.40 | 57.63/87.01 |
| ASH-S | 4.49/99.76 | 29.22/97.16 | 22.87/97.61 | 33.64/97.85 | 42.78/92.87 | 26.60/97.05 |
| SCALE | 57.62/98.73 | 67.77/90.66 | 65.35/92.05 | 61.35/92.97 | 69.53/86.10 | 64.32/92.10 |
| LTS | 91.64/38.85 | 82.52/62.25 | 83.71/60.16 | 73.04/77.31 | 70.96/71.56 | 80.37/62.02 |
| Anti-coh (Ours) | 93.66/37.43 | 84.56/68.10 | 91.98/46.65 | 73.87/82.23 | 87.53/52.25 | 86.32/57.33 |
Table 18: OOD detection performance (AUROC/FPR@95, %) on DeiT3-B (ImageNet) under the OpenOOD v1.5 protocol. Methods are grouped by resource requirement. The best value in each column is highlighted in bold.
| Method | iNaturalist | NINCO | OpenImage | SSB-Hard | Texture | Avg |
|---|---|---|---|---|---|---|
| Training-data-dependent | ||||||
| ReAct | 79.41/80.53 | 74.77/84.62 | 76.89/81.40 | 63.84/90.18 | 78.73/74.20 | 74.73/82.19 |
| VRA | 33.04/97.80 | 45.76/91.94 | 42.29/93.09 | 46.84/94.63 | 38.88/96.84 | 41.36/94.86 |
| OptFS | 91.61/43.64 | 82.07/70.70 | 89.09/53.03 | 69.01/84.26 | 84.77/57.78 | 83.31/61.89 |
| LAPS | 92.06/50.68 | 82.40/73.48 | 89.46/59.56 | 69.45/87.38 | 85.66/61.83 | 83.81/66.59 |
| Gradient-dependent | ||||||
| AdaSCALE-A | 90.03/45.91 | 80.81/70.48 | 88.27/52.23 | 72.07/81.86 | 82.74/54.80 | 82.78/61.06 |
| AdaSCALE-L | 89.78/49.95 | 80.04/74.80 | 87.09/63.58 | 72.45/83.53 | 81.81/55.69 | 82.23/65.51 |
| Training-free, gradient-free | ||||||
| MSP | 91.24/41.57 | 81.33/70.18 | 87.19/54.03 | 72.37/80.68 | 82.91/58.78 | 83.01/61.05 |
| MaxLogit | 90.02/43.84 | 79.08/71.96 | 85.04/56.68 | 71.00/82.04 | 82.29/55.99 | 81.49/62.10 |
| Energy | 84.76/67.37 | 74.91/82.65 | 79.63/74.06 | 68.70/87.96 | 80.56/63.05 | 77.71/75.02 |
| ASH-S | 53.54/87.52 | 52.45/91.14 | 52.96/88.84 | 56.72/92.23 | 45.63/93.62 | 52.26/90.67 |
| SCALE | 87.45/53.05 | 77.59/75.48 | 85.27/59.08 | 66.36/86.23 | 85.77/51.60 | 80.49/65.09 |
| LTS | 90.71/41.36 | 79.40/71.35 | 85.71/54.88 | 71.00/81.93 | 83.41/54.22 | 82.04/60.75 |
| Anti-coh (Ours) | 92.34/35.53 | 80.43/69.79 | 88.01/50.52 | 71.09/81.49 | 85.35/48.74 | 83.44/57.21 |
Table 19: OOD detection performance (AUROC/FPR@95, %) on EfficientNet-B1 (ImageNet) under the OpenOOD v1.5 protocol. Methods are grouped by resource requirement. The best value in each column is highlighted in bold.
| Method | iNaturalist | NINCO | OpenImage | SSB-Hard | Texture | Avg |
|---|---|---|---|---|---|---|
| Training-data-dependent | ||||||
| ReAct | 85.19/82.48 | 73.82/86.66 | 84.57/79.68 | 61.54/91.80 | 83.41/86.19 | 77.71/85.36 |
| VRA | 84.33/74.80 | 72.38/81.08 | 84.97/68.08 | 61.32/89.98 | 88.64/59.29 | 78.33/74.65 |
| OptFS | 91.37/44.46 | 79.01/74.79 | 89.66/50.99 | 65.78/87.45 | 92.30/35.62 | 83.62/58.66 |
| LAPS | 86.54/69.70 | 74.68/82.19 | 85.95/67.41 | 63.96/89.22 | 85.91/63.97 | 79.41/74.50 |
| Gradient-dependent | ||||||
| AdaSCALE-A | 83.37/59.15 | 74.24/75.77 | 84.67/59.07 | 71.45/81.55 | 79.20/65.66 | 78.59/68.24 |
| AdaSCALE-L | 77.65/79.36 | 69.77/85.23 | 81.70/72.57 | 69.58/85.68 | 77.47/76.35 | 75.23/79.84 |
| Training-free, gradient-free | ||||||
| MSP | 85.86/55.77 | 78.60/73.78 | 83.35/62.40 | 70.71/82.93 | 78.82/66.67 | 79.47/68.31 |
| MaxLogit | 80.91/63.73 | 73.28/76.51 | 78.82/67.34 | 67.58/83.28 | 71.31/72.96 | 74.38/72.76 |
| Energy | 70.54/87.57 | 66.12/87.77 | 70.99/83.52 | 63.51/88.10 | 61.84/89.45 | 66.60/87.28 |
| ASH-S | 45.07/99.83 | 41.72/99.69 | 46.01/99.08 | 47.91/97.93 | 58.99/96.44 | 47.94/98.59 |
| SCALE | 49.45/99.59 | 43.47/99.52 | 49.71/98.48 | 48.47/97.87 | 62.85/93.87 | 50.79/97.87 |
| LTS | 68.76/85.75 | 58.82/90.88 | 67.44/83.51 | 58.54/90.55 | 68.06/83.21 | 64.32/86.78 |
| Anti-coh (Ours) | 90.11/45.42 | 78.51/75.08 | 89.33/48.16 | 62.83/88.19 | 91.84/30.55 | 82.52/57.48 |
Table 20: OOD detection performance (AUROC/FPR@95, %) on MobileNetV2 (ImageNet) under the OpenOOD v1.5 protocol. Methods are grouped by resource requirement. The best value in each column is highlighted in bold.
| Method | iNaturalist | NINCO | OpenImage | SSB-Hard | Texture | Avg |
|---|---|---|---|---|---|---|
| Training-data-dependent | ||||||
| ReAct | 92.43/45.20 | 77.46/78.96 | 89.58/55.08 | 66.43/87.01 | 90.88/41.03 | 83.36/61.45 |
| VRA | 92.20/45.18 | 77.57/77.27 | 90.90/47.96 | 64.78/87.52 | 94.59/24.27 | 84.01/56.44 |
| OptFS | 91.78/45.68 | 78.07/79.28 | 89.86/54.54 | 66.74/87.06 | 93.45/33.97 | 83.98/60.11 |
| LAPS | 96.07/22.03 | 78.03/70.43 | 90.26/41.01 | 73.52/74.66 | 94.13/28.60 | 86.40/47.35 |
| Gradient-dependent | ||||||
| AdaSCALE-A | 90.89/50.45 | 77.65/77.29 | 91.26/47.43 | 70.99/84.40 | 91.63/37.80 | 84.48/59.47 |
| AdaSCALE-L | 92.23/43.87 | 78.68/74.63 | 92.29/40.68 | 71.19/83.17 | 94.09/26.63 | 85.70/53.80 |
| Training-free, gradient-free | ||||||
| MSP | 86.74/59.55 | 77.96/81.69 | 82.07/72.69 | 69.27/87.94 | 78.97/70.89 | 79.00/74.55 |
| MaxLogit | 90.68/53.82 | 77.00/81.42 | 87.11/65.24 | 67.14/87.94 | 86.12/57.30 | 81.61/69.15 |
| Energy | 90.37/55.18 | 76.12/81.80 | 87.08/64.53 | 66.45/88.24 | 86.61/54.24 | 81.33/68.80 |
| ASH-S | 92.63/38.67 | 78.83/73.05 | 91.30/42.03 | 68.14/84.34 | 96.43/15.60 | 85.47/50.74 |
| SCALE | 94.43/30.29 | 79.97/70.98 | 92.15/38.49 | 70.11/82.76 | 96.66/14.63 | 86.66/47.43 |
| LTS | 94.41/30.51 | 80.02/71.54 | 92.14/38.96 | 70.04/82.96 | 96.59/14.61 | 86.64/47.72 |
| Anti-coh (Ours) | 94.98/27.66 | 80.82/69.87 | 92.70/36.83 | 71.00/81.63 | 96.87/14.52 | 87.27/46.10 |
Table 21: OOD detection performance (AUROC/FPR@95, %) on BEiTv2-B (ImageNet) under the OpenOOD v1.5 protocol. Methods are grouped by resource requirement. The best value in each column is highlighted in bold.
| Method | iNaturalist | NINCO | OpenImage | SSB-Hard | Texture | Avg |
|---|---|---|---|---|---|---|
| Training-data-dependent | ||||||
| ReAct | 93.53/32.77 | 82.07/67.85 | 90.64/43.59 | 70.36/81.80 | 88.09/46.44 | 84.94/54.49 |
| VRA | 28.30/98.05 | 38.13/97.45 | 35.32/96.40 | 41.23/95.97 | 51.79/92.48 | 38.95/96.07 |
| OptFS | 94.19/32.36 | 83.79/68.20 | 92.68/38.49 | 69.98/83.04 | 88.41/47.52 | 85.81/53.92 |
| LAPS | 94.23/35.21 | 83.60/70.64 | 92.66/40.87 | 70.21/83.63 | 89.52/43.51 | 86.04/54.77 |
| Gradient-dependent | ||||||
| AdaSCALE-A | 90.45/37.23 | 82.15/62.47 | 89.87/42.70 | 75.34/75.79 | 80.74/51.81 | 83.71/54.00 |
| AdaSCALE-L | 88.02/45.18 | 80.92/64.73 | 89.03/46.60 | 74.85/76.13 | 78.23/55.53 | 82.21/57.63 |
| Training-free, gradient-free | ||||||
| MSP | 90.80/38.29 | 81.93/65.46 | 87.98/48.13 | 73.32/77.89 | 85.03/52.32 | 83.81/56.42 |
| MaxLogit | 89.48/35.20 | 78.40/63.73 | 85.04/45.69 | 70.57/77.37 | 84.06/47.85 | 81.51/53.97 |
| Energy | 86.88/42.58 | 74.76/69.28 | 81.68/52.76 | 67.64/80.40 | 82.65/50.12 | 78.72/59.03 |
| ASH-S | 9.93/99.86 | 22.89/99.35 | 12.17/99.61 | 35.01/97.81 | 20.63/99.10 | 20.13/99.15 |
| SCALE | 72.30/66.23 | 62.86/79.94 | 64.38/74.96 | 60.79/84.78 | 73.88/63.85 | 66.84/73.95 |
| LTS | 87.08/39.80 | 74.46/67.20 | 80.72/52.57 | 67.32/79.26 | 81.57/50.34 | 78.23/57.83 |
| Anti-coh (Ours) | 94.36/30.18 | 83.52/66.74 | 93.06/37.11 | 69.61/82.08 | 89.43/43.00 | 86.00/51.82 |
H LIMITATION
Despite requiring no training data, our method still trails the strongest representation-based methods on backbones with negative penultimate activations, as discussed in Appendix D. Relying solely on the activation and classifier weight of a single test sample, our method cannot exploit the class-conditional statistics that representation-based methods estimate from the training set, and this may impose a fundamental ceiling on how far a training-free method can close this gap. Moreover, our method underperforms several baselines on CIFAR-100 where most methods show a substantial drop in absolute performance relative to CIFAR-10. We suspect that the limited number of training images per class prevents the pretrained model from learning sufficiently discriminative features and thereby limits the reliability of the evaluation on this dataset (see Appendix G). In addition, our method shows a lower performance on SSB-Hard, and addressing this on fine-grained near-OOD datasets is a promising direction for future work.