This is an early access version, the complete PDF, HTML, and XML versions will be available soon.
Open AccessArticle
AnomalyNLP: Noisy-Label Prompt Learning for Few-Shot Industrial Anomaly Detection
by
Li Hua
Li Hua and
Jin Qian
Jin Qian *
College of Information Engineering, Taizhou University, Taizhou 225300, China
*
Author to whom correspondence should be addressed.
Electronics 2025, 14(20), 4016; https://doi.org/10.3390/electronics14204016 (registering DOI)
Submission received: 26 August 2025
/
Revised: 9 October 2025
/
Accepted: 12 October 2025
/
Published: 13 October 2025
Abstract
Few-Shot Industrial Anomaly Detection (FSIAD) is an essential yet challenging problem in practical scenarios such as industrial quality inspection. Its objective is to identify previously unseen anomalous regions using only a limited number of normal support images from the same category. Recently, large pre-trained vision-language models (VLMs), such as CLIP, have exhibited remarkable few-shot image-text representation abilities across a range of visual tasks, including anomaly detection. Despite their promise, real-world industrial anomaly datasets often contain noisy labels, which can degrade prompt learning and detection performance. In this paper, we propose AnomalyNLP, a new Noisy-Label Prompt Learning approach designed to tackle the challenge of few-shot anomaly detection. This framework offers a simple and efficient approach that leverages the expressive representations and precise alignment capabilities of VLMs for industrial anomaly detection. First, we design a Noisy-Label Prompt Learning (NLPL) strategy. This strategy utilizes feature learning principles to suppress the influence of noisy samples via Mean Absolute Error (MAE) loss, thereby improving the signal-to-noise ratio and enhancing overall model robustness. Furthermore, we introduce a prompt-driven optimal transport feature purification method to accurately partition datasets into clean and noisy subsets. For both image-level and pixel-level anomaly detection, AnomalyNLP achieves state-of-the-art performance across various few-shot settings on the MVTecAD and VisA public datasets. Qualitative and quantitative results on two datasets demonstrate that our method achieves the largest average AUC improvement over baseline methods across 1-, 2-, and 4-shot settings, with gains of up to 10.60%, 10.11%, and 9.55% in practical anomaly detection scenarios.
Share and Cite
MDPI and ACS Style
Hua, L.; Qian, J.
AnomalyNLP: Noisy-Label Prompt Learning for Few-Shot Industrial Anomaly Detection. Electronics 2025, 14, 4016.
https://doi.org/10.3390/electronics14204016
AMA Style
Hua L, Qian J.
AnomalyNLP: Noisy-Label Prompt Learning for Few-Shot Industrial Anomaly Detection. Electronics. 2025; 14(20):4016.
https://doi.org/10.3390/electronics14204016
Chicago/Turabian Style
Hua, Li, and Jin Qian.
2025. "AnomalyNLP: Noisy-Label Prompt Learning for Few-Shot Industrial Anomaly Detection" Electronics 14, no. 20: 4016.
https://doi.org/10.3390/electronics14204016
APA Style
Hua, L., & Qian, J.
(2025). AnomalyNLP: Noisy-Label Prompt Learning for Few-Shot Industrial Anomaly Detection. Electronics, 14(20), 4016.
https://doi.org/10.3390/electronics14204016
Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details
here.
Article Metrics
Article metric data becomes available approximately 24 hours after publication online.