WorksComputer Science
UnifiedAD: One-Shot Anomaly Detection across Modalities via Evidence Calibration
Abstract
Both single-modal and multi-modal anomaly detection aim to identify deviations from normal patterns, providing a common foundation for unified detection. However, existing methods rely on modality-specific modeling and scoring, making it difficult to obtain comparable anomaly evidence with limited normal references. To that end, we propose UnifiedAD, which unifies single-modal and multi-modal anomaly detection through anomaly evidence calibration, requiring only one normal reference per target category and no gradient updates. Specifically, we first derive neuron-level discriminative priors from normal and anomalous samples in an independent auxiliary dataset and combine them with neuron response consistency under normality-preserving transformations of the target reference to select reliable neurons, termed anomaly neurons, and identify anomaly directions. Next, we construct a low-rank normal subspace for each layer and modality from the selected neurons' spatial responses to the reference and quantify query feature deviations from normal structure using projection residuals. Finally, we separately calibrate projection residuals and anomaly-direction responses using the response distributions obtained from the normal reference and its transformations, converting them into comparable anomaly evidence for aggregation across layers and modalities. Experiments on multiple anomaly detection benchmarks demonstrate that UnifiedAD achieves strong performance in both image-level anomaly detection and pixel-level anomaly localization.
Introduction
Both single-modal and multi-modal anomaly detection [9, 23, 39, 43, 44] aim to identify deviations from normal patterns, providing a common foundation for unified detection. Transferable representations from pretrained vision models [33, 34] provide a foundation for anomaly detection, enabling normal patterns of a target category to be characterized using few normal reference samples. Therefore, developing a unified detection mechanism requiring only one normal reference can help reduce the data and adaptation requirements for new categories.
Existing methods [18, 26, 45] typically develop input-specific normality models and anomaly scoring mechanisms, limiting their ability to handle their inputs within a unified detection framework. As shown in Figure 1(a), single-modal methods [10, 11, 22, 35, 41, 43] typically construct feature memory banks, prototypes, or statistical distributions from normal samples and identify anomalies through feature matching or distance measures. Multi-modal methods [5, 7, 15, 28, 32, 38] exploit complementary information through feature fusion, cross-modal prediction, or reconstruction, as illustrated in Figure 1(b). With only one normal reference per target category, limited observations constrain normal structure estimation [25, 27], while differences in response scales and normal variability across modalities hinder the direct comparison and aggregation of raw deviations [24]. Therefore, unified detection with a single normal reference must address two challenges: reliably modeling normal structure and constructing comparable anomaly evidence.

Figure 1. Figure 1 Motivation for UnifiedAD. (a) Single-modal methods typically lack direct multi-modal support. (b) Multi-modal methods often require multiple normal pairs and training. (c) UnifiedAD calibrates anomaly evidence for unified detection using one normal reference per target category.
These challenges motivate us to view anomalies from a comparative perspective: whether a change is anomalous should be assessed relative to the corresponding normal reference. Deviations of the same magnitude may be normal in a modality with high normal variability but anomalous in one with stable responses. We therefore hypothesize that the rarity of a deviation under its corresponding normal response distribution can serve as a common scale for anomaly assessment across modalities. This motivates us to retain the normal response structure of each modality while constructing comparable anomaly evidence relative to its normal variability, thereby unifying anomaly assessment across input settings.
To this end, we propose UnifiedAD, which unifies single-modal and multi-modal anomaly detection through anomaly evidence calibration, requiring only one normal reference per target category and no gradient updates. Specifically, we first derive neuron-level discriminative priors from normal and anomalous samples in an independent auxiliary dataset
and combine them with neuron response consistency under normality-preserving transformations of the target normal reference to select discriminative and stable neurons and identify anomaly directions. We then construct a low-rank normal subspace for each layer and modality from the selected neurons’ spatial responses to the reference and quantify query feature deviations from normal structure using projection residuals. Finally, we use the response distributions obtained from the normal reference and its transformations to calibrate projection residuals and anomaly-direction responses separately, yielding comparable anomaly evidence that we aggregate across layers and modalities. Experiments on multiple anomaly detection benchmarks demonstrate that UnifiedAD achieves strong performance in both image-level anomaly detection and pixel-level anomaly localization. Our main contributions are as follows:
We propose UnifiedAD, which leverages discriminative priors from auxiliary data to unify single-modal and multi-modal anomaly detection, requiring only one normal reference per target category and no gradient updates.
We devise anomaly neuron selection, low-rank normal subspace modeling, and calibration based on normal variability to convert responses across modalities into comparable anomaly evidence for unified aggregation.
We validate the effectiveness of UnifiedAD in image-level anomaly detection and pixel-level anomaly localization across multiple benchmarks and assess the contribution of each component through ablation studies.
Related Work
Anomaly Detection with Pretrained Features. Alongside reconstruction-based approaches [11, 37, 42], methods based on pretrained features exploit transferable representations to model normal patterns and identify anomalies through feature deviations [2, 29, 43]. In single-modal settings, representative methods [10, 22, 35] primarily adopt memory matching or statistical modeling. PatchCore [35] stores representative normal patch features and computes anomaly scores through nearest-neighbor retrieval, while PaDiM [10] models multi-layer features at each spatial location with multivariate Gaussian distributions and uses Mahalanobis distance [31] for detection and localization. For few-shot detection, SubspaceAD [22] constructs a normal subspace from frozen visual features using principal component anal...ysis (PCA) [21], enabling normal structure modeling in the one-shot setting. In multi-modal settings, M3DM [38] combines feature fusion and decision-level fusion through multiple memory banks, whereas CFM [7] learns cross-modal feature mappings and identifies anomalies through inconsistencies between observed and predicted features. However, anomaly scoring in these methods [8, 26] depends on their respective feature spaces and normality models, and raw deviations across layers and modalities are generally not directly comparable.
Unified Anomaly Detection. Unified anomaly detection [13, 14, 16, 30, 40, 45] aims to handle different categories, domains, or task settings through shared models or inference mechanisms, although the scope of unification varies across studies. UniAD [40], MambaAD [16], and Dinomaly [14] explore using a single model for multiple object categories, reducing the need for separate category-specific detectors. INP-Former [30] models intrinsic normal prototypes to support single-class, multi-class, and few-shot settings. For cross-domain detection, InCTRL [45] learns a transferable residual scoring model from labeled auxiliary data and performs inference using a few normal references from the target dataset, without further training. UniVAD [13] combines component segmentation, patch matching, and component relation modeling for cross-domain detection without target-domain training, including the single-normal-reference setting. However, these methods do not directly unify single-modal and multi-modal inference using a single normal reference per target category.
Method
Overall Framework
As shown in Figure 2, we propose UnifiedAD, a unified one-shot anomaly detection framework for single-modal and multi-modal inputs. Given a target category and an active modality set , we denote the normal support and query samples by and , respectively. UnifiedAD extracts multi-layer features using frozen encoders and selects reliable neurons based on anomaly discriminability and transformation stability (§ 3.2). It then constructs low-rank normal subspaces from the support sample and calibrates query deviations into comparable anomaly evidence for unified aggregation (§ 3.3).

