arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2209.01816cs.CV
收藏

ADTR:基于特征重构的Transformer异常检测

ADTR: Anomaly Detection Transformer with Feature Reconstruction

Shanghai Jiao Tong University(上海交通大学);SenseTime Research(商汤科技研究院);Sun Yat-sen University(中山大学);Tsinghua University(清华大学)

Zhiyuan You, Kai Yang, Wenhan Luo, Lei Cui, Yu Zheng, Xinyi Le

摘要:

由于异常样本的缺乏,仅利用正常样本的先验知识进行异常检测受到了越来越多的关注。现有的基于CNN的像素重建方法受到两个问题的困扰。首先,重建源和目标是包含不可区分的语义信息的原始像素值。其次,CNN倾向于很好地重建正常样本和异常样本,使它们仍然难以区分。在本文中,我们提出了异常检测变换器(ADTR)应用一个Transformer重建预训练的功能。预训练的特征包含可区分的语义信息。此外,采用Transformer限制了很好地重建异常,使得一旦重建失败就可以容易地检测到异常。此外,我们提出了新的损失函数,使我们的方法与正常的样本只有情况下,并与图像级和像素级标记的异常异常的异常可用的情况下兼容。通过添加简单的合成或外部无关异常可以进一步提高性能。在包括MVTec-AD和CIFAR-10的异常检测数据集上进行了大量的实验。与所有基线相比,我们的方法实现了卓越的性能。

英文摘要:

Anomaly detection with only prior knowledge from normal samples attracts more attention because of the lack of anomaly samples. Existing CNN-based pixel reconstruction approaches suffer from two concerns. First, the reconstruction source and target are raw pixel values that contain indistinguishable semantic information. Second, CNN tends to reconstruct both normal samples and anomalies well, making them still hard to distinguish. In this paper, we propose Anomaly Detection TRansformer (ADTR) to apply a transformer to reconstruct pre-trained features. The pre-trained features contain distinguishable semantic information. Also, the adoption of transformer limits to reconstruct anomalies well such that anomalies could be detected easily once the reconstruction fails. Moreover, we propose novel loss functions to make our approach compatible with the normal-sample-only case and the anomaly-available case with both image-level and pixel-level labeled anomalies. The performance could be further improved by adding simple synthetic or external irrelevant anomalies. Extensive experiments are conducted on anomaly detection datasets including MVTec-AD and CIFAR-10. Our method achieves superior performance compared with all baselines.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