상세 보기
MAGIC: Few-Shot Mask-Guided Anomaly Inpainting with Prompt Perturbation, Spatially Adaptive Guidance, and Context Awareness
- Choi, Jae Hyuck;
- Kim, Minjun;
- Hong, Je Hyeong
SCOPUS
1초록
Few-shot anomaly generation is a key challenge in industrial quality control. Although diffusion models are promising, existing methods struggle: global prompt-guided approaches corrupt normal regions, and existing inpaintingbased methods often lack the in-distribution diversity essential for robust downstream models. We propose MAGIC, a fine-tuned inpainting framework that generates high-fidelity anomalies that strictly adhere to the mask while maximizing this diversity. MAGIC introduces three complementary components: (i) Gaussian prompt perturbation, which prevents model overfitting in the few-shot setting by learning and sampling from a smooth manifold of realistic anomalies, (ii) spatially adaptive guidance that applies distinct guidance strengths to the anomaly and background regions, and (iii) context-aware mask alignment to relocate masks for plausible placement within the host object. Under consistent identical evaluation protocol, MAGIC outperforms state-of-the-art methods on diverse anomaly datasets in downstream tasks. Code is available at https://github.com/SpatialAILab/MAGIC.
키워드
- 제목
- MAGIC: Few-Shot Mask-Guided Anomaly Inpainting with Prompt Perturbation, Spatially Adaptive Guidance, and Context Awareness
- 저자
- Choi, Jae Hyuck; Kim, Minjun; Hong, Je Hyeong
- 발행일
- 2026-06
- 유형
- Conference paper
- 페이지
- 8525 ~ 8534
- 언어
- ENG
- 출판사
- IEEE Computer Society
- 분량
- 10 페이지
- ISSN
- E 2575-7075
P 1063-6919