Global-Regularized Neighborhood Regression for Efficient Zero-Shot Texture Anomaly Detection
Haiming Yao, Wei Luo, Yunkang Cao, Yiheng Zhang, Wenyong Yu, Weiming Shen
TL;DR
This work addresses the challenge of texture anomaly detection under open-set, zero-shot conditions by proposing Global-Regularized Neighborhood Regression (GRNR). GRNR extracts two intrinsic priors—the local neighborhood prior $S_L$ and the global normality prior $S_G$—directly from the test image and uses them in a self-reconstructive regression objective with a fast closed-form solution. The approach achieves competitive or superior performance across defect-close, texture-close, and open-set tasks without any training data, underscoring its data- and labor-efficiency. By demonstrating strong results on the Texture Spectrum benchmark and providing detailed ablations, GRNR offers a practical, training-free pathway for industrial texture anomaly detection with open-set capabilities.
Abstract
Texture surface anomaly detection finds widespread applications in industrial settings. However, existing methods often necessitate gathering numerous samples for model training. Moreover, they predominantly operate within a close-set detection framework, limiting their ability to identify anomalies beyond the training dataset. To tackle these challenges, this paper introduces a novel zero-shot texture anomaly detection method named Global-Regularized Neighborhood Regression (GRNR). Unlike conventional approaches, GRNR can detect anomalies on arbitrary textured surfaces without any training data or cost. Drawing from human visual cognition, GRNR derives two intrinsic prior supports directly from the test texture image: local neighborhood priors characterized by coherent similarities and global normality priors featuring typical normal patterns. The fundamental principle of GRNR involves utilizing the two extracted intrinsic support priors for self-reconstructive regression of the query sample. This process employs the transformation facilitated by local neighbor support while being regularized by global normality support, aiming to not only achieve visually consistent reconstruction results but also preserve normality properties. We validate the effectiveness of GRNR across various industrial scenarios using eight benchmark datasets, demonstrating its superior detection performance without the need for training data. Remarkably, our method is applicable for open-set texture defect detection and can even surpass existing vanilla approaches that require extensive training.