Figure 2. Overview of UnifiedAD. The framework consists of two stages: (1) Evidence-Guided Neuron Selection, which selects discriminative and stable neurons; and (2) One-Shot Calibrated Subspace Inference, which constructs normal subspaces and calibrates anomaly evidence for unified detection across modalities.
Evidence-Guided Neuron Selection
For each modality , an input adapter maps an arbitrary view into an encoder-compatible representation. A frozen encoder [33] then extracts multi-layer features:
where denotes the output of the modality encoder at layer , is the set of selected layers, and and are the numbers of patches and feature neurons, respectively. For each modality and feature layer , each neuron is evaluated using a unified reliability-weighted discriminability criterion. Let denote the signed anomaly effect estimated from auxiliary normal and anomalous samples using activation shift, anomaly-localization consistency, and directional agreement across categories. We define its anomaly discriminability as . To evaluate transformation stability, we apply a modality-valid normality-preserving transformation to the support observation and obtain . Let and denote the spatially aligned feature matrices. The transformation stability of neuron is defined as
where indexes spatial patches and is a small constant added for numerical stability. Anomaly discriminability and transformation stability are combined into a unified neuron selection score:
where denotes neuron-wise score normalization within layer . The signed effect is sparsified and normalized to obtain the auxiliary anomaly direction
where denotes element-wise multiplication. The selected anomaly neuron set is
where returns the indices of the highest-scoring neurons, which we refer to as anomaly neurons. This selection is performed independently for each active modality.
One-Shot Calibrated Subspace Inference
We gather the selected-neuron responses as and standardize them using the support statistics:
where denote the neuron-wise center and scale, respectively. We perform an economy-size singular value decomposition (SVD) [12], . Given a variance-retention threshold , we select the smallest rank whose cumulative explained variance [21] reaches . The resulting normal basis is
where . Let denote the query feature matrix. We select and standardize the query features using the support statistics and , obtaining for each patch . Its projection onto the normal basis is
The corresponding normalized projection residual is
We apply the same standardization and projection to the aligned calibration view to obtain the reference residuals . The query residual is then transformed into empirical-tail evidence:
where is the indicator function. The auxiliary anomaly-direction response for each query patch is calculated as
where denotes the query feature standardized across all neurons. Applying (10) to this response and its calibration reference yields the calibrated auxiliary-direction evidence . After aligning the layer-wise evidence maps to a common patch grid, the evidence for modality is aggregated across layers:
where weights the auxiliary anomaly-direction evidence. Let denote the fusion weight of modality . The fused patch-level anomaly evidence is:
We reshape and upsample to obtain the pixel-level anomaly map , and compute the image-level anomaly score as .
Experiments and Analysis
Datasets. Following prior work [17, 20, 22], we evaluate single-modal anomaly detection on MVTec-AD [3] and VisA [46] using one normal reference per category. To keep auxiliary data separate from the evaluation benchmark, we adopt a cross-dataset protocol for neuron selection: discriminative priors are derived from VisA when evaluating on MVTec-AD and from MVTec-AD when evaluating on VisA. For multimodal industrial anomaly detection, we evaluate on all 10 categories of MVTec 3D-AD [4], using one spatially aligned normal RGB–XYZ pair per category.
Metrics. Following the evaluation protocols [17, 22], we report the area under the receiver operating characteristic curve (AUROC), average precision (AP), and the maximum F1 score across thresholds (-max) for image-level anomaly detection. For pixel-level localization, we report the AUROC, AP, F1-max,
and the area under the AUPRO. On MVTec 3D-AD [4], we report AUROC, AP, and F1-max at the image level, and AUROC, AP, F1-max, and AUPRO at the pixel level. We repeat each one-shot UnifiedAD experiment three times with independently sampled normal references and report the mean ± standard deviation.
Hyperparameters. Following SubspaceAD [22], we use a frozen DINOv2 ViT-g/14 (DINOv2-G) backbone [33] to encode both RGB images and geometry representations. We select the top neurons per layer and set the retained-variance thresholds to and . The auxiliary-direction weights are and , and RGB and geometry evidence receive equal weights during multimodal fusion. For organized XYZ inputs, we normalize depth using its 1st and 99th percentiles and concatenate it with normalized surface slopes along the and axes to form a three-channel geometry representation. For BrainAD [1], we use one normal slice as the reference and exclude all slices from the same patient from evaluation. For MVTec 3D-AD [4], transferable and discriminative priors for neuron selection are derived from VisA. Adaptation involves feature-statistic estimation and economy-size SVD without gradient updates.
| Method | Image-Level AUROC ↑ | Image-Level AP ↑ | Image-Level -max ↑ | Pixel-Level AUROC ↑ | Pixel-Level AP ↑ | Pixel-Level -max ↑ | Pixel-Level AUPRO ↑ |
| CFM [7] | 67.5 | 89.7 | 90.4 | 91.4 | 28.9 | 32.7 | 90.5 |
| CIF [28] | 72.0 | 88.0 | 89.4 | 86.1 | 12.5 | 17.6 | 82.9 |
| M3DM [38] | 73.9 | 91.2 | 90.7 | 90.2 | 28.0 | 32.1 | 90.2 |
| CFR [15] | 74.0 | 89.8 | 90.0 | 92.3 | 31.1 | 35.6 | 90.4 |
| CMDS-AD [5] | 79.6 | 88.9 | 90.5 | 94.2 | 30.8 | 32.6 | 88.4 |
| UnifiedAD (Ours) | 92.8 ± 0.3 | 97.7 ± 0.1 | 93.9 ± 0.1 | 97.6 ± 0.1 | 62.5 ± 0.9 | 60.4 ± 1.0 | 97.5 ± 0.1 |
Table 2. Multi-Modal Anomaly Detection Results on MVTec 3D-AD. All values are percentages. Baselines are evaluated once; UnifiedAD is reported as mean ± sample standard deviation over three support seeds. The best result in each column is in bold.
Quantitative Comparison with SOTA Methods
Single-Modal. To evaluate UnifiedAD in single-modal anomaly detection, we conduct experiments on MVTec-AD [3] and VisA [46] benchmarks under the one-shot setting. As shown in Table 1, UnifiedAD achieves the best performance across all image-level metrics and most pixel-level metrics on both benchmarks. Specifically, UnifiedAD achieves pixel-level AP scores of 68.4% and 52.2% on MVTec-AD and VisA, outperforming the strongest baselines by 7.2 and 11.8 percentage points, respectively. These results demonstrate the effectiveness of UnifiedAD in modeling normal feature structures and identifying anomalous deviations using only a single normal reference sample.
| Level | Method | MVTec-AD [3] | VisA [46] | ||||||
| AUROC ↑ | AP ↑ | -max ↑ | AUPRO ↑ | AUROC ↑ | AP ↑ | -max ↑ | AUPRO ↑ | ||
| Image | AdaCLIP [6] | 89.2 | 96.4 | 90.6 | N/A | 79.7 | 79.6 | 83.2 | N/A |
| VisualAD [17] | 90.1 | 94.8 | 92.4 | N/A | 83.1 | 86.8 | 81.4 | N/A | |
| WinCLIP [19] | 93.1 | 96.5 | 93.7 | N/A | 83.8 | 85.1 | 83.1 | N/A | |
| FoundAD [43] | 96.1 | 97.9 | 96.6 | N/A | 92.6 | 92.7 | 89.9 | N/A | |
| SubspaceAD [22] | 97.1 | 98.6 | 96.8 | N/A | 93.4 | 92.6 | 89.7 | N/A | |
| DCP-SFR [20] | 97.3 | 98.8 | 96.7 | N/A | 92.0 | 93.7 | 87.8 | N/A | |
| UnifiedAD (Ours) | 97.9±0.2 | 99.0±0.1 | 96.9±0.1 | N/A | 96.3±0.1 | 96.8±0.1 | 92.9±0.1 | N/A | |
| Pixel | AdaCLIP [6] | 88.7 | 41.0 | 43.4 | 47.6 | 95.1 | 29.2 | 33.8 | 71.3 |
| VisualAD [17] | 91.3 | 45.4 | 47.4 | 88.6 | 95.3 | 29.9 | 35.2 | 88.2 | |
| WinCLIP [19] | 95.2 | 18.2 | 55.9 | 87.1 | 96.4 | 5.4 | 41.3 | 85.1 | |
| FoundAD [43] | 96.8 | 56.8 | 57.8 | 92.8 | 99.7 | 39.7 | 47.7 | 98.0 | |
| DCP-SFR [20] | 96.9 | 61.2 | 60.7 | 92.7 | 98.2 | 40.4 | 44.9 | 93.3 | |
| SubspaceAD [22] | 97.5 | 59.6 | 60.9 | 93.7 | 98.2 | 37.4 | 44.8 | 93.5 | |
| UnifiedAD (Ours) | 97.8±0.1 | 68.4±0.5 | 64.9±0.6 | 94.7±0.1 | 99.2±0.0 | 52.2±0.8 | 54.2±0.5 | 95.1±0.2 |
Table 1. Table 1 Single-Modal Anomaly Detection Results on MVTec-AD and VisA. All values are percentages. Our results are reported as mean ± standard deviation. Methods are ordered by MVTec-AD AUROC in ascending order within each evaluation level. The best result in each column is highlighted in bold, and our method is shaded in light green. N/A denotes metrics that are not applicable, while – indicates unavailable results.
Multi-Modal. To evaluate the effectiveness of UnifiedAD in multi-modal anomaly detection, we conduct experiments on the MVTec 3D-AD [4] benchmark under the one-shot setting. As shown in Table 11, UnifiedAD consistently outperforms existing baseline methods across all image-level and pixel-level evaluation metrics. Specifically, UnifiedAD achieves image-level AUROC and AP scores of 92.8% and 97.7%, outperforming the strongest baselines by 13.2 and 6.5 percentage points, respectively, while achieving a pixel-level AP of 62.5%, exceeding the strongest baseline by 31.4 percentage points. These results demonstrate that UnifiedAD effectively integrates calibrated anomaly evidence from heterogeneous modalities, enabling accurate anomaly detection and localization using one normal reference pair per target category.
| Method | Image-Level | Pixel-Level | |||||
| AUROC ↑ | AP ↑ | F1-max ↑ | AUROC ↑ | AP ↑ | F1-max ↑ | AUPRO ↑ | |
| UnifiedAD (CLIP-L [34]) | 83.9±1.5 | 95.2±0.5 | 91.1±0.2 | 98.0±0.0 | 38.8±0.4 | 42.9±0.3 | 93.2±0.2 |
| UnifiedAD (DINOv3-L [36]) | 89.3±0.6 | 97.0±0.2 | 93.3±0.3 | 98.9±0.0 | 56.4±1.5 | 56.5±0.9 | 96.6±0.1 |
| UnifiedAD (DINOv2-G [33]) | 92.8±0.3 | 97.7±0.1 | 93.9±0.1 | 97.6±0.1 | 62.5±0.9 | 60.4±1.0 | 97.5±0.1 |
Table 11. Backbone Generalizability of UnifiedAD on MVTec 3D-AD. We evaluate UnifiedAD with three different visual backbones: CLIP-L [34], DINOv2-G [33], and DINOv3-L [36]. Results are reported as mean ± sample standard deviation over three support seeds. All values are percentages. The best result in each column is highlighted in bold.
Qualitative Comparison with SOTA Methods
Single-Modal. To qualitatively evaluate the anomaly localization capability of UnifiedAD in single-modal settings, we visualize the anomaly maps produced by different methods. As shown in Figure 3, existing methods often exhibit scattered anomalous responses in normal regions or fail to accurately delineate defect boundaries. In contrast, UnifiedAD produces more concentrated anomaly responses that closely align with the ground-truth masks while effectively suppressing background interference. These results demonstrate the effectiveness of UnifiedAD in distinguishing anomalous deviations from normal variations, enabling more precise anomaly localization.

