Skip to main navigation Skip to search Skip to main content

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

  • Yishen Liu
  • , Hongcang Chen
  • , Pengcheng Zhao
  • , Yunfan Bao
  • , Yuxi Tian
  • , Jieming Zhang
  • , Hao Chen
  • , Zhi Zheng
  • , Yongchun Liu
  • , Ying Li*
  • , Dongpu Cao*
  • *Corresponding author for this work
  • Beijing Institute of Technology
  • Hong Kong Polytechnic University
  • Beijing Jiaotong University
  • Li Auto Inc.
  • Tsinghua University

Research output: Chapter in Book/Report/Conference proceeding › Conference contribution › peer-review

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. Code will be made publicly available from this URL.

Original languageEnglish
Title of host publicationComputer Vision – ECCV 2026 - 19th European Conference, 2026, Proceedings
EditorsPaolo Favaro, Zuzana Kukelova, Atsuto Maki, Anna Rohrbach, Konrad Schindler, Federico Tombari
PublisherSpringer Science and Business Media Deutschland GmbH
Pages97-114
Number of pages18
ISBN (Print)9783032369864
DOIs
Publication statusPublished - 2026
Event19th European Conference on Computer Vision, ECCV 2026 - Malmö, Sweden
Duration: 8 Sept 2026 → 12 Sept 2026

Publication series

NameLecture Notes in Computer Science
Volume17004 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference19th European Conference on Computer Vision, ECCV 2026
Country/TerritorySweden
CityMalmö
Period8/09/26 → 12/09/26

Keywords

  • Anomaly Detection
  • Anomaly Generation
  • Image Generation

Fingerprint

Dive into the research topics of 'GroundingAnomaly: Spatially-Grounded Diffusion for Few-Shot Anomaly Synthesis'. Together they form a unique fingerprint.

Cite this