[论文解读] AMI-Net: Adaptive Mask Inpainting Network for Industrial Anomaly Detection and Localization
AMI-Net 提出了一种用于无监督工业异常检测的自适应掩码修复网络,该网络使用多尺度语义特征作为重建目标,并通过自适应掩码生成器抑制缺陷重建。通过在训练阶段使用随机位置和定量掩码,在测试阶段使用自适应掩码,该方法在 MVTec AD 和 BTAD 数据集上实现了高精度与实时性能,优于现有方法,且仅需正常样本进行训练。
Unsupervised visual anomaly detection is crucial for enhancing industrial production quality and efficiency. Among unsupervised methods, reconstruction approaches are popular due to their simplicity and effectiveness. The key aspect of reconstruction methods lies in the restoration of anomalous regions, which current methods have not satisfactorily achieved. To tackle this issue, we introduce a novel \uline{A}daptive \uline{M}ask \uline{I}npainting \uline{Net}work (AMI-Net) from the perspective of adaptive mask-inpainting. In contrast to traditional reconstruction methods that treat non-semantic image pixels as targets, our method uses a pre-trained network to extract multi-scale semantic features as reconstruction targets. Given the multiscale nature of industrial defects, we incorporate a training strategy involving random positional and quantitative masking. Moreover, we propose an innovative adaptive mask generator capable of generating adaptive masks that effectively mask anomalous regions while preserving normal regions. In this manner, the model can leverage the visible normal global contextual information to restore the masked anomalous regions, thereby effectively suppressing the reconstruction of defects. Extensive experimental results on the MVTec AD and BTAD industrial datasets validate the effectiveness of the proposed method. Additionally, AMI-Net exhibits exceptional real-time performance, striking a favorable balance between detection accuracy and speed, rendering it highly suitable for industrial applications. Code is available at: https://github.com/luow23/AMI-Net
研究动机与目标
- 解决基于重建的无监督异常检测方法的局限性,即自编码器因泛化能力过强而无法抑制缺陷重建。
- 克服现有基于掩码的方法在推理过程中因随机掩码导致的不稳定性和性能不一致问题。
- 通过利用正常区域的全局上下文信息来恢复被掩码的异常区域,提升缺陷定位与检测能力。
- 通过在高检测精度与快速推理速度之间取得平衡,实现实时工业部署。
- 在无需缺陷标注的情况下,将适用范围扩展至包括纹理表面和姿态变化物体在内的多种工业缺陷类型。
提出的方法
- 提出一种自适应掩码生成器,在推理过程中为每个样本生成特定掩码,完全覆盖异常区域的同时保留正常区域。
- 使用预训练的视觉Transformer提取多尺度语义特征作为重建目标,替代标准自编码器中的像素级重建。
- 引入一种训练策略,采用随机位置和定量掩码,以模拟不同大小和位置的缺陷。
- 使用独立的解码器仅用于可视化,模型仅通过特征重建进行训练,以提升泛化能力与稳定性。
- 利用可见的正常全局上下文信息,引导被掩码异常区域的修复,有效抑制缺陷模式的生成。
- 通过超参数λ优化重建损失,发现当λ = 0.5时,在图像、实例和像素级平均精度(AP)指标上均达到最优性能。
实验结果
研究问题
- RQ1自适应掩码生成策略是否能提升无监督工业异常检测在工业环境中的鲁棒性与稳定性?
- RQ2使用多尺度语义特征作为重建目标,是否能优于像素级重建,更有效地抑制缺陷模式生成?
- RQ3在训练过程中采用随机掩码,是否能增强模型对不同大小和位置缺陷的泛化能力?
- RQ4所提出方法在保持高检测精度的同时,能在多大程度上实现实时推理速度?
- RQ5AMI-Net在包括纹理表面和姿态变化物体在内的多种工业缺陷类型上的表现如何?
主要发现
- AMI-Net在MVTec AD和BTAD数据集上达到最先进性能,是无监督方法中像素级平均精度(AP)最高的模型。
- 当重建损失超参数λ设置为0.5时,模型在图像、实例和像素级AP指标上均表现最优。
- 可视化结果表明,AMI-Net能有效抑制缺陷重建,而原始自编码器及现有基于掩码的方法则会泄露缺陷模式。
- AMI-Net实现了实时推理速度,适用于对低延迟要求严格的工业部署场景。
- 失败案例显示,模型在检测细微或低对比度缺陷,以及区分缺陷与背景纹理方面仍存在局限,表明其判别能力仍有提升空间。
- 与随机掩码方法相比,AMI-Net在不同测试掩码下保持了高度稳定性,后者因掩码变化导致性能不一致。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。