mlsanityData to 7 Oct 2026

Few-shot Defect Image Generation based on Consistency Modeling

arXiv 2408.00372 ↗First posted 1 Aug 2024cs.CVcited by 8

On the map: Diffusion models → Flow matching, time series and science

Abstract (arXiv)

Image generation can solve insufficient labeled data issues in defect detection. Most defect generation methods are only trained on a single product without considering the consistencies among multiple products, leading to poor quality and diversity of generated results. To address these issues, we propose DefectDiffu, a novel text-guided diffusion method to model both intra-product background consistency and inter-product defect consistency across multiple products and modulate the consistency perturbation directions to control product type and defect strength, achieving diversified defect image generation. Firstly, we leverage a text encoder to separately provide consistency prompts for background, defect, and fusion parts of the disentangled integrated architecture, thereby disentangling defects and normal backgrounds. Secondly, we propose the double-free strategy to generate defect images through two-stage perturbation of consistency direction, thereby controlling product type and defect strength by adjusting the perturbation scale. Besides, DefectDiffu can generate defect mask annotations utilizing cross-attention maps from the defect part. Finally, to improve the generation quality of small defects and masks, we propose the adaptive attention-enhance loss to increase the attention to defects. Experimental results demonstrate that DefectDiffu surpasses state-of-the-art methods in terms of generation quality and diversity, thus effectively improving downstream defection performance. Moreover, defect perturbation directions can be transferred among various products to achieve zero-shot defect generation, which is highly beneficial for addressing insufficient data issues. The code are available at https://github.com/FFDD-diffusion/DefectDiffu.

Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Placed in Flow matching, time series and science, one of 14 directions in Diffusion models. Builds on 30 of its 40 references that are in the map. First posted on arXiv 1 Aug 2024.

Builds on

30 of 40 references.

Closest ancestors · 1

Same direction, newest first

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

Other references · 29

  1. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  2. 2020Denoising Diffusion Probabilistic Modelscited by 20,851
  3. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
  4. 2021Diffusion Models Beat GANs on Image Synthesiscited by 8,185
  5. 2022Hierarchical Text-Conditional Image Generation with CLIP Latentscited by 6,539
  6. 2022Scalable Diffusion Models with Transformerscited by 5,931
  7. 2022Classifier-Free Diffusion Guidancecited by 5,717
  8. 2023Adding Conditional Control to Text-to-Image Diffusion Modelscited by 5,466
  9. 2019Analyzing and Improving the Image Quality of StyleGANcited by 3,580
  10. 2022DreamBooth: Fine Tuning Text-to-Image Diffusion Models for Subject-Driven Generationcited by 3,286
  11. 2022An Image is Worth One Word: Personalizing Text-to-Image Generation using Textual Inversioncited by 2,231
  12. 2022Multi-Concept Customization of Text-to-Image Diffusioncited by 1,099
17 more
  1. 2023Attend-and-Excite: Attention-Based Semantic Guidance for Text-to-Image Diffusion Modelscited by 696
  2. 2022Training-Free Structured Diffusion Guidance for Compositional Text-to-Image Synthesiscited by 386
  3. 2023Uni-ControlNet: All-in-One Control to Text-to-Image Diffusion Modelscited by 358
  4. 2023WinCLIP: Zero-/Few-Shot Anomaly Classification and Segmentationcited by 311
  5. 2022VQGAN-CLIP: Open Domain Image Generation and Editing with Natural Language Guidancecited by 285
  6. 2023AnomalyCLIP: Object-agnostic Prompt Learning for Zero-shot Anomaly Detectioncited by 270
  7. 2023LayoutDiffusion: Controllable Diffusion Model for Layout-to-image Generationcited by 258
  8. 2023DiffuMask: Synthesizing Images with Pixel-level Annotations for Semantic Segmentation Using Diffusion Modelscited by 162
  9. 2021Natural Synthetic Anomalies for Self-Supervised Anomaly Detection and Localizationcited by 116
  10. 2022DSR -- A dual subspace re-projection network for surface anomaly detectioncited by 89
  11. 2020XingGAN for Person Image Generationcited by 81
  12. 2021Defect-GAN: High-Fidelity Defect Synthesis for Automated Defect Inspectioncited by 77
  13. 2023Few-Shot Defect Image Generation via Defect-Aware Feature Manipulationcited by 66
  14. 2020CONFIG: Controllable Neural Face Image Generationcited by 61
  15. 2022SinDDM: A Single Image Denoising Diffusion Modelcited by 60
  16. 2023MaskDiffusion: Boosting Text-to-Image Consistency with Conditional Maskcited by 17
  17. 2023Defect Spectrum: A Granular Look of Large-Scale Defect Datasets with Rich Semanticscited by 16

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 6; 2026: 2.

8 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025DefectFill: Realistic Defect Generation with Inpainting Diffusion Model for Visual Inspection
  2. 2024DefFiller: Mask-Conditioned Diffusion for Salient Steel Surface Defect Generation
  3. 2026Failure-Aware Refinement of Vision-Language Model for Lithography Defect Detection
  4. 2024Leveraging Latent Diffusion Models for Training-Free In-Distribution Data Augmentation for Surface Defect Detection
  5. 2024Background-Aware Defect Generation for Robust Industrial Anomaly Detection
  6. 2024Dual-Interrelated Diffusion Model for Few-Shot Anomaly Image Generation
  7. 2026AGIDefect-4K: A Richly Annotated Dataset for AI-Generated Image Defect Detection, Localization and Explanation
  8. 2024AnomalySD: Few-Shot Multi-Class Anomaly Detection with Stable Diffusion Model