arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2112.04185cs.CVcs.LG
收藏

两个(特征空间)优于一个(特征空间)

Transformaly -- Two (Feature Spaces) Are Better Than One

Tel-Aviv University(特拉维夫大学)

Matan Jacob Cohen, Shai Avidan

摘要:

异常检测是一个成熟的研究领域,旨在识别预定分布之外的样本。异常检测流水线包括两个主要阶段:(1)特征提取和(2)正常性分数分配。最近的论文使用预训练的网络进行特征提取,获得了最先进的结果。然而,使用预先训练的网络并不能充分利用在训练时可用的正常样本。本文建议利用这一信息,利用师生培训。在我们的设置中,一个预先训练的教师网络用于训练学生网络的正常训练样本。由于学生网络仅在正常样本上训练,因此在异常情况下,预计会偏离教师网络。这种差异可以作为预训练特征向量的补充表示。我们的方法- Transformaly -利用预训练的视觉Transformer(ViT)来提取两个特征向量:预训练(不可知)特征和教师-学生(微调)特征。我们报告了最先进的AUROC结果,在常见的单峰设置,其中一类被认为是正常的,其余被认为是异常的,和多模态设置,其中所有类,但一个被认为是正常的,只有一类被认为是异常的。该代码可在https://github.com/MatanCohen1/Transformaly上获得。

英文摘要:

Anomaly detection is a well-established research area that seeks to identify samples outside of a predetermined distribution. An anomaly detection pipeline is comprised of two main stages: (1) feature extraction and (2) normality score assignment. Recent papers used pre-trained networks for feature extraction achieving state-of-the-art results. However, the use of pre-trained networks does not fully-utilize the normal samples that are available at train time. This paper suggests taking advantage of this information by using teacher-student training. In our setting, a pretrained teacher network is used to train a student network on the normal training samples. Since the student network is trained only on normal samples, it is expected to deviate from the teacher network in abnormal cases. This difference can serve as a complementary representation to the pre-trained feature vector. Our method -- Transformaly -- exploits a pre-trained Vision Transformer (ViT) to extract both feature vectors: the pre-trained (agnostic) features and the teacher-student (fine-tuned) features. We report state-of-the-art AUROC results in both the common unimodal setting, where one class is considered normal and the rest are considered abnormal, and the multimodal setting, where all classes but one are considered normal, and just one class is considered abnormal. The code is available at https://github.com/MatanCohen1/Transformaly.

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

↑