Few-shot Defect Image Generation based on Consistency Modeling
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
Other references · 29
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020Denoising Diffusion Probabilistic Modelscited by 20,851
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
- 2021Diffusion Models Beat GANs on Image Synthesiscited by 8,185
- 2022Hierarchical Text-Conditional Image Generation with CLIP Latentscited by 6,539
- 2022Scalable Diffusion Models with Transformerscited by 5,931
- 2022Classifier-Free Diffusion Guidancecited by 5,717
- 2023Adding Conditional Control to Text-to-Image Diffusion Modelscited by 5,466
- 2019Analyzing and Improving the Image Quality of StyleGANcited by 3,580
- 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
- 2022Multi-Concept Customization of Text-to-Image Diffusioncited by 1,099
17 more
- 2023Attend-and-Excite: Attention-Based Semantic Guidance for Text-to-Image Diffusion Modelscited by 696
- 2022Training-Free Structured Diffusion Guidance for Compositional Text-to-Image Synthesiscited by 386
- 2023Uni-ControlNet: All-in-One Control to Text-to-Image Diffusion Modelscited by 358
- 2023WinCLIP: Zero-/Few-Shot Anomaly Classification and Segmentationcited by 311
- 2022VQGAN-CLIP: Open Domain Image Generation and Editing with Natural Language Guidancecited by 285
- 2023AnomalyCLIP: Object-agnostic Prompt Learning for Zero-shot Anomaly Detectioncited by 270
- 2023LayoutDiffusion: Controllable Diffusion Model for Layout-to-image Generationcited by 258
- 2023DiffuMask: Synthesizing Images with Pixel-level Annotations for Semantic Segmentation Using Diffusion Modelscited by 162
- 2021Natural Synthetic Anomalies for Self-Supervised Anomaly Detection and Localizationcited by 116
- 2022DSR -- A dual subspace re-projection network for surface anomaly detectioncited by 89
- 2020XingGAN for Person Image Generationcited by 81
- 2021Defect-GAN: High-Fidelity Defect Synthesis for Automated Defect Inspectioncited by 77
- 2023Few-Shot Defect Image Generation via Defect-Aware Feature Manipulationcited by 66
- 2020CONFIG: Controllable Neural Face Image Generationcited by 61
- 2022SinDDM: A Single Image Denoising Diffusion Modelcited by 60
- 2023MaskDiffusion: Boosting Text-to-Image Consistency with Conditional Maskcited by 17
- 2023Defect Spectrum: A Granular Look of Large-Scale Defect Datasets with Rich Semanticscited by 16
Built on by
Citing papers per year: 2025: 6; 2026: 2.
8 papers.
- 2025A Survey on Industrial Anomaly Synthesiscited by 7
- 2025Exploring Few-Shot Defect Segmentation in General Industrial Scenarios with Metric Learning and Vision Foundation Modelscited by 4
- 2025STAGE: Segmentation-oriented Industrial Anomaly Synthesis via Graded Diffusion with Explicit Mask Alignmentcited by 2
- 2025ASBench: Image Anomalies Synthesis Benchmark for Anomaly Detectioncited by 1
- 2025FAST: Foreground-aware Diffusion with Accelerated Sampling Trajectory for Segmentation-oriented Anomaly Synthesiscited by 0
- 2025DeltaDeno: Zero-Shot Anomaly Generation via Delta-Denoising Attributioncited by 0
- 2026FuDU: A Fuzzy Dual-dimensional Uncertainty Framework for Streaming Active Learning in Industrial Defect Detectioncited by 0
- 2026FLASH: A "Generate Once, Synthesize Many" Framework for Synthetic Anomaly Generation in Industrial Anomaly Detectioncited by 0
- 2026FLASH: A "Generate Once, Synthesize Many" Framework for Synthetic Anomaly Generation in Industrial Anomaly Detection29 Sep 2026
- 2026FuDU: A Fuzzy Dual-dimensional Uncertainty Framework for Streaming Active Learning in Industrial Defect Detection2 Sep 2026
- 2025DeltaDeno: Zero-Shot Anomaly Generation via Delta-Denoising Attribution21 Nov 2025
- 2025ASBench: Image Anomalies Synthesis Benchmark for Anomaly Detection9 Oct 2025
- 2025FAST: Foreground-aware Diffusion with Accelerated Sampling Trajectory for Segmentation-oriented Anomaly Synthesis24 Sep 2025
- 2025STAGE: Segmentation-oriented Industrial Anomaly Synthesis via Graded Diffusion with Explicit Mask Alignment8 Sep 2025
- 2025A Survey on Industrial Anomaly Synthesis23 Feb 2025
- 2025Exploring Few-Shot Defect Segmentation in General Industrial Scenarios with Metric Learning and Vision Foundation Models3 Feb 2025
Similar, not cited
Close in wording, no citation either way
- 2025DefectFill: Realistic Defect Generation with Inpainting Diffusion Model for Visual Inspection
- 2024DefFiller: Mask-Conditioned Diffusion for Salient Steel Surface Defect Generation
- 2026Failure-Aware Refinement of Vision-Language Model for Lithography Defect Detection
- 2024Leveraging Latent Diffusion Models for Training-Free In-Distribution Data Augmentation for Surface Defect Detection
- 2024Background-Aware Defect Generation for Robust Industrial Anomaly Detection
- 2024Dual-Interrelated Diffusion Model for Few-Shot Anomaly Image Generation
- 2026AGIDefect-4K: A Richly Annotated Dataset for AI-Generated Image Defect Detection, Localization and Explanation
- 2024AnomalySD: Few-Shot Multi-Class Anomaly Detection with Stable Diffusion Model