HyperAIHyperAI

Command Palette

Search for a command to run...

5 months ago

A Unified Model for Multi-class Anomaly Detection

You Zhiyuan ; Cui Lei ; Shen Yujun ; Yang Kai ; Lu Xin ; Zheng Yu ; Le Xinyi

A Unified Model for Multi-class Anomaly Detection

Abstract

Despite the rapid advance of unsupervised anomaly detection, existing methodsrequire to train separate models for different objects. In this work, wepresent UniAD that accomplishes anomaly detection for multiple classes with aunified framework. Under such a challenging setting, popular reconstructionnetworks may fall into an "identical shortcut", where both normal and anomaloussamples can be well recovered, and hence fail to spot outliers. To tackle thisobstacle, we make three improvements. First, we revisit the formulations offully-connected layer, convolutional layer, as well as attention layer, andconfirm the important role of query embedding (i.e., within attention layer) inpreventing the network from learning the shortcut. We therefore come up with alayer-wise query decoder to help model the multi-class distribution. Second, weemploy a neighbor masked attention module to further avoid the information leakfrom the input feature to the reconstructed output feature. Third, we propose afeature jittering strategy that urges the model to recover the correct messageeven with noisy inputs. We evaluate our algorithm on MVTec-AD and CIFAR-10datasets, where we surpass the state-of-the-art alternatives by a sufficientlylarge margin. For example, when learning a unified model for 15 categories inMVTec-AD, we surpass the second competitor on the tasks of both anomalydetection (from 88.1% to 96.5%) and anomaly localization (from 89.5% to 96.8%).Code is available at https://github.com/zhiyuanyou/UniAD.

Code Repositories

zhiyuanyou/uniad
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
multi-class-anomaly-detection-on-mvtec-adUniAD
Detection AUROC: 96.5
Segmentation AUROC: 96.8

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
A Unified Model for Multi-class Anomaly Detection | Papers | HyperAI