Anomaly-aware prompt learning and multi-scale feature adaptation for zero-shot anomaly detection

Zero-Shot Anomaly Detection (ZSAD) aims to generalize to unseen domains without requiring any target-domain samples, and is commonly applied to address the cold-start problem in industrial settings. However, existing ZSAD methods usually fail to capture anomaly semantics in specific contexts, limiting their cross-domain generalization. Furthermore, vision-language models (VLMs) typically show limited sensitivity to subtle anomalous patterns, making it difficult to explicitly guide VLM-based ZSAD model to focus on anomalies. To address these issues, this paper proposes a framework integrating anomaly-aware prompt learning and feature adaptation, which consists of two key components: an anomaly-aware textual prompt module and multi-scale feature adapters. Specifically, we dynamically incorporate the intrinsic local and global anomaly semantics from test images into textual prompts to achieve deep alignment between visual and textual modalities. To focus on defects at different levels, we introduce adapters to aggregate multi-scale visual features, thus enhancing fine-grained anomaly perception. Furthermore, the framework is extended to the few-shot setting to effectively leverage limited target-domain samples. Extensive experiments on 15 industrial and medical datasets demonstrate that the proposed method achieves state-of-the-art (SOTA) ZSAD performance. Notably, the method can further significantly improve the performance under few-shot settings, indicating its strong application potential.

Authors

Institutions

Publication Details

Journal
Journal of King Saud University - Computer and Information Sciences
Published
2026-05-12
DOI
https://doi.org/10.1007/s44443-026-00799-z
Primary Topic
Anomaly Detection Techniques and Applications
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Anomaly-aware prompt learning and multi-scale feature adaptation for zero-shot anomaly detection

Zhixing Li, Lie Yang, Lijie Zhang, Jiansheng Liu et al.
Journal of King Saud University - Computer and Information Sciences
Anomaly Detection Techniques and Applications
article

Anomaly-aware prompt learning and multi-scale feature adaptation for zero-shot anomaly detection

Zhixing Li, Lie Yang, Lijie Zhang, Jiansheng Liu, Yufeng Pan, Kun Zhang
article en

Abstract

Zero-Shot Anomaly Detection (ZSAD) aims to generalize to unseen domains without requiring any target-domain samples, and is commonly applied to address the cold-start problem in industrial settings. However, existing ZSAD methods usually fail to capture anomaly semantics in specific contexts, limiting their cross-domain generalization. Furthermore, vision-language models (VLMs) typically show limited sensitivity to subtle anomalous patterns, making it difficult to explicitly guide VLM-based ZSAD model to focus on anomalies. To address these issues, this paper proposes a framework integrating anomaly-aware prompt learning and feature adaptation, which consists of two key components: an anomaly-aware textual prompt module and multi-scale feature adapters. Specifically, we dynamically incorporate the intrinsic local and global anomaly semantics from test images into textual prompts to achieve deep alignment between visual and textual modalities. To focus on defects at different levels, we introduce adapters to aggregate multi-scale visual features, thus enhancing fine-grained anomaly perception. Furthermore, the framework is extended to the few-shot setting to effectively leverage limited target-domain samples. Extensive experiments on 15 industrial and medical datasets demonstrate that the proposed method achieves state-of-the-art (SOTA) ZSAD performance. Notably, the method can further significantly improve the performance under few-shot settings, indicating its strong application potential.

Journal of King Saud University - Computer and Information Sciences
Nanchang University (CN), National University of Singapore (SG), Lishui University (CN)
National Natural Science Foundation of China
Openalex Percentile: Top 5%
Anomaly Detection Techniques and Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.