Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

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

About

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.

Matan Jacob Cohen, Shai Avidan• 2021

Related benchmarks

TaskDatasetResultRank
Anomaly DetectionCIFAR-10
AUC98.34
120
Anomaly DetectionWBC
ROCAUC0.851
87
Anomaly DetectionCIFAR-100
AUROC97.6
72
Anomaly DetectionFashion MNIST
Avg AUC94.4
40
Anomaly DetectionMVTec AD
AUROC0.879
33
Anomaly DetectionFMNIST
Avg AUROC0.9443
29
Anomaly DetectionDIOR
ROCAUC0.9833
26
Anomaly DetectionCatsVsDogs
AUROC99.52
19
Novelty DetectionStanford Cars
AUROC0.867
15
One-class novelty detectionCIFAR10
AUROC0.983
13
Showing 10 of 24 rows

Other info

Code

Follow for update