摘要
Visual anomaly detection is widely applied in industrial inspection. Existing methods typically require abundant normal samples from the target domain, limiting their applicability in zero-shot scenarios. Recent CLIP-based approaches have shown promising zero-shot anomaly detection capability, but they mainly focus on text prompt design while overlooking the optimization of visual features. CLIP's visual encoder is pretrained for global semantic recognition, making it insensitive to local anomalous regions. In this paper, we propose MSWA-CLIP, which adapts CLIP for zero-shot industrial anomaly detection through three lightweight modules. First, a Multi-Scale Window Attention (MSWA) adapter is inserted at the output of each ViT block. It groups attention heads into different window sizes to capture anomalies at multiple scales. Second, a Class-Centered Context Aggregation (CCA) module uses Cross-Attention to let the [CLS] token aggregate anomaly-related information from the updated patch tokens, enhancing image-level classification. Third, learnable text prompts replace hand-crafted ones to better characterize normal and abnormal states. The entire framework freezes the CLIP encoder and only trains the lightweight adaptation modules on a source domain (VisA). It is then directly transferred to the target domain (MVTec AD) for zero-shot inference. Experimental results demonstrate the effectiveness of MSWA-CLIP, achieving competitive performance compared with recent state-of-the-art methods.
| 源语言 | 英语 |
|---|---|
| 页(从-至) | 2497-2501 |
| 页数 | 5 |
| 期刊 | Youth Academic Annual Conference of Chinese Association of Automation, YAC |
| 期 | 2026 |
| DOI | |
| 出版状态 | 已出版 - 2026 |
| 已对外发布 | 是 |
| 活动 | 41st Youth Academic Annual Conference of Chinese Association of Automation, YAC 2026 - Changsha, 中国 期限: 8 5月 2026 → 10 5月 2026 |
学术指纹
探究 'MSWA-CLIP: Multi-Scale Window Attention Adaptation of CLIP for Zero-Shot Industrial Anomaly Detection' 的科研主题。它们共同构成独一无二的学术指纹。引用此
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver