GroundingAnomaly:基于空间条件扩散的小样本工业异常合成框架
GroundingAnomaly: Spatially-Grounded Diffusion for Few-Shot Anomaly Synthesis
GroundingAnomaly 提出一种小样本异常图像生成框架,通过 Spatial Conditioning Module 利用逐像素语义图对合成异常实现精确空间控制,并用 Gated Self-Attention Module 将条件 token 经门控注意力层注入冻结的 U-Net,在保留预训练先验的同时实现稳定的小样本适配。
arXiv:2604.08301v2 Announce Type: replace Abstract: The performance of visual anomaly inspection in industrial quality control is often constrained by the scarcity of real anomalous samples. Consequently, anomaly synthesis techniques have been developed to enlarge training sets and enhance downstream inspection. However, existing methods either suffer from poor integration caused by inpainting or fail to provide accurate masks. To address these limitations, we propose GroundingAnomaly, a novel few-shot anomaly image generation framework. Our framework introduces a Spatial Conditioning Module that leverages per-pixel semantic maps to enable precise spatial control over the synthesized anomalies. Furthermore, a Gated Self-Attention Module is designed to inject conditioning tokens into a frozen U-Net via gated attention layers. This carefully preserves pretrained priors while ensuring stable few-shot adaptation. Extensive evaluations on the MVTec AD and VisA datasets demonstrate that GroundingAnomaly generates high-quality anomalies and achieves state-of-the-art performance across multiple downstream tasks, including anomaly detection, segmentation, and instance-level detection.
来源:arXiv (AI + Vision + Imaging) · arxiv.org