Skip to main content
QUICK REVIEW

[论文解读] Dinomaly: The Less Is More Philosophy in Multi-Class Unsupervised Anomaly Detection

Jia Guo, Shuai Lu|arXiv (Cornell University)|May 23, 2024
Anomaly Detection Techniques and ApplicationsComputer Science被引用 3
一句话总结

Dinomaly 提出了一种极简的、基于重建的无监督异常检测框架,仅使用标准 Transformer(自注意力机制与 MLP)即在多类别无监督异常检测任务中达到最先进性能。通过利用 DINO 预训练的 ViT 模型,激活标准 Dropout 作为噪声注入机制,采用线性注意力以减少对局部区域的关注,并在分组层之间实施宽松的重建策略,Dinomaly 在 MVTec-AD 上实现了 99.6% 的 AUROC,超越了所有多类别及类别分离的最先进方法。

ABSTRACT

Recent studies highlighted a practical setting of unsupervised anomaly detection (UAD) that builds a unified model for multi-class images. Despite various advancements addressing this challenging task, the detection performance under the multi-class setting still lags far behind state-of-the-art class-separated models. Our research aims to bridge this substantial performance gap. In this paper, we introduce a minimalistic reconstruction-based anomaly detection framework, namely Dinomaly, which leverages pure Transformer architectures without relying on complex designs, additional modules, or specialized tricks. Given this powerful framework consisted of only Attentions and MLPs, we found four simple components that are essential to multi-class anomaly detection: (1) Foundation Transformers that extracts universal and discriminative features, (2) Noisy Bottleneck where pre-existing Dropouts do all the noise injection tricks, (3) Linear Attention that naturally cannot focus, and (4) Loose Reconstruction that does not force layer-to-layer and point-by-point reconstruction. Extensive experiments are conducted across popular anomaly detection benchmarks including MVTec-AD, VisA, and Real-IAD. Our proposed Dinomaly achieves impressive image-level AUROC of 99.6%, 98.7%, and 89.3% on the three datasets respectively, which is not only superior to state-of-the-art multi-class UAD methods, but also achieves the most advanced class-separated UAD records.

研究动机与目标

  • 弥合统一多类别无监督异常检测(MUAD)与类别分离 UAD 模型之间的性能差距。
  • 证明高性能 UAD 并不需要复杂的架构或专用模块。
  • 识别并验证四个简单而关键的组件,使极简 Transformer 在 MUAD 中超越最先进方法。
  • 表明标准组件如 Dropout 和线性注意力,若配合合理设计,可有效防止恒等映射并提升异常泛化能力。

提出的方法

  • 采用仅由标准 Transformer 块(自注意力与 MLP)构成的基于重建的框架,不引入额外模块或复杂设计。
  • 使用 DINO 预训练的视觉 Transformer 作为特征编码器,从正常图像中提取通用且具有判别力的表征。
  • 在 MLP 层中激活标准 Dropout,作为一种隐式、开箱即用的噪声注入机制,防止网络学习恒等映射。
  • 采用线性注意力,其本身不具备强局部聚焦特性,进一步降低网络重建异常区域的风险。
  • 通过将多个编码器层分组并舍弃逐层、逐点的重建方式,引入宽松重建策略,减少对正常模式的过拟合。
  • 使用轻量级解码器训练模型重建编码器的特征,异常分数由重建误差得出。
Figure 1: Setting and Performance of UAD and multi-class UAD (MUAD). (a) Task setting of class-separated UAD. (b) Task setting of MUAD. (c) Comparison of Dinomaly and previous SoTA methods [ 13 ; 14 ; 15 ; 16 ; 8 ; 17 ; 18 ; 19 ] on MVTec-AD [ 20 ] , VisA [ 21 ] , and Real-IAD [ 22 ] .
Figure 1: Setting and Performance of UAD and multi-class UAD (MUAD). (a) Task setting of class-separated UAD. (b) Task setting of MUAD. (c) Comparison of Dinomaly and previous SoTA methods [ 13 ; 14 ; 15 ; 16 ; 8 ; 17 ; 18 ; 19 ] on MVTec-AD [ 20 ] , VisA [ 21 ] , and Real-IAD [ 22 ] .

实验结果

研究问题

  • RQ1仅使用标准 Transformer 组件的极简、基于重建的框架,能否在多类别无监督异常检测中实现最先进性能?
  • RQ2标准 Transformer 中哪些简单且固有的组件可有效替代 MUAD 中复杂的专用模块?
  • RQ3将标准 Dropout 用作噪声注入机制,与显式设计的伪异常或特征抖动技术相比,效果如何?
  • RQ4线性注意力的归纳偏差——即其无法聚焦的能力——在多类别设置下对异常检测有多大益处?
  • RQ5在分组层之间放宽重建约束,是否能提升泛化能力并减少对正常模式的过拟合?

主要发现

  • Dinomaly 在 MVTec-AD 上实现 99.6% 的 AUROC,超越了最先进的类别分离 UAD 模型及所有先前的多类别 UAD 最先进方法。
  • 在 VisA 上,Dinomaly 达到 98.7% 的 AUROC,展现出在多样化物体类别与异常类型上的强大泛化能力。
  • 在 Real-IAD 上,Dinomaly 实现 89.3% 的 AUROC,显著优于以往多类别 UAD 方法,在一个真实世界、具有挑战性的基准上取得优异结果。
  • 该模型在 MVTec-AD 的全部 15 个类别上均优于先前最先进方法,尤其在挑战性类别如 'toothbrush'(96.9% AUROC)和 'usb'(99.2% AUROC)上表现最佳。
  • 定性可视化结果表明,Dinomaly 在所有数据集上均能生成清晰、局部化的异常分割图,即使面对未见过的异常类型与复杂纹理也表现良好。
  • 消融实验表明,四个核心组件——基础 Transformer、噪声瓶颈、线性注意力与宽松重建——均对性能有显著贡献,任一组件的移除均导致 AUROC 下降 1.5–3.5 个百分点。
Figure 2: The framework of Dinomaly, built by pure Transformer building blocks.
Figure 2: The framework of Dinomaly, built by pure Transformer building blocks.

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。