Multiresolution Feature Guidance Based Transformer for Anomaly Detection

Shuting Yan, Pingping Chen, Honghui Chen, Huan Mao, Feng Chen +1 more
5/24/2023
cs.CV
transformer-attention

No confident code implementation found for this paper.

Abstract

Anomaly detection is represented as an unsupervised learning to identify deviated images from normal images. In general, there are two main challenges of anomaly detection tasks, i.e., the class imbalance and the unexpectedness of anomalies.

Show full abstract

In this paper, we propose a multiresolution feature guidance method based on Transformer named GTrans for unsupervised anomaly detection and localization. In GTrans, an Anomaly Guided Network (AGN) pre-trained on ImageNet is developed to provide surrogate labels for features and tokens. Under the tacit knowledge guidance of the AGN, the anomaly detection network named Trans utilizes Transformer to effectively establish a relationship between features with multiresolution, enhancing the ability of the Trans in fitting the normal data manifold. Due to the strong generalization ability of AGN, GTrans locates anomalies by comparing the differences in spatial distance and direction of multi-scale features extracted from the AGN and the Trans. Our experiments demonstrate that the proposed GTrans achieves state-of-the-art performance in both detection and localization on the MVTec AD dataset. GTrans achieves image-level and pixel-level anomaly detection AUROC scores of 99.0% and 97.9% on the MVTec AD dataset, respectively.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — 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{yan2023multiresolution,
  title  = {Multiresolution Feature Guidance Based Transformer for Anomaly Detection},
  author = {Shuting Yan and Pingping Chen and Honghui Chen and Huan Mao and Feng Chen and Zhijian Lin},
  year   = {2023},
  eprint = {2305.14880},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.14880v1}
}

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/2305.14880.svg)](https://codeofpaper.com/paper/2305.14880)

Discussion