arXiv:2611.04754cs.CVNov 2026

Manuscript Offprint

arXiv:2611.04754

Bounded AUKS: A Novel Evaluation Metric for Anomaly Detection via Bounded Area Under the Kolmogorov--Smirnov Curve

Yanshuo Zhang, Juan Du

Abstract

Recent literature widely used global metrics such as AUROC and AUPRO to quantify the detection performance. AUROC and AUPRO scores are approaching 100% in some public datasets such as MVTec AD dataset and VisA dataset, which misleadingly suggests that the pixel-level anomaly detection task has already been solved. Threshold-independent metrics represented by AUROC inherently ignore the threshold selection process, which is inevitable in practical applications. Although AUPRO restricts the False Positive rates (FPRs) to an acceptable range, extremely low FPRs can lead to increased false negative rates (FNRs). We argue that there is a lack of metrics capable of quantifying the separation between the anomaly score distributions of normal and anomalous samples, which hinders advancements in anomaly detection. In response, we propose the Bounded Area Under the Kolmogorov–Smirnov curve (Bounded AUKS), a partial integral metric that integrates the difference between TPR and FPR within a data-driven bounded range. Specifically, we introduce AUKS from KS integral as a direct measure of separability between the anomaly score distributions. The bounded range is determined only by score distributions of normal test samples. Lower bound excludes the uninformative high-FPR region. Upper bound avoids evaluation in extreme regions that aggressively push FPR towards zero, which result in a very low recall. Our experiments on 9 models across MVTec AD and VisA datasets show that Bounded AUKS can address the limitations of existing metrics and has a better performance in evaluating unsupervised anomaly detection models.

Keywords: evaluation metrics, distribution separability, threshold selection

*Email: yzhang420@connect.hkust-gz.edu.cn; juandu@ust.hk (corresponding author).

1 Introduction

Anomaly detection is a critical task in the field of vision-based inspection, fundamentally aiming to accurately distinguish anomalies from normals. This task is based on normal patterns, where models must identify anomalous features or behavioral patterns that deviate from normality (Yan et al. 2017, Austin et al. 2024). In visual inspection involving images, videos and 3D point-cloud data, the initial objective is typically to determine whether an anomaly is present at the instance level (Du et al. 2025). However, mere instance-level detection is often insufficient. For example, PointSGRADE combines sparse learning with a graph representation to detect surface anomalies in unstructured 3D point clouds (Tao & Du 2025). In image-based inspection, anomaly localization requires precisely identifying the spatial extent of anomalies at the pixel level (Bertoldo et al. 2024, Rafiei et al. 2023).

In most modern anomaly localization pipelines, models output a continuous anomaly score SS (or a pixel-wise anomaly map), which will be converted into a hard prediction via a decision threshold θ\theta (e.g., predicting anomaly when S>θS > \theta) to obtain actionable decisions in deployment. Notably, the threshold is not an auxiliary detail: it directly determines the precision-recall trade-off, controls the false positive rate (FPR), and the shape of predicted anomaly regions. In unsupervised settings, anomaly labels are not available to calibrate θ\theta on a test set, so the selection of practical thresholds is typically based on anomaly-free statistics (i.e., independent of information on anomalies) (Wilkinghoff & Imoto 2024, Bertoldo et al. 2024). Therefore, the existing evaluation protocol that involves sweeping over thresholds implicitly presumes a plausible set of candidate thresholds.

The rapid development of anomaly detection methods has also raised increasing demands on evaluation metrics. Specifically, after converting continuous anomaly scores into binary predictions through a decision threshold, model performance can be assessed using conventional metrics such as Accuracy and F1 score, as defined in Supplementary Ma-terial Section S2, Table S2. Meanwhile, anomaly detection studies also commonly adopt threshold-independent metrics to evaluate model performance from a global perspective, including the Area Under the Receiver Operating Characteristic Curve (AUROC) (Fawcett 2006, Bergmann et al. 2021) and the Area Under the Precision-Recall Curve (AUPR) (Davis & Goadrich 2006). For the task of anomaly localization, specialized evaluation metrics have been developed to assess region-level detection performance. A prominent example is the Area Under the Per-Region Overlap (AUPRO) curve (Bergmann et al. 2021), which emphasizes detection sensitivity at low false positive rates (FPR), a regime of particular importance for practical industrial deployment. Despite these advances, such evaluation metrics still suffer from three major limitations:

  • Inflated Scores: The AUROC scores are approaching 100% on the open dataset MVTec Anomaly Detection (MVTec AD) (Bergmann et al. 2019, 2021) and Vision Anomaly (VisA) (Zou et al. 2022), which misleadingly suggests that the pixel-level anomaly detection task has already been solved (Bertoldo et al. 2024). This is an inflated figure.

  • Lack of Separability Measure: Existing metrics primarily assess ranking quality or detection accuracy, but they do not explicitly quantify the degree of separation between the score distributions of normal and anomalous samples. In other words, they cannot indicate whether the two distributions are well separated with minimal overlap.

  • Disregard for Threshold Selection: Threshold-dependent metrics such as F1-max capture only the single best operating point, offering no insight into performance stability across thresholds. AUROC bypasses threshold selection entirely, providing no deployment guidance. AUPRO restricts evaluation to a fixed low-FPR regime, a choice that may not suit all applications.

