A Unified Model for Multi-class Anomaly Detection

被引:0
|
作者
You, Zhiyuan [1 ]
Cui, Lei [2 ]
Shen, Yujun [3 ]
Yang, Kai [4 ]
Lu, Xin [4 ]
Zheng, Yu [1 ]
Le, Xinyi [1 ]
机构
[1] Shanghai Jiao Tong Univ, Shanghai, Peoples R China
[2] Tsinghua Univ, Beijing, Peoples R China
[3] CUHK, Hong Kong, Peoples R China
[4] SenseTime, Hong Kong, Peoples R China
基金
中国国家自然科学基金;
关键词
D O I
暂无
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Despite the rapid advance of unsupervised anomaly detection, existing methods require to train separate models for different objects. In this work, we present UniAD that accomplishes anomaly detection for multiple classes with a unified framework. Under such a challenging setting, popular reconstruction networks may fall into an "identical shortcut", where both normal and anomalous samples can be well recovered, and hence fail to spot outliers. To tackle this obstacle, we make three improvements. First, we revisit the formulations of fully-connected layer, convolutional layer, as well as attention layer, and confirm the important role of query embedding (i.e., within attention layer) in preventing the network from learning the shortcut. We therefore come up with a layer-wise query decoder to help model the multi-class distribution. Second, we employ a neighbor masked attention module to further avoid the information leak from the input feature to the reconstructed output feature. Third, we propose a feature jittering strategy that urges the model to recover the correct message even with noisy inputs. We evaluate our algorithm on MVTec-AD and CIFAR-10 datasets, where we surpass the state-of-the-art alternatives by a sufficiently large margin. For example, when learning a unified model for 15 categories in MVTec-AD, we surpass the second competitor on the tasks of both anomaly detection (from 88.1% to 96.5%) and anomaly localization (from 89.5% to 96.8%). Code is available at https://github.com/zhiyuanyou/UniAD.
引用
收藏
页数:14
相关论文
共 50 条
  • [2] UniFlow: Unified Normalizing Flow for Unsupervised Multi-Class Anomaly Detection
    Zhong, Jianmei
    Song, Yanzhi
    [J]. Information (Switzerland), 2024, 15 (12)
  • [3] Multi-Class Hypersphere Anomaly Detection
    Kirchheim, Konstantin
    Filax, Marco
    Ortmeier, Frank
    [J]. 2022 26TH INTERNATIONAL CONFERENCE ON PATTERN RECOGNITION (ICPR), 2022, : 2636 - 2642
  • [4] Conformal Anomaly Detection of Trajectories with a Multi-class Hierarchy
    Smith, James
    Nouretdinov, Ilia
    Craddock, Rachel
    Offer, Charles
    Gammerman, Alexander
    [J]. STATISTICAL LEARNING AND DATA SCIENCES, 2015, 9047 : 281 - 290
  • [5] Latent Diffusion Based Multi-class Anomaly Detection
    Wang, Chenxing
    Tavakkoli, Alireza
    [J]. ADVANCES IN VISUAL COMPUTING, ISVC 2023, PT I, 2023, 14361 : 487 - 498
  • [6] A Diffusion-Based Framework for Multi-Class Anomaly Detection
    He, Haoyang
    Zhang, Jiangning
    Chen, Hongxu
    Chen, Xuhai
    Li, Zhishan
    Chen, Xu
    Wang, Yabiao
    Wang, Chengjie
    Xie, Lei
    [J]. THIRTY-EIGHTH AAAI CONFERENCE ON ARTIFICIAL INTELLIGENCE, VOL 38 NO 8, 2024, : 8472 - 8480
  • [7] Anomaly Detection Based on a Multi-class CUSUM Algorithm for WSN
    Xiao Zhenghong
    Chen Zhigang
    Deng Xiaoheng
    [J]. JOURNAL OF COMPUTERS, 2010, 5 (02) : 306 - 313
  • [8] Hierarchical Vector Quantized Transformer for Multi-class Unsupervised Anomaly Detection
    Lu, Ruiying
    Wu, YuJie
    Tian, Long
    Wang, Dongsheng
    Chen, Bo
    Liu, Xiyang
    Hu, Ruimin
    [J]. ADVANCES IN NEURAL INFORMATION PROCESSING SYSTEMS 36 (NEURIPS 2023), 2023,
  • [9] Multi-Class Network Anomaly Detection Using Machine Learning Techniques
    Gunupusala, Satyanarayana
    Kaila, Shahu Chatrapathi
    [J]. CONTEMPORARY MATHEMATICS, 2024, 5 (02): : 2335 - 2352
  • [10] MSTAD: A masked subspace-like transformer for multi-class anomaly detection
    Kang, Borui
    Zhong, Yuzhong
    Sun, Zhimin
    Deng, Lin
    Wang, Maoning
    Zhang, Jianwei
    [J]. KNOWLEDGE-BASED SYSTEMS, 2024, 283