FastRecon: Few-shot Industrial Anomaly Detection via Fast Feature Reconstruction

Zheng Fang, Xiaoyang Wang, Haocheng Li, Jiejie Liu, Qiugui Hu, Jimin Xiao; Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), 2023, pp. 17481-17490

Abstract


In industrial anomaly detection, data efficiency and the ability for fast migration across products become the main concerns when developing detection algorithms. Existing methods tend to be data-hungry and work in the one-model-one-category way, which hinders their effectiveness in real-world industrial scenarios. In this paper, we propose a few-shot anomaly detection strategy that works in a low-data regime and can generalize across products at no cost. Given a defective query sample, we propose to utilize a few normal samples as a reference to reconstruct its normal version, where the final anomaly detection can be achieved by sample alignment. Specifically, we introduce a novel regression with distribution regularization to obtain the optimal transformation from support to query features, which guarantees the reconstruction result shares visual similarity with the query sample and meanwhile maintains the property of normal samples. Experimental results reflect that our method significantly outperforms previous state-of-the-art at both image and pixel-level AUROC performances from 2 to 8-shot scenarios. Besides, with only a limited number of training samples (less than 8 samples), our method reaches competitive performance with vanilla AD methods which are trained with extensive normal samples.

Related Material


[pdf]
[bibtex]
@InProceedings{Fang_2023_ICCV, author = {Fang, Zheng and Wang, Xiaoyang and Li, Haocheng and Liu, Jiejie and Hu, Qiugui and Xiao, Jimin}, title = {FastRecon: Few-shot Industrial Anomaly Detection via Fast Feature Reconstruction}, booktitle = {Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV)}, month = {October}, year = {2023}, pages = {17481-17490} }