Few-Shot Defect Image Generation via Defect-Aware Feature Manipulation
Yuxuan Duan, Yan Hong, Li Niu, Liqing Zhang
Abstract
The performances of defect inspection have been severely hindered by insufficient defect images in industries, which can be alleviated by generating more samples as data augmentation. We propose the first defect image generation method in the challenging few-shot cases. Given just a handful of defect images and relatively more defect-free ones, our goal is to augment the dataset with new defect images. Our method consists of two training stages. First, we train a data-efficient StyleGAN2 on defect-free images as the backbone. Second, we attach defect-aware residual blocks to the backbone, which learn to produce reasonable defect masks and accordingly manipulate the features within the masked regions by training the added modules on limited defect images. Extensive experiments on MVTec AD dataset not only validate the effectiveness of our method in generating realistic and diverse defect images, but also manifest the benefits it brings to downstream defect inspection tasks. Codes are available at https://github.com/Ldhlwh/DFMGAN.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 77409887-8b56-458f-93a8-9e24cd22b689Cited by top-tier papers24
- AnomalyDiffusion: Few-Shot Anomaly Image Generation with Diffusion ModelTeng Hu, Jiangning Zhang, Ran Yi, Yuzhen Du et al.AAAI 2024 · 175 citations
- RealNet: A Feature Selection Network with Realistic Synthetic Anomaly for Anomaly DetectionXimiao Zhang, Min Xu, Xiuzhuang ZhouCVPR 2024 · 140 citations
- WeditGAN: Few-Shot Image Generation via Latent Space RelocationYuxuan Duan, Li Niu, Yan Hong, Liqing ZhangAAAI 2024 · 23 citations
- Revisiting Multimodal Fusion for 3D Anomaly Detection from an Architectural PerspectiveKaifang Long, Guoyang Xie, Lianbo Ma, Jiaqi Liu et al.AAAI 2025 · 17 citations
- Foundation Visual Encoders Are Secretly Few-Shot Anomaly DetectorsGuangyao Zhai, Yue Zhou, Xinyan Deng, Lars Heckler-Kram et al.ICLR 2026 · 9 citations
Builds on9
- Training Generative Adversarial Networks with Limited DataTero Karras, Miika Aittala, Janne Hellsten, Samuli Laine et al.NeurIPS 2020 · 2,345 citations
- Differentiable Augmentation for Data-Efficient GAN TrainingShengyu Zhao, Zhijian Liu, Ji Lin, Jun-Yan Zhu et al.NeurIPS 2020 · 707 citations
- Image Generation From Small Datasets via Batch Statistics AdaptationAtsuhiro Noguchi, Tatsuya HaradaICCV 2019 · 211 citations
- CutPaste: Self-Supervised Learning for Anomaly Detection and LocalizationChun-Liang Li, Kihyuk Sohn, Jinsung Yoon, Tomas PfisterCVPR 2021
- StarGAN v2: Diverse Image Synthesis for Multiple DomainsYunjey Choi, Youngjung Uh, Jaejun Yoo, Jung-Woo HaCVPR 2020
Related papers
- Data-Efficient GAN Training Beyond (Just) Augmentations: A Lottery Ticket PerspectiveTianlong Chen, Yu Cheng, Zhe Gan, Jingjing Liu et al.NeurIPS 2021 · 61 citations
- Hyperbolic Defect Feature Synthesis for Few-Shot Defect ClassificationHuimin Li, Boxuan Hu, Yulin Zhang, Xiuzhuang Zhou et al.CVPR 2026
- Augmentation-Aware Self-Supervision for Data-Efficient GAN TrainingLiang Hou, Qi Cao, Yige Yuan, Songtao Zhao et al.NeurIPS 2023 · 15 citations
- Training-Free Industrial Defect Generation with Diffusion ModelsRuyi Xu, Yen-Tzu Chiu, Tai-I Chen, Oscar Chew et al.ICCV 2025 · 8 citations
- Dual-Interrelated Diffusion Model for Few-Shot Anomaly Image GenerationYing Jin, Jinlong Peng, Qingdong He, Teng Hu et al.CVPR 2025
