Manuscript Offprint
arXiv:2611.08271DART: Domain-Agnostic Residual Transfer for Generalist Anomaly Detection
Abstract
Generalist Anomaly Detection (GAD) aims to detect anomalies in unseen domains using only a few reference samples. Recent normal-abnormal guided methods improve this setting by exploiting abnormal references, but their residuals often mix transferable anomaly cues with domain-specific appearance factors such as texture, geometry, and acquisition conditions. This residual domain entanglement limits cross-domain transfer and may produce spurious activations on novel domains. We propose DART, a plug-in framework for normal-abnormal guided GAD that learns to separate residuals into anomaly-relevant and domain-specific components. DART combines a Residual Disentanglement Module, which preserves anomaly-discriminative information while suppressing domain information, with Cross-Domain Meta-Training, which forms episodes across source domains to make the separation effective. The method is architecture-agnostic and can be inserted between residual computation and the detection head of existing GAD pipelines. Experiments on MVTec AD, VisA, and BraTS show consistent improvements over multiple base methods, with the largest gains under stronger domain shifts. DART
1 Introduction
Visual anomaly detection is central to industrial inspection [1, 2], medical diagnosis [3], and safety-critical monitoring [4]. Most existing methods [5–9] train separate models for individual domains, which becomes impractical when new categories appear frequently, labeled data is scarce, or target-domain training is restricted. Generalist Anomaly Detection (GAD) addresses this limitation by training a unified model on source domains and deploying it on unseen target domains without fine-tuning [10, 11]. At inference, the model detects anomalies in a query image by comparing it with a few target-domain references. Early GAD methods, such as InCTRL [10] and ResAD [11], rely only on normal references, assuming that anomalies induce larger residuals relative to normal prototypes.
Recent normal-abnormal guided GAD methods further exploit a small number of abnormal references, which are often available in practical settings. NAGL [12], for instance, uses residual mining and anomaly feature learning to transfer abnormal cues from references to queries, improving over normal-only prompting. However, we show that the residuals driving this transfer are often domain-entangled: they mix transferable anomaly cues with domain-specific factors such as texture, object geometry, and acquisition conditions. For example, a cracked-bottle residual encodes both the crack pattern and bottle-specific appearance; when transferred to leather or transistors, such domain-specific information can trigger false activations or suppress genuine anomalies. We call this phenomenon residual domain entanglement and identify it as a key bottleneck for cross-domain normal-abnormal guided GAD (see Figure 1).
*Corresponding authors: muhammad.aqeel@univr.it, maham@buaa.edu.cn
40th Conference on Neural Information Processing Systems (NeurIPS 2026).

(a) SotA
(b) DART
Figure 1: t-SNE visualization of residual features before and after DART. Colors denote defect types, while marker shapes denote source domains. (a) In the SotA baseline, residuals are fragmented and strongly influenced by domain identity: samples with the same defect type appear in multiple separated regions, while different defect types often overlap. This indicates that residuals encode both anomaly information and domain-specific factors. (b) With DART, residuals form more compact and well-separated clusters by defect type, while different domains are mixed within each cluster. This shows that DART suppresses domain-specific variation and yields residual representations that are more aligned with transferable anomaly semantics.
This issue relates GAD to domain adaptation [13, 14], where domain-specific representations are known to generalize poorly under distribution shift. However, GAD requires more than feature alignment: normal-abnormal residuals must be disentangled, since anomaly cues and domain-specific factors are mixed within the same representation.
We view this objective through an information-theoretic lens: the anomaly component should retain information about the anomaly label , while minimizing information about the domain , with reconstruction preserving the original residual. This motivates DART (Domain-Agnostic Residual Transfer), a plug-in framework for normal-abnormal GAD. DART combines two components. First, a Residual Disentanglement Module (RDM) splits a residual into an anomaly-relevant component and a domain-specific component using sufficiency, adversarial invariance, and reconstruction losses. Second, Cross-Domain Meta-Training (CDMT) forms episodes with references and queries from different source domains to make this separation learnable. RDM provides the mechanism for suppressing domain information, while CDMT provides the cross-domain signal needed to learn it.
RDM operates between residual computation and the downstream detection head, making DART independent of a specific architecture. We apply it to NAGL [12], the current normal-abnormal guided GAD baseline, and to adapted versions of InCTRL [10] and ResAD [11].
Our contributions are threefold: (i) we identify residual domain entanglement as a bottleneck in normal-abnormal guided GAD; (ii) we propose DART, combining RDM and CDMT to learn anomaly-relevant, domain-agnostic residuals; and (iii) we evaluate it on MVTec AD, VisA, and BraTS across NAGL and two adapted residual-based GAD baselines, showing consistent image-level gains and competitive localization performance under cross-domain transfer.

