Research on Generative Models for Few-Shot Industrial Surface Defect Detection
Abstract
Industrial surface defect detection is essential for manufacturing quality control, but deep learning-based inspection systems often rely on sufficient and well-labelled defect samples. In practical industrial scenarios, defect samples are scarce, imbalanced, and difficult to collect, which limits the robustness and generalization ability of detection networks. This paper reviews how generative models support few-shot industrial defect detection. It focuses on variational autoencoders, generative adversarial networks, and diffusion models, and compares their roles in image-level augmentation, feature-level representation learning, controllable defect synthesis, and image-mask generation. The review shows that variational autoencoder-based methods are useful for stable latent representation and feature generation, generative adversarial network-based methods are better at realistic and controllable image augmentation, and diffusion-based methods have strong potential for high-quality paired image-mask generation. However, the usefulness of generated samples remains limited by data scarcity, distribution bias, imperfect local textures, and inaccurate small-defect masks. This review therefore provides a comparative framework for understanding the advantages and limitations of different generative models in few-shot industrial surface defect detection.
References
- Ma, Y., Yin, J., Huang, F., & Li, Q. (2024). Surface defect inspection of industrial products with object detection deep networks: a systematic review. Artificial Intelligence Review, 57, Article 333. https: //doi.org/10.1007/s10462-024-10956-3
- Liu, J., Xie, G., Wang, J., Li, S., Wang, C., Zheng, F., & Jin, Y. (2024). Deep industrial image anomaly detection: a survey. Machine Intelligence Research, 21(1), 104–135. https: //doi.org/10.1007/s11633-023-1459-z
- Ameri, R., Hsu, C.-C., & Band, S. S. (2024). A systematic review of deep learning approaches for surface defect detection in industrial applications. Engineering Applications of Artificial Intelligence, 130, Article 107717. https: //doi.org/10.1016/j.engappai.2023.107717
- He, X., Chang, Z., Zhang, L., Xu, H., Chen, H., & Luo, Z. (2022). A survey of defect detection applications based on generative adversarial networks. IEEE Access, 10, 113493–113512. https: //doi.org/10.1109/ACCESS.2022.3217227
- Kingma, D. P., & Welling, M. (2013). Auto-encoding variational Bayes. arXiv. https: //doi.org/10.48550/arXiv.1312.6114
- Yun, J. P., Shin, W. C., Koo, G., Kim, M. S., Lee, C., & Lee, S. J. (2020). Automated defect inspection system for metal surfaces based on deep learning and data augmentation. Journal of Manufacturing Systems, 55, 317–324. https: //doi.org/10.1016/j.jmsy.2020.03.009
- Zhang, T., You, T., Liu, Z., Rehman, S. U., Shi, Y., & Munshi, A. (2025). Small sample pipeline DR defect detection based on smooth variational autoencoder and enhanced detection head faster RCNN. Applied Intelligence, 55(8), Article 716. https: //doi.org/10.1007/s10489-025-06590-3
- Goodfellow, I. J., Pouget-Abadie, J., Mirza, M., Xu, B., Warde-Farley, D., Ozair, S., Courville, A., & Bengio, Y. (2014). Generative adversarial nets. In Z. Ghahramani, M. Welling, C. Cortes, N. D. Lawrence, & K. Q. Weinberger (Eds.), Advances in Neural Information Processing Systems 27 (pp. 2672–2680). Curran Associates, Inc.
- Guo, Y., Zhong, L., Qiu, Y., Wang, H., Gao, F., Wen, Z., & Zhan, C. (2022). Using ISU-GAN for unsupervised small sample defect detection. Scientific Reports, 12, Article 11604. https: //doi.org/10.1038/s41598-022-15855-7
- He, Z., Wu, K., & Wen, Y. (2025). Defect image generation through feature disentanglement using StyleGAN2-ADA. Neurocomputing, 647, Article 130455. https: //doi.org/10.1016/j.neucom.2025.130455
- Yen, A., Chang, N., Chien, J., Chuang, L., & Lee, E. (2026). CycleGAN-based data augmentation for scanning electron microscope images to enhance integrated circuit manufacturing defect classification. Electronics, 15(4), Article 803. https: //doi.org/10.3390/electronics15040803
- Hu, T., Zhang, J., Yi, R., Du, Y., Chen, X., Liu, L., Wang, Y., & Wang, C. (2024). AnomalyDiffusion: Few-shot anomaly image generation with diffusion model. Proceedings of the AAAI Conference on Artificial Intelligence, 38(8), 8526–8534. https: //doi.org/10.1609/aaai.v38i8.28696
- Shi, Q., Wei, J., Shen, F., & Zhang, Z. (2025). Few-shot defect image generation based on consistency modeling. In A. Leonardis, E. Ricci, S. Roth, O. Russakovsky, T. Sattler, & G. Varol (Eds.), Computer vision – ECCV 2024: 18th European Conference, Milan, Italy, September 29–October 4, 2024, Proceedings, Part LXXVI (Lecture Notes in Computer Science, Vol. 15134, pp. 360–376). Springer. https: //doi.org/10.1007/978-3-031-73116-7_21
- Wang, X., Luo, K., Liu, M., Zheng, R., & Li, Y. (2026). UGDS-CDM: A novel uncertainty-guided dual-stage conditional diffusion model and vision mamba-KAN integrating expert knowledge for surface defect detection under small samples. Advanced Engineering Informatics, 69(Part C), Article 104011. https: //doi.org/10.1016/j.aei.2025.104011