Figure 3. Figure 3 Qualitative Comparison of Anomaly Localization Results on MVTec-AD. UnifiedAD produces more accurate and concentrated anomaly responses with fewer false activations in normal regions compared with existing methods.
Multi-Modal. To qualitatively evaluate the anomaly localization capability of UnifiedAD in multi-modal settings, we visualize the anomaly maps produced by different methods on the MVTec 3D-AD [4] benchmark. As shown in Figure 4, existing methods often produce diffuse anomaly responses or exhibit false activations in normal regions, making it difficult to precisely localize defects. In contrast, UnifiedAD generates more concentrated anomaly responses that better align with the ground-truth masks while suppressing irrelevant background activations. These results demonstrate the effectiveness of UnifiedAD in integrating anomaly evidence from heterogeneous modalities for anomaly localization.

Figure 4. Qualitative Comparison of Anomaly Localization Results on the MVTec 3D-AD. UnifiedAD achieves more precise defect localization while effectively suppressing irrelevant responses across heterogeneous modalities.
Ablation Study
Component Ablation. Table 3 evaluates four variants, each modifying one component of the full model while keeping all other settings fixed. B₀ replaces low-rank normal subspace modeling with prototype matching; B₁ uses a single calibrated feature layer instead of multi-layer aggregation; B₂ removes empirical-tail calibration; and B₃ excludes auxiliary anomaly-direction evidence. Compared with B₀, the full model improves image-level AUROC from 67.1% to 92.8% on MVTec 3D-AD, from 83.3% to 97.9% on MVTec-AD, and from 74.2% to 96.3% on VisA, supporting the effectiveness of low-rank normal modeling. Compared with B₁, multi-layer evidence aggregation raises pixel-level AP from 40.2% to 62.5%, from 51.7% to 68.4%, and from 25.2% to 52.2% on these datasets, respectively, demonstrating the benefit of combining evidence across layers. Compared with B₂, empirical-tail calibration improves pixel-level AP and AUPRO across all three datasets. The gains are particularly pronounced on MVTec 3D-AD, where image-level AU-
| Variant | MVTec 3D-AD [4] | MVTec-AD [3] | VisA [46] | ||||||
| I-AUROC | P-AP | AUPRO | I-AUROC | P-AP | AUPRO | I-AUROC | P-AP | AUPRO | |
| B₀ | 67.1±0.2 | 28.7±0.0 | 82.3±0.1 | 83.3±0.4 | 43.2±0.2 | 84.9±0.1 | 74.2±0.5 | 30.3±0.0 | 85.5±0.1 |
| B₁ | 78.2±2.8 | 40.2±1.0 | 91.3±0.2 | 84.3±0.9 | 51.7±0.5 | 84.1±1.2 | 82.6±0.7 | 25.2±0.4 | 82.1±0.6 |
| B₂ | 80.1±0.7 | 44.8±0.6 | 94.1±0.4 | 98.1±0.2 | 65.3±0.7 | 93.8±0.1 | 97.6±1.8 | 50.7±0.5 | <u>94.8±0.3</u> |
| B₃ | <u>84.3±2.1</u> | <u>51.8±2.5</u> | <u>96.4±0.3</u> | 95.5±0.4 | 71.9±1.1 | <u>94.5±0.4</u> | 93.8±3.3 | 56.9±0.4 | 94.2±0.6 |
| Ours | 92.8±0.3 | 62.5±0.9 | 97.5±0.1 | <u>97.9±0.2</u> | <u>68.4±0.5</u> | 94.7±0.1 | <u>96.3±0.1</u> | <u>52.2±0.8</u> | 95.1±0.2 |
Table 3. Controlled Component Ablation. Each variant changes one component of the full model while keeping all other settings fixed. Values are reported as mean ± sample standard deviation. The best and second-best results are shown in bold and <u>underlined</u>.
ROC increases from 80.1% to 92.8% and pixel-level AP rises from 44.8% to 62.5%. However, image-level AUROC decreases on MVTec-AD and VisA, indicating a trade-off between detection and localization metrics. Compared with B₃, auxiliary direction evidence improves image-level AUROC by 8.5, 2.4, and 2.5 percentage points on MVTec 3D-AD, MVTec-AD, and VisA, respectively. It also increases pixel-level AP from 51.8% to 62.5% on MVTec 3D-AD, while reducing pixel-level AP on the two single-modal benchmarks. These results show that direction evidence complements calibrated subspace evidence for image-level detection, with localization trade-offs in single-modal settings.
Neuron Specificity Analysis. To investigate whether anomaly detection relies on specific neurons rather than arbitrary feature responses, we conduct a controlled ablation study comparing the proposed anomaly neurons with original and random under both single-modal and multi-modal settings. As shown in Table 4, UnifiedAD consistently outperforms both alternatives across all image-level and pixel-level metrics, indicating that random neuron selection is insufficient for reliable anomaly detection. Specifically, compared with Original, UnifiedAD improves image-level AUROC from 81.8% to 97.9% and pixel-level AP from 37.4% to 68.4% in the single-modal setting, while achieving improvements from 60.6% to 92.8% and from 12.7% to 62.5%, respectively, in the multi-modal setting. These results demonstrate that not all neurons contribute equally to anomaly detection, and selecting neurons with high anomaly discriminability and transformation stability is essential for accurate anomaly detection.
| Setting | Method | Image-Level | Pixel-Level | |||||
| I-AUROC | I-AP | I-F₁-max | P-AUROC | P-AP | P-F₁-max | AUPRO | ||
| Single-Modal | Original [33] | 81.8 ±0.6 | 90.2 ±0.3 | 91.0 ±0.2 | 91.6 ±0.2 | 37.4 ±1.2 | 42.6 ±1.0 | 80.1 ±0.7 |
| Single-Modal | Random | 80.9 ±1.2 | 90.1 ±0.6 | 89.9 ±0.5 | 89.4 ±0.4 | 29.5 ±2.0 | 35.8 ±1.6 | 75.5 ±1.5 |
| Single-Modal | UnifiedAD (Ours) | 97.9 ±0.2 | 99.0 ±0.1 | 96.9 ±0.1 | 97.8 ±0.1 | 68.4 ±0.5 | 64.9 ±0.6 | 94.7 ±0.1 |
| Multi-Modal | Original [33] | 60.6 ±1.4 | 85.1 ±0.9 | 89.1 ±0.3 | 94.8 ±0.1 | 12.7 ±1.0 | 16.8 ±0.7 | 82.9 ±0.4 |
| Multi-Modal | Random | 61.0 ±2.4 | 85.4 ±1.1 | 89.2 ±0.2 | 94.7 ±0.2 | 13.2 ±0.9 | 17.1 ±0.8 | 82.8 ±0.6 |
| Multi-Modal | UnifiedAD (Ours) | 92.8 ±0.3 | 97.7 ±0.1 | 93.9 ±0.1 | 97.6 ±0.1 | 62.5 ±0.9 | 60.4 ±1.0 | 97.5 ±0.1 |
Table 4. Neuron Specificity Analysis. Comparison of Original, Random, and evidence-guided neuron selection under single-modal and multi-modal settings. All results are reported as mean ± standard deviation, with the best results highlighted in bold.
Fusion Analysis. To investigate multi-modal anomaly detection, we compare Full UnifiedAD with Direct Subspace [22] Fusion, which directly aggregates independently computed subspace residuals from the RGB and XYZ modalities through weighted summation without prior calibration, on MVTec 3D-AD. As shown in Table 5, direct fusion yields substantially lower performance in both image-level anomaly detection and pixel-level anomaly localization. Specifically, Full UnifiedAD improves I-AUROC from 76.5% to 92.8%, P-AP from 39.7% to 62.5%, and AUPRO from 92.4% to 97.5%. These results indicate that directly fusing modality-specific subspace residuals is insufficient for reliable multi-modal detection, supporting the need for evidence calibration before fusion.
| Method | I-AUROC | P-AP | AUPRO |
| Direct Subspace Fusion | 76.5±1.0 | 39.7±0.5 | 92.4±0.4 |
| UnifiedAD (Ours) | 92.8±0.3 | 62.5±0.9 | 97.5±0.1 |
Table 5. Direct Subspace Fusion Analysis. Comparison of direct subspace fusion and Full UnifiedAD on MVTec 3D-AD. Results are reported as mean ± standard deviation over three support seeds. All values are percentages.
Visualization. To investigate whether UnifiedAD can effectively distinguish anomalous deviations from normal feature structures, we visualize the feature distributions before and after our method using PCA under both single-modal and multi-modal settings. As shown in Figure 5, normal and anomalous features exhibit substantial overlap in the feature space before applying UnifiedAD, making it difficult to distinguish anomalous responses from normal variations. In contrast, after applying UnifiedAD, anomalous features become more clearly separated from normal features, while normal reference and test features remain relatively consistent. These results demonstrate that UnifiedAD enhances the discriminability between normal and anomalous responses, enabling more reliable anomaly detection across different input settings.

