ReinAD: Towards Real-world Industrial Anomaly Detection with a Comprehensive Contrastive Dataset

1Shanghai Jiao Tong University, 2The Chinese University of Hong Kong
Agent Attack

Illustration of our ReinAD dataset, a comprehensive contrastive dataset towards Real-world industrial Anomaly Detection. (a) Some real anomalies (e.g., "wire missing" circled by red) require contrast between normal and anomalous samples to detect. (b) Sample unalignment caused by variations in shifts, rotations, and scales in production environments. (c) Quite fine-grained anomalies (Scratch) masked by red. (d) Multi-class anomalies may appear in one object.

Abstract

Recent years have witnessed significant advancements in industrial anomaly detection (IAD) thanks to existing anomaly detection datasets. However, the large performance gap between these benchmarks and real industrial practice reveals critical limitations in existing datasets. We argue that the mismatch between current datasets and real industrial scenarios becomes the primary barrier to practical IAD deployment. To this end, we propose ReinAD dataset, a comprehensive contrastive dataset towards Real-world industrial Anomaly Detection. Our dataset prioritizes three critical real-world requirements: 1) Contrast-based anomaly definition that is essential for industrial practice, 2) Fine-grained unaligned image pairs reflecting real inspections, and 3) Large-scale data from active production lines spanning multiple industrial categories. Based on our dataset, we introduce the ReinADNet. It takes both normal reference and test images as inputs, achieving anomaly detection through normal-anomaly comparison. To address the fine-grained and unaligned properties of real industrial scenes, our method integrates pyramidal similarity aggregation for comprehensive anomaly characterization and global-local feature fusion for spatial misalignment tolerance. Our method outperforms all baselines on the ReinAD dataset (e.g., 64.5% v.s. 59.5% in 1-shot image-level AP) under all settings. Extensive experiments across several datasets demonstrate our dataset's challenging nature and our method's superior generalization. This work provides a solid foundation for practical industrial anomaly detection. Dataset and code are available at https://tocmac.github.io/ReinAD.

BibTeX

@inproceedings{
          wang2025reinad,
          title={ReinAD: Towards Real-world Industrial Anomaly Detection with a Comprehensive Contrastive Dataset},
          author={Xu Wang and Jingyuan Zhuo and Zhiyuan You and Zhiyu Tan and Yikuan Yu and Siyu Wang and Xinyi Le},
          booktitle={Advances in Neural Information Processing Systems},
          year={2025}
          }