DevPrompt: Deviation-Based Prompt Learning for One-Normal Shot Image Anomaly Detection


1 Introduction↩︎

Few-normal shot anomaly detection (FNSAD) considers scenarios with only a handful of normal samples for training, reflecting realistic industrial constraints [1][6]. Pioneering works such as PatchCore, WinCLIP, and PromptAD emphasize patch-level features, prompt engineering, and language-guided representations. Nonetheless, challenges remain: heterogeneity of anomalies requires generalization to unseen cases, and the semantic gap between normality and abnormality needs explicit modeling for fine-grained detection.

To address these limitations, deviation-based learning [7] has been explored, where anomaly scores are derived from statistical deviations of patch features relative to a Gaussian prior. This provides interpretability and discriminability. Combining deviation-based scoring with prompt learning allows capturing semantic context while enforcing statistical separation at the patch level.

State-of-the-art FNSAD methods can be categorized into (i) prompt-driven representation learning, focusing on effective textual templates for discriminative embedding spaces, and (ii) deviation-guided anomaly scoring, which enforces statistical constraints to distinguish anomalies. The former enhances semantic generalization, while the latter improves interpretability and robustness.

Building on these insights, we propose a framework integrating learnable prompts with deviation loss [7] for patch-level scoring. Learnable prompts adaptively represent both normal and abnormal contexts, while Top-K Multiple Instance Learning (MIL) aggregates patch-level deviations, improving localization. This unified approach combines semantic alignment with statistical deviation, advancing generalizable and interpretable few-normal shot anomaly detection.

Our contributions are as follows:

  • A unified framework integrating prompt-based anomaly detection with deviation-guided scoring.

  • Learnable prompts representing normal and abnormal contexts while retaining class-specific cues.

  • Patch-level deviation loss for improved discriminability and interpretability.

  • Top-K MIL aggregation to handle sparse anomalies and enhance localization.

  • Demonstrated improved generalization to unseen anomaly types with minimal normal samples.

The rest of the paper is organized as follows. Section 2 reviews anomaly detection literature. Section 3 details our prompt-based anomaly detection framework with MIL-driven deviation loss. Section 4 presents experimental results. Section 5 concludes and discusses future directions.

2 Related works↩︎

Anomaly detection has been explored in unsupervised, supervised, and few-shot settings, or limited labeled anomalies. In following we review some of these works.

2.1 Unsupervised and Few-shot Anomaly Detection↩︎

Most anomaly detection methods operate under unsupervised or weakly supervised settings using only normal data for training. Early approaches rely on reconstruction-based models such as autoencoders [8], [9] and generative methods including AnoGAN [10] and GANomaly [11], where anomalies are detected via reconstruction errors or latent deviations. Self-supervised learning [12], [13] and one-class classification methods such as Deep SVDD [14] further aim to learn compact normal representations. Extensions incorporating memory mechanisms [15], knowledge distillation [16], or limited anomaly supervision [17], metric learning [18], [19], and MIL-based frameworks [20], [21] improve discriminability in few-shot settings. DevNet [7] introduces a deviation-based objective that directly optimizes anomaly separation without relying on reconstruction quality. Despite these advances, many methods struggle with subtle or spatially localized anomalies and often lack interpretability in industrial scenarios.

2.2 CLIP-based Anomaly Detection↩︎

Recent works leverage vision–language models such as CLIP [22] for anomaly detection via prompt-based similarity modeling. CLIP-AD [23] enables zero-shot detection by aligning images with textual descriptions of normal and abnormal states, while PromptAD [3] further learns optimal prompts from few-shot normal samples. Other approaches explore prompt tuning and in-context learning strategies [24], [25] to improve generalization. However, existing CLIP-based methods primarily rely on raw similarity scores, which limits their ability to explicitly model statistical deviations between normal and anomalous regions, especially for fine-grained or localized defects.

3 Methodology↩︎

