Skip to main content
QUICK REVIEW

[Paper 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 Science3 citations
TL;DR

Dinomaly proposes a minimalistic, reconstruction-based unsupervised anomaly detection framework using only vanilla Transformers (self-attention and MLPs) to achieve state-of-the-art performance in multi-class unsupervised anomaly detection. By leveraging DINO-pretrained ViTs, activating standard Dropout as a noise injection mechanism, employing Linear Attention for reduced focus on local regions, and enforcing loose reconstruction across grouped layers, Dinomaly achieves 99.6% AUROC on MVTec-AD, surpassing both multi-class and class-separated SoTA methods.

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.

Motivation & Objective

  • To close the performance gap between unified multi-class unsupervised anomaly detection (MUAD) and class-separated UAD models.
  • To demonstrate that complex architectures and specialized modules are not necessary for high-performing UAD.
  • To identify and validate four simple, essential components that enable minimalistic Transformers to outperform SoTA in MUAD.
  • To show that standard components like Dropout and Linear Attention, when used with principled design, can effectively prevent identity mapping and improve anomaly generalization.

Proposed method

  • Utilizes a reconstruction-based framework built exclusively from standard Transformer blocks (self-attention and MLPs), without additional modules or complex designs.
  • Employs DINO-pretrained Vision Transformers as feature encoders to extract universal and discriminative representations from normal images.
  • Activates standard Dropout in MLP layers as a form of implicit, out-of-the-box noise injection to prevent the network from learning identity mappings.
  • Adopts Linear Attention, which inherently lacks strong local focus, to further reduce the risk of the network reconstructing anomalous regions.
  • Introduces Loose Reconstruction by grouping multiple encoder layers and discarding layer-wise, point-by-point reconstruction, reducing overfitting to normal patterns.
  • Trains the model to reconstruct features from the encoder using a lightweight decoder, with anomaly scores derived from reconstruction error.
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 ] .

Experimental results

Research questions

  • RQ1Can a minimalistic, reconstruction-based framework using only standard Transformer components achieve SoTA performance in multi-class unsupervised anomaly detection?
  • RQ2What simple, inherent components of standard Transformers can effectively replace complex, task-specific modules in MUAD?
  • RQ3How does the use of standard Dropout as a noise injection mechanism compare to explicitly designed pseudo-anomaly or feature jittering techniques?
  • RQ4To what extent does the inductive bias of Linear Attention—its inability to focus—benefit anomaly detection in multi-class settings?
  • RQ5Does loosening reconstruction constraints across grouped layers improve generalization and reduce overfitting to normal patterns?

Key findings

  • Dinomaly achieves 99.6% AUROC on MVTec-AD, surpassing the most advanced class-separated UAD models and all prior SoTA multi-class UAD methods.
  • On VisA, Dinomaly attains 98.7% AUROC, demonstrating strong generalization across diverse object categories and anomaly types.
  • On Real-IAD, Dinomaly achieves 89.3% AUROC, a significant improvement over prior multi-class UAD methods and a strong result on a real-world, challenging benchmark.
  • The model outperforms previous SoTA methods on all 15 categories in MVTec-AD, with the highest scores on challenging categories like 'toothbrush' (96.9% AUROC) and 'usb' (99.2% AUROC).
  • Qualitative visualization confirms that Dinomaly produces sharp, localized anomaly maps across all datasets, even on unseen anomaly types and complex textures.
  • Ablation studies confirm that each of the four core components—Foundation Transformers, Noisy Bottleneck, Linear Attention, and Loose Reconstruction—contributes significantly to performance, with ablation on any one reducing AUROC by 1.5–3.5 points.
Figure 2: The framework of Dinomaly, built by pure Transformer building blocks.
Figure 2: The framework of Dinomaly, built by pure Transformer building blocks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.