Leveraging Latent Diffusion Models for Training-Free In-Distribution Data Augmentation for Surface Defect Detection
On the map: Diffusion models → Flow matching, time series and science
Abstract (arXiv)
Defect detection is the task of identifying defects in production samples. Usually, defect detection classifiers are trained on ground-truth data formed by normal samples (negative data) and samples with defects (positive data), where the latter are consistently fewer than normal samples. State-of-the-art data augmentation procedures add synthetic defect data by superimposing artifacts to normal samples to mitigate problems related to unbalanced training data. These techniques often produce out-of-distribution images, resulting in systems that learn what is not a normal sample but cannot accurately identify what a defect looks like. In this work, we introduce DIAG, a training-free Diffusion-based In-distribution Anomaly Generation pipeline for data augmentation. Unlike conventional image generation techniques, we implement a human-in-the-loop pipeline, where domain experts provide multimodal guidance to the model through text descriptions and region localization of the possible anomalies. This strategic shift enhances the interpretability of results and fosters a more robust human feedback loop, facilitating iterative improvements of the generated outputs. Remarkably, our approach operates in a zero-shot manner, avoiding time-consuming fine-tuning procedures while achieving superior performance. We demonstrate the efficacy and versatility of DIAG with respect to state-of-the-art data augmentation approaches on the challenging KSDD2 dataset, with an improvement in AP of approximately 18% when positive samples are available and 28% when they are missing. The source code is available at https://github.com/intelligolabs/DIAG.
Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Placed in Flow matching, time series and science, one of 14 directions in Diffusion models. Builds on 23 of its 31 references that are in the map. First posted on arXiv 4 Jul 2024.
Builds on
23 of 31 references.
Closest ancestors · 2
Same direction, newest first
- 2024Diffusion-based Image Generation for In-distribution Data Augmentation in Surface Defect Detection1 Jun
- 2023Neuro-symbolic Empowered Denoising Diffusion Probabilistic Models for Real-time Anomaly Detection in Industry 4.013 Jul
Other references · 21
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2020Denoising Diffusion Probabilistic Modelscited by 21,076
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
- 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 9,122
- 2015Deep Unsupervised Learning using Nonequilibrium Thermodynamicscited by 7,058
- 2022Hierarchical Text-Conditional Image Generation with CLIP Latentscited by 6,585
- 2022Photorealistic Text-to-Image Diffusion Models with Deep Language Understandingcited by 6,355
- 2022Classifier-Free Diffusion Guidancecited by 5,847
- 2023Adding Conditional Control to Text-to-Image Diffusion Modelscited by 5,503
- 2023SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesiscited by 4,356
- 2021Towards Total Recall in Industrial Anomaly Detectioncited by 776
9 more
- 2020PaDiM: a Patch Distribution Modeling Framework for Anomaly Detection and Localizationcited by 594
- 2021DRAEM -- A discriminatively trained reconstruction embedding for surface anomaly detectioncited by 514
- 2022Anomaly Detection via Reverse Distillation from One-Class Embeddingcited by 421
- 2020Same Same But DifferNet: Semi-Supervised Defect Detection with Normalizing Flowscited by 212
- 2022A Comprehensive Survey of Few-shot Learning: Evolution, Applications, Challenges, and Opportunitiescited by 163
- 2021Mixed supervision for surface-defect detection: from weakly to fully supervised learningcited by 101
- 2022MemSeg: A semi-supervised method for image surface defect detection using differences and commonalitiescited by 68
- 2022Prototypical Residual Networks for Anomaly Detection and Localizationcited by 56
- 2023A Machine Learning-oriented Survey on Tiny Machine Learningcited by 27
Built on by
Citing papers per year: 2024: 3; 2025: 3; 2026: 2.
8 papers.
- 2024Self-Supervised Iterative Refinement for Anomaly Detection in Industrial Quality Controlcited by 5
- 2024Reflexive Guidance: Improving OoDD in Vision-Language Models via Self-Guided Image-Adaptive Concept Generationcited by 2
- 2025KairosAD: A SAM-Based Model for Industrial Anomaly Detection on Embedded Devicescited by 2
- 2026TinyGLASS: Real-Time Self-Supervised In-Sensor Anomaly Detectioncited by 2
- 2024MDiFF: Exploiting Multimodal Score-based Diffusion Models for New Fashion Product Performance Forecastingcited by 0
- 2025ExDD: Explicit Dual Distribution Learning for Surface Defect Detection via Diffusion Synthesiscited by 0
- 2025RoadFusion: Latent Diffusion Model for Pavement Defect Detectioncited by 0
- 2026LiZAD: A Lightweight Zero-Shot Anomaly Detection Framework for Industrial Manufacturingcited by 0
- 2026LiZAD: A Lightweight Zero-Shot Anomaly Detection Framework for Industrial Manufacturing2 Jul 2026
- 2026TinyGLASS: Real-Time Self-Supervised In-Sensor Anomaly Detection17 Mar 2026
- 2025RoadFusion: Latent Diffusion Model for Pavement Defect Detection21 Jul 2025
- 2025ExDD: Explicit Dual Distribution Learning for Surface Defect Detection via Diffusion Synthesis21 Jul 2025
- 2025KairosAD: A SAM-Based Model for Industrial Anomaly Detection on Embedded Devices30 May 2025
- 2024MDiFF: Exploiting Multimodal Score-based Diffusion Models for New Fashion Product Performance Forecasting7 Dec 2024
- 2024Reflexive Guidance: Improving OoDD in Vision-Language Models via Self-Guided Image-Adaptive Concept Generation19 Oct 2024
- 2024Self-Supervised Iterative Refinement for Anomaly Detection in Industrial Quality Control21 Aug 2024
Similar, not cited
Close in wording, no citation either way
- 2024A Novel Approach to Industrial Defect Generation through Blended Latent Diffusion Model with Online Adaptation
- 2024DefFiller: Mask-Conditioned Diffusion for Salient Steel Surface Defect Generation
- 2024Defect Image Sample Generation With Diffusion Prior for Steel Surface Defect Recognition
- 2024AnomalySD: Few-Shot Multi-Class Anomaly Detection with Stable Diffusion Model
- 2025From Lab to Factory: Pitfalls and Guidelines for Self-/Unsupervised Defect Detection on Low-Quality Industrial Images
- 2026Industrial Surface Defect Detection via Diffusion Generation and Asymmetric Student-Teacher Network
- 2026Spatial Attention Supervision for Defect Localization: Exploiting Ground-Truth Masks as Training Signal in Diffusion-Augmented Defect Detection
- 2025Enhancing Glass Defect Detection with Diffusion Models: Addressing Imbalanced Datasets in Manufacturing Quality Control