Figure 1: Visualization of patch-wise anomaly scores computed using the proposed deviation-guided prompt learning approach. Higher deviation scores correspond to more anomalous regions.

In this section, we present our proposed framework for few-normal shot anomaly detection. The method is designed to capture discriminative alignment between image patches and textual prompts while providing a statistically grounded measure of deviation for anomaly scoring. The overall pipeline consists of four key stages: (i) visual–textual embedding, (ii) prompt construction with learnable context, (iii) deviation-based anomaly scoring, and (iv) optimization with deviation-aware loss.

3.1 Problem Definition↩︎

Let \(\mathcal{X} = \{x_i\}_{i=1}^N\) denote the input images, where each \(x_i\) may contain normal or anomalous regions. Each image is decomposed into \(P\) non-overlapping patches, denoted as \(x = \{x_p\}_{p=1}^P\). A dual-encoder model is employed, where the visual encoder \(f(\cdot)\) extracts patch-level embeddings and the textual encoder \(g(\cdot)\) projects tokenized prompts into the same embedding space: \[\begin{align} z_p &= f(x_p) \in \mathbb{R}^d, \\[5pt] e_a &= g(T_a) \in \mathbb{R}^d, \qquad e_n &= g(T_n) \in \mathbb{R}^d\end{align}\] where \(z_p\) is the embedding of patch \(p\), \(e_a\) and \(e_n\) are the representations of textual prompt \(T_a\) and \(T_n\) respectively.

3.2 Prompt Construction with Learnable Context↩︎

Traditional prompt-based approaches, including PromptAD [3], rely on fixed textual tokens, such as manually designed prefixes and suffixes, to represent normal and abnormal contexts. While this design provides stability and class-specific guidance, it can limit discriminability when anomaly patterns are subtle or diverse. Our work builds on this framework by retaining the fixed prompt structure but introducing deviation-based scoring at the patch level, which explicitly enforces statistical separation between normal and abnormal features. This allows the model to leverage the stable prompt representation while improving anomaly localization and robustness in few-shot scenarios.

The normal and abnormal prompts are constructed as \[T_n = [C; \text{suffix}_n], \qquad T_a = [C; \text{suffix}_a],\]

where \(\text{suffix}_n\) and \(\text{suffix}_a\) are fixed, semantically meaningful tokens corresponding to class-specific and anomaly-specific textual descriptions. For instance, for a given object class \(c =\) “bottle”, the normal and abnormal prompts may be expressed as “a photo of a normal bottle” and “a photo of a defective bottle”, respectively. This design preserves interpretability while enabling the model to adaptively learn discriminative context.

3.3 Patch-to-Prompt Alignment↩︎

Given patch embeddings \(z_p\) and prompt embeddings \(e_n, e_a\), we compute cosine similarities: \[s_n(p) = \frac{z_p \cdot e_n}{\|z_p\| \, \|e_n\|}, \qquad s_a(p) = \frac{z_p \cdot e_a}{\|z_p\| \, \|e_a\|}.\] Here, \(s_n(p)\) measures the alignment of patch \(p\) with normal semantics, while \(s_a(p)\) captures its alignment with abnormal cues. Collecting these scores over all patches provides a fine-grained representation of how an image relates to both normality and abnormality.

Figure 2: Proposed Few-normal shot Anomaly Detection Framework

3.4 MIL-Driven Deviation Loss↩︎

Cosine similarities alone are insufficient to reliably distinguish anomalies, because the distributions of similarity scores for normal and abnormal patches often overlap. To address this, we introduce a deviation-based scoring mechanism grounded in statistical modeling.

We assume that the distribution of normal patch-to-normal prompt similarities follows a Gaussian distribution: \[s_n(p) \sim \mathcal{N}(\mu, \sigma^2),\] where \(\mu\) and \(\sigma\) are estimated following DevNet [[7]][, where a fixed standard Gaussian prior is defined, and a large set of reference values is sampled from this distribution to determine the \(\mu\) and \(\sigma\).]

