Open Access iconOpen Access

ARTICLE

LaRP-CLIP: Layer-Aware Refinement with Prototype Guidance for Zero-Shot Anomaly Detection

Xing Fang1, Yuanfang Chen1,2,*, Qiang Lin3, Kun Yang2,4, Gyu Myoung Lee5

1 School of Cyberspace, Hangzhou Dianzi University, Hangzhou, China
2 The State Key Laboratory of Blockchain and Data Security, Zhejiang University, Hangzhou, China
3 School of Computer Science and Technology, University of Science and Technology of China, Hefei, China
4 College of Computer Science and Technology, Zhejiang University, Hangzhou, China
5 School of Computer Science and Mathematics, Liverpool John Moores University, Liverpool, UK

* Corresponding Author: Yuanfang Chen. Email: email

Computers, Materials & Continua 2026, 88(3), 60 https://doi.org/10.32604/cmc.2026.084208

Abstract

The deployment of supervised anomaly detection is typically limited by the high cost of annotation, privacy constraints, and the scarcity of anomalous samples. These constraints have motivated the use of vision-language pre-trained models for zero-shot anomaly detection. However, existing CLIP-based methods still face three limitations: a shared set of prompts is applied across feature layers, anomaly maps are fused by fixed strategies, and image-level anomaly scores are determined solely by global image-text similarity. These limitations reduce the accuracy of pixel-level localization and weaken the reliability of image-level anomaly prediction. To overcome these limitations, LaRP-CLIP is proposed. It introduces layer-aware prompt decoupling to better match feature layers with different semantic characteristics, adaptive fusion with error-prior-guided local refinement to produce cleaner and more precise anomaly maps, and a prototype branch to improve image-level scoring. Experiments on four industrial datasets and seven medical datasets show that LaRP-CLIP achieves strong performance in both image-level detection and pixel-level localization.

Keywords

Zero-shot anomaly detection; vision-language models; layer-aware prompts; local refinement; prototype branch

Cite This Article

APA Style
Fang, X., Chen, Y., Lin, Q., Yang, K., Lee, G.M. (2026). LaRP-CLIP: Layer-Aware Refinement with Prototype Guidance for Zero-Shot Anomaly Detection. Computers, Materials & Continua, 88(3), 60. https://doi.org/10.32604/cmc.2026.084208
Vancouver Style
Fang X, Chen Y, Lin Q, Yang K, Lee GM. LaRP-CLIP: Layer-Aware Refinement with Prototype Guidance for Zero-Shot Anomaly Detection. Comput Mater Contin. 2026;88(3):60. https://doi.org/10.32604/cmc.2026.084208
IEEE Style
X. Fang, Y. Chen, Q. Lin, K. Yang, and G. M. Lee, “LaRP-CLIP: Layer-Aware Refinement with Prototype Guidance for Zero-Shot Anomaly Detection,” Comput. Mater. Contin., vol. 88, no. 3, pp. 60, 2026. https://doi.org/10.32604/cmc.2026.084208



cc Copyright © 2026 The Author(s). Published by Tech Science Press.
This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
  • 335

    View

  • 63

    Download

  • 0

    Like

Share Link