Few-Shot Anomaly-Driven Generation for Anomaly Classification and Segmentation
On the map: Diffusion models → Flow matching, time series and science
Abstract (arXiv)
Anomaly detection is a practical and challenging task due to the scarcity of anomaly samples in industrial inspection. Some existing anomaly detection methods address this issue by synthesizing anomalies with noise or external data. However, there is always a large semantic gap between synthetic and real-world anomalies, resulting in weak performance in anomaly detection. To solve the problem, we propose a few-shot Anomaly-driven Generation (AnoGen) method, which guides the diffusion model to generate realistic and diverse anomalies with only a few real anomalies, thereby benefiting training anomaly detection models. Specifically, our work is divided into three stages. In the first stage, we learn the anomaly distribution based on a few given real anomalies and inject the learned knowledge into an embedding. In the second stage, we use the embedding and given bounding boxes to guide the diffusion model to generate realistic and diverse anomalies on specific objects (or textures). In the final stage, we propose a weakly-supervised anomaly detection method to train a more powerful model with generated anomalies. Our method builds upon DRAEM and DesTSeg as the foundation model and conducts experiments on the commonly used industrial anomaly detection dataset, MVTec. The experiments demonstrate that our generated anomalies effectively improve the model performance of both anomaly classification and segmentation tasks simultaneously, eg, DRAEM and DseTSeg achieved a 5.8% and 1.5% improvement in AU-PR metric on segmentation task, respectively. The code and generated anomalous data are available at https://github.com/gaobb/AnoGen.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Flow matching, time series and science, one of 14 directions in Diffusion models. Builds on 39 of its 48 references that are in the map. First posted on arXiv 14 May 2025.
Builds on
39 of 48 references.
Closest ancestors · 1
Same direction, newest first
Other references · 38
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020Denoising Diffusion Probabilistic Modelscited by 20,851
- 2021Diffusion Models Beat GANs on Image Synthesiscited by 8,185
- 2022Photorealistic Text-to-Image Diffusion Models with Deep Language Understandingcited by 6,322
- 2021GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Modelscited by 3,595
- 2022DreamBooth: Fine Tuning Text-to-Image Diffusion Models for Subject-Driven Generationcited by 3,286
- 2022An Image is Worth One Word: Personalizing Text-to-Image Generation using Textual Inversioncited by 2,231
- 2013Describing Textures in the Wildcited by 2,110
- 2021SDEdit: Guided Image Synthesis and Editing with Stochastic Differential Equationscited by 1,903
- 2017High-Resolution Image Synthesis and Semantic Manipulation with Conditional GANscited by 1,176
- 2022Imagic: Text-Based Real Image Editing with Diffusion Modelscited by 1,172
- 2022Diffusion Models: A Comprehensive Survey of Methods and Applicationscited by 1,107
26 more
- 2022eDiff-I: Text-to-Image Diffusion Models with an Ensemble of Expert Denoiserscited by 921
- 2023GLIGEN: Open-Set Grounded Text-to-Image Generationcited by 774
- 2021Towards Total Recall in Industrial Anomaly Detectioncited by 772
- 2021ILVR: Conditioning Method for Denoising Diffusion Probabilistic Modelscited by 634
- 2020PaDiM: a Patch Distribution Modeling Framework for Anomaly Detection and Localizationcited by 591
- 2017Unsupervised Anomaly Detection with Generative Adversarial Networks to Guide Marker Discoverycited by 566
- 2021CutPaste: Self-Supervised Learning for Anomaly Detection and Localizationcited by 529
- 2021DRAEM -- A discriminatively trained reconstruction embedding for surface anomaly detectioncited by 510
- 2022Anomaly Detection via Reverse Distillation from One-Class Embeddingcited by 419
- 2023InstantBooth: Personalized Text-to-Image Generation without Test-Time Finetuningcited by 343
- 2023Synthetic Data from Diffusion Models Improves ImageNet Classificationcited by 326
- 2023Effective Data Augmentation With Diffusion Modelscited by 282
- 2022A Unified Model for Multi-class Anomaly Detectioncited by 267
- 2023SimpleNet: A Simple Network for Image Anomaly Detection and Localizationcited by 256
- 2021More Control for Free! Image Synthesis with Semantic Diffusion Guidancecited by 211
- 2020PANDA: Adapting Pretrained Features for Anomaly Detection and Segmentationcited by 175
- 2022DeSTSeg: Segmentation Guided Denoising Student-Teacher for Anomaly Detectioncited by 153
- 2022CFA: Coupled-hypersphere-based Feature Adaptation for Target-Oriented Anomaly Localizationcited by 135
- 2021Self-Supervised Predictive Convolutional Attentive Block for Anomaly Detectioncited by 119
- 2021Fully Convolutional Cross-Scale-Flows for Image-based Defect Detectioncited by 117
- 2023Few-Shot Defect Image Generation via Defect-Aware Feature Manipulationcited by 66
- 2023LayoutDM: Transformer-based Diffusion Model for Layout Generationcited by 57
- 2023Diffusion-based Data Augmentation for Skin Disease Classification: Impact Across Original Medical Datasets to Fully Synthetic Imagescited by 45
- 2019Probabilistic Modeling of Deep Features for Out-of-Distribution and Adversarial Detectioncited by 39
- 2022On Conditioning the Input Noise for Controlled Image Generation with Diffusion Modelscited by 14
- 2023RGI: robust GAN-inversion for mask-free image inpainting and unsupervised pixel-wise anomaly detectioncited by 12
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2024AnomalySD: Few-Shot Multi-Class Anomaly Detection with Stable Diffusion Model
- 2024Dual-Interrelated Diffusion Model for Few-Shot Anomaly Image Generation
- 2024FADE: Few-shot/zero-shot Anomaly Detection Engine using Large Vision-Language Model
- 2025One-to-Normal: Anomaly Personalization for Few-shot Anomaly Detection
- 2024AnomalyDINO: Boosting Patch-based Few-shot Anomaly Detection with DINOv2
- 2025Generate Aligned Anomaly: Region-Guided Few-Shot Anomaly Image-Mask Pair Synthesis for Industrial Inspection
- 2026UniScale: Arbitrary-Scale Industrial Anomaly Generation
- 2024Unseen Visual Anomaly Generation