FocusPatch AD: Few-Shot Multi-Class Anomaly Detection With Unified Keywords Patch Prompts
Industrial few-shot anomaly detection (FSAD) requires identifying various abnormal states by leveraging as few normal samples as possible (abnormal samples are unavailable during training). However, current methods often require training a separate model for each category, leading to increased computation and storage overhead. Thus, designing a unified anomaly detection model that supports multiple categories remains a challenging task, as such a model must recognize anomalous patterns across diverse objects and domains. To tackle these challenges, this paper introduces FocusPatch AD, a unified anomaly detection framework based on vision-language models, achieving anomaly detection under few-shot multi-class settings. FocusPatch AD links anomaly state keywords to highly relevant discrete local regions within the image, guiding the model to focus on cross-category anomalies while filtering out background interference. This approach mitigates the false detection issues caused by global semantic alignment in vision-language models. We evaluate the proposed method on the MVTec, VisA, and Real-IAD datasets, comparing them against several prevailing anomaly detection methods. In both image-level and pixel-level anomaly detection tasks, FocusPatch AD achieves significant gains in classification and localization performance, demonstrating excellent generalization and adaptability.
Authors
- Mingang Chen
- Xiaofan Li (ORCID: https://orcid.org/0000-0001-6484-3515)
- Jingyu Gong (ORCID: https://orcid.org/0000-0002-4536-0953)
- Yuan Xie (ORCID: https://orcid.org/0000-0001-6945-7437)
- Xicheng Ding
Institutions
- China Guangzhou Analysis and Testing Center (CN)
- East China Normal University (CN)
Publication Details
- Journal
- IEEE Transactions on Image Processing
- Published
- 2025-12-30
- DOI
- https://doi.org/10.1109/tip.2025.3646861
- Primary Topic
- Anomaly Detection Techniques and Applications
- Type
- article
- Field-Weighted Citation Impact
- 0.00