Figure 2: Overview of DART. (Left) Given a query , normal references , and an abnormal reference , a frozen backbone produces features , and . (Center) The host residual operator computes in residual space; the proposed Residual Disentanglement Module (RDM) decomposes , and only its anomaly component is passed, together with , and , to the unchanged host detection head. (Right) Inside RDM, the anomaly encoder (A) instantiated the transformation and extracts , while the domain encoder (B) extracts the domain-specific . Three losses shape the split: keeps anomaly information in , suppresses domain information via a GRL and domain classifier , and enforces that reconstructs ; denote . Components marked are discarded at inference, leaving only active.
while ResAD [11] models residual feature distributions to reduce class-specific variation. Both rely on normal references, and recent work mines additional normality from the query itself [25]. NAGL [12] introduced normal-abnormal guided GAD, exploiting abnormal references via residual mining and anomaly feature learning. We build on this setting but address a different limitation: normal-abnormal residuals can remain entangled with domain-specific information, limiting cross-domain transfer.
Domain-Invariant Representation Learning. Domain adaptation theory links target error to source error and cross-domain divergence [13], motivating domain-adversarial training with gradient reversal [14] and domain generalization methods [26, 27]. Disentanglement approaches separate invariant and domain-specific factors using adversarial [28, 29] or variational [30] objectives, while meta-learning studies cross-domain episodes for few-shot generalization [31–34]. Unlike these works, DART neither disentangles raw features nor assumes target-domain access during training. It disentangles normal-abnormal residuals, separating anomaly-relevant changes from domain-specific factors for unseen-domain GAD.
3 Methodology
Generalist Anomaly Detection (GAD) learns a unified model from source domains and applies it to unseen target domains without parameter updates. We adopt the normal-abnormal guided setting [12], where each episode contains a query image and a reference set , with normal samples and abnormal samples , . During training, episodes are sampled from and the model predicts an anomaly map for conditioned on , using supervision that may contain image-level labels, pixel-level masks, or both. During inference, each target-domain query is paired with target-domain references, and no fine-tuning is performed. Thus, GAD is a conditional inference problem in which predictions depend on both the query and the reference set [12, 10, 11].
Residual-based GAD methods detect anomalies by measuring how query features deviate from reference features. Different methods instantiate this idea in different ways: InCTRL [10] uses discrepancy maps between query and normal prompts, ResAD [11] models residual feature distributions, and NAGL [12] exploits residuals involving normal and abnormal references. We abstract these variants through a generic residual operator:
where is the query feature, and are normal and abnormal reference features, and denotes the residual computation used by the host GAD method.
Our key observation is that residuals are not purely anomaly-specific: they also encode domain-dependent factors such as texture, geometry, and illumination. We call this residual domain entanglement. Under domain shift, these nuisance components can transfer poorly, causing spurious activations or missed detections in unseen target domains.
3.1 Overview of DART
To reduce residual domain entanglement, we seek a transformation that preserves anomaly-relevant information while suppressing domain-specific variation. Let Y denote the anomaly label and D the domain identity. The transformed residual should be sufficient for anomaly prediction, while being as uninformative as possible about the domain:
where denotes mutual information and controls the strength of domain invariance. The first term encourages predictive sufficiency, while the second penalizes domain information. Since enforcing invariance alone can remove useful anomaly cues, the representation must also preserve enough information to reconstruct the original residual.
This motivates DART, a plug-in framework with two complementary components. The Residual Disentanglement Module (RDM) decomposes a raw residual into an anomaly-relevant component and a domain-specific component , trained with sufficiency, adversarial invariance, and reconstruction losses. The Cross-Domain Meta-Training (CDMT) strategy forms episodes in which references and queries come from different source domains, making domain-specific cues unreliable and encouraging RDM to isolate transferable anomaly information. DART is inserted after residual computation and before the downstream anomaly predictor. The scheme of the approach is in Fig. 2.
3.2 Residual Disentanglement Module
Given a raw residual produced by the host GAD pipeline, RDM learns a decomposition of into an anomaly component and a complementary domain-specific component :
Here, is intended to retain the transferable information required for anomaly prediction, while absorbs complementary information that is useful for reconstruction but should not drive detection. This decomposition is not enforced explicitly, but is encouraged through the joint training losses described below.
Anomaly Encoder . instantiated the transformation T of Eq. (2), , as a transformer block with multi-head self-attention, feed-forward layers, residual connections, and layer normalization. Domain-specific appearance often manifests as broad spatial regularities, texture, material, illumination, while anomaly evidence is typically localized and sparse. Self-attention allows the model to compare local irregularities against global context, well suited to isolate transferable anomaly structure from domain-wide appearance.
Domain Encoder . is a lightweight two-layer MLP with GELU activation and layer normalization, , whose role is to absorb residual information not required in for domain-robust detection.
Reconstruction Decoder . To make the decomposition complete, i.e., to discard nothing from , reconstructs from the channel-wise concatenation , producing .
Domain Classifier . To explicitly suppress domain information in , we attach a spectrally normalized two-layer MLP to pooled invariant features and train it adversarially through a gradient reversal layer:
(4) where is the predicted domain distribution and concatenates mean and max pooling over spatial locations. Mean pooling captures the dominant global domain signature, while max pooling exposes the most domain-discriminative local regions. Their combination provides a stronger probe for residual domain leakage.
3.2.1 Training Objective
The losses used in RDM are designed to instantiate two requirements: predictive sufficiency and domain invariance. A reconstruction term further enforces completeness of the decomposition.
Adversarial invariance loss. To suppress domain information in , we train the anomaly branch to fool the domain classifier:
where is the identity of the reference domain , from which the residual inherits its appearance. Through gradient reversal, learns to predict the domain, while receives the opposite gradient and is pushed toward domain invariance. This acts as a practical surrogate for reducing the information about encoded in .
Sufficiency loss. To ensure that alone remains predictive of anomaly labels, we feed only to the downstream detector:
where Detect( ) denotes the prediction head of the underlying GAD method. This term encourages anomaly-relevant information to be concentrated in the anomaly branch rather than distributed across both branches.
Reconstruction loss. To enforce completeness, we reconstruct from :
We use cosine similarity instead of loss because residuals can be noisy and vary substantially in scale. constrains the pair rather than alone; it is that anchors anomaly information in and prevents its collapse (Table 4e). All branches are optimized jointly, while the relative influence of reconstruction is controlled by .
Total objective. The final training loss is
where and balance the strength of invariance and information preservation. From the perspective of the problem formulation, enforces predictive sufficiency, promotes domain invariance, and enforces completeness of the decomposition.
3.3 Cross-Domain Meta-Training
RDM alone does not guarantee that becomes domain-invariant. If training episodes are formed within a single domain, domain-specific cues in the residual remain predictive, and the model can achieve low training error without removing them. In the limiting case, the anomaly branch can simply preserve the full residual, i.e., , while still achieving strong in-domain performance.
CDMT addresses this issue by constructing cross-domain episodes with probability : the reference set is sampled from domain , while the query is sampled from a different domain , with . Under this regime, domain-specific cues in the residual become unreliable for prediction, and the model is forced to rely on the transferable component of instead. Combined with the adversarial invariance loss, CDMT provides the supervision needed to make the intended decomposition learnable in practice. In this way, RDM defines how residual information is separated, while CDMT provides the cross-domain signal that makes this separation meaningful.
Curriculum schedule. Directly enabling cross-domain episodes and adversarial invariance from the first epoch is often unstable, because the model has not yet learned a stable residual decomposition. We therefore adopt a two-stage curriculum.
Phase 1, Warmup (1 to ): all episodes are same-domain, , and adversarial training is disabled, . During this stage, the model learns a stable residual decomposition through and .
Phase 2, Ramp-up ( to ): the cross-domain sampling ratio increases linearly from 0 to , and the gradient reversal strength follows
This gradual schedule prevents the adversarial objective from destabilizing the residual structure learned during warmup.
Plug-in Integration. RDM operates on the residual representation after residual computation and before downstream detection. Given a base normal-abnormal GAD method, we first compute the raw residual r using the original pipeline, then apply RDM to obtain the anomaly component , and finally replace the original residual by in the downstream anomaly detector. During training, the base objective is augmented as in Eq. (8), and episodes are constructed using CDMT. Since RDM preserves the residual interface, the backbone and the prediction head of the host method do not need to be redesigned.
Inference. At inference time, the base GAD pipeline first computes the raw residual r from the target-domain references. The anomaly encoder then extracts , which is passed to the downstream detector for anomaly prediction. The auxiliary training-only modules, namely the domain encoder , the reconstruction decoder , and the domain classifier , are discarded. Therefore, the additional inference overhead over the base method is limited to the anomaly encoder .
4 Experiments
Datasets and protocol. We evaluate DART in the GAD setting, where a model trained on source domains is deployed on unseen target domains without fine-tuning. We use MVTec AD [1], VisA [2], and BraTS [35], covering industrial and medical anomaly detection. We adopt the same protocol of [12]: we use one dataset for training and another for testing, ensuring category-, dataset-, and acquisition-level isolation. Specifically, we consider VisA→MVTec AD, MVTec AD→VisA, and MVTec AD→BraTS. At inference, references are sampled from the target-domain training split and no parameters are updated.
CDMT protocol & reference selection. In CDMT, a domain is an object category, not a dataset: holds 15 categories when MVTec AD is the source and 12 when VisA is, and the target dataset is held out entirely (App. A.2). Each episode draws references from a source category and the query from a category (Table 1); episodes are same-domain () during a -epoch warmup, after which the cross-domain probability ramps linearly to (Sec. 3.3). The domain label in is the reference domain , whose appearance the residual inherits; the query domain does not enter the adversarial loss. At inference, query and references come from the same held-out target category. The abnormal reference is a single image (), sampled by the query's defect type on MVTec AD and uniformly on VisA.
Table 1: Representative CDMT episode triplets (). The target never appears as reference or query during training.
| Target | Reference | Query | Type |
|---|---|---|---|
| VisA-candle | MVTec-bottle | MVTec-bottle | same-domain (warmup) |
| VisA-candle | MVTec-bottle | MVTec-zipper | cross-domain |
| VisA-pcb1 | MVTec-transistor | MVTec-cable | cross-domain |
| MVTec-bottle | VisA-candle | VisA-pcb2 | cross-domain |
| MVTec-wood | VisA-macaroni1 | VisA-fryum | cross-domain |
| BraTS-brain | MVTec-pill | MVTec-capsule | cross-domain |
| BraTS-brain | MVTec-hazelnut | MVTec-screw | cross-domain |
Table 2: Comparison on MVTecAD and VisA datasets. : normal references; : one abnormal reference. +Inv: naive abnormal-reference integration without RDM. Bold/underline: best/runner-up per setting block. Shaded rows are our DART variants.
| Setting | Method | MVTecAD | VisA | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Image-level | Pixel-level | Image-level | Pixel-level | ||||||||||
| AUROC | AP | F1-max | AUROC | PRO | F1-max | AUROC | AP | F1-max | AUROC | PRO | F1-max | ||
| SPADE [37] | 81.0 | 90.6 | 90.3 | 91.2 | 83.9 | 42.4 | 79.5 | 82.0 | 80.7 | 95.6 | 84.1 | 35.5 | |
| WinCLIP [20] | 93.1 | 96.5 | 93.7 | 95.2 | 87.1 | 55.9 | 83.8 | 85.1 | 83.1 | 96.4 | 85.1 | 41.3 | |
| PromptAD [21] | 94.6 | 97.1 | - | 95.9 | 87.9 | - | 86.9 | 88.4 | - | 96.7 | 85.1 | - | |
| InCTRL [10] | 94.99 | 97.33 | 95.07 | - | - | - | 85.47 | 55.65 | 60.04 | - | - | - | |
| ResAD [11] | 85.70 | 93.10 | 90.90 | 94.40 | 84.50 | 49.80 | 81.20 | 82.50 | 81.20 | 95.20 | 78.80 | 33.30 | |
| NAGL [12] | 95.54 | 97.63 | 95.40 | 96.53 | 92.66 | 58.03 | 86.23 | 86.54 | 84.59 | 97.20 | 88.76 | 42.41 | |
| InCTRL+Inv | 95.41 | 97.72 | 94.97 | - | - | - | 79.87 | 55.37 | 57.95 | - | - | - | |
| ResAD+Inv | 82.70 | 91.10 | 89.90 | 93.20 | 81.00 | 46.60 | 74.70 | 76.70 | 78.20 | 94.00 | 72.80 | 25.30 | |
| Ours | NAGL+DART | 95.93 | 97.95 | 95.76 | 96.51 | 92.88 | 58.37 | 87.65 | 88.00 | 84.25 | 97.21 | 88.77 | 41.25 |
| InCTRL+DART | 95.55 | 97.74 | 95.21 | 94.52 | 85.23 | 51.16 | 86.06 | 60.10 | 63.31 | 95.44 | 69.15 | 27.24 | |
| ResAD+DART | 85.90 | 93.10 | 90.30 | 94.10 | 84.00 | 50.30 | 81.70 | 84.30 | 81.50 | 95.40 | 78.20 | 28.50 | |
| SPADE [37] | 82.9 | 91.7 | 91.1 | 92.0 | 85.7 | 44.5 | 80.7 | 82.3 | 81.7 | 96.2 | 85.7 | 40.5 | |
| WinCLIP [20] | 94.4 | 97.0 | 94.4 | 96.0 | 88.4 | 58.4 | 84.6 | 85.8 | 83.0 | 96.8 | 86.2 | 43.5 | |
| PromptAD [21] | 95.7 | 97.9 | - | 96.2 | 88.5 | - | 88.3 | 90.0 | - | 97.1 | 85.8 | - | |
| InCTRL [10] | 95.06 | 97.55 | 95.76 | - | - | - | 87.96 | 58.67 | 63.61 | - | - | - | |
| ResAD [11] | 87.60 | 94.10 | 91.70 | 95.30 | 86.30 | 51.60 | 83.20 | 84.20 | 82.20 | 95.90 | 80.40 | 37.40 | |
| NAGL [12] | 96.61 | 98.11 | 96.10 | 96.63 | 93.13 | 59.20 | 87.90 | 89.03 | 85.15 | 97.34 | 89.25 | 44.06 | |
| InCTRL+Inv | 95.73 | 97.88 | 95.33 | - | - | - | 81.41 | 56.55 | 57.96 | - | - | - | |
| ResAD+Inv | 84.90 | 92.20 | 90.10 | 94.20 | 83.10 | 48.10 | 77.60 | 79.80 | 78.90 | 94.70 | 75.30 | 28.60 | |
| Ours | NAGL+DART | 96.62 | 98.15 | 96.20 | 96.64 | 93.13 | 59.22 | 89.72 | 89.16 | 86.21 | 97.29 | 89.07 | 42.65 |
| InCTRL+DART | 96.21 | 98.12 | 95.32 | 94.81 | 85.65 | 52.37 | 88.64 | 63.72 | 65.73 | 96.37 | 70.45 | 28.04 | |
| ResAD+DART | 88.10 | 94.30 | 91.80 | 95.00 | 85.50 | 52.10 | 83.40 | 85.60 | 82.40 | 96.20 | 80.80 | 32.40 | |
| SPADE [37] | 84.8 | 92.5 | 91.5 | 92.7 | 87.0 | 46.2 | 81.7 | 83.4 | 82.1 | 96.6 | 87.3 | 43.6 | |
| WinCLIP [20] | 95.2 | 97.3 | 94.7 | 96.2 | 89.0 | 59.5 | 87.3 | 88.8 | 84.2 | 97.2 | 87.6 | 47.0 | |
| PromptAD [21] | 96.6 | 98.5 | - | 96.5 | 90.5 | - | 89.1 | 90.8 | - | 97.4 | 86.2 | - | |
| InCTRL [10] | 95.41 | 97.44 | 95.95 | - | - | - | 89.16 | 63.67 | 67.92 | - | - | - | |
| ResAD [11] | 89.90 | 95.10 | 92.50 | 95.90 | 87.50 | 53.40 | 87.00 | 87.90 | 84.60 | 96.40 | 82.80 | 39.50 | |
| NAGL [12] | 97.08 | 98.34 | 96.37 | 96.68 | 93.29 | 59.77 | 90.30 | 90.70 | 87.03 | 97.44 | 89.64 | 44.86 | |
| InCTRL+Inv | 94.19 | 97.43 | 94.46 | - | - | - | 80.29 | 55.49 | 55.48 | - | - | - | |
| ResAD+Inv | 87.40 | 93.50 | 91.00 | 94.90 | 84.80 | 49.30 | 82.00 | 83.40 | 81.30 | 95.80 | 79.00 | 31.70 | |
| Ours | NAGL+DART | 97.34 | 98.46 | 96.52 | 96.76 | 93.39 | 60.03 | 91.29 | 90.94 | 87.87 | 97.45 | 89.99 | 43.56 |
| InCTRL+DART | 95.64 | 97.76 | 96.08 | 95.52 | 86.22 | 53.31 | 90.14 | 69.95 | 70.05 | 96.92 | 71.18 | 29.47 | |
| ResAD+DART | 89.90 | 95.10 | 92.50 | 95.60 | 86.80 | 53.70 | 87.90 | 89.30 | 85.70 | 96.70 | 83.10 | 35.20 | |
Metrics. For MVTec AD and VisA, we report image-level AUROC, AP, and F1-max, and pixel-level AUROC, PRO [36], and F1-max. For BraTS, we report image-level AUROC, pixel-level AUROC, and their mean.
Host methods & baselines. We integrate DART into NAGL [12], the current normal-abnormal guided GAD baseline, and into adapted versions of two residual-based GAD methods: InCTRL [10] and ResAD [11]. This allows us to evaluate whether residual disentanglement improves both an existing normal-abnormal method and normal-only GAD pipelines extended with abnormal references. We compare against two groups of methods. The first comprises established few-shot AD approaches that use normal references only: SPADE [37], WinCLIP [20], and PromptAD [21], along with the vanilla (unmodified) versions of our three host methods InCTRL, ResAD, and NAGL. The second group evaluates the effect of introducing abnormal references: for each host method we report +Inv, which naively incorporates the abnormal reference without disentanglement, and +DART, which applies the full RDM pipeline. Comparing vanilla +Inv isolates the value of abnormal access alone, while comparing +Inv +DART isolates the contribution of residual disentanglement.
DART configuration. DART operates on the raw residual produced by each host method and leaves the downstream detection head unchanged. RDM contains an anomaly encoder , a domain encoder , a reconstruction decoder , and a domain classifier trained through gradient reversal. The objective combines anomaly sufficiency, adversarial domain invariance, and residual reconstruction. Training follows CDMT, with cross-domain episodes sampled from source domains only; target domains are never used for training, validation, or checkpoint selection. Host-method parameters remain frozen, and at inference only and the host detection head are retained. Implementation details and hyperparameters are provided in the supplementary material.
5 Results
State-of-the-art comparison. Table 2 compares DART against existing methods on the MVTec AD and VisA benchmarks. NAGL+DART achieves the highest image-level AUROC across all shot settings on both datasets. On MVTec AD, NAGL+DART reaches 95.93%, 96.62%, and 97.34% at , , and respectively, consistently outperforming all baselines including PromptAD (94.6%, 95.7%, 96.6%) and vanilla NAGL. On VisA, where the domain gap from the MVTec-trained source is largest, the improvements are more pronounced: NAGL+DART achieves 89.72% at , a +1.82% gain over vanilla NAGL (87.90%), and 91.29% at (+0.99% over NAGL). This pattern, larger gains under larger domain shift, is consistent with our hypothesis that residual domain entanglement is the primary bottleneck, and that its impact scales with the dissimilarity between source and target distributions. Gains are also most pronounced at low-shot settings (, ) where fewer target-domain references make cross-domain transfer most critical, and gradually narrow as additional references partially compensate for entanglement.
At the pixel level, NAGL+DART matches or improves upon vanilla NAGL on PRO and P-AUROC across most settings, while simultaneously achieving the best image-level metrics. This indicates that disentanglement does not sacrifice localization quality for classification gains, a common failure mode when modifying residual representations. The pixel-level F1-max shows occasional small drops (e.g., -1.16 at on VisA), which we attribute to F1's threshold sensitivity rather than to a systematic degradation, as both P-AUROC and PRO remain competitive.
Disentanglement vs. naive abnormal access. The +Inv rows in Table 2 separate access to abnormal references from disentangling them. Naive integration is unreliable and often harmful: ResAD+Inv loses -3.0 I-AUROC on MVTec AD and -6.5 on VisA at (PRO up to -6.0), and InCTRL+Inv swings from +0.42 at to -1.22 at without ever producing spatially coherent pixel-level maps. DART recovers and exceeds vanilla performance in the same settings, and the +Inv→+DART gap widens with domain shift: +6.19 I-AUROC on VisA at (79.87% vs. 86.06%), growing to +9.85 at (80.29% vs. 90.14%). Residual disentanglement, not mere abnormal access, drives the improvement; the full per-category breakdown is in App. A.8.
DART as a general plug-in. RDM operates on the residual r as a method-agnostic interface, requiring no modification to detection heads or method-specific hyperparameter tuning beyond and . This design choice is validated by the breadth of host methods: NAGL mines attention-based residuals over ViT patch tokens, InCTRL computes multi-layer in-context residuals from CLIP features, and ResAD learns distributional deviations via normalizing flows on WideResNet features, three substantially different architectures, all of which improve under DART without any method-specific adaptation. A notable emergent capability is pixel-level localization in InCTRL, which originally reported no segmentation metrics: disentangling the residual produces spatially meaningful anomaly maps as a byproduct, achieving P-AUROC of 94.52–95.71% on MVTec AD across shot settings.
Efficiency. DART's overhead is modest and front-loaded: training adds 3.1–20.1M parameters and ≈1 GPU-hour per setting on a single RTX4090, incurred once on source domains with the host frozen. At inference only is retained (+0.82M for InCTRL, +0.89M for NAGL, +9.06M for ResAD) and operates on low-dimensional residuals, so runtime overhead is negligible (Table 5).
5.1 Industrial-to-Medical Transfer
Table 3 evaluates DART on the most challenging setting, MVTec AD → BraTS (industrial defects → brain-tumor MRI). DART improves all three host methods on this extreme domain shift in nearly every setting, with gains substantially larger than those on industrial benchmarks. InCTRL+DART achieves the most striking improvement: +13.28% image-level AUROC at (65.20% → 78.48%) and +7.61% at (69.89% → 77.50%), while ResAD+DART improves by +5.20% at and NAGL+DART improves at both (+0.25%) and (+0.99%). The gains extend to localization: InCTRL+DART raises pixel-level AUROC from 83.65% to 87.67% at and from 90.06% to 93.85% at . The single exception is NAGL+DART at , where a pixel-level drop (93.00% → 90.33%) lowers the mean despite a slightly higher image-level AUROC; with two or more normal references it improves both. The magnified gains on BraTS support our core claim that the impact of residual domain entanglement scales with the severity of the domain shift.
Table 3: (a) Cross-domain evaluation on BraTS (MVTec AD → BraTS). I/P/M: image-/pixel-level AUROC and their mean. Bold/underline: best/runner-up per block. Shaded: DART variants. (b) Encoder architecture ablation on MVTec-AD and VisA. (c) Disentanglement strategy on MVTec-AD and VisA. (d) RDM–CDMT co-dependency. All ablations: InCTRL backbone, .
(a) BraTS state-of-the-art comparison
| Setting | Method | I | P | M |
|---|---|---|---|---|
| InCTRL [10] | 65.20 | 83.65 | 74.43 | |
| ResAD [11] | 72.30 | 93.40 | 82.85 | |
| NAGL [12] | 76.32 | 93.00 | 84.66 | |
| NAGL+DART | 76.36 | 90.33 | 83.35 | |
| InCTRL+DART | 78.48 | 87.67 | 83.08 | |
| ResAD+DART | 75.70 | 93.60 | 84.65 | |
| SPADE [37] | 58.0 | 92.8 | 75.4 | |
| WinCLIP [20] | 55.9 | 91.5 | 73.7 | |
| InCTRL [10] | 59.80 | 87.28 | 73.54 | |
| ResAD [11] | 66.20 | 93.30 | 79.75 | |
| NAGL [12] | 76.85 | 89.57 | 83.21 | |
| NAGL+DART | 77.10 | 89.95 | 83.53 | |
| InCTRL+DART | 64.11 | 92.20 | 78.16 | |
| ResAD+DART | 71.40 | 93.80 | 82.60 | |
| SPADE [37] | 66.3 | 94.8 | 80.6 | |
| WinCLIP [20] | 67.3 | 93.2 | 80.3 | |
| InCTRL [10] | 69.89 | 90.06 | 79.98 | |
| ResAD [11] | 69.50 | 93.40 | 81.45 | |
| NAGL [12] | 78.29 | 93.33 | 85.81 | |
| NAGL+DART | 79.28 | 92.54 | 85.91 | |
| InCTRL+DART | 77.50 | 93.85 | 85.68 | |
| ResAD+DART | 72.60 | 93.90 | 83.25 |
(b) Architecture (MVTec-AD / VisA)
| Variant | MVTec-AD | VisA | ||
|---|---|---|---|---|
| I-AUROC | I-AP | I-AUROC | I-AP | |
| Vanilla (InCTRL) | 95.06 | 97.55 | 87.96 | 58.67 |
| Linear projection | 95.16 | 97.57 | 81.29 | 58.25 |
| w/o LayerNorm | 94.30 | 97.31 | 84.65 | 59.18 |
| DART (full) | 96.21 | 98.12 | 88.64 | 63.72 |
(c) Strategy (MVTec-AD / VisA)
| Method | MVTec-AD | VisA | ||
|---|---|---|---|---|
| I-AUROC | I-AP | I-AUROC | I-AP | |
| Vanilla | 95.06 | 97.55 | 87.96 | 58.67 |
| Adversarial-only | 93.61 | 97.12 | 86.15 | 61.95 |
| Orthogonality-only | 93.32 | 96.89 | 85.94 | 61.79 |
| DART (ours) | 96.21 | 98.12 | 88.64 | 63.72 |
(d) RDM–CDMT co-dependency
| RDM | CDMT | MVTec-AD | VisA | ||
|---|---|---|---|---|---|
| I-AUROC | I-AUROC | ||||
| ✗ | ✗ | 95.06 | - | 87.96 | - |
| ✗ | ✓ | 95.06 | +0.00 | 87.96 | +0.00 |
| ✓ | ✗ | 95.54 | +0.48 | 88.17 | +0.21 |
| ✓ | ✓ | 96.21 | +1.15 | 88.64 | +0.68 |
5.2 Ablation Study
We ablate DART's components using InCTRL as the host method at shots. All ablations use the same training protocol; only the specified component is modified.
Architecture (Table 3b). Replacing the MLP encoder with a linear projection causes a sharp drop on VisA ( I-AUROC) while leaving MVTec-AD nearly unchanged, demonstrating that non-linear capacity is essential specifically for cross-domain disentanglement where the domain gap is larger. Removing LayerNorm degrades both datasets ( MVTec-AD, VisA), confirming its role in stabilizing the residual decomposition.
Disentanglement strategy (Table 3c). Both adversarial-only and orthogonality-only baselines degrade below vanilla on both datasets (up to MVTec-AD, VisA). Adversarial-only training suppresses domain information but lacks a constraint to preserve anomaly signal, allowing to collapse. Orthogonality-only training enforces geometric independence but permits anomaly-relevant directions to migrate into . DART's joint objective resolves both: prevents collapse, ensures completeness, and drives genuine domain suppression under these constraints. The gap over the best single-objective baseline confirms that no proper subset achieves the same effect.
Co-dependency of RDM and CDMT (Table 3d). CDMT without RDM is inert: with the backbone frozen, cross-domain episodes have no trainable parameters to update, so results are identical to Vanilla ( on both datasets). RDM without CDMT achieves only local disentanglement ( MVTec-AD, VisA), learning to suppress within-domain variance but not generalising across domains. Full DART achieves on MVTec-AD and on VisA, with the gains of and over RDM alone attributable entirely to CDMT's cross-domain supervision. The co-dependency is directional and structural: no proper subset achieves cross-domain invariance.
Table 4: (e) Loss term ablation; vs. DART (full). (f) Residual vs. feature space; vs. Vanilla. MVTec-AD, InC-TRL, .
(e) Loss terms
| Variant | I-AUROC | I-AP | |
|---|---|---|---|
| Vanilla (InCTRL) | 95.06 | 97.55 | -1.15 |
| w/o | 93.57 | 96.90 | -2.64 |
| w/o | 95.48 | 97.82 | -0.73 |
| w/o | 95.57 | 97.86 | -0.64 |
| w/o CDMT | 95.54 | 97.84 | -0.67 |
| DART (full) | 96.21 | 98.12 | - |
(f) Disentanglement space
| Method | I-AUROC | I-AP | |
|---|---|---|---|
| Vanilla | 95.06 | 97.55 | - |
| DART-F (feature) | 94.52 | 97.32 | -0.54 |
| DART (ours) | 96.21 | 98.12 | +1.15 |