Figure 5. Feature Space Visualization. PCA visualization of normal and anomalous feature distributions before and after UnifiedAD under single-modal and multi-modal settings.
Further Analysis
Impact of Neuron Selection Size. To evaluate the effect of the number of selected neurons, we conduct a sensitivity analysis by varying top- from 32 to 512. As shown in Figure 6, UnifiedAD maintains stable performance across different values of top-. Specifically, the single-modal image-level AUROC reaches 97.9% at top-=128, while the multi-modal image-level AUROC improves from 90.7% to 93.4% at top-=256. These results indicate that selecting a moderate number of anomaly neurons is sufficient to capture discriminative feature responses, and we therefore adopt top-=128 as the default setting.

Figure 6. Hyperparameter Sensitivity Analysis. Effects of top- neuron selection, subspace retention threshold , direction evidence weight , and geometry fusion weight on image-level and pixel-level AUROC (%) under single-modal and multi-modal settings.
Effect of Subspace Retention. To examine the effect of variance retention on normal subspace modeling, we conduct a sensitivity analysis by varying from 0.7 to 0.99. As shown in Figure 6, UnifiedAD maintains stable performance across different retention thresholds. Specifically, the single-modal pixel-level AUROC increases from 96.8% to 98.4%, while the multi-modal image-level AUROC remains around 92.8%. These results indicate that the normal subspace can effectively characterize normal feature structures across different variance-retention thresholds.
Influence of Direction Evidence Weight. To evaluate the contribution of auxiliary anomaly-direction evidence, we conduct a sensitivity analysis by varying from 0 to 2. As shown in Figure 6, increasing the weight of direction evidence improves image-level anomaly detection while maintaining stable pixel-level localization performance. Specifically, the multi-modal image-level AUROC increases from 84.3% to 93.8%, while the single-modal image-level AUROC reaches 97.9% at . These results demonstrate that auxiliary anomaly-direction evidence effectively complements calibrated subspace evidence for more accurate anomaly detection.
Sensitivity to Modality Fusion. To assess the contribution of different modalities, we conduct a sensitivity analysis by varying the geometry fusion weight from 0 to 1. As shown in Figure 6, combining RGB and geometry evidence achieves better performance than relying on either modality alone. Specifically, UnifiedAD achieves the highest image-level AUROC of 92.8% and pixel-level AUROC of 97.6% at . These results demonstrate that complementary anomaly evidence from RGB and geometry modalities enables more accurate multi-modal anomaly detection.
Shot Number Ablation. To evaluate the sensitivity of UnifiedAD to the number of normal reference samples, we conduct an ablation study ranging from 1-shot to 16-shot under both single-modal and multi-modal settings. As shown in Figure 7, UnifiedAD generally benefits from additional normal references, particularly in multi-modal anomaly detection. Specifically, in the single-modal setting, image-level AUROC increases from 97.9% to 98.3%, while pixel-level AUROC slightly decreases from 97.8% to 97.2%. In the multi-modal setting, image-level and pixel-level AUROC improve from 92.8% to 95.3% and from 97.6% to 99.6%, respectively. These results demonstrate that UnifiedAD performs effectively with limited normal references while benefiting from additional samples.
Figure 7. Shot Number Ablation. Image-level and pixel-level AUROC (%) under single-modal and multi-modal settings with 1 to 16 normal reference samples.
Cross Domain Detection. To assess cross-domain generalization, we evaluate UnifiedAD on BrainAD [1] using anomaly neurons selected from industrial data. Following BrainAD [1], we report the same evaluation metrics. As shown in Table 6, UnifiedAD achieves the best results across all four reported metrics, including 94.0% image-level AUROC and 53.6% pixel-level AP. For more experimental details see Appendix.
Table 6. Medical Anomaly Detection on BrainAD [1]. All values are percentages. Our results are reported as mean standard deviation over three seeds. The best results are highlighted in bold.
Conclusion
We propose UnifiedAD, a unified framework for single-modal and multi-modal anomaly detection requiring one normal reference per target category and no gradient updates. It combines discriminative priors from auxiliary data with transformation stability to select anomaly neurons and model their normal responses using low-rank subspaces. Empirical-tail calibration converts projection residuals and anomaly-direction responses into comparable anomaly evidence for aggregation across layers and modalities. Experiments on industrial benchmarks demonstrate its effectiveness in image-level anomaly detection and pixel-level anomaly localization.
Appendix
The appendix is organized as follows. Appendix A summarizes the notations used in UnifiedAD, while Appendix B provides detailed experimental settings. Appendix C presents additional ablation experiments, a user study, computational efficiency analysis, and qualitative comparisons across single-modal, multi-modal, and medical anomaly detection. Appendix D provides the theoretical details of evidence-guided neuron selection and auxiliary anomaly supervision. Finally, Appendices E and F discuss the limitations and further considerations of UnifiedAD.
Notation Summary
For clarity, Table 7 summarizes the main notations used in UnifiedAD, covering the problem setup, evidence-guided neuron selection, one-shot calibrated subspace inference, and anomaly evidence aggregation.
| Notation | Description |
| Problem Setup | |
| Target category | |
| Set of active modalities | |
| Modality index | |
| Normal support sample of category | |
| Normal support observation of modality | |
| Query observation of modality | |
| Arbitrary input view of modality | |
| Set of selected feature layers for modality | |
| Feature layer index | |
| Modality-specific input adapter | |
| Frozen feature encoder at layer | |
| Layer-wise patch-feature matrix | |
| Number of spatial patches at layer | |
| Number of feature neurons at layer | |
| Evidence-Guided Neuron Selection | |
| Signed auxiliary anomaly effect of neuron | |
| Anomaly discriminability of neuron | |
| Normality-preserving transformation | |
| Transformed normal support observation | |
| Normal support feature matrix | |
| Spatially aligned transformed support features | |
| Transformation stability of neuron | |
| Numerical stability constant | |
| Neuron-wise score normalization | |
| Unified neuron selection score | |
| Auxiliary anomaly direction | |
| Selected neuron index set | |
| Number of selected neurons (Top-) | |
| One-Shot Calibrated Subspace Inference | |
| Selected-neuron support feature matrix | |
| Neuron-wise center of support features | |
| Neuron-wise scale of support features | |
| Standardized support feature matrix | |
| Notation | Description |
| Left singular vector matrix | |
| Diagonal singular value matrix | |
| Right singular vector matrix | |
| Variance-retention threshold | |
| Retained normal subspace rank | |
| Low-rank normal subspace basis | |
| Query feature matrix | |
| Standardized query patch feature | |
| Projected query patch feature | |
| Normalized subspace projection residual | |
| Evidence Calibration and Aggregation | |
| Calibration reference residual set | |
| Residual of calibration patch | |
| Number of calibration reference residuals | |
| Indicator function | |
| Calibrated subspace anomaly evidence | |
| Full-dimensional standardized query feature | |
| Auxiliary anomaly-direction response | |
| Calibrated auxiliary-direction evidence | |
| Auxiliary anomaly-direction evidence weight | |
| Layer-aggregated anomaly evidence for modality | |
| Modality fusion weight | |
| Fused patch-level anomaly evidence | |
| Pixel-level anomaly map | |
| Input image height and width | |
| Image-level anomaly score |
Table 7. Summary of the main notations used in UnifiedAD.
Detailed Experimental Setup
Target-Support Protocol
For MVTec 3D-AD [4], CFM [7], CIF [28], M3DM [38], and CFR [15] are evaluated under the one-shot setting, using a single normal RGB–XYZ support pair per target category, with each baseline evaluated once. For CMDS-AD [5], we use the authors’ released one-shot checkpoint. UnifiedAD is evaluated using three independently sampled target supports with 3 seeds, and its results are reported as the mean sample standard deviation across the three runs.
Auxiliary Source Data and Supervision Budget
Following the cross-dataset protocol described in the main paper, we use VisA as the auxiliary source when evaluating on MVTec-AD, MVTec 3D-AD, and medical benchmarks, while MVTec-AD serves as the auxiliary source when evaluating on VisA. The auxiliary set contains eight categories, with eight normal images and 16 anomalous images per category, yielding 64 normal images and 128 anomalous images in total. Pixel-level masks are required for the anomalous auxiliary images. These auxiliary data are used exclusively to precompute discriminative priors; no anomalous training image or pixel-level mask from MVTec 3D-AD is used.
Subspace Retention Sensitivity Protocol
For the subspace retention analysis in Figure 6 of the main paper, we evaluate variance-retention thresholds of 0.90, 0.95, 0.99. The horizontal-axis variable denotes in the single-modal setting and in the multi-modal setting. Specifically, in the multi-modal setting, we vary while keeping fixed. The default thresholds are and . All other hyperparameters remain unchanged.
More Experiments
Medical Anomaly Detection
To evaluate the cross-domain generalization capability of UnifiedAD, we conduct experiments on the BrainAD [1] dataset. Each of the three runs uses a different target-support seed to independently fit its corresponding neuron selection. As shown in Table 8, UnifiedAD achieves strong performance on BrainAD without medical-domain anomaly supervision. Specifically, UnifiedAD achieves an image-level AUROC of 94.0% and a pixel-level AP of 53.6% on BrainAD. Furthermore, Figure 8 shows that UnifiedAD produces more concentrated anomaly responses that closely align with the ground-truth masks, while effectively suppressing irrelevant activations in normal brain regions compared with existing methods. These results demonstrate that the anomaly neurons selected from VisA exhibit cross-domain transferability.
| Method | Image-Level | Pixel-Level | |||||
| I-AUROC | I-AP | I--max | P-AUROC | P-AP | P--max | AUPRO | |
| WinCLIP [19] | 72.7 | 91.6 | 90.7 | 87.6 | 13.3 | 21.7 | 59.7 |
| FoundAD [43] | 76.9 | 93.9 | 90.8 | 95.0 | 39.1 | 41.7 | 76.2 |
| SubspaceAD [22] | 78.6 | 94.0 | 90.9 | 96.4 | 43.9 | 50.3 | 79.5 |
| AdaCLIP [6] | 80.0 | 90.2 | 94.1 | 95.2 | 37.0 | 40.6 | 36.4 |
| VisualAD [17] | 87.1 | 96.7 | 92.5 | 96.4 | 51.9 | 50.2 | 83.5 |
| UnifiedAD (Ours) | 94.00.9 | 98.60.2 | 94.80.4 | 96.70.4 | 53.63.6 | 51.32.6 | 83.30.7 |
Table 8. Medical Anomaly Detection Results on BrainAD. We report image-level and pixel-level results on BrainAD [1]. All values are percentages. Our results are reported as mean standard deviation over three seeds. The best result in each column is in bold.
Figure 8. Qualitative Comparison on BrainAD. Comparison of anomaly localization results across different methods.
Impact of Auxiliary Anomaly Supervision
To evaluate the contribution of auxiliary anomalous samples, we conduct an ablation study on MVTec 3D-AD [4] by removing auxiliary anomaly supervision while keeping all other settings fixed. Unlike B3 in the main paper, which removes only auxiliary-direction evidence, this setting removes auxiliary anomaly supervision from both neuron selection and direction construction. Specifically, RGB neurons are selected solely based on transformation stability by setting in Eq. (3) in the main paper. As shown in Table 9, auxiliary anomalous samples significantly improve image-level anomaly detection and pixel-level anomaly localization. Specifically, removing auxiliary anomaly supervision decreases image-level AUROC by 10.2 percentage points and pixel-level AP and -max by 12.9 and 9.7 points, respectively, while pixel-level AUROC increases by 1.2 points. These results demonstrate that auxiliary anomaly supervision provides discriminative anomaly-direction evidence that complements normal subspace modeling, improving anomaly discrimination and pixel-level localization precision while maintaining strong overall localization performance.
| Setting | Image-Level AUROC ↑ | Image-Level AP ↑ | Image-Level -max ↑ | Pixel-Level AUROC ↑ | Pixel-Level AP ↑ | Pixel-Level -max ↑ | Pixel-Level AUPRO ↑ |
| Without Auxiliary Anomalies | 82.6±2.5 | 94.4±1.1 | 93.0±0.6 | 98.8±0.1 | 49.6±3.0 | 50.7±2.4 | 96.1±0.3 |
| Full UnifiedAD (Ours) | 92.8±0.3 | 97.7±0.1 | 93.9±0.1 | 97.6±0.1 | 62.5±0.9 | 60.4±1.0 | 97.5±0.1 |
| Gain (pp) | +10.2 | +3.3 | +0.9 | −1.2 | +12.9 | +9.7 | +1.4 |
Table 9. Effect of Removing Auxiliary Anomalous Samples on MVTec 3D-AD. All values are percentages and are reported as mean ± sample standard deviation over support seeds 23, 29, and 37. Gain is Full UnifiedAD minus the setting without auxiliary anomalous samples, in percentage points (pp); a negative value indicates a decrease. The best result in each metric column is in bold.
Calibration-View Transformation Analysis
To investigate whether the choice of calibration-view transformation affects anomaly detection, we compare different flips and rotations of the normal reference with no transformation. As shown in Figure 9, every transformed view improves I-AUROC, P-AP, and AUPRO over the untransformed reference. Specifically, horizontal flipping increases I-AUROC from 91.9% to 92.8%, P-AP from 60.8% to 62.5%, and AUPRO from 97.2% to 97.5%. The other transformations achieve similar results, with I-AUROC ranging from 92.2% to 92.5% and P-AP from 62.4% to 63.0%. These results show that transformed normal references provide useful variation for empirical-tail calibration. Horizontal flipping is used by default because it achieves the highest I-AUROC among the evaluated settings while maintaining competitive pixel-level performance.
Figure 9. Calibration-View Transformation Analysis. Comparison of no transformation, horizontal and vertical flipping, and rotations of 90°, 180°, and 270° applied to the normal reference for empirical-tail calibration on MVTec 3D-AD. Image-level anomaly detection results are shown on the left, and pixel-level anomaly localization results on the right. Horizontal flipping is the default setting in UnifiedAD. All values are percentages.
Backbone Generalizability in Single-Modal Anomaly Detection
To investigate whether UnifiedAD generalizes across visual backbones in single-modal anomaly detection, we evaluate it with CLIP ViT-L/14 (CLIP-L) [34], DINOv3 ViT-L/16 (DINOv3-L) [36], and DINOv2 ViT-g/14 (DINOv2-G) [33] on MVTec-AD [3] and VisA [46]. As shown in Table 10, UnifiedAD can be applied with all three backbones, while DINOv2-G achieves the best result in every applicable metric on both datasets. Specifically, DINOv2-G attains image-level AUROC scores of 97.9% and 96.3%, and pixel-level AP scores of 68.4% and 52.2% on MVTec-AD and VisA, respectively. DINOv3-L improves pixel-level AP over CLIP on both datasets, although CLIP achieves slightly higher image-level AUROC. These results demonstrate that UnifiedAD generalizes across backbone families, with the choice of backbone affecting detection and localization differently.
| Level | Backbone | MVTec-AD [3] | VisA [46] | ||||||
| AUROC ↑ | AP ↑ | F1-max ↑ | AUPRO ↑ | AUROC ↑ | AP ↑ | F1-max ↑ | AUPRO ↑ | ||
| Image | UnifiedAD (CLIP-L [34]) | 94.8±0.3 | 97.6±0.1 | 95.0±0.5 | N/A | 90.6±1.5 | 92.2±1.0 | 86.7±0.7 | N/A |
| Image | UnifiedAD (DINOv3-L [36]) | 93.5±0.6 | 96.5±0.2 | 94.4±0.3 | N/A | 89.7±2.2 | 90.9±1.8 | 87.1±0.7 | N/A |
| Image | UnifiedAD (DINOv2-G [33]) | 97.9±0.2 | 99.0±0.1 | 96.9±0.1 | N/A | 96.3±0.1 | 96.8±0.1 | 92.9±0.1 | N/A |
| Pixel | UnifiedAD (CLIP-L [34]) | 95.4±0.1 | 52.7±0.5 | 53.5±0.5 | 91.3±0.3 | 90.8±0.1 | 17.7±0.1 | 25.5±0.0 | 74.6±0.3 |
| Pixel | UnifiedAD (DINOv3-L [36]) | 96.9±0.1 | 61.3±0.5 | 59.8±0.5 | 93.1±0.1 | 97.7±0.1 | 37.9±0.7 | 42.9±0.5 | 92.8±0.2 |
| Pixel | UnifiedAD (DINOv2-G [33]) | 97.8±0.1 | 68.4±0.5 | 64.9±0.6 | 94.7±0.1 | 99.2±0.0 | 52.2±0.8 | 54.2±0.5 | 95.1±0.2 |
Table 10. Backbone Generalizability of UnifiedAD on MVTec-AD and VisA. We evaluate UnifiedAD with three visual backbones: CLIP-L [34], DINOv2-G [33], and DINOv3-L [36]. All results are reported as mean ± standard deviation. The best result in each column is highlighted in bold. N/A denotes metrics that are not applicable.
Backbone Generalizability in Multi-Modal Anomaly Detection
To investigate whether UnifiedAD generalizes across visual backbones, we evaluate it with CLIP-L [34], DINOv3-L [36], and DINOv2-G [33] on MVTec 3D-AD. As shown in Table 11, UnifiedAD produces anomaly detection and localization results with all three backbones, while DINOv2-G achieves the best result in six of the seven metrics. Specifically, image-level AUROC increases from 83.9% with CLIP to 89.3% with DINOv3-L and 92.8% with DINOv2-G; pixel-level AP increases from 38.8% to 56.4% and 62.5%, respectively. DINOv3-L achieves the highest pixel-level AUROC at 98.9%. These results demonstrate that UnifiedAD can be applied across different backbone families, although backbone choice affects its performance.
Sensitivity to Top-K Neuron Selection
To examine the sensitivity of UnifiedAD to the number of selected neurons across backbone scales, we vary from 32 to 512 on MVTec 3D-AD using DINOv2 ViT-B/14, ViT-L/14, and ViT-G/14. As shown in Figure 10, increasing from 32 to 64 improves I-AUROC for all three backbones: from 86.0% to 87.2% for DINOv2-B, from 87.0% to 90.1% for DINOv2-L, and from 90.7% to 92.7% for DINOv2-G. Beyond , DINOv2-B and DINOv2-L show no further improvement, whereas DINOv2-G reaches its highest observed I-AUROC of 93.4% at . Increasing to 512 reduces performance for all three backbones. DINOv2-G consistently achieves the highest I-AUROC across the evaluated values of . At , each backbone remains within 0.6 percentage points of its respective peak, supporting as a stable shared setting without backbone-specific tuning.
Figure 10. Top- Ablation on MVTec 3D-AD. I-AUROC across different numbers of selected neurons for DINOv2-B/L/G.
User Study
To evaluate the perceptual quality of anomaly localization, we conduct a user study with 10 participants (5 male and 5 female) from diverse academic and professional backgrounds. As shown in Figure 11(a), participants independently rate the anonymized and randomly shuffled results of six methods and select the best result for each sample. Figure 11(b) shows that UnifiedAD achieves the highest mean score of 5.7, outperforming the strongest baseline, CMDS-AD (4.3), by 1.4 points. Specifically, UnifiedAD receives 80% of the best-result votes, while CMDS-AD receives the remaining 20%, with no votes for other methods. These results demonstrate that UnifiedAD achieves superior subjective evaluation scores and is consistently preferred for anomaly localization across the evaluated samples.
Figure 11. User Study. Overview of the subjective evaluation interface and user survey.
Computational Efficiency Analysis
To evaluate the computational efficiency of UnifiedAD, we measure inference latency, throughput, peak GPU memory, and one-time adaptation cost under different configurations. As shown in Table 12, UnifiedAD maintains the same peak GPU memory usage as the frozen DINOv2-G backbone while introducing moderate computational overhead. Specifically, the single-modal configuration achieves a latency of 146.8 ms and a throughput of 6.81 FPS, while the multi-modal end-to-end configuration requires 342.1 ms per sample and achieves 2.94 FPS. Meanwhile, the one-time adaptation costs are only approximately 0.40 s and 1.57 s for single-modal and multi-modal settings, respectively. These results demonstrate that UnifiedAD enables efficient adaptation to new categories without gradient-based training, while maintaining a stable GPU memory footprint across different input settings.
| Configuration | Latency (ms) ↓ | Throughput (FPS) ↑ | Peak Memory (GiB) ↓ | One-Time Adaptation (s) ↓ |
| DINOv2-G (Backbone Only) | 10.13 | 4.64 | — | |
| UnifiedAD (Single-Modal) | 6.81 | 4.64 | ≈0.40 | |
| UnifiedAD (Multi-Modal Core) | 3.95 | 4.64 | 1.57 | |
| UnifiedAD (Multi-Modal End-to-End) | 2.94 | 4.64 | 1.57 |
Table 12. Computational Efficiency Analysis. Comparison of inference latency, throughput, peak GPU memory, and one-time adaptation cost under different configurations. Latency is measured in milliseconds (ms), throughput in frames per second (FPS), memory in GiB, and adaptation time in seconds (s). UnifiedAD configurations are highlighted in light green.
More Qualitative Comparison on Single-Modal Anomaly Detection
To further evaluate the anomaly localization capability of UnifiedAD in single-modal settings, we provide additional qualitative comparisons on the MVTec-AD [3] benchmark. As shown in Figure 12, existing methods often produce diffuse anomaly responses or false activations in normal regions, leading to inaccurate defect localization. In contrast, UnifiedAD generates more concentrated anomaly responses that closely align with the ground-truth masks, even for defects with different shapes, sizes, and textures. These results further demonstrate the effectiveness of UnifiedAD in distinguishing anomalous deviations from normal variations, enabling more precise and robust anomaly localization across diverse defect types.

