LECLIP: Boosting Zero-Shot Anomaly Detection With Local Enhanced CLIP
Zero-Shot Anomaly Detection (ZSAD) is a critical task that detects anomalies without any training samples from the target application, which is crucial for applications in diverse fields such as industrial quality control and medical imaging analysis. Recent advances have seen the application of Contrastive vision-Language Pretraining (CLIP) in ZSAD, exploiting its robust visual-linguistic alignment and zero-shot learning capabilities. However, CLIP is primarily designed for natural image classification, emphasizing global visual embeddings, while anomaly detection requires more accurate representation of anomalous regions and more precise local visual embeddings. To overcome these limitations, this paper proposes the Local Enhanced CLIP (LECLIP) framework for ZSAD. LECLIP incorporates a Local Alignment Module that divides images into blocks and aligns them with learnable text embeddings, ensuring precise relevance expression. Furthermore, a training-free Echo-Attention is proposed to complement the traditional QKV attention, enabling the model to capture both global and local image details effectively, thus providing a more accurate and detailed image representation. Experimental results show that LECLIP achieves superior performance on 15 challenging datasets, including 6 industrial datasets and 9 medical datasets. Code is available at https://github.com/lyy70/LECLIP.
Authors
- Qingyong Li (ORCID: https://orcid.org/0000-0002-3860-4809)
- Jie Zhang (ORCID: https://orcid.org/0000-0002-8899-3996)
- Jien Kato (ORCID: https://orcid.org/0000-0002-0196-4405)
- Wen Wang (ORCID: https://orcid.org/0000-0002-6076-9714)
- Zhehong Wang
- Yuyao Liu (ORCID: https://orcid.org/0009-0007-5443-9480)
Institutions
- Chinese Academy of Sciences (CN)
- Beijing Jiaotong University (CN)
- Kochi University of Technology (JP)
- Institute of Computing Technology (CN)
Publication Details
- Journal
- IEEE Transactions on Instrumentation and Measurement
- Published
- 2025-01-01
- DOI
- https://doi.org/10.1109/tim.2025.3571124
- Citations
- 1
- Primary Topic
- Medical Imaging Techniques and Applications
- Type
- article
- Field-Weighted Citation Impact
- 1.36
Funders
- National Natural Science Foundation of China
- Natural Science Foundation of Beijing Municipality
- Fundamental Research Funds for the Central Universities