Transformaly -- Two (Feature Spaces) Are Better Than One
On the map: Knowledge distillation → Detection and dense prediction distillation
Abstract (arXiv)
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.
Key facts. Cited by 25 papers in the map (data through 14 Oct 2026). Placed in Detection and dense prediction distillation, one of 12 directions in Knowledge distillation. Builds on 29 of its 49 references that are in the map. First posted on arXiv 8 Dec 2021.
Builds on
29 of 49 references.
References · 29
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 12,049
- 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,513
- 2020Bootstrap your own latent: A new approach to self-supervised Learningcited by 4,750
- 2017Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning Algorithmscited by 4,349
- 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,385
- 2017Enhancing The Reliability of Out-of-distribution Image Detection in Neural Networkscited by 1,328
- 2018Deep Anomaly Detection with Outlier Exposurecited by 942
- 2021ImageNet-21K Pretraining for the Massescited by 613
- 2021CutPaste: Self-Supervised Learning for Anomaly Detection and Localizationcited by 531
- 2019Using Self-Supervised Learning Can Improve Model Robustness and Uncertaintycited by 514
- 2020CSI: Novelty Detection via Contrastive Learning on Distributionally Shifted Instancescited by 441
17 more
- 2019Uninformed Students: Student-Teacher Anomaly Detection with Discriminative Latent Embeddingscited by 386
- 2020Knowledge Distillation and Student-Teacher Learning for Visual Intelligence: A Review and New Outlookscited by 316
- 2020Pretrained Transformers Improve Out-of-Distribution Robustnesscited by 294
- 2018Deep Anomaly Detection Using Geometric Transformationscited by 269
- 2021VT-ADL: A Vision Transformer Network for Image Anomaly Detection and Localizationcited by 223
- 2020Classification-Based Anomaly Detection for General Datacited by 211
- 2020PANDA: Adapting Pretrained Features for Anomaly Detection and Segmentationcited by 175
- 2020Learning and Evaluating Representations for Deep One-class Classificationcited by 133
- 2018Out-of-Distribution Detection Using an Ensemble of Self Supervised Leave-out Classifierscited by 126
- 2018Efficient GAN-Based Anomaly Detectioncited by 122
- 2020Deep Nearest Neighbor Anomaly Detectioncited by 104
- 2021Inpainting Transformer for Anomaly Detectioncited by 91
- 2021Mean-Shifted Contrastive Loss for Anomaly Detectioncited by 88
- 2018Anomaly Detection with Generative Adversarial Networks for Multivariate Time Seriescited by 55
- 2019Detecting semantic anomaliescited by 50
- 2020Puzzle-AE: Novelty Detection in Images through Solving Puzzlescited by 23
- 2021Do We Really Need to Learn Representations from In-domain Data for Outlier Detection?cited by 16
Built on by
Citing papers per year: 2022: 3; 2023: 10; 2024: 6; 2025: 5; 2026: 1.
25 papers.
Sort:
By area:
- 2023Improving neural network representations using human similarity judgmentscited by 38
- 2024GeneralAD: Anomaly Detection Across Domains by Attending to Distorted Featurescited by 29
- 2023Set Features for Fine-grained Anomaly Detectioncited by 13
- 2025PatchGuard: Adversarially Robust Anomaly Detection and Localization through Vision Transformers and Pseudo Anomaliescited by 8
- 2025Foundation Models and Transformers for Anomaly Detection: A Surveycited by 8
- 2023Unveiling the Unseen: A Comprehensive Survey on Explainable Anomaly Detection in Images and Videoscited by 7
- 2023No Free Lunch: The Hazards of Over-Expressive Representations in Anomaly Detectioncited by 7
- 2023A graph neural network-based model with Out-of-Distribution Robustness for enhancing Antiretroviral Therapy Outcome Prediction for HIV-1cited by 7
- 2025RODEO: Robust Outlier Detection via Exposing Adaptive Out-of-Distribution Samplescited by 7
- 2024Adversarially Robust Out-of-Distribution Detection Using Lyapunov-Stabilized Embeddingscited by 6
- 2022Fake It Till You Make It: Towards Accurate Near-Distribution Novelty Detectioncited by 4
- 2025Killing it with Zero-Shot: Adversarially Robust Novelty Detectioncited by 4
13 more
- 2022Positive Difference Distribution for Image Outlier Detection using Normalizing Flows and Contrastive Datacited by 3
- 2023Dissolving Is Amplifying: Towards Fine-Grained Anomaly Detectioncited by 3
- 2023Set Features for Anomaly Detectioncited by 3
- 2023Understanding normalization in contrastive representation learning and out-of-distribution detectioncited by 2
- 2024Critical Review for One-class Classification: recent advances and the reality behind themcited by 2
- 2024Interactive Explainable Anomaly Detection for Industrial Settingscited by 1
- 2022Anomaly Detection via Multi-Scale Contrasted Memorycited by 0
- 2023LBL: Logarithmic Barrier Loss Function for One-class Classificationcited by 0
- 2023Don't Miss Out on Novelty: Importance of Novel Features for Deep Anomaly Detectioncited by 0
- 2024Two Is Better Than One: Aligned Representation Pairs for Anomaly Detectioncited by 0
- 2024Redefining Normal: A Novel Object-Level Approach for Multi-Object Novelty Detectioncited by 0
- 2025Generalist Multi-Class Anomaly Detection via Distillation to Two Heterogeneous Student Networkscited by 0
- 2026Contrastive Knowledge Distillation for Anomaly Detection in Multi-Illumination/Focus Display Imagescited by 0
- 2026Contrastive Knowledge Distillation for Anomaly Detection in Multi-Illumination/Focus Display Images1 Sep 2026
- 2025Generalist Multi-Class Anomaly Detection via Distillation to Two Heterogeneous Student Networks29 Sep 2025
- 2025Foundation Models and Transformers for Anomaly Detection: A Survey21 Jul 2025
- 2025PatchGuard: Adversarially Robust Anomaly Detection and Localization through Vision Transformers and Pseudo Anomalies10 Jun 2025
- 2025RODEO: Robust Outlier Detection via Exposing Adaptive Out-of-Distribution Samples28 Jan 2025
- 2025Killing it with Zero-Shot: Adversarially Robust Novelty Detection25 Jan 2025
- 2024Redefining Normal: A Novel Object-Level Approach for Multi-Object Novelty Detection15 Dec 2024
- 2024Adversarially Robust Out-of-Distribution Detection Using Lyapunov-Stabilized Embeddings14 Oct 2024
- 2024Interactive Explainable Anomaly Detection for Industrial Settings1 Oct 2024
- 2024GeneralAD: Anomaly Detection Across Domains by Attending to Distorted Features17 Jul 2024
- 2024Two Is Better Than One: Aligned Representation Pairs for Anomaly Detection29 May 2024
- 2024Critical Review for One-class Classification: recent advances and the reality behind them27 Apr 2024
13 more
- 2023A graph neural network-based model with Out-of-Distribution Robustness for enhancing Antiretroviral Therapy Outcome Prediction for HIV-129 Dec 2023
- 2023Understanding normalization in contrastive representation learning and out-of-distribution detection23 Dec 2023
- 2023Set Features for Anomaly Detection24 Nov 2023
- 2023Don't Miss Out on Novelty: Importance of Novel Features for Deep Anomaly Detection1 Oct 2023
- 2023LBL: Logarithmic Barrier Loss Function for One-class Classification20 Jul 2023
- 2023No Free Lunch: The Hazards of Over-Expressive Representations in Anomaly Detection12 Jun 2023
- 2023Improving neural network representations using human similarity judgments7 Jun 2023
- 2023Dissolving Is Amplifying: Towards Fine-Grained Anomaly Detection28 Feb 2023
- 2023Set Features for Fine-grained Anomaly Detection23 Feb 2023
- 2023Unveiling the Unseen: A Comprehensive Survey on Explainable Anomaly Detection in Images and Videos13 Feb 2023
- 2022Anomaly Detection via Multi-Scale Contrasted Memory16 Nov 2022
- 2022Positive Difference Distribution for Image Outlier Detection using Normalizing Flows and Contrastive Data30 Aug 2022
- 2022Fake It Till You Make It: Towards Accurate Near-Distribution Novelty Detection28 May 2022
- 2024Redefining Normal: A Novel Object-Level Approach for Multi-Object Novelty Detectioncited by 0
- 2025Generalist Multi-Class Anomaly Detection via Distillation to Two Heterogeneous Student Networkscited by 0
- 2026Contrastive Knowledge Distillation for Anomaly Detection in Multi-Illumination/Focus Display Imagescited by 0
- 2026Contrastive Knowledge Distillation for Anomaly Detection in Multi-Illumination/Focus Display Images1 Sep 2026
- 2025Generalist Multi-Class Anomaly Detection via Distillation to Two Heterogeneous Student Networks29 Sep 2025
- 2024Redefining Normal: A Novel Object-Level Approach for Multi-Object Novelty Detection15 Dec 2024
- 2023Improving neural network representations using human similarity judgmentscited by 38
- 2024GeneralAD: Anomaly Detection Across Domains by Attending to Distorted Featurescited by 29
- 2023Set Features for Fine-grained Anomaly Detectioncited by 13
- 2025PatchGuard: Adversarially Robust Anomaly Detection and Localization through Vision Transformers and Pseudo Anomaliescited by 8
- 2025Foundation Models and Transformers for Anomaly Detection: A Surveycited by 8
- 2023Unveiling the Unseen: A Comprehensive Survey on Explainable Anomaly Detection in Images and Videoscited by 7
- 2023No Free Lunch: The Hazards of Over-Expressive Representations in Anomaly Detectioncited by 7
- 2023A graph neural network-based model with Out-of-Distribution Robustness for enhancing Antiretroviral Therapy Outcome Prediction for HIV-1cited by 7
- 2025RODEO: Robust Outlier Detection via Exposing Adaptive Out-of-Distribution Samplescited by 7
- 2024Adversarially Robust Out-of-Distribution Detection Using Lyapunov-Stabilized Embeddingscited by 6
- 2022Fake It Till You Make It: Towards Accurate Near-Distribution Novelty Detectioncited by 4
- 2025Killing it with Zero-Shot: Adversarially Robust Novelty Detectioncited by 4
12 most cited of 22 All 22 (JSON)
- 2025Foundation Models and Transformers for Anomaly Detection: A Survey21 Jul 2025
- 2025PatchGuard: Adversarially Robust Anomaly Detection and Localization through Vision Transformers and Pseudo Anomalies10 Jun 2025
- 2025RODEO: Robust Outlier Detection via Exposing Adaptive Out-of-Distribution Samples28 Jan 2025
- 2025Killing it with Zero-Shot: Adversarially Robust Novelty Detection25 Jan 2025
- 2024Adversarially Robust Out-of-Distribution Detection Using Lyapunov-Stabilized Embeddings14 Oct 2024
- 2024Interactive Explainable Anomaly Detection for Industrial Settings1 Oct 2024
- 2024GeneralAD: Anomaly Detection Across Domains by Attending to Distorted Features17 Jul 2024
- 2024Two Is Better Than One: Aligned Representation Pairs for Anomaly Detection29 May 2024
- 2024Critical Review for One-class Classification: recent advances and the reality behind them27 Apr 2024
- 2023A graph neural network-based model with Out-of-Distribution Robustness for enhancing Antiretroviral Therapy Outcome Prediction for HIV-129 Dec 2023
- 2023Understanding normalization in contrastive representation learning and out-of-distribution detection23 Dec 2023
- 2023Set Features for Anomaly Detection24 Nov 2023
12 newest of 22 All 22 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2024Advancing Pre-trained Teacher: Towards Robust Feature Discrepancy for Anomaly Detection
- 2021Student-Teacher Feature Pyramid Matching for Anomaly Detection
- 2024Structural Teacher-Student Normality Learning for Multi-Class Anomaly Detection and Localization
- 2024Dual-Modeling Decouple Distillation for Unsupervised Anomaly Detection
- 2025ResAD++: Towards Class Agnostic Anomaly Detection via Residual Feature Learning
- 2022Anomaly Detection via Reverse Distillation from One-Class Embedding
- 2024Dual-Student Knowledge Distillation Networks for Unsupervised Anomaly Detection
- 2023MixedTeacher : Knowledge Distillation for fast inference textural anomaly detection