mlsanityData to 14 Oct 2026

Leveraging Latent Diffusion Models for Training-Free In-Distribution Data Augmentation for Surface Defect Detection

arXiv 2407.03961 ↗First posted 4 Jul 2024cs.CV cs.LGcited by 8

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

  1. 2024Diffusion-based Image Generation for In-distribution Data Augmentation in Surface Defect Detection1 Jun
  2. 2023Neuro-symbolic Empowered Denoising Diffusion Probabilistic Models for Real-time Anomaly Detection in Industry 4.013 Jul

Other references · 21

  1. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  2. 2014Adam: A Method for Stochastic Optimizationcited by 37,240
  3. 2020Denoising Diffusion Probabilistic Modelscited by 21,076
  4. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
  5. 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 9,122
  6. 2015Deep Unsupervised Learning using Nonequilibrium Thermodynamicscited by 7,058
  7. 2022Hierarchical Text-Conditional Image Generation with CLIP Latentscited by 6,585
  8. 2022Photorealistic Text-to-Image Diffusion Models with Deep Language Understandingcited by 6,355
  9. 2022Classifier-Free Diffusion Guidancecited by 5,847
  10. 2023Adding Conditional Control to Text-to-Image Diffusion Modelscited by 5,503
  11. 2023SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesiscited by 4,356
  12. 2021Towards Total Recall in Industrial Anomaly Detectioncited by 776
9 more
  1. 2020PaDiM: a Patch Distribution Modeling Framework for Anomaly Detection and Localizationcited by 594
  2. 2021DRAEM -- A discriminatively trained reconstruction embedding for surface anomaly detectioncited by 514
  3. 2022Anomaly Detection via Reverse Distillation from One-Class Embeddingcited by 421
  4. 2020Same Same But DifferNet: Semi-Supervised Defect Detection with Normalizing Flowscited by 212
  5. 2022A Comprehensive Survey of Few-shot Learning: Evolution, Applications, Challenges, and Opportunitiescited by 163
  6. 2021Mixed supervision for surface-defect detection: from weakly to fully supervised learningcited by 101
  7. 2022MemSeg: A semi-supervised method for image surface defect detection using differences and commonalitiescited by 68
  8. 2022Prototypical Residual Networks for Anomaly Detection and Localizationcited by 56
  9. 2023A Machine Learning-oriented Survey on Tiny Machine Learningcited by 27

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 3; 2025: 3; 2026: 2.

8 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024A Novel Approach to Industrial Defect Generation through Blended Latent Diffusion Model with Online Adaptation
  2. 2024DefFiller: Mask-Conditioned Diffusion for Salient Steel Surface Defect Generation
  3. 2024Defect Image Sample Generation With Diffusion Prior for Steel Surface Defect Recognition
  4. 2024AnomalySD: Few-Shot Multi-Class Anomaly Detection with Stable Diffusion Model
  5. 2025From Lab to Factory: Pitfalls and Guidelines for Self-/Unsupervised Defect Detection on Low-Quality Industrial Images
  6. 2026Industrial Surface Defect Detection via Diffusion Generation and Asymmetric Student-Teacher Network
  7. 2026Spatial Attention Supervision for Defect Localization: Exploiting Ground-Truth Masks as Training Signal in Diffusion-Augmented Defect Detection
  8. 2025Enhancing Glass Defect Detection with Diffusion Models: Addressing Imbalanced Datasets in Manufacturing Quality Control