BASE: Background-Anchored Single-Stage Diffusion Editor for Micro-Defect Synthesis
Abstract
Reliable industrial visual inspection requires diverse defect samples, yet micro-defects are scarce and difficult to collect. Diffusion-based generators enable controllable data augmentation, but U-Net downsampling can attenuate fine details, while latent decoding can distort backgrounds and defect boundaries. We propose BASE, a mask-conditioned diffusion framework for micro-defect synthesis with a single 10-step DDIM run and one latent decode. BASE combines Receptive-Field-Augmented Attention (RFAtten) with gated Cross-Scale Fusion (CSF) to preserve fine structures across the U-Net hierarchy. A Background-Side Boundary-Ring Seam constraint (BRS) suppresses seam artifacts during training, while Feathered Hard-Composite (FHC) preserves the original background outside the defect region after decoding. Experiments on industrial benchmarks show that BASE enhances defect fidelity, high-frequency detail, boundary quality, and background preservation. The generated samples further improve downstream anomaly inspection in defect-scarce industrial settings.