REDiff-AD: No Training and No Target Masks for Industrial Anomaly Image Generation via Diversity-Driven In-Context MMDiT
Abstract
Industrial anomaly detection is challenged by the scarcity and diversity of real defects, leaving insufficient anomalous data to effectively train downstream models. Existing anomaly generation methods often require product-specific fine-tuning, target mask annotation, or costly procedures to achieve realistic and diverse defects. We propose REDiff-AD, a framework that requires neither model training nor target masks and introduces Rectified Flow MMDiT into industrial anomaly generation for efficient sampling with fewer generation steps. Given a normal product image and a single masked reference anomaly, REDiff-AD employs in-context learning to transfer the defect appearance from the reference into the normal image. Internal attention signals generated during this process are further reused to localize the synthesized anomaly, while edge and color cues refine the localization into pixel-level pseudo-masks. Two lightweight modules further improve generation quality: adaptive reference conditioning enhances defect fidelity, while diversity guidance promotes varied defect patterns without additional training. Experiments demonstrate that REDiff-AD can well address the tradeoff between realism and diversity for anomaly pattern generation and achieve competitive downstream anomaly classification, detection, and localization performance. These results show that REDiff-AD is a simple, efficient, and effective solution for large-scale anomaly data augmentation and pixel-level data construction. Github code: https://github.com/efdefe4-droid/REDiff-AD
Create a lesson
Metadata
- Comments
- Accepted to WACV 2027
Related papers
Four-Step Text-Bearing Image Generation via Distillation with Local Response Regularization and Teacher-Guided Training
Shared title terminologycs.CVKairui Wen, Sheng Ye, Yong-Jin Liu
UniDR: Learning To Generate Anatomical Deformations From Images via Unified Diffusion Modeling and Registration
Shared title terminologycs.CVSwakshar Deb, Tonmoy Hossain, Tom Fletcher et al.
HandiVid: A High-Quality Dataset for Hand-Driven Interactive Video Generation
Shared title terminologycs.CVChaoyang Zhang, Shaohao Rui, Xiaofeng Mao et al.
Inspect Before You Decide: Evidence-Guided Visual Search for Industrial Anomaly Detection
Shared title terminologycs.CVPeng Chen, Chao Huang, Yangyang Liu et al.
T2ISpec: Benchmarking Speculative Decoding for Text-to-Image Generation
Shared title terminologycs.CVYifan Zhang, Shatong Zhu, Hui Shen et al.
Demystifying Classifier-Free Guidance for Auto-Regressive Image Generation
Shared title terminologycs.CVZhiling Zhou, Jiachun Pan, Fengzhuo Zhang et al.