Template-Guided Hierarchical Feature Restoration for Anomaly Detection

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.

Cite

Text

Guo et al. "Template-Guided Hierarchical Feature Restoration for Anomaly Detection." International Conference on Computer Vision, 2023. doi:10.1109/ICCV51070.2023.00593

Markdown

[Guo et al. "Template-Guided Hierarchical Feature Restoration for Anomaly Detection." International Conference on Computer Vision, 2023.](https://mlanthology.org/iccv/2023/guo2023iccv-templateguided/) doi:10.1109/ICCV51070.2023.00593

BibTeX

@inproceedings{guo2023iccv-templateguided,
  title     = {{Template-Guided Hierarchical Feature Restoration for Anomaly Detection}},
  author    = {Guo, Hewei and Ren, Liping and Fu, Jingjing and Wang, Yuwang and Zhang, Zhizheng and Lan, Cuiling and Wang, Haoqian and Hou, Xinwen},
  booktitle = {International Conference on Computer Vision},
  year      = {2023},
  pages     = {6447-6458},
  doi       = {10.1109/ICCV51070.2023.00593},
  url       = {https://mlanthology.org/iccv/2023/guo2023iccv-templateguided/}
}