DevPrompt: Deviation-Based Prompt Learning for One-Normal ShotImage Anomaly Detection
Morteza Poudineh, Marc Lalonde

TL;DR
This paper introduces DevPrompt, a novel deviation-guided prompt learning framework for one-normal shot image anomaly detection that improves patch-level localization and interpretability by combining vision-language models with statistical deviation scoring.
Contribution
It proposes a deviation-based prompt learning method with learnable prompts and Top-K MIL, enhancing anomaly detection performance and interpretability in few-normal shot scenarios.
Findings
Outperforms PromptAD and baselines on MVTecAD and VISA benchmarks.
Learnable prompts and deviation scoring improve anomaly localization.
Top-K MIL strategy enhances detection accuracy.
Abstract
Few-normal shot anomaly detection (FNSAD) aims to detect abnormal regions in images using only a few normal training samples, making the task highly challenging due to limited supervision and the diversity of potential defects. Recent approaches leverage vision-language models such as CLIP with prompt-based learning to align image and text features. However, existing methods often exhibit weak discriminability between normal and abnormal prompts and lack principled scoring mechanisms for patch-level anomalies. We propose a deviation-guided prompt learning framework that integrates the semantic power of vision-language models with the statistical reliability of deviation-based scoring. Specifically, we replace fixed prompt prefixes with learnable context vectors shared across normal and abnormal prompts, while anomaly-specific suffix tokens enable class-aware alignment. To enhance…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAnomaly Detection Techniques and Applications · Digital Media Forensic Detection · Domain Adaptation and Few-Shot Learning