Figure 12. More Qualitative Comparison on MVTec-AD. Comparison of anomaly localization results across different single-modal methods.
More Qualitative Comparison on Multi-Modal Anomaly Detection
To further evaluate the anomaly localization capability of UnifiedAD in multi-modal settings, we provide additional qualitative comparisons on the MVTec 3D-AD benchmark. As shown in Figure 13, existing multi-modal methods often produce diffuse anomaly responses or introduce irrelevant activations in normal regions, which reduces localization accuracy. In contrast, UnifiedAD generates more concentrated anomaly responses that better align with the ground-truth masks across diverse categories and anomaly patterns. These results further demonstrate that UnifiedAD can effectively integrate complementary anomaly evidence from RGB and geometry modalities, enabling more accurate and robust multi-modal anomaly localization.

Figure 13. More Qualitative Comparison on MVTec 3D-AD. Comparison of anomaly localization results across different multi-modal methods. UnifiedAD produces more concentrated anomaly responses that better align with the ground-truth masks while suppressing irrelevant activations in normal regions.
More Qualitative Comparison on Medical Anomaly Detection
To further evaluate the anomaly localization capability of UnifiedAD in medical settings, we provide additional qualitative comparisons on the BrainAD [1] benchmark. As shown in Figure 14, existing methods often produce diffuse anomaly responses or false activations in normal brain regions, making it difficult to precisely localize abnormal regions. In contrast, UnifiedAD generates more concentrated anomaly responses that better align with the ground-truth masks across different brain images and anomaly patterns. These results further demonstrate the effectiveness of UnifiedAD in distinguishing anomalous deviations from normal variations, enabling more accurate and reliable anomaly localization in medical images.