For each patch, the deviation score is defined as: \[d(p) = \frac{|s(p) - \mu|}{\sigma}.\] Intuitively, \(d(p)\) quantifies how strongly a patch deviates from the expected normal similarity, with larger values indicating potential anomalies. To robustly aggregate patch-level evidence, we adopt a Top-\(K\) Multiple Instance Learning (MIL) strategy inspired by [7]. We define the set of top-\(K\) patches with the largest deviations as \[\mathcal{M}(x) = \text{Top-K}\{ d(p) \mid p = 1, \dots, P\}.\] This selection is motivated by two observations: (i) anomalous images contain normal background patches, and (ii) normal images may contain “hard” patches resembling anomalies. Learning from only the top-\(K\) patches ensures that the model focuses on the most informative regions for both anomaly detection and hard negative mining. Finally the aggregated image-level deviation is computed as \[D(x) = \frac{1}{K} \sum_{m \in \mathcal{M}(x)} m.\]

We then define the deviation loss to encourage a statistically significant separation between normal and anomalous images: \[\mathcal{L}_{dev}(x_i, y_i) = \lambda * (1 - y_i) \, |D(x_i)| + y_i \, \max\big(0, a - D(x_i) \big),\] where \(y_i = 1\) if \(x_i\) is anomalous, \(0\) otherwise, and \(a\) is a confidence parameter (Z-score threshold) controlling the margin between normal and anomalous deviations. Following [7], we set \(a = 5\) for high statistical significance. The coefficient \(\lambda\) represents the deviation scaling factor, we empirically set it to \(1\) in our experiments. This formulation ensures that: (i) The deviation of normal images are pushed to have deviations close to zero. (ii) Anomalous images are forced to exceed a threshold \(a\).

4 Experimental Results↩︎

Table 1: MVTecAD Dataset: Class-wise AUROC (%). Bold indicates improvement over the baseline PromptAD.
Class WinCLIP PromptAD Proposed
Bottle 96.8 97.31 97.28
Cable 93.6 94.10 93.79
Capsule 96.04 95.60 96.25
Carpet 99.1 99.54 99.54
Grid 96.3 97.99 97.97
Hazelnut 97.76 98.21 98.27
Leather 99.2 99.34 99.36
Metal Nut 89.5 91.65 92.67
Pill 93.8 93.63 95.26
Screw 95.9 95.19 94.11
Tile 95.7 96.05 96.06
Toothbrush 97 98.63 98.67
Transistor 84.3 85.65 85.66
Wood 94.8 95.44 95.29
Zipper 91.4 90.77 92.04

In this section, we present a comprehensive evaluation of the proposed PromptAD framework augmented with deviation-based patch-wise scoring for anomaly detection. All experiments are conducted on the MVTecAD [26] and VISA [27] datasets, with a particular focus on pixel-level anomaly score. The evaluation highlights the effectiveness of patch-level Top-K MIL scoring in capturing fine-grained anomalies. We report class-wise AUROC (%) and perform sensitivity analayzes to measure the impact of the deviation coefficient \(\lambda\), the Top-K parameter \(K\) and the confidence parameter \(a\) on model performance.

4.1 Datasets↩︎

The MVTecAD dataset consists of 15 industrial object categories (e.g., bottle, cable, hazelnut, transistor) with high-resolution images of size approximately \(700 \times 900\) pixels. The dataset includes both normal and defective samples, with pixel-level ground truth annotations for anomalies. Training is conducted on normal images only, while the test set includes both normal and anomalous images.

The VISA dataset contains 12 object categories (e.g., cashew, chewinggum, PCB), with an average image resolution of approximately \(1500 \times 1000\) pixels. Similar to MVTec, VISA provides normal samples for training and both normal and anomalous samples with fine-grained pixel-level annotations for testing.

