跳到正文
arXiv cs.AI· Yuanting Fan, Jun Liu, Bin-Bin Gao, Xiaochen Chen, Yuhuan Lin, Zhewei Dai, Jiawei Zhan, Chengjie Wang·· 5 小时前AI 评分39

UniDG:通过缺陷上下文编辑实现统一缺陷生成

UniDG: Unified Defect Generation via Defect-Context Editing

AI 导读

研究者提出统一缺陷生成模型 UniDG,将缺陷合成建模为 Defect-Context Editing:通过自适应裁剪提取参考缺陷上下文、以结构化双联格式组织输入,并用 MM-DiT 注意力融合多模态条件。

正文 · 原文

View PDF HTML (experimental)

Abstract:Generating realistic visual defects is crucial for alleviating the scarcity of abnormal samples in anomaly detection, yet existing methods often rely on category-specific few-shot adaptation and struggle to generalize across objects, defect types, and domains. This limitation stems in part from the lack of paired defect editing data and the fine-grained nature of defect appearance, where subtle variations in scale, texture, and morphology must be preserved while maintaining consistency with the target scene. To address this challenge, we introduce UDG, a dataset of 300K normal-abnormal-mask-caption quadruplets curated from diverse defect-related scenarios, and present UniDG, a unified defect generation model. UniDG formulates defect synthesis as Defect-Context Editing: it extracts reference defect context with adaptive cropping, organizes reference and target inputs in a structured diptych format, and fuses multimodal conditions through MM-DiT attention. We further develop a two-stage training strategy: Diversity-SFT learns diverse transferable defect priors from paired editing data, while optional Consistency-RFT can further improve reference adherence, local realism, and defect-category consistency. Without per-category fine-tuning or using MVTec-AD/VisA for training, UniDG outperforms prior few-shot anomaly generation and image insertion/editing baselines in both synthesis quality and downstream single- and multi-class anomaly detection/localization.
Comments: NeurIPS 2026 Accepted
Subjects: Computer Vision and Pattern Recognition (cs.CV); Artificial Intelligence (cs.AI)
Cite as: arXiv:2604.08915 [cs.CV]
  (or arXiv:2604.08915v2 [cs.CV] for this version)
  https://doi.org/10.48550/arXiv.2604.08915

arXiv-issued DOI via DataCite

Submission history

From: Yuanting Fan [view email]
[v1] Fri, 10 Apr 2026 03:21:17 UTC (18,760 KB)
[v2] Wed, 28 Oct 2026 08:50:18 UTC (26,730 KB)

来源:arXiv cs.AI · arxiv.org