Template-guided Hierarchical Feature Restoration for Anomaly Detection

Hewei Guo, Liping Ren, Jingjing Fu, Yuwang Wang, Zhizheng Zhang +3 more
2/14/2026

No confident code implementation found for this paper. 1 possible match can be shown below.

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.

DOISemantic Scholar

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{guo2026templateguided,
  title  = {Template-guided Hierarchical Feature Restoration for Anomaly Detection},
  author = {Hewei Guo and Liping Ren and Jingjing Fu and Yuwang Wang and Zhizheng Zhang and Cuiling Lan and Haoqian Wang and Xinwen Hou},
  year   = {2026},
  doi    = {10.1109/ICCV51070.2023.00593},
  url    = {https://doi.org/10.1109/ICCV51070.2023.00593},
  journal = {ICCV 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/439f0ced0e66ead01614c131b71e06e0947b44a9.svg)](https://codeofpaper.com/paper/439f0ced0e66ead01614c131b71e06e0947b44a9)

Discussion