UnifiedAD: One-Shot Anomaly Detection across Modalities via Evidence Calibration
Organizations: Nanjing University of Science and Technology · National University of Singapore, NExT++ Research Centre · University of Sydney
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.
Figures & tables
| 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 | |
| Method | Image-Level | Pixel-Level | |||||
|---|---|---|---|---|---|---|---|
| AUROC | AP | -max | AUROC | AP | -max | 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 |
| 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 0 | 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 1 | 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 2 | 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 | 94.8 ±0.3 |
| B 3 | 84.3 ±2.1 | 51.8 ±2.5 | 96.4 ±0.3 | 95.5 ±0.4 | 71.9 ±1.1 | 94.5 ±0.4 | 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 | 97.9 ±0.2 | 68.4 ±0.5 | 94.7 ±0.1 | 96.3 ±0.1 | 52.2 ±0.8 | 95.1 ±0.2 |
| Setting | Method | Image-Level | Pixel-Level | |||||
|---|---|---|---|---|---|---|---|---|
| I-AUROC | I-AP | I- -max | P-AUROC | P-AP | P- -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 |
| 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 | |
| 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 |
| 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 | |
| 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 |
| Method | I-AUROC | I-AP | P-AUROC | P-AP |
|---|---|---|---|---|
| WinCLIP [ 19 ] | 72.7 | 91.6 | 87.6 | 13.3 |
| FoundAD [ 43 ] | 76.9 | 93.9 | 95.0 | 39.1 |
| SubspaceAD [ 22 ] | 78.6 | 94.0 | 96.4 | 43.9 |
| AdaCLIP [ 6 ] | 80.0 | 90.2 | 95.2 | 37.0 |
| VisualAD [ 17 ] | 87.1 | 96.7 | 96.4 | 51.9 |
| UnifiedAD (Ours) | 94.0 ±0.9 | 98.6 ±0.2 | 96.7 ±0.4 | 53.6 ±3.6 |
| Notation | Description |
|---|---|
| Problem Setup | |
| Target category | |
| Set of active modalities | |
| Modality index | |
| Normal support sample of category | |
| Normal support observation of modality | |
| 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 |
| Setting | Image-Level | Pixel-Level | |||||
|---|---|---|---|---|---|---|---|
| AUROC | AP | -max | AUROC | AP | -max | 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 | +12.9 | +9.7 | +1.4 | |
| Level | Backbone | MVTec-AD [ 3 ] | VisA [ 46 ] | ||||||
|---|---|---|---|---|---|---|---|---|---|
| AUROC | AP | -max | AUPRO | AUROC | AP | -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 |
| 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 | |
| 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 |
| 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 | |
| Method | Image-Level | Pixel-Level | |||||
|---|---|---|---|---|---|---|---|
| AUROC | AP | -max | AUROC | AP | -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 |
| Configuration | Latency (ms) | Throughput (FPS) | Peak Memory (GiB) | One-Time Adaptation (s) |
|---|---|---|---|---|
| DINOv2-G (Backbone Only) | 98.7 ±3.6 | 10.13 | 4.64 | — |
| UnifiedAD (Single-Modal) | 146.8 ±9.9 | 6.81 | 4.64 | 0.40 |
| UnifiedAD (Multi-Modal Core) | 252.8 ±11.7 | 3.95 | 4.64 | 1.57 |
| UnifiedAD (Multi-Modal End-to-End) | 342.1 ±27.9 | 2.94 | 4.64 | 1.57 |
Anomaly Detection
Anomaly detection finds rare or unexpected patterns in data, from defective products and system faults to fraud and security threats.
See all 722 papers