Abstract
This paper introduces a training-free paradigm for Industrial Anomaly Detection (IAD) called Cross-domain Anomaly Injection (CAI). By leveraging a new dataset of real-world defects from unrelated domains—such as cracks in pavement or holes in fabric—the authors synthesize highly authentic pseudo-anomalies for specific industrial parts. This approach bypasses the need for domain-specific defect samples, addressing the critical data scarcity issue in industrial manufacturing.
Introduction
In industrial manufacturing, defects are rare, making it difficult for deep learning models to learn what constitutes a "break" or "scratch." Current Zero-shot Anomaly Synthesis (ZSAS) methods typically fall into two categories: model-free methods that paste random noise (often appearing unrealistic) and model-based methods (like GANs or Diffusion Models) that are computationally expensive and hard to tune.
The authors propose a bridge between these approaches based on the insight that while a specific defect on a microchip might be rare, the physical characteristics of "cracks" and "scratches" are abundant in the world at large. By treating "anomaly-ness" as a domain-agnostic feature, they can "polish the jade" of specific industrial detection using "stones" from other hills.
Methodology
The core of the proposal is the Cross-domain Anomaly Injection (CAI), a multi-step, training-free pipeline designed to maximize authenticity and robustness:
- Source-target Matching (STM): This step calculates the scale of the "foreign" anomaly relative to the target industrial object, resizing it to ensure proportional realism.
- Multi-scale Anomaly Synthesis (MAS): To ensure detector robustness, CAI generates a balanced mix of small, medium, and large defects.
- Poisson Editing (PE): Unlike simple copy-pasting, which creates sharp, detectable edges, Poisson image editing mathematically blends the gradients of the anomaly into the target image. This ensures seamless lighting and texture transitions, preventing the model from learning "shortcuts" based on edge artifacts.
- CAI-guided Diffusion Mechanism (CDM): For increased variety, CAI-generated images can "prime" a Diffusion Model, allowing for the generation of an infinite variety of realistic defects based on initial real-world samples.
The Domain-agnostic Anomaly Dataset (DAAD)
To support this paradigm, the authors introduced the Domain-agnostic Anomaly Dataset (DAAD). It contains approximately 6,000 real anomaly images collected via online searches and manual photography. Unlike traditional datasets grouped by object (e.g., "Bottle"), DAAD is categorized by defect type: Pits, Cracks, Holes, Stains, Scratches, Orifices, Impurities, and Abrasions.
Results and Discussion
The CAI method consistently outperformed state-of-the-art (SOTA) ZSAS methods across standard benchmarks like MvTec-AD, VisA, and KSDD2.
Key Performance Metrics:
- Accuracy: On the KSDD2 dataset, CAI achieved a 70.4% Average Precision (AP), outperforming the previous best method (DRAEM) by 17.5%.
- Authenticity: Using the FID metric, CAI produced the most authentic-looking pseudo-anomalies, even surpassing methods trained specifically on the target domain.
- Generalization: Detectors trained on CAI successfully identified "unseen" anomalies, such as bent wires, proving that the learned features are robust and domain-agnostic.
Conclusion
By prioritizing authenticity over model complexity, CAI demonstrates that well-blended real anomalies from disparate domains are more effective for training than synthetic anomalies from complex models that lack physical texture understanding. While currently focused on appearance anomalies (color and texture), future work aims to address logical anomalies where component placement is the primary defect.
Summary updated