Template-guided Hierarchical Feature Restoration for Anomaly Detection

Hewei Guo, Liping Ren, Jingjing Fu, Yuwang Wang, Zhizheng Zhang, Cuiling Lan, Haoqian Wang, Xinwen Hou; Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), 2023, pp. 6447-6458

Abstract


Targeting for detecting anomalies of various sizes for complicated normal patterns, we propose a Template-guided Hierarchical Feature Restoration method, which introduces two key techniques, bottleneck compression and template-guided compensation, for anomaly-free feature restoration. Specially, our framework compresses hierarchical features of an image by bottleneck structure to preserve the most crucial features shared among normal samples. We design template-guided compensation to restore the distorted features towards anomaly-free features. Particularly, we choose the most similar normal sample as the template and leverage hierarchical features from the template to compensate the distorted features. The bottleneck could partially filter out anomaly features, while the compensation further converts the reminding anomaly features towards normal with template guidance. Finally, anomalies are detected in terms of the cosine distance between the pre-trained features of an inference image and the corresponding restored anomaly-free features. Experimental results demonstrate the effectiveness of our approach, which achieves the state-of-the-art performance on the MVTec LOCO AD dataset.

Related Material


[pdf] [supp]
[bibtex]
@InProceedings{Guo_2023_ICCV, author = {Guo, Hewei and Ren, Liping and Fu, Jingjing and Wang, Yuwang and Zhang, Zhizheng and Lan, Cuiling and Wang, Haoqian and Hou, Xinwen}, title = {Template-guided Hierarchical Feature Restoration for Anomaly Detection}, booktitle = {Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV)}, month = {October}, year = {2023}, pages = {6447-6458} }