AnomalyXFusion: Multi-modal Anomaly Synthesis with Diffusion
Jie Hu, Yawen Huang, Yilin Lu, Guoyang Xie, Guannan Jiang, Yefeng Zheng, Zhichao Lu
TL;DR
The paper addresses the scarcity of abnormal samples in industrial anomaly localization and segmentation. It introduces AnomalyXFusion, a diffusion-based framework that fuses image, text, and mask modalities into an X-Embedding via a Multi-modal In-Fusion module and controls generation through a Dynamic Dif-Fusion module, with timestep-conditioned embeddings and a loss L that guides denoising. It also contributes MVTec Caption, adding 2.2k image-mask-text captions to enable semantic descriptions of anomalies, including logical ones. Empirically, AnomalyXFusion achieves higher fidelity and diversity in synthesized anomalies and improves anomaly detection/localization compared with state-of-the-art methods, demonstrating the value of multi-modal diffusion for industrial defect synthesis and perception.
Abstract
Anomaly synthesis is one of the effective methods to augment abnormal samples for training. However, current anomaly synthesis methods predominantly rely on texture information as input, which limits the fidelity of synthesized abnormal samples. Because texture information is insufficient to correctly depict the pattern of anomalies, especially for logical anomalies. To surmount this obstacle, we present the AnomalyXFusion framework, designed to harness multi-modality information to enhance the quality of synthesized abnormal samples. The AnomalyXFusion framework comprises two distinct yet synergistic modules: the Multi-modal In-Fusion (MIF) module and the Dynamic Dif-Fusion (DDF) module. The MIF module refines modality alignment by aggregating and integrating various modality features into a unified embedding space, termed X-embedding, which includes image, text, and mask features. Concurrently, the DDF module facilitates controlled generation through an adaptive adjustment of X-embedding conditioned on the diffusion steps. In addition, to reveal the multi-modality representational power of AnomalyXFusion, we propose a new dataset, called MVTec Caption. More precisely, MVTec Caption extends 2.2k accurate image-mask-text annotations for the MVTec AD and LOCO datasets. Comprehensive evaluations demonstrate the effectiveness of AnomalyXFusion, especially regarding the fidelity and diversity for logical anomalies. Project page: http:github.com/hujiecpp/MVTec-Caption