Table 1: Recent high-performing anomaly detection models with near-perfect AUROC scores on MVTec AD and VisA benchmarks. Pixel-level scores are shown.

ModelFirst PublicationMVTec ADAUROCVisAAUROC
Dinomaly (Guo et al. 2025)2025-0698.699.1
HETMM (Chen, Xie, Yang & Lai 2025)2025-0599.099.1
URD (Liu et al. 2025)2025-0299.099.1
GLASS (Chen, Luo, Lv & Zhang 2025)2024-1199.398.8
GLAD (Yao et al. 2025)2024-1098.698.6

Regarding the first limitation, Table 1 presents the pixel-level AUROC results of representative recent anomaly detection models on the MVTec AD and VisA datasets. As illustrated, many recent state-of-the-art (SOTA) models report near-perfect pixel-level AUROC scores on MVTec AD and VisA benchmarks. However, these high AUROC values often obscure significant shortcomings in anomaly localization performance.

Figure

Figure 1: Comparison of ideal score distributions under different metrics. (a) A narrow margin under AUROC = 1.0. (b) A wide margin under AUROC = 1.0. Both examples in (a) and (b) achieve the same AUROC, but they differ fundamentally in robustness of threshold selection. (c) The strict requirement for AUKS = 1.0, in which normal-scores are 0 and anomalous-scores are 1, underscores that a distinct separation between distributions makes the threshold easier to determine. (d) Bounded AUKS = 1.0. A perfect value requires the normal distribution to collapse to a constant c and all anomalies to exceed c.

Regarding the second limitation, perfect anomaly detection fundamentally requires separating positive (anomalous) and negative (normal) distributions of anomaly scores completely.

Both Lunardi et al. (2025) and Jiang et al. (2023) emphasize such similar concepts. Without explicitly measuring score-distribution separability, one cannot determine whether a high evaluation score arises from a genuine separation between normal and anomalous samples or merely from a favorable ranking effect. Moreover, when the two score distributions overlap substantially, samples in the overlapping region become ambiguous, making reliable discrimination more difficult (Metzner et al. 2022). However, no existing metric directly quantifies such distributional separability. AUROC assesses score ranking (Maurer & Pontil 2020), while AUPR and AUPRO evaluate precision-recall trade-offs and region overlap, respectively.

Regarding the third limitation, existing metrics largely bypass the candidate threshold selection problem. AUROC is threshold-independent because it integrates over all thresholds, ignoring the difficulty of selecting possible thresholds in practice. As shown in Fig. 1 (a–b), AUROC= 1.0 can correspond to either a negligibly small or a wide feasible threshold margin, but a larger margin clearly provides better robustness in threshold selection. AUPRO partially addresses threshold selection by restricting the evaluation to a low-FPR range (e.g. FPR ≤ 0.05). However, this range includes extremely low FPRs corresponding to very high thresholds, which can lead to an unacceptable increase in the False Negative Rate (FNR) or decrease in the recall. A detailed visual analysis is provided in Supplementary Material Section S6. Meanwhile, calculating FPR is a posterior process that requires access to anomaly labels, which is not possible in common unsupervised settings. Consequently, existing metrics do not capture model performance under realistic deployment conditions, where the candidate threshold range is necessarily derived from anomaly-free samples alone.

To address these limitations, we propose the Bounded Area Under the Kolmogorov–Smirnov (Bounded AUKS) curve. We derive AUKS from the Kolmogorov–Smirnov(KS) integral as a direct measure of separability between normal and anomalous scores dis-tributions, equivalent to the 1-Wasserstein distance. We define the candidate threshold interval exclusively from normal samples, consistent with the unsupervised deployment setting in which anomalous labels are unavailable for threshold selection. The lower bound θmin⁡=Median+αMAD\theta_{\min} = \text{Median} + \alpha \text{MAD} is motivated by robust statistics and filters out the low-threshold region that is dominated by high FPR yet provides limited discriminative information. The upper bound θmax⁡\theta_{\max} defines the upper limit of the interval and excludes excessively high thresholds, since the segmentation corresponding to the thresholds near the maximum value can be overly conservative and the recall can be markedly reduced. We use Extreme Value Theory(EVT) to determine θmax⁡\theta_{\max} at tail-risk level qq because this upper bound is governed by rare upper-tail of normal-scores. Bounded AUKS integrates the difference between TPR and FPR strictly over the interval defined by the bounded thresholds region.

The contributions of this paper are as follows:

  • We propose Bounded AUKS, a bounded KS-integral metric that quantifies anomaly score distribution separability within a threshold range, addressing the limitations of ranking-based evaluation.

  • We introduce anomaly-free threshold bounds inferred solely from anomaly scores of normal test samples, including a robust lower bound and an EVT-based upper bound, to define a practically relevant evaluation interval without requirements of known anomalies.

  • We provide numerical studies on MVTec AD and VisA datasets, demonstrating that Bounded AUKS has a better performance in evaluating unsupervised anomaly detection models.

The remainder of this paper is organized as follows. Section 2 reviews related work on anomaly detection evaluation metrics and threshold selection. Section 3 presents the pro-posed Bounded AUKS and its properties. Section 4 describes the experimental settings and reports the main results. Section 5 concludes the paper.

References (35)