VQ-Flow: Taming Normalizing Flows for Multi-Class Anomaly Detection via Hierarchical Vector Quantization
Not on the map. Why?
Abstract (arXiv)
Normalizing flows, a category of probabilistic models famed for their capabilities in modeling complex data distributions, have exhibited remarkable efficacy in unsupervised anomaly detection. This paper explores the potential of normalizing flows in multi-class anomaly detection, wherein the normal data is compounded with multiple classes without providing class labels. Through the integration of vector quantization (VQ), we empower the flow models to distinguish different concepts of multi-class normal data in an unsupervised manner, resulting in a novel flow-based unified method, named VQ-Flow. Specifically, our VQ-Flow leverages hierarchical vector quantization to estimate two relative codebooks: a Conceptual Prototype Codebook (CPC) for concept distinction and its concomitant Concept-Specific Pattern Codebook (CSPC) to capture concept-specific normal patterns. The flow models in VQ-Flow are conditioned on the concept-specific patterns captured in CSPC, capable of modeling specific normal patterns associated with different concepts. Moreover, CPC further enables our VQ-Flow for concept-aware distribution modeling, faithfully mimicking the intricate multi-class normal distribution through a mixed Gaussian distribution reparametrized on the conceptual prototypes. Through the introduction of vector quantization, the proposed VQ-Flow advances the state-of-the-art in multi-class anomaly detection within a unified training scheme, yielding the Det./Loc. AUROC of 99.5%/98.3% on MVTec AD. The codebase is publicly available at https://github.com/cool-xuan/vqflow.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 31 of its 44 references that are in the map. First posted on arXiv 2 Sep 2024.
Builds on
31 of 44 references.
References · 31
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,893
- 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,415
- 2020Taming Transformers for High-Resolution Image Synthesiscited by 3,229
- 2016Wide Residual Networkscited by 3,057
- 2016Density estimation using Real NVPcited by 2,029
- 2018Glow: Generative Flow with Invertible 1x1 Convolutionscited by 1,539
- 2019Generating Diverse High-Fidelity Images with VQ-VAE-2cited by 1,376
- 2021Swin-Unet: Unet-like Pure Transformer for Medical Image Segmentationcited by 1,218
- 2014NICE: Non-linear Independent Components Estimationcited by 1,052
- 2021Towards Total Recall in Industrial Anomaly Detectioncited by 772
- 2023ConvNeXt V2: Co-designing and Scaling ConvNets with Masked Autoencoderscited by 703
19 more
- 2020PaDiM: a Patch Distribution Modeling Framework for Anomaly Detection and Localizationcited by 591
- 2021DRAEM -- A discriminatively trained reconstruction embedding for surface anomaly detectioncited by 510
- 2022SPot-the-Difference Self-Supervised Pre-training for Anomaly Detection and Segmentationcited by 397
- 2019Uninformed Students: Student-Teacher Anomaly Detection with Discriminative Latent Embeddingscited by 386
- 2021CFLOW-AD: Real-Time Unsupervised Anomaly Detection with Localization via Conditional Normalizing Flowscited by 320
- 2020Multiresolution Knowledge Distillation for Anomaly Detectioncited by 285
- 2022A Unified Model for Multi-class Anomaly Detectioncited by 267
- 2023SimpleNet: A Simple Network for Image Anomaly Detection and Localizationcited by 256
- 2020Not only Look, but also Listen: Learning Multimodal Violence Detection under Weak Supervisioncited by 235
- 2020PANDA: Adapting Pretrained Features for Anomaly Detection and Segmentationcited by 175
- 2020Explainable Deep One-Class Classificationcited by 126
- 2023Hierarchical Vector Quantized Transformer for Multi-class Unsupervised Anomaly Detectioncited by 66
- 2023Exploring Plain ViT Reconstruction for Multi-class Unsupervised Anomaly Detectioncited by 47
- 2022Unified Multivariate Gaussian Mixture for Efficient Neural Image Compressioncited by 43
- 2022Self-Supervised Masking for Unsupervised Anomaly Detection and Localizationcited by 43
- 2023DiAD: A Diffusion-based Framework for Multi-class Anomaly Detectioncited by 33
- 2014Stacked Quantizers for Compositional Vector Compressioncited by 30
- 2023BatchNorm-based Weakly Supervised Video Anomaly Detectioncited by 22
- 2023UniFormaly: Towards Task-Agnostic Unified Framework for Visual Anomaly Detectioncited by 11
Built on by
Citing papers per year: 2025: 3; 2026: 2.
5 papers.
- 2025A Survey on Foundation-Model-Based Industrial Defect Detectioncited by 5
- 2025Multi-class Image Anomaly Detection for Practical Applications: Requirements and Robust Solutionscited by 1
- 20253D Human-Human Interaction Anomaly Detectioncited by 0
- 2026Modulate-and-Map: Crossmodal Feature Mapping with Cross-View Modulation for 3D Anomaly Detectioncited by 0
- 2026DeCoFlow: Structural Decomposition of Normalizing Flows for Continual Anomaly Detectioncited by 0
- 2026DeCoFlow: Structural Decomposition of Normalizing Flows for Continual Anomaly Detection25 Jun 2026
- 2026Modulate-and-Map: Crossmodal Feature Mapping with Cross-View Modulation for 3D Anomaly Detection2 Apr 2026
- 20253D Human-Human Interaction Anomaly Detection15 Dec 2025
- 2025Multi-class Image Anomaly Detection for Practical Applications: Requirements and Robust Solutions4 Aug 2025
- 2025A Survey on Foundation-Model-Based Industrial Defect Detection26 Feb 2025