Hierarchical Vector Quantized Transformer for Multi-class Unsupervised Anomaly Detection
Ruiying Lu, Yujie Wu, Long Tian, Dongsheng Wang, Bo Chen, Xiyang Liu, Ruimin Hu
Abstract
Unsupervised image Anomaly Detection (UAD) aims to learn robust and discriminative representations of normal samples. While separate solutions per class endow expensive computation and limited generalizability, this paper focuses on building a unified framework for multiple classes. Under such a challenging setting, popular reconstruction-based networks with continuous latent representation assumption always suffer from the "identical shortcut" issue, where both normal and abnormal samples can be well recovered and difficult to distinguish. To address this pivotal issue, we propose a hierarchical vector quantized prototype-oriented Transformer under a probabilistic framework. First, instead of learning the continuous representations, we preserve the typical normal patterns as discrete iconic prototypes, and confirm the importance of Vector Quantization in preventing the model from falling into the shortcut. The vector quantized iconic prototype is integrated into the Transformer for reconstruction, such that the abnormal data point is flipped to a normal data point. Second, we investigate an exquisite hierarchical framework to relieve the codebook collapse issue and replenish frail normal patterns. Third, a prototype-oriented optimal transport method is proposed to better regulate the prototypes and hierarchically evaluate the abnormal score. By evaluating on MVTec-AD and VisA datasets, our model surpasses the state-ofthe-art alternatives and possesses good interpretability. The code is available at https://github.com/RuiyingLu/HVQ-Trans .
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
36 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Foundation Visual Encoders Are Secretly Few-Shot Anomaly Detectors cites Towards Total Recall in Industrial Anomaly Detection
- Foundation Visual Encoders Are Secretly Few-Shot Anomaly Detectors cites Anomaly Detection via Reverse Distillation from One-Class Embedding
- Foundation Visual Encoders Are Secretly Few-Shot Anomaly Detectors cites A Unified Model for Multi-class Anomaly Detection
- CNC: Cross-modal Normality Constraint for Unsupervised Multi-class Anomaly Detection cites Towards Total Recall in Industrial Anomaly Detection
- CNC: Cross-modal Normality Constraint for Unsupervised Multi-class Anomaly Detection cites Anomaly Detection via Reverse Distillation from One-Class Embedding
- CNC: Cross-modal Normality Constraint for Unsupervised Multi-class Anomaly Detection cites A Unified Model for Multi-class Anomaly Detection
- Vague Prototype-Oriented Diffusion Model for Multi-Class Anomaly Detection cites Towards Total Recall in Industrial Anomaly Detection
- Vague Prototype-Oriented Diffusion Model for Multi-Class Anomaly Detection cites Anomaly Detection via Reverse Distillation from One-Class Embedding
- Vague Prototype-Oriented Diffusion Model for Multi-Class Anomaly Detection cites EfficientNetV2: Smaller Models and Faster Training
- Vague Prototype-Oriented Diffusion Model for Multi-Class Anomaly Detection cites A Unified Model for Multi-class Anomaly Detection
- Facing Anomalies Head-On: Network Traffic Anomaly Detection via Uncertainty-Inspired Inter-Sample Differences cites Anomaly Detection via Reverse Distillation from One-Class Embedding
- A Unified Model for Multi-class Anomaly Detection cites Anomaly Detection via Reverse Distillation from One-Class Embedding
- Normal-Abnormal Guided Generalist Anomaly Detection cites Towards Total Recall in Industrial Anomaly Detection
- Normal-Abnormal Guided Generalist Anomaly Detection cites CNC: Cross-modal Normality Constraint for Unsupervised Multi-class Anomaly Detection
Cited by top-tier papers36
- CNC: Cross-modal Normality Constraint for Unsupervised Multi-class Anomaly DetectionXiaolei Wang, Xiaoyang Wang, Huihui Bai, Eng Gee Lim et al.AAAI 2025 · 19 citations
- Normal-Abnormal Guided Generalist Anomaly DetectionYuexin Wang, Xiaolei Wang, Yizheng Gong, Jimin XiaoNeurIPS 2025 · 16 citations
- Vague Prototype-Oriented Diffusion Model for Multi-Class Anomaly DetectionYuxin Li, Yaoxuan Feng, Bo Chen, Wenchao Chen et al.ICML 2024 · 11 citations
- Facing Anomalies Head-On: Network Traffic Anomaly Detection via Uncertainty-Inspired Inter-Sample DifferencesXinglin Lian, Chengtai Cao, Yan Liu, Xovee Xu et al.WWW 2025 · 11 citations
- Foundation Visual Encoders Are Secretly Few-Shot Anomaly DetectorsGuangyao Zhai, Yue Zhou, Xinyan Deng, Lars Heckler-Kram et al.ICLR 2026 · 9 citations
Builds on15
- EfficientNetV2: Smaller Models and Faster TrainingMingxing Tan, Quoc V. LeICML 2021 · 4,239 citations
- Towards Total Recall in Industrial Anomaly DetectionKarsten Roth, Latha Pemula, Joaquin Zepeda, Bernhard Schölkopf et al.CVPR 2022 · 1,301 citations
- Scaling Vision with Sparse Mixture of ExpertsCarlos Riquelme, Joan Puigcerver, Basil Mustafa, Maxim Neumann et al.NeurIPS 2021 · 1,213 citations
- Anomaly Detection via Reverse Distillation from One-Class EmbeddingHanqiu Deng, Xingyu LiCVPR 2022 · 701 citations
- A Unified Model for Multi-class Anomaly DetectionZhiyuan You, Lei Cui, Yujun Shen, Kai Yang et al.NeurIPS 2022 · 585 citations
Related papers
- Prototype-oriented unsupervised anomaly detection for multivariate time seriesYuxin Li, Wenchao Chen, Bo Chen, Dongsheng Wang et al.ICML 2023 · 31 citations
- Dinomaly: The Less Is More Philosophy in Multi-Class Unsupervised Anomaly DetectionJia Guo, Shuai Lu, Weihang Zhang, Fang Chen et al.CVPR 2025
- One-for-All: Proposal Masked Cross-Class Anomaly DetectionXincheng Yao, Chongyang Zhang, Ruoqi Li, Jun Sun et al.AAAI 2023 · 42 citations
- MaskAD: Parallel Masked Autoencoder for Multi-class Unsupervised Anomaly DetectionRuiying Lu, Gang Liu, Kang Li, Long Tian et al.AAAI 2026
- Learning Unsupervised Metaformer for Anomaly DetectionJhih-Ciang Wu, Ding-Jie Chen, Chiou-Shann Fuh, Tyng-Luh LiuICCV 2021 · 101 citations
