[论文解读] PromptMAD: Cross-Modal Prompting for Multi-Class Visual Anomaly Localization
PromptMAD 引入一个以文本为引导的扩散框架,结合基于 CLIP 的跨模态提示与扩散 refined 的分割器,在 MVTec-AD 的多类别像素级异常定位上达到最先进水平。
Visual anomaly detection in multi-class settings poses significant challenges due to the diversity of object categories, the scarcity of anomalous examples, and the presence of camouflaged defects. In this paper, we propose PromptMAD, a cross-modal prompting framework for unsupervised visual anomaly detection and localization that integrates semantic guidance through vision-language alignment. By leveraging CLIP-encoded text prompts describing both normal and anomalous class-specific characteristics, our method enriches visual reconstruction with semantic context, improving the detection of subtle and textural anomalies. To further address the challenge of class imbalance at the pixel level, we incorporate Focal loss function, which emphasizes hard-to-detect anomalous regions during training. Our architecture also includes a supervised segmentor that fuses multi-scale convolutional features with Transformer-based spatial attention and diffusion iterative refinement, yielding precise and high-resolution anomaly maps. Extensive experiments on the MVTec-AD dataset demonstrate that our method achieves state-of-the-art pixel-level performance, improving mean AUC to 98.35% and AP to 66.54%, while maintaining efficiency across diverse categories.
研究动机与目标
- 在工业场景中针对伪装与纹理缺陷,解决多类别视觉异常检测与定位。
- 通过视觉-语言对齐的语义引导,提升重建质量。
- 使用 Focal 损失缓解像素级类别不均衡,通过扩散与多尺度注意力 refine 异常图。
- 提供一个在各种对象/纹理上表现良好且计算量不重的统一模型。
提出的方法
- 在基线 OneNIP 启发的基准提示重建框架上工作。
- 结合描述正常与异常特征的 CLIP 基跨模态提示来引导重建。
- 引入一个文本引导的分割器,具备多尺度 CNN 特征、Transformer 空间注意力与扩散式细化。
- 训练时应用 Focal 损失以强调难以检测的异常像素。
- 在双向解码器中融合 CLIPText 表征与视觉提示以实现语义引导。
- 使用一个文本提示条件化的扩散细化过程(10 步,线性 β 调度)以锐化异常边界。
实验结果
研究问题
- RQ1跨模态(文本+图像)提示是否可在无监督异常检测中提升多对象/纹理类别的像素级定位?
- RQ2将文本引导的扩散细化分割器与仅视觉提示的基线相比,是否能得到更清晰、精确的异常图?
- RQ3Focal 损失在多类别设置中对检测稀疏、伪装异常的影响如何?
- RQ4在 MVTec-AD 上,与强基线相比,PromptMAD 的推理效率表现如何?
主要发现
- 像素级平均 AUC 从 97.81%(OneNIP 基线)提升至 98.35%(PromptMAD)。
- 像素级平均 AP 从 63.52%(OneNIP 基线)提升至 66.54%(PromptMAD)。
- 图像级最大 AUC 提升至 97.62%,最大 AP 提升至 99.23%(PromptMAD)。
- 在纹理类别(如榛子、瓷砖、金属螺母、药丸)上,因语义跨模态引导而获得显著提升。
- 推理速度维持实时:在 4 张 A100 GPU 上 193 FPS,相较 OneNIP 基线的 219 FPS。
- 消融实验表明,分割器、跨模态提示与 Focal 损失的全集成在大多数类别中实现最佳像素级 AP 与 AUC。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。