Table 2: VISA Dataset: Class-wise AUROC (%) for pixel-level segmentation. Bold indicates improvement over PromptAD.
Class WinCLIP PromptAD Proposed
Candle 94.53 94.65 94.69
Capsules 95.9 94.01 94.01
Cashew 97.9 98.85 98.88
Chewinggum 99 99.24 99.25
Fryum 95.33 95.58 95.63
Macaroni1 96.8 97.81 97.73
Macaroni2 94.87 95.39 95.49
PCB1 95.31 95.72 95.83
PCB2 93.04 94.30 93.34
PCB3 94.34 94.66 94.65
PCB4 95.3 94.62 94.49
Pipe_Fryum 98.92 99.16 99.19

For both datasets, we follow the standard train/test split defined in the benchmark [3]. Since the focus of this work is on few-normal-shot anomaly detection, all experiments are conducted under a 1-shot setting, meaning that only one normal image per class is used during training. The training set contains only \(1\) defect-free image per class, and no anomalous samples are used during training, and generalization is achieved by learning patch-level normality statistics. This setting aligns with the original PromptAD paper and reflects realistic industrial scenarios where abundant normal data may not be available at design time.

All images are resized to \(256 \times 256\) prior to training and evaluation to ensure consistent input dimensions across categories and datasets.

4.2 Training Setting↩︎

We adopt the exact hyperparameter configuration used in the baseline [3] implementation for fair comparison. The backbone network uses pretrained CLIP weights [22]. No additional finetuning of the backbone is performed; only learnable prompt tokens and deviation-based scoring parameters are optimized.

Importantly, in contrast to image-level classification, our deviation-based patch scoring and Multiple Instance Learning (MIL) are applied only at the pixel level. The rationale behind this design is that anomaly pixel level focuses on local regions (patches) rather than global image structure. By operating at the patch level, the model can better highlight spatially localized defects and achieve higher pixel-level AUROC. Extending MIL to the full image in a one-shot setting would not be meaningful, as global representations are insufficiently diverse to capture anomalous variations.

4.3 MVTecAD Results↩︎

Table 1 summarizes the class-wise AUROC scores on the MVTecAD dataset, comparing the baseline PromptAD and WinCLIP against our proposed deviation-based method. Improvements achieved comparing to our baseline are highlighted in bold.

Figure 3: Average AUROC comparison of PromptAD, WinCLIP, PatchCore, and the proposed method across MVTecAD and VISA datasets.

4.3.0.1 Analysis.

The results indicate that deviation-based patch scoring is particularly beneficial for categories with localized defects. Classes such as Capsule, Pill, and Metal Nut, which contain cracks, contaminations, or missing regions, exhibit noticeable improvements due to the Top-K MIL mechanism emphasizing the most anomalous patches. Similarly, performance gains in Zipper and Hazelnut suggest that fine-grained texture irregularities are effectively distinguished from normal patterns.

Minor reductions in AUROC for Cable, Screw, and Wood are observed. These categories contain anomalies that are either globally distributed or exhibit high intra-class variability, which are less sensitive to patch-level deviation modeling. Categories such as Carpet, Grid, and Leather maintain stable performance, indicating that both the baseline and our method have already saturated for simpler anomaly patterns.

4.4 VISA Dataset Results↩︎

Table 2 presents the segmentation results on the VISA dataset. Bold entries highlight improvements introduced by the deviation-based scoring.

4.4.0.1 Analysis.

The proposed deviation-based scoring consistently improves the performance our model in categories with spatially concentrated anomalies, such as Cashew, Chewinggum, and Pipe_Fryum. Notably, PCB1 also benefits from patch-level deviation, demonstrating that structured defects, such as scratches or missing circuitry, can be accurately localized.

Table 3: Impact of the deviation coefficient \(\lambda\) (VISA, AUROC %).
Class Proposed \(\lambda=0.1\) \(\lambda=0.01\)
Candle 94.69 94.43 94.57
Capsules 94.01 94.00 94.00
Cashew 98.88 98.83 98.86
Chewinggum 99.25 99.23 99.25
Fryum 95.63 95.77 95.49
Macaroni1 97.73 97.72 97.76
Macaroni2 95.49 95.32 95.31
PCB1 95.83 95.72 95.73
PCB2 93.34 93.93 94.58
PCB3 94.65 94.53 94.59
PCB4 94.49 94.46 94.31
Pipe_Fryum 99.19 99.14 99.17