Figure 3: Residual vs. feature space. (a) Domain silhouette (lower = less entanglement); (b) I-AUROC gain over Vanilla (MVTec AD, k=2). DART-F amplifies domain separation; DART reduces it, improving detection.
Loss terms (Table 4e). Removing causes the largest degradation ( I-AUROC), confirming that anomaly sufficiency is the most critical constraint: without it, has no explicit objective to retain discriminative information in . Removing , , or CDMT individually produces smaller but consistent drops ( to ), in line with their role as cross-domain regularizers whose benefit compounds under domain shift. The full model outperforms every partial variant, confirming that all components are jointly necessary. The same setting (, ) is used for all hosts and datasets with no per-host or per-dataset tuning.
Residual vs. feature space (Table 4f, Fig. 3). DART-F, which applies disentanglement in backbone feature space, degrades performance ( vs. vanilla) while DART improves it (). Silhouette analysis of the same 640-d residuals (identical normalization, no detector in the loop) reveals why: DART-F amplifies domain separation () because backbone features are domain-discriminative by pretraining design and a lightweight plug-in cannot override this geometry, whereas in residual space domain information is only incidental and DART suppresses it (). Relabeling the same residuals by defect type (computed within each category and averaged, as MVTec AD defect types are category-specific), the silhouette rises from 0.08 to 0.25 under DART while DART-F stalls at 0.10: domain identity becomes a weaker axis of variation in and defect identity a stronger one, demotion rather than deletion of domain information, and we do not claim perfect invariance. Anomaly preservation is enforced structurally: the frozen host head reads only , so any direction it uses cannot be discarded without paying ; removing indeed yields this degenerate solution, invariance by discarding, falling below the unmodified host (Table 4e).
6 Conclusion
In this work, we identified residual domain entanglement as a fundamental bottleneck limiting cross-domain transfer in normal-abnormal guided Generalist Anomaly Detection. To address this, we proposed DART, a plug-in framework comprising a Residual Disentanglement Module (RDM) and Cross-Domain Meta-Training (CDMT) that decomposes residuals into domain-agnostic anomaly components and domain-specific components. Extensive experiments across three host methods, three benchmarks, and three few-shot settings demonstrated that DART consistently improves cross-domain detection performance, with gains scaling with the severity of the domain shift (industrial-to-medical transfer). While adding 3–20M training-time parameters (0.8–9.1M at inference), DART delivers gains over vanilla (up to +1.82% I-AUROC on industrial benchmarks and +13.28% on medical transfer), whereas naive abnormal integration (+Inv) often degrades performance (e.g., -6.5% I-AUROC for ResAD on VisA), making DART's net gain over +Inv as high as +9.85%. Ablation studies confirmed that all components are jointly necessary and that disentanglement must operate in residual space. DART assumes at least one abnormal reference at test time, which zero-shot deployments may lack, and our evaluation is restricted to images; extending residual disentanglement to video and time-series anomalies is left to future work.
Acknowledgments
This work was supported by Fondazione Cariverona through the projects “SmartSpindle5.0” (Bando Ricerca e Sviluppo 2024/2025, Ref. 2025.0053, ID 54833, CUP B33C25002220007) and “FINAL LAP—FINALizzazione intelligente dei materiali LAPidei derivanti da taglio” (Bando Ricerca e Sviluppo 2024). The authors declare no competing interests.
References
[1] P. Bergmann, M. Fauser, D. Sattlegger, and C. Steger, “MVTec AD–A comprehensive real-world dataset for unsupervised anomaly detection,” in IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 9592–9600, 2019.
[2] Y. Zou, J. Jeong, L. Pemula, D. Zhang, and O. Dabeer, “Spot-the-difference self-supervised pre-training for anomaly detection and segmentation,” in European Conference on Computer Vision (ECCV), pp. 392–408, Springer, 2022.
[3] C. Baur, S. Denner, B. Wiestler, N. Navab, and S. Albarqouni, “Autoencoders for unsupervised anomaly segmentation in brain MR images: a comparative study,” Medical Image Analysis, vol. 69, p. 101952, 2021.
[4] G. Pang, C. Shen, L. Cao, and A. V. D. Hengel, “Deep learning for anomaly detection: A review,” ACM computing surveys (CSUR), vol. 54, no. 2, pp. 1–38, 2021.
[5] K. Roth, L. Pemula, J. Zepeda, B. Schölkopf, T. Brox, and P. Gehler, “Towards total recall in industrial anomaly detection,” in IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 14318–14328, 2022.
[6] D. Gudovskiy, S. Ishizaka, and K. Kozuka, “Cflow-ad: Real-time unsupervised anomaly detection with localization via conditional normalizing flows,” in IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), pp. 98–107, 2022.
[7] J. Yu, Y. Zheng, X. Wang, W. Li, Y. Wu, R. Zhao, and L. Wu, “FastFlow: Unsupervised anomaly detection and localization via 2D normalizing flows,” arXiv preprint arXiv:2111.07677, 2021.
[8] H. Deng and X. Li, “Anomaly detection via reverse distillation from one-class embedding,” in IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 9737–9746, 2022.
[9] M. Aqeel, S. Sharifi, M. Cristani, and F. Setti, “Meta learning-driven iterative refinement for robust anomaly detection in industrial inspection,” in European Conference on Computer Vision, pp. 445–460, Springer, 2024.
[10] J. Zhu and G. Pang, “Toward generalist anomaly detection via in-context residual learning with few-shot sample prompts,” in IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 17826–17836, 2024.
[11] X. Yao, Z. Chen, C. Gao, G. Zhai, and C. Zhang, “Resad: A simple framework for class generalizable anomaly detection,” Advances in Neural Information Processing Systems (NeurIPS), vol. 37, pp. 125287–125311, 2024.
[12] Y. Wang, X. Wang, Y. Gong, and J. Xiao, “Normal-abnormal guided generalist anomaly detection,” in Advances in Neural Information Processing Systems (NeurIPS), 2025.
[13] S. Ben-David, J. Blitzer, K. Crammer, A. Kulesza, F. Pereira, and J. W. Vaughan, “A theory of learning from different domains,” Machine Learning, vol. 79, no. 1, pp. 151–175, 2010.
[14] Y. Ganin, E. Ustinova, H. Ajakan, P. Germain, H. Larochelle, F. Laviolette, M. March, and V. Lempitsky, “Domain-adversarial training of neural networks,” Journal of Machine Learning Research, vol. 17, no. 59, pp. 1–35, 2016.
[15] T. Defard, A. Setkov, A. Loesch, and R. Audigier, “Padim: a patch distribution modeling framework for anomaly detection and localization,” in International Conference on Pattern Recognition (ICPR), pp. 475–489, Springer, 2021.
[16] Z. You, L. Cui, Y. Shen, K. Yang, X. Lu, Y. Zheng, and X. Le, “A unified model for multi-class anomaly detection,” Advances in Neural Information Processing Systems (NeurIPS), vol. 35, pp. 4571–4584, 2022.
[17] M. Salehi, N. Sadjadi, S. Baselizadeh, M. H. Rohban, and H. R. Rabiee, "Multiresolution knowledge distillation for anomaly detection," in IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 14902–14912, 2021.
[18] M. Aqeel, S. Sharifi, M. Cristani, and F. Setti, "Towards real unsupervised anomaly detection via confident meta-learning," in 2025 IEEE/CVF International Conference on Computer Vision (ICCV), pp. 4858–4867, IEEE, 2025.
[19] C. Huang, H. Guan, A. Jiang, Y. Zhang, M. Spratling, and Y.-F. Wang, "Registration based few-shot anomaly detection," in European Conference on Computer Vision (ECCV), pp. 303–319, Springer, 2022.
[20] J. Jeong, Y. Zou, T. Kim, D. Zhang, A. Ravichandran, and O. Dabeer, "Winclip: Zero-/few-shot anomaly classification and segmentation," in IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 19606–19616, 2023.
[21] X. Li, Z. Zhang, X. Tan, C. Chen, Y. Qu, Y. Xie, and L. Ma, "Promptad: Learning prompts with only normal samples for few-shot anomaly detection," in IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 16838–16848, 2024.
[22] M. Aqeel, M. Nazir, U. Khan, M. Cristani, and F. Setti, "Anomaly-aware vision-language adapters for zero-shot anomaly detection," in IEEE International Conference on Image Processing, pp. 1–6, 2026.
[23] M. Aqeel, D. Skočaj, M. Cristani, and F. Setti, "A contrastive learning-guided confident meta-learning for zero shot anomaly detection," in 2025 IEEE/CVF International Conference on Computer Vision Workshops (ICCVW), pp. 1463–1472, IEEE, 2025.
[24] M. Nazir, M. Aqeel, and F. Setti, "Diffusion-based data augmentation for medical image segmentation," in 2025 IEEE/CVF International Conference on Computer Vision Workshops (ICCVW), pp. 1341–1350, IEEE, 2025.
[25] X. Wang, Y. Wang, T. Dai, H. Bai, Y. Zhao, and J. Xiao, "Hunting normality from query sample via residual learning for generalist anomaly detection," in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 43093–43102, 2026.
[26] K. Muandet, D. Balduzzi, and B. Schölkopf, "Domain generalization via invariant feature representation," in International Conference on Machine Learning (ICML), pp. 10–18, PMLR, 2013.
[27] D. Li, Y. Yang, Y.-Z. Song, and T. Hospedales, "Learning to generalize: Meta-learning for domain generalization," in AAAI Conference on Artificial Intelligence, 2018.
[28] X. Peng, Z. Huang, X. Sun, and K. Saenko, "Domain agnostic learning with disentangled representations," in International Conference on Machine Learning (ICML), pp. 5102–5112, PMLR, 2019.
[29] A. H. Liu, Y.-C. Liu, Y.-Y. Yeh, and Y.-C. F. Wang, "A unified feature disentangler for multi-domain image translation and manipulation," Advances in Neural Information Processing Systems, vol. 31, 2018.
[30] D. P. Kingma and M. Welling, "Auto-encoding variational bayes," arXiv preprint arXiv:1312.6114, 2013.
[31] C. Finn, P. Abbeel, and S. Levine, "Model-agnostic meta-learning for fast adaptation of deep networks," in International Conference on Machine Learning (ICML), pp. 1126–1135, PMLR, 2017.
[32] J. Snell, K. Swersky, and R. Zemel, "Prototypical networks for few-shot learning," Advances in Neural Information Processing Systems (NeurIPS), vol. 30, 2017.
[33] H.-Y. Tseng, H.-Y. Lee, J.-B. Huang, and M.-H. Yang, "Cross-domain few-shot classification via learned feature-wise transformation," in International Conference on Learning Representations (ICLR), 2020.
[34] J. Cai and S. M. Shen, "Cross-domain few-shot learning with meta fine-tuning," arXiv preprint arXiv:2005.10544, 2020.
[35] B. H. Menze, A. Jakab, S. Bauer, J. Kalpathy-Cramer, K. Farahani, J. Kirby, Y. Burren, N. Porz, J. Slotboom, R. Wiest, et al., "The multimodal brain tumor image segmentation benchmark (BRATS)," IEEE Transactions on Medical Imaging, vol. 34, no. 10, pp. 1993–2024, 2014.
[36] P. Bergmann, M. Fauser, D. Sattlegger, and C. Steger, "Uninformed students: Student-teacher anomaly detection with discriminative latent embeddings," in IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 4183–4192, 2020.
[37] N. Cohen and Y. Hoshen, "Sub-image anomaly detection with deep pyramid correspondences," arXiv preprint arXiv:2005.02357, 2020.
[38] T. Miyato, T. Kataoka, M. Koyama, and Y. Yoshida, "Spectral normalization for generative adversarial networks," in International Conference on Learning Representations (ICLR), 2018.
NeurIPS Paper Checklist
1. Claims
Question: Do the main claims made in the abstract and introduction accurately reflect the paper's contributions and scope?
Answer: [Yes]
Justification: The claims in the Abstract and Section 1 are supported by the results in Table 2, Table 3 and the ablations in Section 5.2; the limitations are stated in the Conclusion.
Guidelines:
-
The answer [N/A] means that the abstract and introduction do not include the claims made in the paper.
-
The abstract and/or introduction should clearly state the claims made, including the contributions made in the paper and important assumptions and limitations. A [No] or [N/A] answer to this question will not be perceived well by the reviewers.
-
The claims made should match theoretical and experimental results, and reflect how much the results can be expected to generalize to other settings.
-
It is fine to include aspirational goals as motivation as long as it is clear that these goals are not attained by the paper.
2. Limitations
Question: Does the paper discuss the limitations of the work performed by the authors?
Answer: [Yes]
Justification: Limitations are stated at the end of the Conclusion (requirement of at least one abnormal reference at test time; image-only evaluation) and discussed further in Appendix A.6.
Guidelines:
-
The answer [N/A] means that the paper has no limitation while the answer [No] means that the paper has limitations, but those are not discussed in the paper.
-
The authors are encouraged to create a separate "Limitations" section in their paper.
-
The paper should point out any strong assumptions and how robust the results are to violations of these assumptions (e.g., independence assumptions, noiseless settings, model well-specification, asymptotic approximations only holding locally). The authors should reflect on how these assumptions might be violated in practice and what the implications would be.
-
The authors should reflect on the scope of the claims made, e.g., if the approach was only tested on a few datasets or with a few runs. In general, empirical results often depend on implicit assumptions, which should be articulated.
-
The authors should reflect on the factors that influence the performance of the approach. For example, a facial recognition algorithm may perform poorly when image resolution is low or images are taken in low lighting. Or a speech-to-text system might not be used reliably to provide closed captions for online lectures because it fails to handle technical jargon.
-
The authors should discuss the computational efficiency of the proposed algorithms and how they scale with dataset size.
-
If applicable, the authors should discuss possible limitations of their approach to address problems of privacy and fairness.
-
While the authors might fear that complete honesty about limitations might be used by reviewers as grounds for rejection, a worse outcome might be that reviewers discover limitations that aren't acknowledged in the paper. The authors should use their best judgment and recognize that individual actions in favor of transparency play an important role in developing norms that preserve the integrity of the community. Reviewers will be specifically instructed to not penalize honesty concerning limitations.
3. Theory assumptions and proofs
Question: For each theoretical result, does the paper provide the full set of assumptions and a complete (and correct) proof?
Answer: [N/A]
Justification: This paper does not include theoretical results.
Guidelines:
-
The answer [N/A] means that the paper does not include theoretical results.
-
All the theorems, formulas, and proofs in the paper should be numbered and cross-referenced.
-
All assumptions should be clearly stated or referenced in the statement of any theorems.
-
The proofs can either appear in the main paper or the supplemental material, but if they appear in the supplemental material, the authors are encouraged to provide a short proof sketch to provide intuition.
-
Inversely, any informal proof provided in the core of the paper should be complemented by formal proofs provided in appendix or supplemental material.
-
Theorems and Lemmas that the proof relies upon should be properly referenced.
4. Experimental result reproducibility
Question: Does the paper fully disclose all the information needed to reproduce the main experimental results of the paper to the extent that it affects the main claims and/or conclusions of the paper (regardless of whether the code and data are provided or not)?
Answer: [Yes]
Justification: Protocol, host methods, and the DART configuration are described in Section 4; architectures, hyperparameters, the CDMT curriculum, reference-selection and leakage controls are given in Appendices A.1–A.2.
Guidelines:
-
The answer [N/A] means that the paper does not include experiments.
-
If the paper includes experiments, a [No] answer to this question will not be perceived well by the reviewers: Making the paper reproducible is important, regardless of whether the code and data are provided or not.
-
If the contribution is a dataset and/or model, the authors should describe the steps taken to make their results reproducible or verifiable.
-
Depending on the contribution, reproducibility can be accomplished in various ways. For example, if the contribution is a novel architecture, describing the architecture fully might suffice, or if the contribution is a specific model and empirical evaluation, it may be necessary to either make it possible for others to replicate the model with the same dataset, or provide access to the model. In general, releasing code and data is often one good way to accomplish this, but reproducibility can also be provided via detailed instructions for how to replicate the results, access to a hosted model (e.g., in the case of a large language model), releasing of a model checkpoint, or other means that are appropriate to the research performed.
-
While NeurIPS does not require releasing code, the conference does require all submissions to provide some reasonable avenue for reproducibility, which may depend on the nature of the contribution. For example
(a) If the contribution is primarily a new algorithm, the paper should make it clear how to reproduce that algorithm.
(b) If the contribution is primarily a new model architecture, the paper should describe the architecture clearly and fully.
(c) If the contribution is a new model (e.g., a large language model), then there should either be a way to access this model for reproducing the results or a way to reproduce the model (e.g., with an open-source dataset or instructions for how to construct the dataset).
(d) We recognize that reproducibility may be tricky in some cases, in which case authors are welcome to describe the particular way they provide for reproducibility. In the case of closed-source models, it may be that access to the model is limited in some way (e.g., to registered users), but it should be possible for other researchers to have some path to reproducing or verifying the results.
5. Open access to data and code
Question: Does the paper provide open access to the data and code, with sufficient instructions to faithfully reproduce the main experimental results, as described in supplemental material?
Answer: [Yes]
Justification: Code is made available at https://github.com/aqeelmirza/DART (linked in the Abstract), with instructions to reproduce the main results. MVTec AD, VisA, and BraTS are public benchmarks, cited in Section 4.
Guidelines:
-
The answer [N/A] means that paper does not include experiments requiring code.
-
Please see the NeurIPS code and data submission guidelines (https://neurips.cc/public/guides/CodeSubmissionPolicy) for more details.
-
While we encourage the release of code and data, we understand that this might not be possible, so [No] is an acceptable answer. Papers cannot be rejected simply for not including code, unless this is central to the contribution (e.g., for a new open-source benchmark).
-
The instructions should contain the exact command and environment needed to run to reproduce the results. See the NeurIPS code and data submission guidelines (https://neurips.cc/public/guides/CodeSubmissionPolicy) for more details.
-
The authors should provide instructions on data access and preparation, including how to access the raw data, preprocessed data, intermediate data, and generated data, etc.
-
The authors should provide scripts to reproduce all experimental results for the new proposed method and baselines. If only a subset of experiments are reproducible, they should state which ones are omitted from the script and why.
-
At submission time, to preserve anonymity, the authors should release anonymized versions (if applicable).
-
Providing as much information as possible in supplemental material (appended to the paper) is recommended, but including URLs to data and code is permitted.
6. Experimental setting/details
Question: Does the paper specify all the training and test details (e.g., data splits, hyperparameters, how they were chosen, type of optimizer) necessary to understand the results?
Answer: [Yes]
Justification: Please see Section 4 and Appendix A.1 (optimizer, schedule, loss weights, curriculum, validation and checkpoint selection on source domains only).
Guidelines:
-
The answer [N/A] means that the paper does not include experiments.
-
The experimental setting should be presented in the core of the paper to a level of detail that is necessary to appreciate the results and make sense of them.
-
The full details can be provided either with the code, in appendix, or as supplemental material.
7. Experiment statistical significance
Question: Does the paper report error bars suitably and correctly defined or other appropriate information about the statistical significance of the experiments?
Answer: [Yes]
Justification: NAGL and NAGL+DART results are averaged over three independent seeds controlling the few-shot reference sampling, with 1-sigma standard deviations below 0.8 I-AUROC and 0.5 P-AUROC in all settings; the reported gains exceed these margins. InCTRL and ResAD follow the single-run protocol of their original papers. See Appendix A.3.
Guidelines:
-
The answer [N/A] means that the paper does not include experiments.
-
The authors should answer [Yes] if the results are accompanied by error bars, confidence intervals, or statistical significance tests, at least for the experiments that support the main claims of the paper.
-
The factors of variability that the error bars are capturing should be clearly stated (for example, train/test split, initialization, random drawing of some parameter, or overall run with given experimental conditions).
-
The method for calculating the error bars should be explained (closed form formula, call to a library function, bootstrap, etc.)
-
The assumptions made should be given (e.g., Normally distributed errors).
-
It should be clear whether the error bar is the standard deviation or the standard error of the mean.
-
It is OK to report 1-sigma error bars, but one should state it. The authors should preferably report a 2-sigma error bar than state that they have a 96% CI, if the hypothesis of Normality of errors is not verified.
-
For asymmetric distributions, the authors should be careful not to show in tables or figures symmetric error bars that would yield results that are out of range (e.g., negative error rates).
-
If error bars are reported in tables or plots, the authors should explain in the text how they were calculated and reference the corresponding figures or tables in the text.
8. Experiments compute resources
Question: For each experiment, does the paper provide sufficient information on the computer resources (type of compute workers, memory, time of execution) needed to reproduce the experiments?
Answer: [Yes]
Justification: Compute is reported in the Efficiency paragraph of the main text and in the Efficiency Analysis paragraph and Table 5 of Appendix A.1: a single NVIDIA RTX4090 (24 GB), ≈1 GPU-hour per setting, and 100–150 GPU-hours in total.
Guidelines:
- The answer [N/A] means that the paper does not include experiments.
- The paper should indicate the type of compute workers CPU or GPU, internal cluster, or cloud provider, including relevant memory and storage.
- The paper should provide the amount of compute required for each of the individual experimental runs as well as estimate the total compute.
- The paper should disclose whether the full research project required more compute than the experiments reported in the paper (e.g., preliminary or failed experiments that didn't make it into the paper).
9. Code of ethics
Question: Does the research conducted in the paper conform, in every respect, with the NeurIPS Code of Ethics https://neurips.cc/public/EthicsGuidelines?
Answer: [Yes]
Justification: We have read the NeurIPS Code of Ethics and confirm that our research complies with these ethical standards.
Guidelines:
- The answer [N/A] means that the authors have not reviewed the NeurIPS Code of Ethics.
- If the authors answer [No], they should explain the special circumstances that require a deviation from the Code of Ethics.
- The authors should make sure to preserve anonymity (e.g., if there is a special consideration due to laws or regulations in their jurisdiction).
10. Broader impacts
Question: Does the paper discuss both potential positive societal impacts and negative societal impacts of the work performed?
Answer: [Yes]
Justification: Please see the Social Impacts paragraph in Appendix A.6.
Guidelines:
-
The answer [N/A] means that there is no societal impact of the work performed.
-
If the authors answer [N/A] or [No], they should explain why their work has no societal impact or why the paper does not address societal impact.
-
Examples of negative societal impacts include potential malicious or unintended uses (e.g., disinformation, generating fake profiles, surveillance), fairness considerations (e.g., deployment of technologies that could make decisions that unfairly impact specific groups), privacy considerations, and security considerations.
-
The conference expects that many papers will be foundational research and not tied to particular applications, let alone deployments. However, if there is a direct path to any negative applications, the authors should point it out. For example, it is legitimate to point out that an improvement in the quality of generative models could be used to generate Deepfakes for disinformation. On the other hand, it is not needed to point out that a generic algorithm for optimizing neural networks could enable people to train models that generate Deepfakes faster.
-
The authors should consider possible harms that could arise when the technology is being used as intended and functioning correctly, harms that could arise when the technology is being used as intended but gives incorrect results, and harms following from (intentional or unintentional) misuse of the technology.
-
If there are negative societal impacts, the authors could also discuss possible mitigation strategies (e.g., gated release of models, providing defenses in addition to attacks, mechanisms for monitoring misuse, mechanisms to monitor how a system learns from feedback over time, improving the efficiency and accessibility of ML).
11. Safeguards
Question: Does the paper describe safeguards that have been put in place for responsible release of data or models that have a high risk for misuse (e.g., pre-trained language models, image generators, or scraped datasets)?
Answer: [N/A]
Justification: The released models are anomaly detectors for industrial and medical benchmark images and pose no such risks.
Guidelines:
-
The answer [N/A] means that the paper poses no such risks.
-
Released models that have a high risk for misuse or dual-use should be released with necessary safeguards to allow for controlled use of the model, for example by requiring that users adhere to usage guidelines or restrictions to access the model or implementing safety filters.
-
Datasets that have been scraped from the Internet could pose safety risks. The authors should describe how they avoided releasing unsafe images.
-
We recognize that providing effective safeguards is challenging, and many papers do not require this, but we encourage authors to take this into account and make a best faith effort.
12. Licenses for existing assets
Question: Are the creators or original owners of assets (e.g., code, data, models), used in the paper, properly credited and are the license and terms of use explicitly mentioned and properly respected?
Answer: [Yes]
Justification: All datasets (MVTec AD, VisA, BraTS) and host methods (InCTRL, ResAD, NAGL) are publicly released by their authors under their respective licenses and are cited in the paper; we use them unmodified for research purposes.
Guidelines:
-
The answer [N/A] means that the paper does not use existing assets.
-
The authors should cite the original paper that produced the code package or dataset.
-
The authors should state which version of the asset is used and, if possible, include a URL.
-
The name of the license (e.g., CC-BY 4.0) should be included for each asset.
-
For scraped data from a particular source (e.g., website), the copyright and terms of service of that source should be provided.
-
If assets are released, the license, copyright information, and terms of use in the package should be provided. For popular datasets, paperswithcode.com/datasets has curated licenses for some datasets. Their licensing guide can help determine the license of a dataset.
-
For existing datasets that are re-packaged, both the original license and the license of the derived asset (if it has changed) should be provided.
-
If this information is not available online, the authors are encouraged to reach out to the asset's creators.
13. New assets
Question: Are new assets introduced in the paper well documented and is the documentation provided alongside the assets?
Answer: [Yes]
Justification: The released code is documented in the repository (https://github.com/ageeelmirza/DART): training and evaluation instructions, the evaluation protocol, and an MIT license.
Guidelines:
- The answer [N/A] means that the paper does not release new assets.
- Researchers should communicate the details of the dataset/code/model as part of their submissions via structured templates. This includes details about training, license, limitations, etc.
- The paper should discuss whether and how consent was obtained from people whose asset is used.
- At submission time, remember to anonymize your assets (if applicable). You can either create an anonymized URL or include an anonymized zip file.
14. Crowdsourcing and research with human subjects
Question: For crowdsourcing experiments and research with human subjects, does the paper include the full text of instructions given to participants and screenshots, if applicable, as well as details about compensation (if any)?
Answer: [N/A]
Justification: Our paper does not involve crowdsourcing nor research with human subjects.
Guidelines:
- The answer [N/A] means that the paper does not involve crowdsourcing nor research with human subjects.
- Including this information in the supplemental material is fine, but if the main contribution of the paper involves human subjects, then as much detail as possible should be included in the main paper.
- According to the NeurIPS Code of Ethics, workers involved in data collection, curation, or other labor should be paid at least the minimum wage in the country of the data collector.
15. Institutional review board (IRB) approvals or equivalent for research with human subjects
Question: Does the paper describe potential risks incurred by study participants, whether such risks were disclosed to the subjects, and whether Institutional Review Board (IRB) approvals (or an equivalent approval/review based on the requirements of your country or institution) were obtained?
Answer: [N/A]
Justification: Our paper does not involve crowdsourcing nor research with human subjects.
Guidelines:
-
The answer [N/A] means that the paper does not involve crowdsourcing nor research with human subjects.
-
Depending on the country in which research is conducted, IRB approval (or equivalent) may be required for any human subjects research. If you obtained IRB approval, you should clearly state this in the paper.
-
We recognize that the procedures for this may vary significantly between institutions and locations, and we expect authors to adhere to the NeurIPS Code of Ethics and the guidelines for their institution.
-
For initial submissions, do not include any information that would break anonymity (if applicable), such as the institution conducting the review.
16. Declaration of LLM usage
Question: Does the paper describe the usage of LLMs if it is an important, original, or non-standard component of the core methods in this research? Note that if the LLM is used only for writing, editing, or formatting purposes and does not impact the core methodology, scientific rigor, or originality of the research, declaration is not required.
Answer: [N/A]
Justification: LLMs were used only for language editing; they are not a component of the method, experiments, or analysis.
Guidelines:
-
The answer [N/A] means that the core method development in this research does not involve LLMs as any important, original, or non-standard components.
-
Please refer to our LLM policy in the NeurIPS handbook for what should or should not be described.
A Supplementary Material
A.1 Implementation Details
Host methods. We reproduce each host method following its original protocol to ensure that observed gains are attributable to DART rather than implementation differences. InCTRL [10] uses a frozen OpenCLIP ViT-B/16-plus-240 backbone at 240×240 resolution, computing multi-layer patch-level cosine distance maps and image-level residual vectors between query and normal prompts. The learnable adapter and classifier are trained with binary focal loss while the CLIP backbone remains frozen. Full architectural details are provided in §A.4.1. ResAD [11] employs a frozen WideResNet-50 with multi-layer feature aggregation. A Feature Constraintor is trained with the log-barrier one-class loss, a normalizing-flow Feature Distribution Estimator is trained with the negative log-likelihood objective, and a VQ codebook is constructed during training and frozen at test time. Full details in §A.4.2. NAGL [12] uses a frozen DINov2 ViT-S/14 backbone (21M parameters) with learnable proxies and trains the Residual Mining (RM) and Anomaly Feature Learning (AFL) attention modules with AdamW (, decayed by 0.1 at epochs 10 and 15) for 20 epochs of 500 episodes. Full details in §A.4.3.
Across all three host methods, input resolution follows the original paper (no additional augmentation), and the same set of normal and abnormal references is shared per few-shot setting (with throughout, and ). NAGL results are averaged over three independent seeds, while InCTRL and ResAD follow the single-run protocol of their original papers (see §A.3).
DART hyperparameters. The Residual Disentanglement Module (RDM) consists of:
- Anomaly encoder : single transformer block (multi-head self-attention + FFN + Layer-Norm), hidden dimension matching the host method's residual dimension.
- Domain encoder : two-layer MLP with GELU activation and LayerNorm.
- Reconstruction decoder : two-layer MLP taking concatenated as input.
- Domain classifier : two-layer MLP with spectral normalization [38], preceded by a Gradient Reversal Layer (GRL) [14].
Loss weights are set to and for all experiments. RDM is optimized with AdamW (, weight decay ) using a cosine learning rate schedule over 30 epochs, with batch size 16 and gradient clipping at norm 1.0. The host method's parameters remain entirely frozen during DART training.
Cross-Domain Meta-Training (CDMT) protocol. For each evaluation target , the entire target dataset is held out and CDMT episodes are sampled exclusively from the complementary source pool (this protocol is summarized in Sec. 4 of the main text). Within each episode, with probability the reference and query are sampled from different source categories. Both and the GRL strength follow a two-phase curriculum:
- Phase 1 - Warmup (epochs 1 to ): all episodes are same-domain () and adversarial training is disabled (). Only are active, allowing the model to learn a stable residual decomposition.
- Phase 2 - Ramp-up (epochs to ): ramps linearly from 0 to , and follows the DANN schedule (Eq. 9 in the main text). The full objective is active.
Domain label in adversarial training. The domain label used in corresponds to the reference domain from which the normal-abnormal pair is drawn. This is the domain whose identity we want to suppress in : the residual is computed from references in , so any domain-specific information in originates from . The query domain does not enter the adversarial loss.
Adapting normal-only baselines for abnormal references. InCTRL and ResAD are originally designed for normal-only references. We adapt them for the setting as follows:
-
InCTRL+DART: The abnormal reference is passed through the frozen CLIP visual encoder alongside normal prompts. The residual between abnormal and normal token embeddings at each layer is computed analogously to the query-normal residual (Eq. 10), producing an abnormal-normal residual tensor. This tensor is fed into RDM, which outputs . The disentangled residual is then fused with the existing query-normal residual via concatenation before the scoring head.
-
ResAD+DART: The abnormal reference features are extracted from the frozen WideResNet backbone. Per-patch residuals between abnormal and normal features are computed via nearest-neighbor subtraction (Eq. 12). These residuals are fed into RDM to produce , which is concatenated with the original query-normal residual features before the Feature Constraintor and normalizing flow.
-
+Inv baseline: The same abnormal reference integration is performed, but without RDM, the raw abnormal-normal residual is concatenated directly. This isolates the contribution of disentanglement from the benefit of abnormal access.
Validation and model selection. Best checkpoints are selected by mean image-level AUROC on a held-out subset of source categories. No target-domain category, image, reference, label, or statistic is used during training, validation, hyperparameter tuning, or checkpoint selection.
Inference. At inference, the target domain is accessed for the first time. For each test query : (i) a few-shot support set is drawn from ; (ii) the raw residual is computed using the host method's pipeline; (iii) is extracted; (iv) the frozen detection head produces the anomaly score and segmentation map from . The domain encoder , decoder , and classifier are discarded. No parameters are updated on .
Efficiency Analysis. Tab. 5 summarizes the efficiency of each host method and the overhead introduced by DART, distinguishing training-time from inference-time cost. The full RDM adds 3.1M, 4.2M, and 20.1M parameters for InCTRL, NAGL, and ResAD respectively during training; at inference, only the anomaly encoder is retained (0.82M, 0.89M, and 9.06M), while the domain encoder, reconstruction decoder, and domain classifier are training-only components discarded after learning the residual decomposition. Training requires approximately 1 GPU-hour per setting (30 epochs on a single NVIDIA RTX4090 GPU) since the host backbone is fully frozen, and this cost is incurred only once: the learned module transfers to unseen target domains without any further optimization. Inference overhead is negligible as the RDM operates only on low-dimensional residual features. All results are reported for 1, 2 and 4 shot settings; total compute for all experiments (3 host methods 3 datasets 3 shot settings, with 3 seeds for NAGL) is approximately 100-150 GPU-hours on NVIDIA RTX4090 GPUs (24 GB VRAM).
Table 5: Efficiency comparison. DART overhead is split into training-time parameters (full RDM) and inference-time parameters (only retained); DART training time is 1 GPU-hour per setting for all hosts.
| Method | Host | DART Overhead (M) | |||
|---|---|---|---|---|---|
| Params (M) | Train (H) | FPS | Train | Inference | |
| InCTRL [10] | 117.5 | 0.7 | 1.2 | +3.1 | +0.82 |
| ResAD [11] | 59.2 | 20.6 | 7.8 | +20.1 | +9.06 |
| NAGL [12] | 24.4 | 0.3 | 17.1 | +4.2 | +0.89 |
A.2 Leakage Controls
A central concern in cross-domain anomaly detection is information leakage between training and evaluation. We enforce three levels of isolation, all derived from the leave-one-dataset-out design.
Category-level isolation. The evaluation category never appears as a source domain during training, since the entire dataset it belongs to is excluded from .
Dataset-level isolation. Categories within the same dataset share acquisition pipeline, lighting, sensor resolution, and annotation conventions. Excluding individual test categories while retaining other categories from the same dataset would leak domain-specific appearance statistics into training. Our leave-one-dataset-out construction eliminates this.
Support-set isolation. The few-shot reference images used at test time are drawn from the standard evaluation split of and are not observed during training under any sampling scheme.
Together, these conditions guarantee that performance on reflects genuine generalization from .
A.3 Statistical Significance
NAGL and NAGL+DART results are averaged over three independent seeds controlling the few-shot reference sampling, with standard deviations consistently below 0.8% for I-AUROC and 0.5% for P-AUROC across all datasets and shot settings; the observed DART improvements (e.g., +0.39% I-AUROC on MVTec at , +1.82% on VisA at ) exceed these margins by a substantial factor. InCTRL and ResAD follow the single-run evaluation protocol of their original papers [10, 11]; for these backbones, robustness of DART gains is evidenced by their consistency across all shot settings and the majority of per-category results (Tables 8–25).
A.4 Host Method Details
A.4.1 InCTRL
InCTRL [10] adapts CLIP to the few-shot anomaly detection setting by modeling the in-context residual between a query image and normal sample prompts. Given a query image and normal prompts , the frozen CLIP visual encoder produces patch token maps at each of its transformer blocks. A patch-level residual map is computed at each layer:
where retrieves the most similar patch embedding among all prompts. An image-level residual is obtained via a learnable adapter . A classifier scores this as . A text-based score is computed from CLIP text-image similarity. The final anomaly score combines all signals:
A.4.2 ResAD
ResAD [11] computes residual features by subtracting the nearest normal reference for each patch, making the representation class-invariant. For each input image , a frozen WideResNet-50 produces multi-layer feature maps . The per-patch residual is:
A Feature Constraintor projects normal residuals onto a hypersphere via a log-barrier one-class loss:
where . A normalizing-flow estimator models the constrained feature distribution; anomalies are flagged as low-likelihood outliers. A VQ codebook mitigates train-test distribution mismatch.
A.4.3 NAGL
NAGL [12] operates in the normal-abnormal guided setting, using residuals between abnormal and normal references as a transferable anomaly representation. Given query features , normal features , and abnormal features from a frozen ViT backbone, NAGL first computes a normal-guided score via nearest-neighbor patch matching. The Residual Mining (RM) module computes the abnormal–normal residual and uses learnable proxies with cross-attention and masked self-attention to produce residual proxies:
The Anomaly Feature Learning (AFL) module transfers these proxies onto the query via cross-attention, producing anomaly proxies that highlight abnormal regions. The final score fuses normal-guided and abnormal-guided maps. Training uses focal + dice loss for segmentation and BCE for classification.
A.5 Clarification: Which Residual Does RDM Operate On?
A potential source of confusion arises from the role of the abnormal reference in residual computation. We clarify this here.
The residual r. As shown in Fig. 2, the host residual operator computes
where is the query feature and are the normal and abnormal reference features. This single residual r is the input to RDM. The exact form of is method-specific: NAGL and ResAD compute the abnormal-normal residual via patch-level nearest-neighbour subtraction of against , while InCTRL computes it as a patch-level cosine distance map and an image-level residual vector across transformer layers. In all cases, r encodes the deviation of the abnormal reference from the normal reference, and RDM receives this as input regardless of how the host method produces it, making DART a true plug-in framework.
The role of in r. Within , provides the normal baseline and acts as a directional anchor, it encodes what anomaly looks like in the reference domain. Together, they orient r so that its magnitude and direction reflect how the query deviates from normal in the direction of the reference anomaly. This is precisely why r carries domain entanglement: both the transferable anomaly pattern and the domain-specific texture of are embedded in r.
What RDM does. RDM receives r and decomposes it into a domain-invariant anomaly component and a domain-specific component , such that . Only is passed to the host detection head, discarding the domain texture that would otherwise cause false activations on unseen domains. This decomposition is the core contribution of DART and is what enables consistent cross-domain gains across all three host methods.
The information-theoretic objective is meaningful because the anomaly label of the query varies across episodes, and must retain sufficient anomaly information from the reference to correctly classify the query, while shedding the domain-specific signal in .
A.6 Discussion
Limitations. DART requires at least one abnormal reference sample at test time, which may not always be available in zero-shot scenarios; our experiments also focus solely on image data, and extension to video or time-series modalities remains future work.
Social Impacts. As a plug-in framework for generalist anomaly detection, DART does not raise specific ethical issues or adverse societal effects. All datasets used are publicly available. Qualitative illustrations are derived from industrial product imagery and medical imaging benchmarks, ensuring no violation of personal privacy.
A.7 VisA Domain Entanglement Analysis
To empirically validate that residual domain entanglement is the core bottleneck addressed by DART, we visualize the token-level residual space using t-SNE on VisA at shots (Figure 4). Without DART, residuals form tight clusters organized by domain identity rather than anomaly semantics, confirming that the normal–abnormal difference vector carries substantial domain texture

(a) Without DART: clusters by domain identity

(b) With DART: clusters by anomaly type
Figure 4: t-SNE visualization of token-level residuals on VisA at . (a) Without DART, each category occupies a distinct region, indicating domain texture dominates. (b) With DART, defects of the same semantic type cluster together across domains.
information. With DART, RDM strips the domain-specific component: residuals reorganize into clusters aligned with defect type, grouping semantically similar anomalies across object categories. VisA exhibits particularly strong domain entanglement due to its high intra-class visual variance (structurally complex objects such as PCBs and food items), directly explaining why DART yields larger performance gains on VisA than on MVTec AD.
A.8 Disentanglement Analysis: Vanilla vs. +Inv vs. +DART
Table 6 provides the full vanilla/+Inv/+DART breakdown for all three host methods on MVTec AD and VisA across all shot settings ( through ), extending the mean-level +Inv comparison now included in Table 2 of the main paper with all twelve metrics and per-metric directional markers.
Naive abnormal integration (+Inv) is consistently harmful. Across all three host methods, the +Inv baseline, which incorporates abnormal references without disentanglement, degrades performance relative to vanilla in the majority of settings. The damage is most severe for ResAD, where +Inv drops I-AUROC by -3.0% on MVTec AD and -6.5% on VisA at , with pixel-level PRO degrading by up to -6.0 points. For InCTRL, +Inv is inconsistent: it provides marginal image-level gains at low shots (: +0.42%, : +0.67%) but degrades at higher shots (: -1.22%). Crucially, +Inv never produces pixel-level metrics for InCTRL, the entangled abnormal residuals generate spatially incoherent activations that prevent meaningful localization. These results confirm our core hypothesis: raw abnormal references carry domain-entangled information that corrupts rather than aids cross-domain detection.
DART consistently recovers and exceeds vanilla performance. In contrast to +Inv, DART improves over vanilla across all three host methods in the large majority of metrics and settings. On InCTRL, DART achieves +0.56% to +1.15% I-AUROC gains on MVTec AD across all shots, while simultaneously enabling pixel-level localization (P-AUROC 94.52–95.71%) that is entirely absent in both vanilla and +Inv. On ResAD, DART recovers the performance destroyed by +Inv and exceeds vanilla (e.g., +0.50% I-AUROC, +1.80% I-AP on VisA at ). On NAGL, which already handles abnormal references natively, DART provides consistent image-level gains on both datasets (up to +1.82% I-AUROC on VisA at ), with pixel-level metrics remaining competitive or improving.
The gap between +Inv and +DART widens with domain shift. On MVTec AD (where the VisA-trained model transfers to a moderately different industrial domain), the +Inv→+DART gap is moderate. On VisA (where the MVTec-trained model faces a larger domain shift), the gap widens substantially: for example, InCTRL+Inv drops to 79.87% I-AUROC at while InCTRL+DART
Table 6: Full disentanglement analysis on MVTec AD and VisA. Three variants per host method: vanilla (normal only), +Inv (naive abnormal addition without RDM), +DART (with RDM). ↑/↓: vs. vanilla.
| Setting | Method | MVTec AD | VisA | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Image-level | Pixel-level | Image-level | Pixel-level | ||||||||||
| AUROC | AP | F1 | AUROC | PRO | F1 | AUROC | AP | F1 | AUROC | PRO | F1 | ||
| N¹+A¹ | NAGL | 95.54 | 97.63 | 95.40 | 96.53 | 92.66 | 58.03 | 86.23 | 86.54 | 84.59 | 97.20 | 88.76 | 42.41 |
| NAGL+DART | 95.93 ↑ | 97.95 ↑ | 95.76 ↑ | 96.51 ↓ | 92.88 ↑ | 58.37 ↑ | 87.65 ↑ | 88.00 ↑ | 84.25 ↓ | 97.21 ↑ | 88.77 ↑ | 41.25 ↓ | |
| InCTRL | 94.99 | 97.33 | 95.07 | - | - | - | 85.47 | 55.65 | 60.04 | - | - | - | |
| InCTRL+Inv | 95.41 | 97.72 | 94.97 | - | - | - | 79.87 | 55.37 | 57.95 | - | - | - | |
| InCTRL+DART | 95.55 ↑ | 97.74 ↑ | 95.21 ↑ | 94.52 | 85.23 | 51.16 | 86.06 ↑ | 60.10 ↑ | 63.31 ↑ | 95.44 | 69.15 | 27.24 | |
| ResAD | 85.70 | 93.10 | 90.90 | 94.40 | 84.50 | 49.80 | 81.20 | 82.50 | 81.20 | 95.20 | 78.80 | 33.30 | |
| ResAD+Inv | 82.70 | 91.10 | 89.90 | 93.20 | 81.00 | 46.60 | 74.70 | 76.70 | 78.20 | 94.00 | 72.80 | 25.30 | |
| ResAD+DART | 85.90 ↑ | 93.10 | 90.30 ↓ | 94.10 ↓ | 84.00 ↓ | 50.30 ↑ | 81.70 ↑ | 84.30 ↑ | 81.50 ↑ | 95.40 ↑ | 78.20 ↓ | 28.50 ↓ | |
| N²+A¹ | NAGL | 96.61 | 98.11 | 96.10 | 96.63 | 93.13 | 59.20 | 87.90 | 89.03 | 85.15 | 97.34 | 89.25 | 44.06 |
| NAGL+DART | 96.62 ↑ | 98.15 ↑ | 96.20 ↑ | 96.64 ↑ | 93.13 | 59.22 ↑ | 89.72 ↑ | 89.16 ↑ | 86.21 ↑ | 97.29 ↑ | 89.07 ↑ | 42.65 ↓ | |
| InCTRL | 95.06 | 97.55 | 95.76 | - | - | - | 87.96 | 58.67 | 63.61 | - | - | - | |
| InCTRL+Inv | 95.73 | 97.88 | 95.33 | - | - | - | 81.41 | 56.55 | 57.96 | - | - | - | |
| InCTRL+DART | 96.21 ↑ | 98.12 ↑ | 95.32 ↓ | 94.81 | 85.65 | 52.37 | 88.64 ↑ | 63.72 ↑ | 65.73 ↑ | 96.37 | 70.45 | 28.04 | |
| ResAD | 87.60 | 94.10 | 91.70 | 95.30 | 86.30 | 51.60 | 83.20 | 84.20 | 82.20 | 95.90 | 80.40 | 37.40 | |
| ResAD+Inv | 84.90 | 92.20 | 90.10 | 94.20 | 83.10 | 48.10 | 77.60 | 79.80 | 78.90 | 94.70 | 75.30 | 28.60 | |
| ResAD+DART | 88.10 ↑ | 94.30 ↑ | 91.80 ↑ | 95.00 ↓ | 85.50 ↓ | 52.10 ↑ | 83.40 ↑ | 85.60 ↑ | 82.40 ↑ | 96.20 ↑ | 80.80 ↑ | 32.40 ↓ | |
| N⁴+A¹ | NAGL | 97.08 | 98.34 | 96.37 | 96.68 | 93.29 | 59.77 | 90.30 | 90.70 | 87.03 | 97.44 | 89.64 | 44.86 |
| NAGL+DART | 97.34 ↑ | 98.46 ↑ | 96.52 ↑ | 96.76 ↑ | 93.39 ↑ | 60.03 ↑ | 91.29 ↑ | 90.94 ↑ | 87.87 ↑ | 97.45 ↑ | 89.99 ↑ | 43.56 ↓ | |
| InCTRL | 95.41 | 97.44 | 95.95 | - | - | - | 89.16 | 63.67 | 67.92 | - | - | - | |
| InCTRL+Inv | 94.19 | 97.43 | 94.46 | - | - | - | 80.29 | 55.49 | 55.48 | - | - | - | |
| InCTRL+DART | 95.64 ↑ | 97.76 ↑ | 96.08 ↑ | 95.52 | 86.22 | 53.31 | 90.14 ↑ | 69.95 ↑ | 70.05 ↑ | 96.92 | 71.18 | 29.47 | |
| ResAD | 89.90 | 95.10 | 92.50 | 95.90 | 87.50 | 53.40 | 87.00 | 87.90 | 84.60 | 96.40 | 82.80 | 39.50 | |
| ResAD+Inv | 87.40 | 93.50 | 91.00 | 94.90 | 84.80 | 49.30 | 82.00 | 83.40 | 81.30 | 95.80 | 79.00 | 31.70 | |
| ResAD+DART | 89.90 | 95.10 | 92.50 | 95.60 ↓ | 86.80 ↓ | 53.70 ↑ | 87.90 ↑ | 89.30 ↑ | 85.70 ↑ | 96.70 ↑ | 83.10 ↑ | 35.20 ↓ | |
reaches 86.06%, a gap of +6.19 points. This scaling behavior directly validates that residual disentanglement becomes increasingly critical as the domain gap grows.
A.9 BraTS Disentanglement Analysis
Table 7a provides the full vanilla/+Inv/+DART breakdown on the MVTec AD → BraTS transfer, the most extreme domain shift in our evaluation (industrial defects → brain tumor MRI).
The industrial-to-medical gap amplifies both the problem and the solution. On BraTS, the +Inv baseline is again unreliable: InCTRL+Inv provides partial gains at (+3.77% I-AUROC) but degrades sharply at (-3.58%), while ResAD+Inv is consistently neutral or harmful (-2.20% at , -1.90% at ). DART, in contrast, produces substantially larger gains than on industrial benchmarks. InCTRL+DART improves by +13.28% I-AUROC at (65.20% → 78.48%) and +7.61% at (69.89% → 77.50%), representing the largest absolute improvements across all our experiments. ResAD+DART improves by +5.20% at and +3.10% at . NAGL+DART improves consistently at (+0.25%) and (+0.99%).
Why are BraTS gains so much larger? The industrial-to-medical domain shift is qualitatively different from inter-industrial transfer: the visual appearance, texture statistics, imaging modality, and anomaly semantics all change simultaneously. In this regime, domain-specific information in the residual is not merely unhelpful but actively misleading, industrial texture patterns have no correspondence in MRI data and generate pure noise in the anomaly map. Disentanglement removes this noise entirely, leaving only the domain-agnostic anomaly semantics (structural irregularity, boundary disruption, intensity deviation) that transfer across the modality boundary. The magnitude of improvement directly reflects the magnitude of domain entanglement removed.
NAGL+DART at on BraTS. The one setting where DART underperforms on BraTS is NAGL+DART at , where the mean metric drops from 84.66 to 83.35. This is attributable to a pixel-level AUROC drop (93.00 → 90.33) while the image-level metric improves slightly (76.32 → 76.36). We hypothesize that with only a single normal reference, NAGL's RM module, which already performs its own residual processing, has insufficient signal for RDM to learn a stable decomposition on this extreme domain shift. At and above, where additional references stabilize the residual computation, DART consistently improves NAGL on BraTS.
Table 7: BraTS disentanglement analysis and notation reference.
(a) BraTS disentanglement analysis (MVTec AD → BraTS). I/P/M: image-/pixel-level AUROC and their mean. ↑/↓: vs. vanilla.
| Setting | Method | I | P | M |
|---|---|---|---|---|
| NAGL | 76.32 | 93.00 | 84.66 | |
| NAGL+DART | 76.36 ↑ | 90.33 ↓ | 83.35 ↓ | |
| InCTRL | 65.20 | 83.65 | 74.43 | |
| InCTRL+Inv | 68.97 | 87.45 | 78.21 | |
| InCTRL+DART | 78.48 ↑ | 87.67 ↑ | 83.08 ↑ | |
| ResAD | 72.30 | 93.40 | 82.85 | |
| ResAD+Inv | 71.70 | 94.20 | 82.95 | |
| ResAD+DART | 75.70 ↑ | 93.60 ↑ | 84.65 ↑ | |
| NAGL | 76.85 | 89.57 | 83.21 | |
| NAGL+DART | 77.10 ↑ | 89.95 ↑ | 83.53 ↑ | |
| InCTRL | 59.80 | 87.28 | 73.54 | |
| InCTRL+Inv | 63.79 | 89.24 | 76.52 | |
| InCTRL+DART | 64.11 ↑ | 92.20 ↑ | 78.16 ↑ | |
| ResAD | 66.20 | 93.30 | 79.75 | |
| ResAD+Inv | 64.00 | 93.20 | 78.60 | |
| ResAD+DART | 71.40 ↑ | 93.80 ↑ | 82.60 ↑ | |
| NAGL | 78.29 | 93.33 | 85.81 | |
| NAGL+DART | 79.28 ↑ | 92.54 ↓ | 85.91 ↑ | |
| InCTRL | 69.89 | 90.06 | 79.98 | |
| InCTRL+Inv | 66.31 | 88.36 | 77.34 | |
| InCTRL+DART | 77.50 ↑ | 93.85 ↑ | 85.68 ↑ | |
| ResAD | 69.50 | 93.40 | 81.45 | |
| ResAD+Inv | 67.60 | 93.10 | 80.35 | |
| ResAD+DART | 72.60 ↑ | 93.90 ↑ | 83.25 ↑ |
(b) Notation reference.
| Symbol | Meaning |
|---|---|
| r | Raw residual (before disentanglement) |
| Domain-agnostic anomaly component | |
| Domain-specific component (discarded) | |
| Anomaly encoder (transformer block) | |
| Domain encoder (MLP) | |
| Reconstruction decoder | |
| Domain classifier with GRL | |
| Anomaly sufficiency loss | |
| Adversarial domain confusion loss | |
| Reconstruction loss | |
| Weight for (= 0.1) | |
| Weight for (= 0.5) | |
| GRL strength (DANN schedule) | |
| Cross-domain episode probability | |
| Warmup epochs (= 5) | |
| Reference domain in CDMT episode | |
| Query domain in CDMT episode | |
| Source domain pool | |
| Target domain (held out) | |
| Normal references () |
A.10 Notation Reference
For clarity, we provide a unified notation reference in Table 7b. The listed symbols are used consistently throughout the paper and supplement.
A.11 Additional Results
We provide per-category breakdowns for all three host methods (InCTRL, ResAD, and NAGL) across MVTecAD and VisA datasets for 1, 2, 4 shot settings. For each method, we report results for the vanilla baseline, the naive abnormal reference variant (+Inv), and our proposed DART variant (+DART). All metrics are reported as percentages.
Table 8: Per-category MVTecAD results for InCTRL variants, N1 + A1 (1-shot) setting. Pixel-level metrics reported only for InCTRL+DART. Category InCTRL InCTRL+Inv InCTRL+DART Category I-AUC AP I-F1 P-AUC PRO P-F1 I-AUC AP I-F1 P-AUC PRO P-F1 I-AUC AP I-F1 P-AUC PRO P-F1 bottle 99.92 99.98 99.21 - - - 99.60 99.88 98.44 - - - 99.68 99.90 98.44 97.68 89.63 68.43 cable 94.13 96.72 90.40 - - - 89.51 94.53 86.90 - - - 90.69 94.94 86.86 94.32 83.49 59.66 capsule 84.08 94.23 92.51 - - - 93.26 98.54 94.64 - - - 92.58 98.13 95.07 92.54 81.35 32.51 carpet 99.96 99.99 99.44 - - - 99.96 99.99 99.44 - - - 99.96 99.99 99.44 99.32 97.18 70.91 grid 98.33 99.53 98.25 - - - 98.75 99.63 99.12 - - - 99.00 99.69 99.12 97.68 91.47 35.77 hazelnut 99.64 99.80 97.81 - - - 97.32 98.77 95.65 - - - 97.57 98.89 97.06 98.45 89.52 59.31 leather 100.00 100.00 100.00 - - - 100.00 100.00 100.00 - - - 100.00 100.00 100.00 99.31 96.95 52.06 metal_nut 100.00 100.00 100.00 - - - 96.92 99.33 96.17 - - - 97.07 99.36 96.17 87.59 85.95 52.40 pill 94.19 98.85 96.06 - - - 90.40 97.40 95.07 - - - 90.78 97.54 95.41 93.90 93.35 57.96 screw 73.68 87.51 86.47 - - - 81.35 92.30 87.94 - - - 84.79 93.88 88.03 91.48 73.32 20.35 tile 99.86 99.94 98.82 - - - 98.74 99.61 98.18 - - - 98.81 99.64 98.80 95.62 86.20 68.30 toothbrush 96.11 98.54 93.33 - - - 95.28 98.30 93.33 - - - 91.67 96.18 93.33 97.39 78.99 49.77 transistor 86.88 85.31 76.71 - - - 91.92 88.04 82.22 - - - 92.38 88.33 83.33 87.10 64.62 40.87 wood 99.21 99.78 98.33 - - - 98.95 99.71 98.33 - - - 99.12 99.75 98.33 95.26 89.90 63.51 zipper 98.84 99.73 98.72 - - - 99.24 99.83 99.15 - - - 99.19 99.82 98.73 90.10 76.53 35.61 mean 94.99 97.33 95.07 - - - 95.41 97.72 94.97 - - - 95.55 97.74 95.21 94.52 85.23 51.16 Table 9: Per-category MVTecAD results for InCTRL variants, N2 + A1 (2-shot) setting. Pixel-level metrics reported only for InCTRL+DART. Category InCTRL InCTRL+Inv InCTRL+DART Category I-AUC AP I-F1 P-AUC PRO P-F1 I-AUC AP I-F1 P-AUC PRO P-F1 I-AUC AP I-F1 P-AUC PRO P-F1 bottle 99.84 99.95 99.20 - - - 99.76 99.93 98.44 - - - 99.68 99.90 98.44 97.47 89.01 68.12 cable 94.06 96.73 90.80 - - - 90.37 94.96 86.32 - - - 91.47 95.42 87.43 94.19 82.93 59.06 capsule 81.85 93.41 92.44 - - - 91.70 98.26 92.64 - - - 92.90 98.49 94.06 92.41 82.87 31.38 carpet 99.92 99.97 99.44 - - - 99.96 99.99 99.44 - - - 99.96 99.99 99.44 99.30 96.61 69.58 grid 98.33 99.53 98.25 - - - 98.83 99.65 99.12 - - - 99.16 99.74 99.12 97.86 92.33 36.19 hazelnut 99.89 99.94 99.29 - - - 97.61 98.90 97.06 - - - 97.82 99.00 97.06 98.69 90.28 63.91 leather 100.00 100.00 100.00 - - - 100.00 100.00 100.00 - - - 100.00 100.00 100.00 99.32 96.86 52.25 metal_nut 100.00 100.00 100.00 - - - 98.53 99.69 97.87 - - - 98.68 99.72 97.87 90.51 88.10 60.69 pill 94.24 98.80 95.44 - - - 92.80 98.55 94.74 - - - 92.39 98.44 94.41 93.87 93.89 58.07 screw 71.70 86.53 86.69 - - - 80.63 92.01 87.69 - - - 84.65 93.79 87.90 90.71 71.16 19.50 tile 99.89 99.96 98.82 - - - 99.49 99.83 99.40 - - - 99.60 99.86 99.40 95.68 86.72 67.70 toothbrush 97.22 98.93 95.08 - - - 94.72 98.24 94.92 - - - 94.17 98.02 93.33 98.14 78.94 51.98 transistor 90.25 89.89 83.54 - - - 92.54 88.47 84.78 - - - 93.79 89.79 83.87 88.36 66.41 43.27 wood 99.30 99.80 99.16 - - - 99.21 99.78 98.33 - - - 99.21 99.78 98.33 95.14 89.80 60.78 zipper 99.45 99.86 98.31 - - - 99.76 99.94 99.15 - - - 99.68 99.92 99.15 90.52 78.86 43.02 mean 95.06 97.55 95.76 - - - 95.73 97.88 95.33 - - - 96.21 98.12 95.32 94.81 85.65 52.37 Table 10: Per-category MVTecAD results for InCTRL variants, N4 +A1 (4-shot) setting. Pixel-level metrics reported only for InCTRL+DART. Category InCTRL InCTRL+Inv InCTRL+DART Category I-AUC AP I-F1 P-AUC PRO P-F1 I-AUC AP I-F1 P-AUC PRO P-F1 I-AUC AP I-F1 P-AUC PRO P-F1 bottle 100.00 100.00 100.00 - - - 99.84 99.95 99.21 - - - 99.92 99.98 99.21 97.71 89.12 68.98 cable 94.55 97.09 91.71 - - - 90.03 94.83 87.72 - - - 93.02 95.32 91.64 94.67 83.46 60.02 capsule 81.09 89.53 93.58 - - - 76.43 94.61 90.46 - - - 82.14 95.60 92.46 91.88 84.46 36.29 carpet 99.96 99.99 99.44 - - - 100.00 100.00 100.00 - - - 100.00 100.00 100.00 99.24 96.42 67.11 grid 98.83 99.65 99.12 - - - 98.41 99.46 96.49 - - - 98.83 99.61 98.21 98.19 92.88 37.96 hazelnut 99.71 99.83 99.29 - - - 96.54 98.18 97.10 - - - 98.82 98.32 98.10 98.99 92.86 66.11 leather 100.00 100.00 100.00 - - - 100.00 100.00 100.00 - - - 100.00 100.00 100.00 99.33 96.89 52.48 metal_nut 100.00 100.00 100.00 - - - 97.26 99.38 96.26 - - - 97.75 99.50 98.81 92.10 89.42 64.50 pill 95.42 99.08 96.86 - - - 91.84 98.44 93.33 - - - 89.83 97.32 95.43 94.29 93.67 57.96 screw 78.44 91.22 87.69 - - - 83.56 94.42 87.41 - - - 88.71 94.94 89.73 93.94 74.60 13.87 tile 100.00 100.00 100.00 - - - 99.28 99.77 99.40 - - - 99.35 99.79 99.40 95.64 85.54 67.31 toothbrush 95.83 98.37 94.92 - - - 90.00 96.40 89.29 - - - 95.50 97.36 95.10 98.05 77.13 52.38 transistor 89.12 87.27 80.00 - - - 91.62 86.48 82.76 - - - 92.96 89.08 84.72 91.18 68.45 49.01 wood 98.60 99.59 97.44 - - - 98.25 99.52 98.31 - - - 99.04 99.72 98.31 95.30 88.64 61.42 zipper 99.61 99.90 99.15 - - - 99.71 99.93 99.15 - - - 99.55 99.89 99.15 92.24 79.82 44.19 mean 95.41 97.44 95.95 - - - 94.19 97.43 94.46 - - - 95.64 97.76 96.08 95.52 86.22 53.31 Table 11: Per-category VisA results for InCTRL variants, N1 + A1 (1-shot) setting. Pixel-level metrics reported only for InCTRL+DART. Category InCTRL InCTRL+Inv InCTRL+DART Category I-AUC AP I-F1 P-AUC PRO P-F1 I-AUC AP I-F1 P-AUC PRO P-F1 I-AUC AP I-F1 P-AUC PRO P-F1 candle 83.40 39.46 48.57 - - - 80.79 65.08 65.38 - - - 85.60 53.64 53.97 98.61 88.59 26.32 capsules 67.76 49.66 51.61 - - - 67.94 49.20 51.43 - - - 66.45 35.86 41.86 92.84 56.32 27.16 cashew 91.00 74.09 67.86 - - - 89.50 78.55 72.00 - - - 86.63 65.56 60.00 98.38 77.92 34.23 chewinggum 97.09 93.75 88.89 - - - 99.23 97.00 90.48 - - - 96.41 90.20 86.96 98.92 79.07 50.84 fryum 95.40 89.32 85.71 - - - 77.10 65.86 66.67 - - - 94.50 86.29 82.93 92.46 72.27 30.28 macaroni1 83.12 48.23 54.90 - - - 82.19 41.06 45.83 - - - 84.17 63.13 64.86 96.35 74.84 21.63 macaroni2 75.74 36.27 44.12 - - - 70.33 30.90 41.03 - - - 80.81 59.80 65.00 94.19 75.10 16.56 pcb1 87.45 35.80 47.46 - - - 92.79 58.62 58.33 - - - 86.81 34.97 48.28 97.23 68.78 28.06 pcb2 80.29 24.00 37.21 - - - 60.39 12.42 20.74 - - - 80.29 23.78 37.21 93.25 51.19 8.58 pcb3 71.48 21.47 34.09 - - - 51.11 11.02 19.82 - - - 76.91 39.97 47.37 91.34 53.18 28.48 pcb4 96.50 69.85 81.82 - - - 98.28 87.44 87.50 - - - 96.53 74.22 81.82 92.35 45.83 10.05 pipe_fryum 96.38 85.87 78.26 - - - 88.76 67.24 76.19 - - - 97.57 93.77 89.47 99.39 86.67 44.68 mean 85.47 55.65 60.04 - - - 79.87 55.37 57.95 - - - 86.06 60.10 63.31 95.44 69.15 27.24 27
Table 12: Per-category VisA results for InCTRL variants, N2 + A1 (2-shot) setting. Pixel-level metrics reported only for InCTRL+DART. Category InCTRL InCTRL+Inv InCTRL+DART Category I-AUC AP I-F1 P-AUC PRO P-F1 I-AUC AP I-F1 P-AUC PRO P-F1 I-AUC AP I-F1 P-AUC PRO P-F1 candle 81.85 29.84 47.50 - - - 89.35 73.72 72.73 - - - 87.44 55.53 58.06 98.41 88.24 25.93 capsules 71.18 51.13 50.00 - - - 71.84 50.37 51.43 - - - 70.00 35.82 42.86 94.73 58.37 26.11 cashew 91.71 76.04 73.47 - - - 89.75 78.32 73.47 - - - 91.54 80.59 72.34 98.34 77.06 34.73 chewinggum 97.41 94.40 90.91 - - - 99.27 97.18 90.91 - - - 97.05 92.27 87.50 98.81 77.89 50.97 fryum 97.65 91.89 87.80 - - - 80.90 69.93 70.59 - - - 95.15 87.86 87.18 94.48 76.12 33.65 macaroni1 83.52 44.58 57.14 - - - 78.60 37.75 46.15 - - - 85.93 63.44 61.11 96.38 77.73 21.63 macaroni2 83.40 39.57 50.00 - - - 75.26 27.90 34.78 - - - 88.29 66.41 65.00 96.23 76.13 15.01 pcb1 90.90 46.36 52.46 - - - 93.86 61.64 62.22 - - - 90.33 44.18 50.75 97.88 68.13 29.69 pcb2 80.76 27.96 41.86 - - - 57.05 11.12 19.29 - - - 80.79 27.90 41.86 93.47 50.86 9.54 pcb3 86.21 53.72 60.00 - - - 54.86 15.93 20.00 - - - 82.70 49.80 55.32 94.11 58.13 29.04 pcb4 96.40 67.66 78.95 - - - 98.28 86.23 83.08 - - - 96.38 67.59 78.95 94.07 50.22 12.91 pipe_fryum 94.48 80.90 73.17 - - - 87.90 68.52 70.83 - - - 98.05 93.29 87.80 99.51 86.54 47.31 mean 87.96 58.67 63.61 - - - 81.41 56.55 57.96 - - - 88.64 63.72 65.73 96.37 70.45 28.04 Table 13: Per-category VisA results for InCTRL variants, N4 + A1 (4-shot) setting. Pixel-level metrics reported only for InCTRL+DART. Category InCTRL InCTRL+Inv InCTRL+DART Category I-AUC AP I-F1 P-AUC PRO P-F1 I-AUC AP I-F1 P-AUC PRO P-F1 I-AUC AP I-F1 P-AUC PRO P-F1 candle 78.37 23.08 43.14 - - - 88.98 71.93 66.67 - - - 88.81 56.61 54.55 98.60 88.32 25.18 capsules 73.64 50.80 48.48 - - - 66.23 41.34 41.38 - - - 73.46 48.39 48.48 94.58 58.90 26.80 cashew 90.71 78.60 73.17 - - - 89.38 77.17 71.70 - - - 90.62 80.08 71.11 98.16 77.19 35.25 chewinggum 97.09 88.34 93.33 - - - 93.36 90.76 86.36 - - - 98.00 96.79 95.45 98.81 77.97 52.46 fryum 97.80 94.26 88.89 - - - 89.90 81.73 76.92 - - - 96.10 91.63 86.49 95.95 72.60 36.45 macaroni1 92.55 67.87 66.67 - - - 61.43 23.53 23.40 - - - 92.57 67.80 66.67 96.92 80.02 19.12 macaroni2 89.33 49.31 63.83 - - - 78.55 31.14 40.82 - - - 90.14 71.54 73.68 96.88 75.77 18.57 pcb1 93.83 56.89 59.02 - - - 93.69 62.79 57.14 - - - 93.60 56.50 57.89 98.31 70.29 33.59 pcb2 83.61 48.95 63.16 - - - 51.55 8.99 18.29 - - - 83.68 49.31 64.86 93.98 55.53 11.50 pcb3 78.77 40.89 54.55 - - - 60.18 12.19 23.76 - - - 79.15 48.09 53.57 95.06 56.23 31.49 pcb4 97.16 78.53 80.00 - - - 98.14 84.49 84.85 - - - 97.18 79.07 80.00 96.24 53.97 15.90 pipe_fryum 97.10 86.54 80.77 - - - 92.14 79.88 74.42 - - - 98.33 93.58 87.80 99.53 87.32 47.34 mean 89.16 63.67 67.92 - - - 80.29 55.49 55.48 - - - 90.14 69.95 70.05 96.92 71.18 29.47 Table 14: Per-category MVTecAD results for ResAD variants, N1 + A1 (1-shot) setting. ResAD ResAD+Inv ResAD+DART Category I-AUC AP I-F1 P-AUC PRO P-F1 I-AUC AP I-F1 P-AUC PRO P-F1 I-AUC AP I-F1 P-AUC PRO P-F1 bottle 100.00 100.00 100.00 98.65 96.06 76.37 99.52 99.84 99.21 98.83 95.63 78.45 100.00 100.00 100.00 98.70 96.27 77.18 cable 79.20 87.47 82.24 93.06 73.38 34.87 79.87 87.83 80.21 90.52 69.03 27.24 81.09 88.36 81.31 93.25 75.29 37.91 capsule 78.30 94.44 93.56 97.80 91.61 44.26 77.58 94.56 91.30 97.72 89.86 45.86 81.65 95.40 92.37 97.83 92.01 45.06 carpet 99.72 99.91 98.86 99.28 96.57 65.32 95.87 98.77 95.46 98.52 93.93 59.03 99.32 99.80 97.75 99.25 96.58 66.91 grid 77.94 91.28 87.69 83.14 64.08 23.34 72.77 86.23 87.02 79.00 55.30 17.13 82.21 92.99 88.00 81.35 64.97 24.04 hazelnut 83.93 91.79 84.44 97.70 84.99 55.62 88.11 94.12 87.59 97.98 86.26 61.99 77.18 88.03 79.41 97.45 81.39 56.96 leather 100.00 100.00 100.00 99.35 97.98 49.21 100.00 100.00 100.00 99.40 98.15 51.46 99.93 99.98 99.45 99.40 97.90 53.33 metal_nut 87.00 96.81 91.63 96.73 86.22 78.25 74.29 92.82 91.18 95.36 76.35 70.07 86.12 96.49 91.63 96.51 86.23 78.49 pill 91.84 98.43 95.41 97.26 95.81 65.07 87.37 97.28 93.43 97.26 96.19 65.36 91.93 98.48 94.37 97.47 95.89 66.33 screw 47.28 74.59 85.61 94.02 79.64 4.69 48.68 75.54 85.61 91.94 72.78 3.45 50.58 76.15 85.61 94.63 81.30 7.23 tile 99.21 99.70 97.01 95.57 85.72 63.39 98.34 99.41 97.01 93.02 81.65 58.55 99.24 99.71 97.01 95.79 86.27 67.61 toothbrush 74.72 89.86 86.96 97.13 74.27 52.40 68.61 86.39 85.71 95.93 70.27 37.84 70.83 87.62 85.71 96.00 71.48 42.09 transistor 78.00 76.92 68.24 74.91 62.62 33.11 64.46 59.53 63.74 72.37 59.60 31.33 79.71 77.57 70.10 73.46 61.92 31.10 wood 99.21 99.77 98.30 95.25 89.72 55.07 99.30 99.80 99.16 94.50 87.13 53.89 98.77 99.64 97.44 94.90 86.78 56.78 zipper 88.68 95.70 93.98 96.73 88.30 46.63 85.90 94.88 92.61 95.08 83.51 38.05 90.34 96.47 94.17 95.98 85.98 44.21 mean 85.67 93.11 90.93 94.44 84.46 49.84 82.71 91.13 89.95 93.16 81.04 46.65 85.93 93.11 90.29 94.13 84.02 50.35 Table 15: Per-category MVTecAD results for ResAD variants, N2 + A1 (2-shot) setting. ResAD ResAD+Inv ResAD+DART Category I-AUC AP I-F1 P-AUC PRO P-F1 I-AUC AP I-F1 P-AUC PRO P-F1 I-AUC AP I-F1 P-AUC PRO P-F1 bottle 99.92 99.98 99.21 98.76 96.39 77.40 99.44 99.82 99.21 98.88 95.71 78.87 100.00 100.00 100.00 98.80 96.71 78.27 cable 80.38 88.10 83.18 93.97 76.69 38.62 81.99 88.89 81.67 91.99 73.10 29.94 85.98 91.27 83.65 93.97 77.97 40.42 capsule 83.21 95.77 92.98 98.33 93.15 44.60 85.04 96.46 92.51 98.30 92.25 48.25 86.28 96.68 93.21 98.35 93.37 45.49 carpet 99.76 99.93 98.86 99.27 96.46 65.03 97.39 99.24 96.59 98.69 94.67 59.33 99.24 99.78 98.30 99.24 96.54 66.59 grid 83.46 93.17 88.71 87.53 71.09 23.31 83.29 93.40 88.00 83.28 60.24 14.73 87.80 95.42 90.91 84.75 65.16 24.39 hazelnut 83.75 91.95 81.54 98.13 87.65 57.51 87.36 93.69 83.66 98.41 88.57 63.78 77.68 88.08 80.25 97.97 85.15 58.26 leather 100.00 100.00 100.00 99.37 98.01 49.42 100.00 100.00 100.00 99.41 98.14 50.77 100.00 100.00 100.00 99.45 98.15 53.41 metal_nut 88.42 97.10 92.54 96.97 87.20 79.16 77.96 94.08 91.54 95.87 78.87 73.00 87.68 97.05 92.00 96.83 87.51 79.45 pill 92.74 98.60 95.41 97.51 96.20 65.67 89.47 97.81 94.16 97.60 96.47 66.40 92.06 98.50 94.70 97.67 96.17 66.82 screw 52.04 74.46 85.61 95.13 82.76 8.04 47.57 74.20 85.61 93.11 75.96 4.39 53.00 76.40 85.61 95.43 83.68 10.55 tile 99.53 99.82 97.67 95.64 85.93 63.67 98.63 99.47 96.47 93.51 83.17 59.44 99.53 99.82 98.20 95.85 86.59 67.22 toothbrush 73.06 88.98 88.23 97.19 74.64 54.25 69.17 86.37 88.23 95.79 69.97 37.43 71.11 87.81 88.23 96.10 71.91 44.96 transistor 86.50 86.57 76.71 79.28 64.98 37.45 64.79 63.04 59.79 75.91 62.39 33.82 88.12 86.09 78.65 77.96 64.21 35.57 wood 99.30 99.79 98.33 95.26 90.44 55.21 99.39 99.83 99.16 94.71 87.50 54.07 98.95 99.67 98.33 94.99 87.89 56.69 zipper 91.96 97.01 96.69 97.88 92.40 54.12 91.67 97.21 94.69 97.04 89.60 48.00 93.38 97.74 95.51 97.64 91.49 53.34 mean 87.60 94.08 91.71 95.35 86.27 51.56 84.88 92.23 90.09 94.17 83.11 48.15 88.05 94.29 91.84 95.00 85.50 52.10 28
Table 16: Per-category MVTecAD results for ResAD variants, N4 + A1 (4-shot) setting. ResAD ResAD+Inv ResAD+DART Category I-AUC AP I-F1 P-AUC PRO P-F1 I-AUC AP I-F1 P-AUC PRO P-F1 I-AUC AP I-F1 P-AUC PRO P-F1 bottle 99.76 99.92 99.21 98.81 96.46 77.62 99.44 99.82 99.21 98.89 95.90 78.83 100.00 100.00 100.00 98.88 96.72 78.71 cable 84.58 90.54 85.18 95.04 79.48 45.04 82.74 89.37 80.79 93.17 75.25 32.99 86.73 91.88 83.17 95.03 80.84 45.98 capsule 89.51 97.40 94.22 98.53 93.45 47.20 86.84 96.94 94.32 98.58 92.90 48.54 91.62 97.97 94.74 98.54 93.75 47.40 carpet 99.72 99.91 98.32 99.23 96.22 64.06 97.35 99.21 96.59 98.48 93.82 57.59 99.28 99.79 98.30 99.20 96.23 65.59 grid 90.48 96.48 90.00 91.17 75.78 30.55 90.48 96.18 92.44 87.91 68.39 19.93 92.40 97.08 92.56 89.29 69.78 28.21 hazelnut 88.79 94.10 85.16 98.40 89.76 59.67 92.57 96.13 88.73 98.51 90.25 64.56 84.64 92.05 83.97 98.30 88.04 60.41 leather 100.00 100.00 100.00 99.37 98.16 49.22 100.00 100.00 100.00 99.42 98.09 50.93 100.00 100.00 100.00 99.45 98.13 53.49 metal_nut 93.94 98.61 93.12 98.17 91.98 84.39 89.25 97.34 91.84 97.78 87.54 81.14 92.86 98.34 93.55 98.07 91.63 84.53 pill 91.65 98.40 94.81 97.58 96.41 66.25 89.66 97.87 94.12 97.75 96.65 67.37 92.31 98.56 95.04 97.74 96.35 67.41 screw 56.61 76.03 85.61 95.96 85.02 11.36 53.39 76.00 86.23 94.26 79.22 5.32 56.22 77.01 85.61 96.19 85.76 12.45 tile 99.60 99.84 98.25 95.86 86.35 64.31 98.49 99.42 97.01 93.36 82.96 58.53 99.68 99.87 98.81 96.13 86.76 67.99 toothbrush 73.06 88.94 88.23 96.95 74.16 52.11 68.06 85.55 88.23 95.45 69.49 34.57 70.83 87.45 88.23 95.76 71.46 44.06 transistor 88.67 88.58 81.08 79.92 66.03 37.83 68.63 69.89 61.36 77.10 63.60 34.57 88.96 88.54 81.08 78.63 65.34 36.33 wood 99.30 99.79 98.33 95.24 89.98 55.37 99.47 99.85 99.16 94.73 87.52 54.19 98.77 99.62 97.52 94.96 87.50 56.75 zipper 92.75 97.51 95.87 98.10 92.76 55.88 94.09 98.23 94.96 97.40 90.80 50.63 93.75 97.98 95.55 97.92 93.04 55.48 mean 89.89 95.07 92.49 95.89 87.47 53.39 87.36 93.45 91.00 94.85 84.83 49.31 89.87 95.08 92.54 95.61 86.76 53.65 Table 17: Per-category VisA results for ResAD variants, N1 + A1 (1-shot) setting. ResAD ResAD+Inv ResAD+DART Category I-AUC AP I-F1 P-AUC PRO P-F1 I-AUC AP I-F1 P-AUC PRO P-F1 I-AUC AP I-F1 P-AUC PRO P-F1 candle 86.25 84.83 80.24 98.26 93.44 32.97 85.09 84.29 80.67 98.20 93.76 27.06 89.19 88.35 84.00 98.96 95.14 29.39 capsules 70.74 78.74 78.75 95.32 76.09 29.60 58.38 73.05 76.92 95.33 60.69 28.89 58.62 68.84 76.98 94.13 71.42 18.78 cashew 91.08 95.16 87.53 96.22 89.72 41.13 93.18 96.86 90.45 95.85 89.31 38.56 93.12 96.68 91.79 97.53 90.83 45.43 chewinggum 97.48 97.88 95.22 98.49 82.33 64.47 95.56 98.10 93.94 98.38 75.58 55.96 98.30 99.27 96.41 98.96 82.17 54.46 fryum 77.49 88.50 81.64 90.67 70.89 35.00 70.34 83.46 81.15 90.31 67.66 31.89 76.78 88.38 82.01 90.68 70.72 31.02 macaroni1 79.49 82.04 73.86 97.84 85.67 29.36 64.87 68.08 68.49 95.09 71.58 12.32 76.49 80.76 70.74 97.87 82.44 20.71 macaroni2 70.18 67.47 72.13 95.84 79.89 6.87 65.72 61.91 71.21 93.35 70.40 2.42 77.69 78.64 75.81 96.71 84.24 9.34 pcb1 79.60 74.29 78.42 96.48 74.55 52.58 66.23 59.42 73.00 93.72 72.53 19.10 84.78 81.47 81.98 95.26 70.92 24.51 pcb2 61.91 58.42 68.60 92.31 63.49 16.36 60.59 59.81 68.18 92.56 64.18 8.90 66.62 68.60 68.46 92.49 63.54 15.40 pcb3 70.21 71.74 70.05 94.00 70.91 36.39 69.16 69.39 70.42 94.12 63.52 28.99 70.70 70.32 71.21 94.05 67.89 26.55 pcb4 93.64 91.99 90.87 89.60 65.45 17.23 73.23 69.04 72.41 84.62 52.46 7.40 91.92 91.92 84.65 90.09 65.66 16.64 pipe_fryum 96.42 97.46 94.73 96.87 92.28 47.71 93.62 97.08 91.28 96.61 91.87 42.57 96.70 98.48 94.42 97.87 93.82 49.79 mean 81.21 82.38 81.00 95.16 78.73 34.14 74.66 76.71 78.18 94.01 72.80 25.34 81.74 84.31 81.54 95.38 78.23 28.50 Table 18: Per-category VisA results for ResAD variants, N2 + A1 (2-shot) setting. ResAD ResAD+Inv ResAD+DART Category I-AUC AP I-F1 P-AUC PRO P-F1 I-AUC AP I-F1 P-AUC PRO P-F1 I-AUC AP I-F1 P-AUC PRO P-F1 candle 84.83 82.11 81.59 98.35 93.35 31.24 83.63 82.18 78.22 98.23 93.59 25.66 86.53 86.02 81.38 98.83 94.93 27.32 capsules 73.19 82.16 79.27 97.18 80.27 49.36 67.37 77.79 77.22 96.24 62.53 39.99 66.88 73.55 79.34 97.18 76.53 36.21 cashew 91.83 95.37 88.25 96.48 90.40 42.10 94.08 97.47 91.01 96.47 90.91 41.06 95.18 97.85 93.14 97.76 91.65 47.64 chewinggum 97.53 97.81 95.54 98.62 81.91 64.10 98.36 99.24 95.10 98.44 76.59 57.14 98.68 99.40 96.52 98.92 82.60 53.90 fryum 82.05 90.31 83.23 90.92 71.48 36.17 68.66 84.15 81.33 90.65 70.59 33.21 72.38 85.81 80.69 91.11 71.99 33.82 macaroni1 83.13 84.73 77.05 98.22 88.10 30.23 68.94 72.08 69.50 95.72 76.17 14.23 82.75 85.52 75.13 98.49 88.40 23.05 macaroni2 65.87 67.10 67.28 95.95 79.54 8.27 66.46 63.82 70.69 93.10 69.62 1.74 73.64 73.33 72.73 96.94 84.31 8.91 pcb1 79.47 73.99 80.55 96.72 74.59 51.98 66.65 59.89 74.42 94.29 73.24 20.36 83.14 80.27 83.48 95.44 71.35 25.70 pcb2 67.93 64.74 68.35 93.74 67.37 30.19 65.50 63.26 69.89 94.22 66.66 16.87 73.68 74.49 70.31 94.12 69.90 29.74 pcb3 82.60 82.54 77.86 95.13 76.69 39.70 76.28 78.25 73.02 95.71 73.09 37.83 75.73 77.26 71.32 95.15 73.46 34.20 pcb4 93.95 92.50 93.29 91.56 68.76 18.71 82.17 82.09 76.73 86.97 58.38 12.29 95.29 94.54 91.24 92.43 70.87 19.70 pipe_fryum 96.59 97.31 94.04 97.19 92.41 46.76 93.52 96.91 90.15 96.88 92.52 42.55 97.44 98.77 94.12 97.81 93.98 49.13 mean 83.25 84.22 82.19 95.84 80.41 37.40 77.63 79.76 78.94 94.74 75.32 28.58 83.44 85.57 82.45 96.18 80.83 32.44 Table 19: Per-category VisA results for ResAD variants, N4 + A1 (4-shot) setting. ResAD ResAD+Inv ResAD+DART Category I-AUC AP I-F1 P-AUC PRO P-F1 I-AUC AP I-F1 P-AUC PRO P-F1 I-AUC AP I-F1 P-AUC PRO P-F1 candle 86.52 83.89 82.31 98.55 94.18 31.39 84.32 81.67 80.00 98.54 94.25 27.13 88.63 86.94 81.82 98.92 95.25 27.99 capsules 79.18 86.78 79.96 97.56 82.94 52.76 68.82 80.26 77.65 96.88 67.59 44.73 73.55 81.87 81.55 97.45 81.53 45.19 cashew 92.92 96.33 89.69 96.73 91.22 42.94 94.66 97.56 90.32 96.65 91.37 41.93 95.48 97.99 92.86 97.88 91.54 48.84 chewinggum 98.22 98.59 97.37 98.73 82.11 63.76 98.52 99.33 96.91 98.66 76.40 59.10 99.30 99.70 98.49 98.94 81.02 54.25 fryum 87.55 93.85 84.88 91.56 73.35 38.63 78.02 88.70 83.33 91.40 72.04 37.50 83.02 91.90 83.65 91.81 73.40 38.30 macaroni1 92.58 92.95 87.22 98.75 92.04 30.33 83.33 83.57 78.01 97.58 85.97 19.25 91.55 92.52 84.06 99.09 92.54 23.59 macaroni2 73.31 75.83 69.79 97.10 84.03 16.40 68.64 69.45 70.27 95.60 78.16 4.31 82.38 83.55 77.88 97.63 87.24 13.25 pcb1 82.25 78.78 82.17 97.00 76.84 55.22 72.13 64.76 75.59 95.27 77.10 23.48 82.96 79.12 83.70 95.99 74.32 28.46 pcb2 72.43 68.77 71.74 94.68 71.21 32.42 67.29 65.85 70.00 95.13 70.21 20.31 80.31 80.08 78.26 95.09 73.78 33.12 pcb3 86.08 86.40 79.88 96.06 81.66 41.49 82.04 81.87 77.45 96.62 76.96 38.25 82.56 83.14 75.89 96.28 79.57 38.16 pcb4 95.62 94.64 94.11 92.42 71.38 19.83 89.42 89.61 82.25 89.42 65.04 17.07 96.67 95.63 93.72 93.36 73.09 20.65 pipe_fryum 97.82 98.31 96.43 97.74 93.49 49.08 96.90 98.38 94.12 97.59 93.42 46.93 98.12 98.97 96.12 98.23 94.14 51.10 mean 87.04 87.93 84.63 96.41 82.87 39.52 82.01 83.42 81.33 95.78 79.04 31.67 87.88 89.28 85.67 96.72 83.12 35.24 29
Table 20: Per-category MVTecAD results for NAGL variants, (1-shot) setting.
| Category | NAGL | NAGL+DART | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| I-AUC | AP | I-F1 | P-AUC | PRO | P-F1 | I-AUC | AP | I-F1 | P-AUC | PRO | P-F1 | |
| bottle | 98.78 | 99.52 | 98.70 | 98.31 | 95.61 | 76.32 | 98.89 | 99.57 | 98.95 | 98.20 | 95.58 | 76.16 |
| cable | 90.09 | 94.35 | 87.96 | 95.48 | 88.10 | 58.16 | 92.62 | 95.89 | 90.59 | 95.32 | 88.16 | 57.92 |
| capsule | 90.68 | 97.91 | 94.17 | 97.95 | 96.36 | 45.57 | 91.18 | 98.02 | 94.77 | 98.00 | 96.48 | 46.31 |
| carpet | 100.00 | 100.00 | 100.00 | 99.29 | 98.40 | 68.15 | 100.00 | 100.00 | 100.00 | 99.36 | 98.52 | 68.89 |
| grid | 99.81 | 99.93 | 99.41 | 99.23 | 96.68 | 48.29 | 99.75 | 99.91 | 99.12 | 99.29 | 96.92 | 49.61 |
| hazelnut | 99.45 | 99.70 | 98.07 | 99.47 | 97.27 | 78.01 | 99.33 | 99.64 | 97.89 | 99.48 | 97.00 | 78.30 |
| leather | 100.00 | 100.00 | 100.00 | 99.25 | 98.64 | 45.63 | 100.00 | 100.00 | 100.00 | 99.28 | 98.73 | 45.93 |
| metal_nut | 99.30 | 99.84 | 98.04 | 93.70 | 91.51 | 62.39 | 99.19 | 99.82 | 97.85 | 93.74 | 91.81 | 62.66 |
| pill | 93.42 | 98.67 | 95.61 | 92.77 | 95.99 | 48.78 | 92.86 | 98.57 | 95.55 | 92.41 | 96.12 | 46.95 |
| screw | 77.06 | 91.26 | 87.40 | 97.57 | 91.36 | 40.18 | 78.06 | 91.89 | 87.25 | 97.71 | 91.76 | 41.62 |
| tile | 99.51 | 99.82 | 98.03 | 96.41 | 91.07 | 69.28 | 99.43 | 99.79 | 98.18 | 96.54 | 91.86 | 70.63 |
| toothbrush | 98.61 | 99.51 | 97.21 | 99.05 | 94.93 | 63.72 | 98.61 | 99.51 | 97.21 | 99.10 | 94.91 | 65.11 |
| transistor | 88.15 | 84.41 | 80.13 | 84.62 | 63.44 | 43.82 | 90.10 | 86.94 | 81.88 | 83.76 | 63.39 | 41.00 |
| wood | 99.71 | 99.91 | 98.89 | 97.04 | 96.73 | 67.95 | 99.85 | 99.95 | 99.17 | 97.22 | 97.00 | 68.15 |
| zipper | 98.52 | 99.62 | 97.36 | 97.83 | 93.82 | 54.15 | 99.00 | 99.74 | 97.90 | 98.26 | 94.95 | 56.27 |
| mean | 95.54 | 97.63 | 95.40 | 96.53 | 92.66 | 58.03 | 95.93 | 97.95 | 95.76 | 96.51 | 92.88 | 58.37 |
Table 21: Per-category MVTecAD results for NAGL variants, (2-shot) setting.
| Category | NAGL | NAGL+DART | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| I-AUC | AP | I-F1 | P-AUC | PRO | P-F1 | I-AUC | AP | I-F1 | P-AUC | PRO | P-F1 | |
| bottle | 98.99 | 99.57 | 99.48 | 98.22 | 95.81 | 76.47 | 98.99 | 99.58 | 99.48 | 98.17 | 95.72 | 76.36 |
| cable | 92.73 | 95.86 | 89.74 | 95.72 | 88.70 | 58.87 | 92.69 | 95.91 | 89.78 | 95.54 | 88.40 | 58.76 |
| capsule | 90.79 | 97.89 | 94.81 | 98.01 | 96.60 | 46.37 | 90.63 | 97.86 | 94.67 | 98.06 | 96.66 | 47.01 |
| carpet | 100.00 | 100.00 | 100.00 | 99.33 | 98.46 | 68.59 | 100.00 | 100.00 | 100.00 | 99.35 | 98.48 | 68.75 |
| grid | 99.81 | 99.93 | 99.42 | 99.31 | 97.00 | 49.44 | 99.83 | 99.94 | 99.42 | 99.32 | 97.02 | 49.57 |
| hazelnut | 99.96 | 99.98 | 99.52 | 99.61 | 97.86 | 80.50 | 99.98 | 99.99 | 99.53 | 99.63 | 97.84 | 80.70 |
| leather | 100.00 | 100.00 | 100.00 | 99.29 | 98.66 | 46.56 | 100.00 | 100.00 | 100.00 | 99.28 | 98.65 | 46.10 |
| metal_nut | 99.49 | 99.89 | 98.56 | 94.35 | 92.59 | 65.31 | 99.41 | 99.87 | 98.56 | 94.31 | 92.46 | 65.09 |
| pill | 95.17 | 99.02 | 96.73 | 92.66 | 96.17 | 49.13 | 95.24 | 99.05 | 96.83 | 92.73 | 96.31 | 48.99 |
| screw | 85.81 | 95.14 | 87.94 | 98.11 | 92.83 | 46.41 | 85.48 | 94.93 | 88.38 | 98.13 | 92.90 | 46.47 |
| tile | 99.80 | 99.92 | 98.62 | 96.61 | 91.87 | 70.36 | 99.81 | 99.93 | 98.81 | 96.49 | 91.79 | 70.29 |
| toothbrush | 99.26 | 99.72 | 97.81 | 99.11 | 95.38 | 64.71 | 99.26 | 99.72 | 97.81 | 99.10 | 95.26 | 64.69 |
| transistor | 88.08 | 84.97 | 80.95 | 83.47 | 62.94 | 39.94 | 88.81 | 85.73 | 82.05 | 83.87 | 63.33 | 40.17 |
| wood | 99.91 | 99.97 | 99.44 | 97.38 | 96.96 | 68.80 | 99.85 | 99.95 | 99.17 | 97.30 | 96.98 | 68.66 |
| zipper | 99.35 | 99.84 | 98.45 | 98.30 | 95.05 | 56.61 | 99.29 | 99.82 | 98.45 | 98.34 | 95.13 | 56.64 |
| mean | 96.61 | 98.11 | 96.10 | 96.63 | 93.13 | 59.20 | 96.62 | 98.15 | 96.20 | 96.64 | 93.13 | 59.22 |
Table 22: Per-category MVTecAD results for NAGL variants, (4-shot) setting.
| Category | NAGL | NAGL+DART | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| I-AUC | AP | I-F1 | P-AUC | PRO | P-F1 | I-AUC | AP | I-F1 | P-AUC | PRO | P-F1 | |
| bottle | 99.74 | 99.91 | 99.21 | 98.27 | 95.77 | 76.65 | 99.79 | 99.93 | 99.21 | 98.17 | 95.61 | 76.37 |
| cable | 93.93 | 96.63 | 90.58 | 95.86 | 89.22 | 60.03 | 95.01 | 97.26 | 91.86 | 95.82 | 89.35 | 60.35 |
| capsule | 96.04 | 99.19 | 95.87 | 98.26 | 97.05 | 51.79 | 96.48 | 99.29 | 96.04 | 98.28 | 97.08 | 52.18 |
| carpet | 100.00 | 100.00 | 100.00 | 99.33 | 98.43 | 68.25 | 100.00 | 100.00 | 100.00 | 99.35 | 98.49 | 68.63 |
| grid | 99.89 | 99.96 | 99.71 | 99.33 | 97.06 | 49.99 | 99.83 | 99.94 | 99.42 | 99.33 | 97.07 | 50.14 |
| hazelnut | 99.99 | 99.99 | 99.76 | 99.63 | 97.79 | 80.78 | 99.95 | 99.97 | 99.52 | 99.63 | 97.62 | 80.93 |
| leather | 100.00 | 100.00 | 100.00 | 99.28 | 98.54 | 46.83 | 100.00 | 100.00 | 100.00 | 99.30 | 98.56 | 47.13 |
| metal_nut | 99.53 | 99.89 | 98.73 | 95.12 | 93.48 | 68.69 | 99.56 | 99.90 | 98.91 | 95.20 | 93.47 | 69.12 |
| pill | 95.27 | 99.08 | 96.48 | 92.56 | 96.20 | 49.57 | 95.94 | 99.20 | 96.84 | 92.74 | 96.36 | 49.81 |
| screw | 83.34 | 94.14 | 87.66 | 98.20 | 93.22 | 45.53 | 84.08 | 94.45 | 87.50 | 98.23 | 93.34 | 45.85 |
| tile | 99.80 | 99.92 | 98.81 | 96.54 | 91.60 | 69.96 | 99.87 | 99.95 | 99.20 | 96.51 | 91.78 | 70.29 |
| toothbrush | 99.72 | 99.89 | 98.92 | 99.09 | 95.37 | 64.12 | 99.81 | 99.93 | 99.45 | 99.11 | 95.32 | 64.50 |
| transistor | 89.76 | 86.67 | 82.55 | 83.07 | 63.58 | 38.76 | 90.64 | 87.30 | 82.68 | 84.01 | 64.57 | 39.21 |
| wood | 99.77 | 99.93 | 98.88 | 97.30 | 96.89 | 68.66 | 99.80 | 99.94 | 98.89 | 97.32 | 96.97 | 68.77 |
| zipper | 99.40 | 99.85 | 98.32 | 98.35 | 95.18 | 56.94 | 99.33 | 99.83 | 98.33 | 98.40 | 95.30 | 57.21 |
| mean | 97.08 | 98.34 | 96.37 | 96.68 | 93.29 | 59.77 | 97.34 | 98.46 | 96.52 | 96.76 | 93.39 | 60.03 |
Table 23: Per-category VisA results for NAGL variants, (1-shot) setting.
| Category | NAGL | NAGL+DART | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| I-AUC | AP | I-FI | P-AUC | PRO | P-FI | I-AUC | AP | I-FI | P-AUC | PRO | P-FI | |
| candle | 92.99 | 92.97 | 86.12 | 98.68 | 93.40 | 40.61 | 91.41 | 91.76 | 84.16 | 98.83 | 93.41 | 39.48 |
| capsules | 97.80 | 98.54 | 95.19 | 97.73 | 81.69 | 48.64 | 95.67 | 97.30 | 93.20 | 97.16 | 80.92 | 36.30 |
| cashew | 90.84 | 94.84 | 89.81 | 98.77 | 94.69 | 54.18 | 86.08 | 93.42 | 85.19 | 98.88 | 95.25 | 57.43 |
| chewinggum | 97.48 | 98.94 | 95.29 | 99.26 | 94.98 | 69.02 | 96.68 | 98.69 | 95.92 | 99.03 | 93.88 | 68.96 |
| fryum | 95.96 | 98.21 | 93.53 | 96.48 | 83.27 | 45.74 | 94.12 | 97.23 | 90.64 | 95.40 | 82.05 | 39.33 |
| macaroni1 | 85.52 | 84.67 | 80.56 | 98.75 | 92.80 | 32.60 | 90.67 | 90.44 | 83.11 | 98.42 | 91.37 | 30.83 |
| macaroni2 | 55.48 | 52.26 | 66.91 | 97.48 | 86.93 | 9.73 | 66.35 | 62.42 | 69.89 | 98.06 | 89.54 | 18.36 |
| pcb1 | 94.87 | 92.26 | 90.64 | 98.94 | 92.87 | 60.63 | 90.79 | 87.31 | 87.32 | 98.89 | 93.16 | 58.60 |
| pcb2 | 86.00 | 83.67 | 81.55 | 95.96 | 89.12 | 36.96 | 82.81 | 80.24 | 79.13 | 96.20 | 89.32 | 33.03 |
| pcb3 | 81.56 | 79.04 | 77.39 | 93.61 | 86.82 | 42.14 | 81.90 | 81.50 | 74.18 | 93.81 | 86.31 | 40.06 |
| pcb4 | 60.70 | 65.22 | 66.67 | 92.05 | 71.68 | 20.38 | 80.18 | 78.06 | 76.02 | 92.97 | 73.06 | 21.87 |
| pipe_fryum | 95.52 | 97.87 | 91.46 | 98.71 | 96.85 | 48.29 | 95.12 | 97.63 | 92.23 | 98.89 | 96.97 | 50.78 |
| mean | 86.23 | 86.54 | 84.59 | 97.20 | 88.76 | 42.41 | 87.65 | 88.00 | 84.25 | 97.21 | 88.77 | 41.25 |
Table 24: Per-category VisA results for NAGL variants, (2-shot) setting.
| Category | NAGL | NAGL+DART | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| I-AUC | AP | I-FI | P-AUC | PRO | P-FI | I-AUC | AP | I-FI | P-AUC | PRO | P-FI | |
| candle | 93.94 | 94.15 | 87.32 | 98.88 | 93.92 | 42.41 | 92.37 | 93.15 | 85.02 | 98.70 | 92.42 | 37.88 |
| capsules | 98.20 | 98.84 | 95.19 | 97.38 | 80.61 | 48.09 | 95.67 | 97.29 | 92.52 | 97.27 | 80.81 | 48.33 |
| cashew | 86.84 | 93.72 | 86.12 | 98.58 | 93.56 | 56.20 | 93.78 | 97.10 | 92.08 | 99.06 | 96.76 | 59.06 |
| chewinggum | 96.94 | 98.76 | 95.29 | 99.16 | 94.52 | 69.94 | 98.20 | 99.20 | 95.43 | 99.16 | 94.80 | 68.58 |
| fryum | 96.50 | 98.40 | 94.36 | 96.10 | 82.38 | 44.64 | 96.88 | 98.62 | 95.05 | 95.88 | 82.63 | 43.97 |
| macaroni1 | 90.14 | 90.10 | 84.02 | 98.95 | 93.50 | 36.34 | 88.16 | 85.97 | 82.69 | 98.32 | 91.02 | 22.58 |
| macaroni2 | 63.53 | 59.83 | 68.84 | 98.13 | 89.73 | 15.26 | 67.73 | 59.96 | 71.38 | 98.33 | 90.99 | 15.71 |
| pcb1 | 95.11 | 92.45 | 91.79 | 98.87 | 93.02 | 57.91 | 91.60 | 87.44 | 89.10 | 98.89 | 93.18 | 59.43 |
| pcb2 | 86.54 | 84.30 | 81.17 | 96.14 | 89.79 | 37.29 | 83.87 | 79.68 | 78.79 | 96.32 | 89.34 | 35.78 |
| pcb3 | 84.84 | 87.19 | 77.19 | 94.09 | 88.14 | 46.40 | 88.00 | 89.57 | 80.72 | 93.89 | 87.64 | 42.85 |
| pcb4 | 65.50 | 72.19 | 66.89 | 92.92 | 74.73 | 23.53 | 83.25 | 83.41 | 78.17 | 92.64 | 72.25 | 24.66 |
| pipe_fryum | 96.70 | 98.42 | 93.60 | 98.86 | 97.05 | 50.75 | 97.14 | 98.57 | 93.53 | 98.99 | 96.97 | 52.94 |
| mean | 87.90 | 89.03 | 85.15 | 97.34 | 89.25 | 44.06 | 89.72 | 89.16 | 86.21 | 97.29 | 89.07 | 42.65 |
Table 25: Per-category VisA results for NAGL variants, (4-shot) setting.
| Category | NAGL | NAGL+DART | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| I-AUC | AP | I-FI | P-AUC | PRO | P-FI | I-AUC | AP | I-FI | P-AUC | PRO | P-FI | |
| candle | 92.75 | 93.07 | 87.08 | 98.84 | 93.62 | 42.21 | 92.50 | 93.27 | 85.31 | 98.81 | 93.10 | 39.42 |
| capsules | 98.22 | 98.94 | 94.47 | 97.39 | 80.21 | 51.93 | 95.28 | 97.00 | 92.52 | 98.02 | 83.05 | 49.48 |
| cashew | 92.26 | 96.57 | 87.91 | 98.63 | 93.76 | 58.16 | 91.92 | 96.27 | 89.45 | 98.89 | 96.90 | 57.77 |
| chewinggum | 97.28 | 98.89 | 95.88 | 99.17 | 94.67 | 69.84 | 97.34 | 98.90 | 94.95 | 99.12 | 94.51 | 67.82 |
| fryum | 96.90 | 98.59 | 94.85 | 96.11 | 82.62 | 45.26 | 97.32 | 98.79 | 95.43 | 95.94 | 83.50 | 44.18 |
| macaroni1 | 90.16 | 89.04 | 85.45 | 98.99 | 93.57 | 32.90 | 88.68 | 86.08 | 85.20 | 98.70 | 92.84 | 26.41 |
| macaroni2 | 65.58 | 60.63 | 70.92 | 98.27 | 90.42 | 19.02 | 71.68 | 65.44 | 72.95 | 98.58 | 92.01 | 21.10 |
| pcb1 | 95.94 | 93.22 | 93.88 | 98.80 | 92.79 | 56.71 | 93.09 | 89.06 | 91.35 | 98.85 | 93.26 | 58.39 |
| pcb2 | 87.54 | 85.36 | 82.67 | 96.19 | 89.76 | 37.74 | 87.23 | 83.93 | 81.98 | 96.55 | 89.92 | 37.59 |
| pcb3 | 87.84 | 90.24 | 81.28 | 94.29 | 88.99 | 46.60 | 90.68 | 91.62 | 83.96 | 93.73 | 88.69 | 41.86 |
| pcb4 | 83.43 | 86.01 | 77.21 | 93.71 | 77.99 | 26.06 | 92.30 | 92.06 | 86.96 | 93.28 | 74.96 | 27.46 |
| pipe_fryum | 95.72 | 97.87 | 92.75 | 98.91 | 97.28 | 51.85 | 97.50 | 98.86 | 94.36 | 98.89 | 97.08 | 51.26 |
| mean | 90.30 | 90.70 | 87.03 | 97.44 | 89.64 | 44.86 | 91.29 | 90.94 | 87.87 | 97.45 | 89.99 | 43.56 |