cs.CVApr 9, 2026

GroundingAnomaly: Spatially-Grounded Diffusion for Few-Shot Anomaly Synthesis

Authors: Yishen Liu, Hongcang Chen, Pengcheng Zhao, Yunfan Bao, Yuxi Tian, Jieming Zhang, Hao Chen, Zheng Zhi, +3 more

Organizations: Beijing Institute of Technology · Beijing Jiaotong University · Li Auto · Tsinghua University

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.

Figures & tables

Appendix figures & tables19 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. One-to-More: High-Fidelity Training-Free Anomaly Generation with Attention Control

    Mar 18, 2026Haoxiang Rao, Zhao Wang, Chenyang Si +4Synthetic Anomaly GenerationIndustrial Anomaly Detection

  2. AnomalyAgent: Agentic Industrial Anomaly Synthesis via Tool-Augmented Reinforcement Learning

    Apr 9, 2026Jiaming Su, Tengchao Yang, Ruikang Zhang +3Synthetic Anomaly GenerationTool-Using Agents

  3. CORE: Contrast-and-Reflect for Self-Supervised Prompt Optimization in Anomaly Synthesis

    Oct 14, 2026Haoxiang Rao, Fang Zhao, Zhao Wang +3Synthetic Anomaly GenerationSynthetic Data Augmentation