Slight reductions in AUROC for PCB2 and PCB4 suggest that anomalies dispersed across fine circuit patterns are less sensitive to patch-level deviations and may require global structural reasoning. Categories with simpler or more uniform defect patterns, such as Capsules, PCB3, and Macaroni1, maintain robust performance, confirming the method’s generalization across defect types.

4.4.0.2 Overall Performance Comparison.

To provide a comprehensive view of the method’s effectiveness, Figure 3 presents the average AUROC of PromptAD, WinCLIP, PatchCore, and the proposed approach across both MVTecAD and VISA datasets. As illustrated, the proposed method achieves the best performance on MVTecAD, indicating its strong ability to capture fine-grained, localized anomalies. On the VISA dataset, it maintains competitive results, closely matching or exceeding the baseline methods. This comparative visualization underscores that integrating deviation-guided scoring with prompt-based representations leads to consistent performance gains across benchmarks with diverse anomaly patterns.

It is seen from Tables [1][, and] [2][, that the improvements over PromptAD are numerically small, but the consistent behavior across datasets and metrics in the few-shot setting reflects improved robustness and generalization without added supervision or model complexity.]

4.5 Sensitivity Analysis↩︎

We further conduct a sensitivity analysis to examine how variations in key hyperparameters affect the performance of our model. In particular, we analyze the impact of the deviation coefficient \(\lambda\), the Top-K percentage parameter and the impact of the confidence parameter \(a\) used in the MIL-based deviation scoring. This analysis provides insight into the robustness of the proposed method and helps identify stable operating ranges for different anomaly distributions.

Table 4: Impact of Top-K\(\%\) (VISA, AUROC %).
Class Proposed \(K=20\%\) \(K=30\%\)
Candle 94.69 94.59 94.75
Capsules 94.01 94.00 94.01
Cashew 98.88 98.79 98.93
Chewinggum 99.25 99.26 99.24
Fryum 95.63 95.54 95.49
Macaroni1 97.73 97.77 97.73
Macaroni2 95.49 95.27 95.14
PCB1 95.83 95.72 95.17
PCB2 93.34 94.43 94.45
PCB3 94.65 94.64 94.58
PCB4 94.49 94.11 94.06
Pipe_Fryum 99.19 99.18 99.1
Table 5: Impact of confidence parameter \(a\) (VISA, AUROC %).
Class \(a=1\) \(a=3\) \(a=5\) \(\a=7\) \(a=9\)
Candle 94.38 94.49 94.69 94.7 94.65
Capsules 93.47 93.98 94.01 94 94
Cashew 98.43 98.72 98.88 98.87 98.84
Chewinggum 99.1 99.16 99.25 99.26 99.22
Fryum 94.38 95.01 95.63 95.61 95.59
Macaroni1 97.08 97.58 97.73 97.71 97.68
Macaroni2 94.7 95.1 95.49 95.46 95.39
PCB1 95.3 95.71 95.83 95.79 95.72
PCB2 92.82 93.11 93.34 93.35 93.27
PCB3 94.68 94.62 94.65 94.64 94.58
PCB4 94.31 94.39 94.49 94.45 94.37
Pipe_Fryum 99.01 99.12 99.19 99.17 99.14

4.5.0.1 Impact of Deviation Coefficient \(\lambda\).

To evaluate the influence of the deviation coefficient \(\lambda\) on the performance of the proposed method,, we conduct analayze on the VISA dataset. Table 3 reports class-wise AUROC scores for three different values of \(\lambda\).

The results indicate that the method is relatively stable across different \(\lambda\) values. For categories with more globally distributed anomalies, such as PCB2, a smaller deviation coefficient (\(\lambda=0.01\)) slightly improves segmentation by reducing over-penalization of moderate deviations.

