mlsanityData to 7 Oct 2026

Few-Shot Anomaly-Driven Generation for Anomaly Classification and Segmentation

arXiv 2505.09263 ↗First posted 14 May 2025cs.CV cs.AIcited by 0

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

  1. 2023AnomalyDiffusion: Few-Shot Anomaly Image Generation with Diffusion Model10 Dec

Other references · 38

  1. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  2. 2020Denoising Diffusion Probabilistic Modelscited by 20,851
  3. 2021Diffusion Models Beat GANs on Image Synthesiscited by 8,185
  4. 2022Photorealistic Text-to-Image Diffusion Models with Deep Language Understandingcited by 6,322
  5. 2021GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Modelscited by 3,595
  6. 2022DreamBooth: Fine Tuning Text-to-Image Diffusion Models for Subject-Driven Generationcited by 3,286
  7. 2022An Image is Worth One Word: Personalizing Text-to-Image Generation using Textual Inversioncited by 2,231
  8. 2013Describing Textures in the Wildcited by 2,110
  9. 2021SDEdit: Guided Image Synthesis and Editing with Stochastic Differential Equationscited by 1,903
  10. 2017High-Resolution Image Synthesis and Semantic Manipulation with Conditional GANscited by 1,176
  11. 2022Imagic: Text-Based Real Image Editing with Diffusion Modelscited by 1,172
  12. 2022Diffusion Models: A Comprehensive Survey of Methods and Applicationscited by 1,107
26 more
  1. 2022eDiff-I: Text-to-Image Diffusion Models with an Ensemble of Expert Denoiserscited by 921
  2. 2023GLIGEN: Open-Set Grounded Text-to-Image Generationcited by 774
  3. 2021Towards Total Recall in Industrial Anomaly Detectioncited by 772
  4. 2021ILVR: Conditioning Method for Denoising Diffusion Probabilistic Modelscited by 634
  5. 2020PaDiM: a Patch Distribution Modeling Framework for Anomaly Detection and Localizationcited by 591
  6. 2017Unsupervised Anomaly Detection with Generative Adversarial Networks to Guide Marker Discoverycited by 566
  7. 2021CutPaste: Self-Supervised Learning for Anomaly Detection and Localizationcited by 529
  8. 2021DRAEM -- A discriminatively trained reconstruction embedding for surface anomaly detectioncited by 510
  9. 2022Anomaly Detection via Reverse Distillation from One-Class Embeddingcited by 419
  10. 2023InstantBooth: Personalized Text-to-Image Generation without Test-Time Finetuningcited by 343
  11. 2023Synthetic Data from Diffusion Models Improves ImageNet Classificationcited by 326
  12. 2023Effective Data Augmentation With Diffusion Modelscited by 282
  13. 2022A Unified Model for Multi-class Anomaly Detectioncited by 267
  14. 2023SimpleNet: A Simple Network for Image Anomaly Detection and Localizationcited by 256
  15. 2021More Control for Free! Image Synthesis with Semantic Diffusion Guidancecited by 211
  16. 2020PANDA: Adapting Pretrained Features for Anomaly Detection and Segmentationcited by 175
  17. 2022DeSTSeg: Segmentation Guided Denoising Student-Teacher for Anomaly Detectioncited by 153
  18. 2022CFA: Coupled-hypersphere-based Feature Adaptation for Target-Oriented Anomaly Localizationcited by 135
  19. 2021Self-Supervised Predictive Convolutional Attentive Block for Anomaly Detectioncited by 119
  20. 2021Fully Convolutional Cross-Scale-Flows for Image-based Defect Detectioncited by 117
  21. 2023Few-Shot Defect Image Generation via Defect-Aware Feature Manipulationcited by 66
  22. 2023LayoutDM: Transformer-based Diffusion Model for Layout Generationcited by 57
  23. 2023Diffusion-based Data Augmentation for Skin Disease Classification: Impact Across Original Medical Datasets to Fully Synthetic Imagescited by 45
  24. 2019Probabilistic Modeling of Deep Features for Out-of-Distribution and Adversarial Detectioncited by 39
  25. 2022On Conditioning the Input Noise for Controlled Image Generation with Diffusion Modelscited by 14
  26. 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

  1. 2024AnomalySD: Few-Shot Multi-Class Anomaly Detection with Stable Diffusion Model
  2. 2024Dual-Interrelated Diffusion Model for Few-Shot Anomaly Image Generation
  3. 2024FADE: Few-shot/zero-shot Anomaly Detection Engine using Large Vision-Language Model
  4. 2025One-to-Normal: Anomaly Personalization for Few-shot Anomaly Detection
  5. 2024AnomalyDINO: Boosting Patch-based Few-shot Anomaly Detection with DINOv2
  6. 2025Generate Aligned Anomaly: Region-Guided Few-Shot Anomaly Image-Mask Pair Synthesis for Industrial Inspection
  7. 2026UniScale: Arbitrary-Scale Industrial Anomaly Generation
  8. 2024Unseen Visual Anomaly Generation