AnomalyHybrid: A Domain-agnostic Generative Framework for General Anomaly Detection
Ying Zhao
TL;DR
AnomalyHybrid introduces a domain-agnostic, GAN-based framework that generates authentic and diverse anomalies by conditioning on color, depth, and edge cues using two decoders. It operates in an unsupervised manner on sets of RGB, depth, and edge maps extracted from the same images, enabling both RGB-level and depth-level anomaly generation across industrial and biological domains. The method achieves state-of-the-art generation metrics (IS and LPIPS) and consistently improves downstream anomaly classification, detection, and segmentation on datasets such as MVTecAD, MVTec3D, and Heliconius Butterfly. Its design, relying on depth- and edge-conditioned decoders and simple augmentations, offers strong generalization and potential applicability to related tasks beyond anomaly synthesis.
Abstract
Anomaly generation is an effective way to mitigate data scarcity for anomaly detection task. Most existing works shine at industrial anomaly generation with multiple specialists or large generative models, rarely generalizing to anomalies in other applications. In this paper, we present AnomalyHybrid, a domain-agnostic framework designed to generate authentic and diverse anomalies simply by combining the reference and target images. AnomalyHybrid is a Generative Adversarial Network(GAN)-based framework having two decoders that integrate the appearance of reference image into the depth and edge structures of target image respectively. With the help of depth decoders, AnomalyHybrid achieves authentic generation especially for the anomalies with depth values changing, such a s protrusion and dent. More, it relaxes the fine granularity structural control of the edge decoder and brings more diversity. Without using annotations, AnomalyHybrid is easily trained with sets of color, depth and edge of same images having different augmentations. Extensive experiments carried on HeliconiusButterfly, MVTecAD and MVTec3D datasets demonstrate that AnomalyHybrid surpasses the GAN-based state-of-the-art on anomaly generation and its downstream anomaly classification, detection and segmentation tasks. On MVTecAD dataset, AnomalyHybrid achieves 2.06/0.32 IS/LPIPS for anomaly generation, 52.6 Acc for anomaly classification with ResNet34, 97.3/72.9 AP for image/pixel-level anomaly detection with a simple UNet.