4.5.0.2 Impact of Top-K Parameter.

We further investigate the effect of the Top-K parameter on the performance of the proposed method, as reported in Table 4. A higher \(K\) increases the number of patch scores considered when computing the MIL-based deviation score. Specifically, \(K\) is defined as a percentage of the total number of patches in an image (e.g., \(K = 10\%\) or \(20\%\)), meaning that only the top \(K\) highest deviation scores are used for final anomaly scoring.

Increasing \(K\) generally improves performance for categories where anomalies are distributed across multiple regions, as observed in PCB2. Conversely, categories with highly localized defects, such as Fryum or Pipe_Fryum, exhibit limited sensitivity to \(K\), demonstrating that the method is robust to this hyperparameter in such scenarios. Importantly, this behavior does not assume prior knowledge of anomaly characteristics, rather, it reflects intrinsic defect patterns commonly encountered in industrial inspection, where the spatial extent of anomalies is governed by the underlying manufacturing process.

4.5.0.3 Impact of the confidence parameter \(a\).

The parameter \(a\) defines the minimum deviation margin between normal and anomalous samples during training. We evaluate \(a \in \{1, 3, 5, 7, 9\}\) on the VISA dataset. It is seen from Table 3 that small values of \(a\) lead to insufficient separation, while performance stabilizes once a meaningful margin is reached, with \(a = 5\) providing the best trade-off between accuracy and stability.

5 Conclusion↩︎

Few-shot anomaly detection remains challenging due to the need for accurate localization under extremely limited supervision. In this work, we proposed a deviation-guided prompt learning framework that integrates vision–language alignment with statistically grounded patch-level anomaly scoring. By introducing learnable context vectors into textual prompts and optimizing a Top-K MIL-driven deviation loss, the proposed method enhances discrimination between normal and anomalous regions while preserving interpretability. Experiments on MVTecAD and VISA demonstrate that the proposed approach consistently improves pixel-level anomaly detection, particularly for localized and texture-rich defects, while remaining stable across a wide range of hyperparameter settings. These results indicate that combining prompt-based global semantics with deviation-based local scoring is well suited for industrial anomaly detection scenarios.

Future work may extend this framework to video-based anomaly detection, explore overlapping patch designs within CLIP to improve spatial sensitivity, or incorporate more structured priors into prompt construction.

Acknowledgments↩︎

Work performed while M. Poudineh was an intern at CRIM. The internship was financed by CRIM with support from the Ministry of Economy, Innovation, and Energy (MEIE) of the Government of Quebec.

References↩︎

