跳到主要导航 跳到搜索 跳到主要内容

MSWA-CLIP: Multi-Scale Window Attention Adaptation of CLIP for Zero-Shot Industrial Anomaly Detection

  • Lei Zhou
  • , Long Chen
  • , Tianjun Li
  • , Zhiyang Xie
  • , Yu Zhou
  • , Luotao Li
  • , Wei Wang
  • , Zongze Wu
  • Guangdong Laboratory of Artificial Intelligence and Digital Economy (SZ)
  • Shenzhen University

科研成果: 期刊稿件 › 会议文章 › 同行评审

摘要

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' 的科研主题。它们共同构成独一无二的学术指纹。

引用此