Figure 14. More Qualitative Comparison on BrainAD. Comparison of anomaly localization results across different methods. UnifiedAD produces more concentrated anomaly responses that closely align with the ground-truth masks while suppressing irrelevant activations in normal brain regions.
Theoretical Derivation
Signed Anomaly Effect and Supervision Requirements
For each auxiliary category , feature layer , and neuron , we partition the auxiliary patches into three sets: normal-image patches (), patches inside the anomaly mask (), and background patches outside the anomaly mask in anomalous images (). We first measure the activation shift from normal to anomalous regions:
where and denote the mean and variance of the normal-patch activations. We additionally measure the localization contrast between the anomalous region and the background of the same anomalous images:
A neuron is retained at the category level only when these two effects have consistent directions. Its signed category-specific anomaly effect is
Across auxiliary categories, we determine the final effect using the median response magnitude and the dominant direction among categories, subject to the cross-category agreement threshold . This effect is subsequently combined with horizontal-flip stability to select the top- neurons and construct a sparse signed anomaly direction.
This computation requires pixel-level anomaly masks only for the auxiliary source-domain data. It does not use anomalous images or pixel-level annotations from the target dataset. In particular, the geometry branch on MVTec 3D-AD does not use labeled geometric anomalies; its neurons are selected solely from the normal RGB–XYZ support and its spatially aligned horizontal flip.
Limitation
Although UnifiedAD demonstrates strong performance across diverse anomaly detection benchmarks, some practical limitations remain. Specifically, the spatial resolution of the generated anomaly maps is constrained by the patch-level representations of the frozen visual encoder, which may affect the localization of extremely small defects. Future work will explore finer-grained anomaly localization to further improve the flexibility of UnifiedAD.
More Discussion
▷ Q1. What Is Unified Across Different Input Modalities?
A key insight of UnifiedAD is that anomaly detection across different input modalities can be formulated through a shared normality modeling and evidence assessment mechanism. Although visual appearance and geometric structure exhibit different feature characteristics, anomalous observations can be characterized by their deviations from the normal response structures of pretrained representations. This motivates the use of modality-specific normal subspaces under a common projection-residual formulation. By further calibrating these deviations against normal reference variations, UnifiedAD establishes a consistent form of anomaly evidence across feature layers and modalities, allowing heterogeneous information to be aggregated within the same inference framework. In this way, unification is achieved at the level of normality characterization and anomaly evidence assessment, while preserving the distinct representations and complementary information provided by individual modalities.
▷ Q2. How Does Transferable Anomaly Knowledge Support One-Shot Normality Modeling?
UnifiedAD separates transferable anomaly knowledge from target-specific normality modeling. Auxiliary normal and anomalous samples provide prior information about feature responses that are informative for anomaly discrimination, enabling the identification of anomaly neurons and anomaly directions. Such information captures discriminative properties that can be reused across categories and domains. In contrast, the normal subspace and calibration reference are constructed from a single normal observation of the target category, allowing the framework to characterize category-specific normal patterns without gradient-based adaptation. These two sources of information play complementary roles: auxiliary evidence guides the identification of informative feature responses, while the target normal reference determines how deviations from category-specific normality are evaluated. This separation provides a practical mechanism for transferring anomaly-related knowledge while retaining the flexibility of one-shot adaptation to previously unseen categories.
▷ Q3. Why Are Subspace and Auxiliary-Direction Evidence Complementary?
UnifiedAD characterizes anomalous patterns from two complementary perspectives. Subspace residuals measure deviations from the normal feature structures estimated using the target reference, capturing category-specific abnormalities without requiring target anomalous samples. In contrast, auxiliary-direction responses emphasize discriminative feature variations associated with anomalous patterns observed across source categories, introducing transferable anomaly-related information. These two forms of evidence therefore characterize different aspects of abnormality: one evaluates departures from target normality, while the other highlights responses associated with previously observed anomalies. The ablation results further reveal their complementary behavior, with auxiliary-direction evidence consistently improving image-level detection while exhibiting different effects on pixel-level localization across benchmarks. This suggests that combining reference-based deviations with transferable discriminative responses provides a more comprehensive assessment of anomalous patterns than relying on either perspective alone.
▷ Q4. How Does Calibrated Anomaly Evidence Enable Cross-Modal Fusion?
A central challenge in multi-modal anomaly detection is that feature deviations from different modalities may exhibit substantially different numerical scales and normal variation patterns. UnifiedAD addresses this challenge by calibrating modality-specific deviations against their corresponding normal reference residual distributions. Through empirical-tail calibration, raw feature deviations are transformed into reference-relative anomaly evidence, providing a common interpretation of how unusual each response is with respect to its modality-specific normal variations. Consequently, RGB and geometric features can be modeled independently while their calibrated anomaly evidence is aggregated within a shared inference framework. This enables appearance-related and geometry-related deviations to complement each other without requiring explicit alignment of their feature distributions. The improvements observed through RGB–geometry fusion further support the effectiveness of combining heterogeneous anomaly cues at the evidence level, highlighting normal-variation calibration as an important mechanism for unified multi-modal inference.
▷ Q5. Why Do Some Anomalies Remain Undetected?
The remaining failure cases cannot be solely attributed to insufficient coverage of normal variations under the one-shot setting. Extremely small, low-contrast, or subtle geometric defects may produce weak responses in frozen patch-level representations, causing anomalous features to overlap with normal variations. Although additional normal references can improve normality estimation, they cannot recover anomaly information lost during feature extraction. Moreover, a more comprehensive normal subspace may partially absorb anomalous variations that align with normal variation directions, resulting in small projection residuals. The transferability of auxiliary anomaly knowledge also introduces limitations, as neuron selections and anomaly directions learned from source domains may respond weakly to substantially different target anomalies. Finally, empirical-tail calibration may assign low anomaly evidence to deviations within the normal residual range, while fixed fusion weights may further suppress weak layer-specific or modality-specific cues. These factors jointly explain why increasing normal support samples alone cannot eliminate all missed detections.
References
- [1]Jinan Bao, Hanshi Sun, Hanqiu Deng, Yinsheng He, Zhaoxiang Zhang, and Xingyu Li. Bmad: Bench-marks for medical anomaly detection. In 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), pages 4042–4053. IEEE, 2024.
- [2]Kilian Batzner, Lars Heckler, and Rebecca König. Efficientad: Accurate visual anomaly detection at millisecond-level latencies. In 2024 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), pages 127–137. IEEE, 2024.arxiv.org/abs/2303.14535
- [3]Paul Bergmann, Michael Fauser, David Sattlegger, and Carsten Steger. Mvtec ad—a comprehensive real-world dataset for unsupervised anomaly detection. In 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 9584–9592. IEEE, 2019.DOI
- [4]Paul Bergmann, Xin Jin, David Sattlegger, and Carsten Steger. The mvtec 3d-ad dataset for supervised 3d anomaly detection and localization. arXiv preprint arXiv:2112.09045, 2021.DOI
- [5]Junhao Cai, Junyu Chen, Deyu Zeng, Junhao Pang, Qiwei Liang, Xiaopin Zhong, and Zongze Wu. Cmds-ad: Cross-modal dual-stream decoupling for few-shot anomaly detection. In European Conference on Computer Vision, pages 431–448. Springer, 2026.arxiv.org/abs/2606.20300
- [6]Yunkang Cao, Jiangning Zhang, Luca Frittoli, Yuqi Cheng, Weiming Shen, and Giacomo Boracchi. Adaclip: Adapting clip with hybrid learnable prompts for zero-shot anomaly detection. In European conference on computer vision, pages 55–72. Springer, 2024.DOI
- [7]Alex Costanzino, Pierluigi Zama Ramirez, Giuseppe Lisanti, and Luigi Di Stefano. Multimodal industrial anomaly detection by crossmodal feature mapping. In 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 17234–17243. IEEE, 2024.arxiv.org/abs/2312.04521
- [8]Alex Costanzino, Pierluigi Zama Ramirez, Giuseppe Lisanti, and Luigi Di Stefano. Modulate-and-map: Crossmodal feature mapping with cross-view modulation for 3d anomaly detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 8816–8825, 2026.arxiv.org/abs/2604.02328
- [9]Simon Damm, Mike Laszkiewicz, Johannes Lederer, and Asja Fischer. Anomalydino: Boosting patch-based few-shot anomaly detection with dinov2. In 2025 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), pages 1319–1329. IEEE, 2025.arxiv.org/abs/2405.14529
- [10]Thomas Defard, Aleksandr Setkov, Angelique Loesch, and Romaric Audigier. Padim: a patch distribution modeling framework for anomaly detection and localization. In International conference on pattern recognition, pages 475–489. Springer, 2021.arxiv.org/abs/2011.08785
- [11]Hanqiu Deng and Xingyu Li. Anomaly detection via reverse distillation from one-class embedding. In 2022 IEEE/CVF conference on computer vision and pattern recognition (CVPR), pages 9727–9736. IEEE, 2022.arxiv.org/abs/2201.10703
- [12]Gene H. Golub and Christian Reinsch. Singular value decomposition and least squares solutions. Numerische Mathematik, 14(5):403–420, 1970. doi: 10.1007/BF02163027.DOI
- [13]Zhaopeng Gu, Bingke Zhu, Guibo Zhu, Yingying Chen, Ming Tang, and Jinqiao Wang. Univad: A training-free unified model for few-shot visual anomaly detection. In 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 15194–15203. IEEE, 2025.arxiv.org/abs/2412.03342
- [14]Jia Guo, Shuai Lu, Weihang Zhang, Fang Chen, Huiqi Li, and Hongen Liao. Dinomaly: The less is more philosophy in multi-class unsupervised anomaly detection. In 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 20405–20415. IEEE, 2025.arxiv.org/abs/2405.14325
- [15]Yuan Guo, Wanqi Zhang, and Xu Wang. Remove the ambiguity: Few-shot multimodal anomaly detection using crossmodal feature replacers. In Forty-third International Conference on Machine Learning, 2026.
- [16]Haoyang He, Yuhu Bai, Jiangning Zhang, Qingdong He, Hongxu Chen, Zhenye Gan, Chengjie Wang, Xiantai Li, Guanzhong Tian, and Lei Xie. Mambaad: Exploring state space models for multi-class unsupervised anomaly detection. Advances in Neural Information Processing Systems, 37:71162–71187, 2024.arxiv.org/abs/2404.06564
- [17]Yanning Hou, Peiyuan Li, Zirui Liu, Yitong Wang, Yanran Ruan, Jianfeng Qiu, and Ke Xu. Visualad: Language-free zero-shot anomaly detection via vision transformer. arXiv preprint arXiv:2603.07952, 2026.arxiv.org/abs/2603.07952
- [18]Chaoqin Huang, Haoyan Guan, Aofan Jiang, Ya Zhang, Michael Spratling, and Yan-Feng Wang. Registration based few-shot anomaly detection. In European conference on computer vision, pages 303–319. Springer, 2022.arxiv.org/abs/2207.07361
- [19]Jongheon Jeong, Yang Zou, Taewan Kim, Dongqing Zhang, Jinwoo Ravichandran, and Onkar Dabeer. Winclip: Zero-/few-shot anomaly classification and segmentation. In 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 19606–19616. IEEE, 2023.arxiv.org/abs/2303.14814
- [20]Le Jiang, Yan Huang, Zhen Xu, Yong Xu, Hau-San Wong, and Si Wu. Defect cue-preserved structural feature refinement for few-shot anomaly detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 35607–35616, 2026.
- [21]Ian T Jolliffe and Jorge Cadima. Principal component analysis: a review and recent developments. Philosophical transactions. Series A, Mathematical, physical, and engineering sciences, 374(2065):20150202, 2016.DOI
- [22]Camile Lendering, Erkut Akdag, and Egor Bondarau. Subspacead: Training-free few-shot anomaly detection via subspace modeling. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 28557–28566, 2026.arxiv.org/abs/2602.23013
- [23]Chun-Liang Li, Kihyuk Sohn, Jinsung Yoon, and Tomas Pfister. Cutpaste: Self-supervised learning for anomaly detection and localization. In 2021 IEEE/CVF conference on computer vision and pattern recognition (CVPR), pages 9659–9669. IEEE, 2021.arxiv.org/abs/2104.04015
- [24]Min Li, Jinghui He, Jiachen Li, Delong Han, Jin Wan, and Gang Li. Hgcf: Hierarchical geometry-color fusion for multimodal industrial anomaly detection. In Proceedings of the 33rd ACM International Conference on Multimedia, pages 1023–1031, 2025.DOI
- [25]Yiting Li, Fayao Liu, Jingyi Liao, Sichao Tian, Chuan-Sheng Foo, and Xulei Yang. Find: Few-shot anomaly inspection with normal-only multi-modal data. In 2025 IEEE/CVF International Conference on Computer Vision (ICCV), pages 1–10. IEEE, 2025.DOI
- [26]Yiting Li, Xulei Yang, Jingyi Liao, Jing Zhang, and Fayao Liu. Gpflow: Gaussian prototype probability flow for unsupervised multi-modal anomaly detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 43103–43112, 2026.
- [27]Yufei Li, Long Tian, Yuyang Dai, Wenchao Chen, Liang Bao, and Xiyang Liu. Fastref: Fast prototype refinement for few-shot industrial anomaly detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 43040–43049, 2026.arxiv.org/abs/2506.21398
- [28]Yuxuan Lin, Hanjing Yan, Xuan Tong, Yang Chang, Huangzhen Wang, Ziheng Zhou, Shuyong Gao, Yan Wang, and Wenqiang Zhang. Commonality in few-shot multimodal anomaly detection via hypergraph-enhanced memory. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 40, pages 7015–7023, 2026.
- [29]Zhikang Liu, Yiming Zhou, Yuansheng Xu, and Zilei Wang. Simplenet: A simple network for image anomaly detection and localization. In 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 20402–20411. IEEE, 2023.
- [30]Wei Luo, Yunkang Cao, Haiming Yao, Xiaotian Zhang, Jianan Lou, Yuqi Cheng, Weiming Shen, and Wenyong Yu. Exploring intrinsic normal prototypes within a single image for universal anomaly detection. In 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 9974–9983. IEEE, 2025.arxiv.org/abs/2503.02424
- [31]Prasanta Chandra Mahalanobis. On the generalized distance in statistics. Sankhyā: The Indian Journal of Statistics, Series A (2008-), 80:S1–S7, 2018.
- [32]Kai Mao, Ping Wei, Yiyang Lian, Yangyang Wang, and Nanning Zheng. Beyond single-model boundary: Cross-modal anomaly detection through visual prototype and harmonization. In 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 9964–9973. IEEE, 2025.DOI
- [33]Maxime Oquab, Timothée Darcet, Théo Moutakanni, Huy Vo, Marc Szafraniec, Vasil Khalidov, Pierre Fernandez, Daniel Haziza, Francisco Massa, Alaeddin El-Nouby, et al. Dinov2: Learning robust visual features without supervision. arXiv preprint arXiv:2304.07193, 2023.arxiv.org/abs/2304.07193
- [34]Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, et al. Learning transferable visual models from natural language supervision. In International conference on machine learning, pages 8748–8763. PMLR, 2021.arxiv.org/abs/2103.00020
- [35]Karsten Roth, Latha Pemula, Joaquin Zepeda, Bernhard Schölkopf, Thomas Brox, and Peter Gehler. Towards total recall in industrial anomaly detection. In 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 14298–14308. IEEE, 2022.arxiv.org/abs/2106.08265
- [36]Oriane Siméoni, Huy V Vo, Maximilian Seitzer, Federico Baldassarre, Maxime Oquab, Cijo Jose, Vasil Khalidov, Marc Szafraniec, Seungeun Yi, Michaël Ramamonjisoa, et al. Dinov3. arXiv preprint arXiv:2508.10104, 2025.arxiv.org/abs/2508.10104
- [37]Tran Dinh Tien, Anh Tuan Nguyen, Nguyen Hoang Tran, Ta Duc Huy, Soan Duong, Chanh D T Nguyen, and Steven QH Truong. Revisiting reverse distillation for anomaly detection. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 24511–24520, 2023.
- [38]Yue Wang, Jinlong Peng, Jiangning Zhang, Ran Yi, Yabiao Wang, and Chengjie Wang. Multimodal industrial anomaly detection via hybrid fusion. In 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 8032–8041. IEEE, 2023.
- [39]Chaoran Xu, Chengkan Lv, Qiyu Chen, Feng Zhang, and Zhengtao Zhang. Mrad: Zero-shot anomaly detection with memory-driven retrieval. arXiv preprint arXiv:2602.00522, 2026.arxiv.org/abs/2602.00522
- [40]Zhiyuan You, Lei Cui, Yujun Shen, Kai Yang, Xin Lu, Yu Zheng, and Xinyi Le. A unified model for multi-class anomaly detection. Advances in Neural Information Processing Systems, 35:4571–4584, 2022.arxiv.org/abs/2206.03687
- [41]Jiawei Yu, Ye Zheng, Xiang Wang, Wei Li, Yushuang Wu, Rui Zhao, and Liwei Wu. Fastflow: Unsupervised anomaly detection and localization via 2d normalizing flows. arXiv preprint arXiv:2111.07677, 2021.arxiv.org/abs/2111.07677
- [42]Vitjan Zavrtanik, Matej Kristan, and Danijel Skočaj. Dræm–a discriminatively trained reconstruction embedding for surface anomaly detection. In 2021 IEEE/CVF International Conference on Computer Vision (ICCV), pages 8310–8319. IEEE, 2021.arxiv.org/abs/2108.07610
- [43]Guangyao Zhai, Yue Zhou, Xinyan Deng, Lars Heckler-Kram, Nassir Navab, and Benjamin Busam. Foundation visual encoders are secretly few-shot anomaly detectors. In International Conference on Learning Representations, volume 2026, pages 97353–97376, 2026.arxiv.org/abs/2510.01934
- [44]Qihang Zhou, Guansong Pang, Yu Tian, Shibo He, and Jiming Chen. Anomalyclip: Object-agnostic prompt learning for zero-shot anomaly detection. In International Conference on Learning Representations, volume 2024, pages 49705–49737, 2024.arxiv.org/abs/2310.18961
- [45]Jiawen Zhu and Guansong Pang. Toward generalist anomaly detection via in-context residual learning with few-shot sample prompts. In 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 17826–17836. IEEE, 2024.arxiv.org/abs/2403.06495
- [46]Yang Zou, Jongheon Jeong, Latha Pemula, Dongqing Zhang, and Onkar Dabeer. Spot-the-difference self-supervised pre-training for anomaly detection and segmentation. In European conference on computer vision, pages 392–408. Springer, 2022.arxiv.org/abs/2207.14315