[1]
K. Roth, L. Pemula, J. Zepeda, B. Schölkopf, T. Brox, and P. Gehler, “Towards total recall in industrial anomaly detection,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 2022, pp. 14318–14328.
[2]
J. Jeong, Y. Zou, T. Kim, D. Zhang, A. Ravichandran, and O. Dabeer, “Winclip: Zero-/few-shot anomaly classification and segmentation,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 2023, pp. 19606–19616.
[3]
X. Li et al., “Promptad: Learning prompts with only normal samples for few-shot anomaly detection,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 2024, pp. 16838–16848.
[4]
K. El-Tahan and M. Torki, “Semi-supervised anomaly detection for weakly-annotated videos.” in VISIGRAPP (5: VISAPP), 2022, pp. 871–878.
[5]
L. T. Lopes et al., “Manifold learning-based clustering approach applied to anomaly detection in surveillance videos.” in VISIGRAPP (5: VISAPP), 2020, pp. 404–412.
[6]
Y. Hatae, Q. Yang, M. F. Fadjrimiratno, Y. Li, T. Matsukawa, and E. Suzuki, “Detecting anomalous regions from an image based on deep captioning.” in VISIGRAPP (5: VISAPP), 2020, pp. 326–335.
[7]
G. Pang, C. Ding, C. Shen, and A. van den Hengel, “Explainable deep few-shot anomaly detection with deviation networks,” arXiv preprint arXiv:2108.00462, 2021.
[8]
D. Gong et al., “Memorizing normality to detect anomaly: Memory-augmented deep autoencoder for unsupervised anomaly detection,” in Proceedings of the IEEE/CVF international conference on computer vision, 2019, pp. 1705–1714.
[9]
C. Zhou and R. C. Paffenroth, “Anomaly detection with robust deep autoencoders,” in Proceedings of the 23rd ACM SIGKDD international conference on knowledge discovery and data mining, 2017, pp. 665–674.
[10]
T. Schlegl, P. Seeböck, S. M. Waldstein, G. Langs, and U. Schmidt-Erfurth, “F-AnoGAN: Fast unsupervised anomaly detection with generative adversarial networks [j],” Medical image analysis, vol. 54, pp. 30–44, 2019.
[11]
S. Akcay, A. Atapour-Abarghouei, and T. P. Breckon, “Ganomaly: Semi-supervised anomaly detection via adversarial training,” in Asian conference on computer vision, 2018, pp. 622–637.
[12]
I. Golan and R. El-Yaniv, “Deep anomaly detection using geometric transformations,” Advances in neural information processing systems, vol. 31, 2018.
[13]
M. Noroozi and P. Favaro, “Unsupervised learning of visual representations by solving jigsaw puzzles,” in European conference on computer vision, 2016, pp. 69–84.
[14]
L. Ruff et al., “Deep one-class classification,” in International conference on machine learning, 2018, pp. 4393–4402.
[15]
D. Gong et al., “Memorizing normality to detect anomaly: Memory-augmented deep autoencoder for unsupervised anomaly detection,” in Proceedings of the IEEE/CVF international conference on computer vision, 2019, pp. 1705–1714.
[16]
A. A. Pol et al., “Knowledge distillation for anomaly detection,” arXiv preprint arXiv:2310.06047, 2023.
[17]
L. Ruff et al., “Deep semi-supervised anomaly detection,” arXiv preprint arXiv:1906.02694, 2019.
[18]
G. Pang, L. Cao, L. Chen, and H. Liu, “Learning representations of ultrahigh-dimensional data for random distance-based outlier detection,” in Proceedings of the 24th ACM SIGKDD international conference on knowledge discovery & data mining, 2018, pp. 2041–2050.
[19]
G. Pang, C. Shen, H. Jin, and A. Van Den Hengel, “Deep weakly-supervised anomaly detection,” in Proceedings of the 29th ACM SIGKDD conference on knowledge discovery and data mining, 2023, pp. 1795–1807.
[20]
H. Lv, Z. Yue, Q. Sun, B. Luo, Z. Cui, and H. Zhang, “Unbiased multiple instance learning for weakly supervised video anomaly detection,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 2023, pp. 8022–8031.
[21]
J. Chen, L. Li, L. Su, Z. Zha, and Q. Huang, “Prompt-enhanced multiple instance learning for weakly supervised video anomaly detection,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 2024, pp. 18319–18329.
[22]
A. Radford et al., “Learning transferable visual models from natural language supervision,” in International conference on machine learning, 2021, pp. 8748–8763.
[23]
X. Chen et al., “Clip-ad: A language-guided staged dual-path model for zero-shot anomaly detection,” in International joint conference on artificial intelligence, 2024, pp. 17–33.
[24]
C.-H. Ho, K.-C. Peng, and N. Vasconcelos, “Long-tailed anomaly detection with learnable class names,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 2024, pp. 12435–12446.
[25]
J. Zhu and G. Pang, “Toward generalist anomaly detection via in-context residual learning with few-shot sample prompts,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 2024, pp. 17826–17836.
[26]
P. Bergmann, M. Fauser, D. Sattlegger, and C. Steger, “MVTec AD–a comprehensive real-world dataset for unsupervised anomaly detection,” in Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 2019, pp. 9592–9600.
[27]
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, 2022, pp. 392–408.