Why is the Mahalanobis Distance Effective for Anomaly Detection?
Not on the map. Why?
Abstract (arXiv)
The Mahalanobis distance-based confidence score, a recently proposed anomaly detection method for pre-trained neural classifiers, achieves state-of-the-art performance on both out-of-distribution (OoD) and adversarial examples detection. This work analyzes why this method exhibits such strong performance in practical settings while imposing an implausible assumption; namely, that class conditional distributions of pre-trained features have tied covariance. Although the Mahalanobis distance-based method is claimed to be motivated by classification prediction confidence, we find that its superior performance stems from information not useful for classification. This suggests that the reason the Mahalanobis confidence score works so well is mistaken, and makes use of different information from ODIN, another popular OoD detection method based on prediction confidence. This perspective motivates us to combine these two methods, and the combined detector exhibits improved performance and robustness. These findings provide insight into the behavior of neural classifiers in response to anomalous inputs.
Key facts. Cited by 28 papers in the map (data through 7 Oct 2026). First posted on arXiv 1 Mar 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 11; 2022: 4; 2023: 6; 2024: 4; 2025: 1; 2026: 2.
28 papers.
Sort:
- 2021A Simple Fix to Mahalanobis Distance for Improving Near-OOD Detectioncited by 206
- 2021Revisiting Mahalanobis Distance for Transformer-Based Out-of-Domain Detectioncited by 67
- 2024Robust AI-Generated Text Detection by Restricted Embeddingscited by 18
- 2023On the use of Mahalanobis distance for out-of-distribution detection with neural networks for medical imagingcited by 15
- 2022Towards Textual Out-of-Domain Detection without In-Domain Labelscited by 14
- 2021Out of Distribution Detection and Adversarial Attacks on Deep Neural Networks for Robust Medical Image Analysiscited by 10
- 2021Transfer Learning Gaussian Anomaly Detection by Fine-tuning Representationscited by 10
- 2023Gaussian Latent Representations for Uncertainty Estimation using Mahalanobis Distance in Deep Classifierscited by 10
- 2023Concurrent Misclassification and Out-of-Distribution Detection for Semantic Segmentation via Energy-Based Normalizing Flowcited by 8
- 2021A Distance-based Anomaly Detection Framework for Deep Reinforcement Learningcited by 5
- 2021Data Invariants to Understand Unsupervised Out-of-Distribution Detectioncited by 5
- 2022Robust Vector Quantized-Variational Autoencodercited by 4
16 more
- 2023Robustness to Spurious Correlations Improves Semantic Out-of-Distribution Detectioncited by 4
- 2021Data augmentation and pre-trained networks for extremely low data regimes unsupervised visual inspectioncited by 3
- 2021Unity is strength: Improving the Detection of Adversarial Examples with Ensemble Approachescited by 3
- 2023Understanding the limitations of self-supervised learning for tabular anomaly detectioncited by 3
- 2023Toward Stronger Textual Attack Detectorscited by 3
- 2025Enhancing Out-of-Distribution Detection with Extended Logit Normalizationcited by 3
- 2022A Benchmark for Out of Distribution Detection in Point Cloud 3D Semantic Segmentationcited by 2
- 2024Deciphering the Definition of Adversarial Robustness for post-hoc OOD Detectorscited by 2
- 2021Decomposing Representations for Deterministic Uncertainty Estimationcited by 1
- 2022A Novel Explainable Out-of-Distribution Detection Approach for Spiking Neural Networkscited by 1
- 2021Graceful Degradation and Related Fieldscited by 0
- 2021When Neural Networks Using Different Sensors Create Similar Featurescited by 0
- 2024VI-OOD: A Unified Representation Learning Framework for Textual Out-of-distribution Detectioncited by 0
- 2024Dimensionality-induced information loss of outliers in deep neural networkscited by 0
- 2026VOLTA: The Surprising Ineffectiveness of Auxiliary Losses for Calibrated Deep Learningcited by 0
- 2026Modality-Aware Out-of-Distribution Detection for Multi-Modal Action Recognitioncited by 0
- 2026Modality-Aware Out-of-Distribution Detection for Multi-Modal Action Recognition23 Jun 2026
- 2026VOLTA: The Surprising Ineffectiveness of Auxiliary Losses for Calibrated Deep Learning9 Apr 2026
- 2025Enhancing Out-of-Distribution Detection with Extended Logit Normalization15 Apr 2025
- 2024Dimensionality-induced information loss of outliers in deep neural networks29 Oct 2024
- 2024Robust AI-Generated Text Detection by Restricted Embeddings10 Oct 2024
- 2024Deciphering the Definition of Adversarial Robustness for post-hoc OOD Detectors21 Jun 2024
- 2024VI-OOD: A Unified Representation Learning Framework for Textual Out-of-distribution Detection9 Apr 2024
- 2023Toward Stronger Textual Attack Detectors21 Oct 2023
- 2023Understanding the limitations of self-supervised learning for tabular anomaly detection15 Sep 2023
- 2023On the use of Mahalanobis distance for out-of-distribution detection with neural networks for medical imaging4 Sep 2023
- 2023Gaussian Latent Representations for Uncertainty Estimation using Mahalanobis Distance in Deep Classifiers23 May 2023
- 2023Concurrent Misclassification and Out-of-Distribution Detection for Semantic Segmentation via Energy-Based Normalizing Flow16 May 2023
16 more
- 2023Robustness to Spurious Correlations Improves Semantic Out-of-Distribution Detection8 Feb 2023
- 2022A Benchmark for Out of Distribution Detection in Point Cloud 3D Semantic Segmentation11 Nov 2022
- 2022A Novel Explainable Out-of-Distribution Detection Approach for Spiking Neural Networks30 Sep 2022
- 2022Towards Textual Out-of-Domain Detection without In-Domain Labels22 Mar 2022
- 2022Robust Vector Quantized-Variational Autoencoder4 Feb 2022
- 2021Decomposing Representations for Deterministic Uncertainty Estimation1 Dec 2021
- 2021Data Invariants to Understand Unsupervised Out-of-Distribution Detection26 Nov 2021
- 2021Unity is strength: Improving the Detection of Adversarial Examples with Ensemble Approaches24 Nov 2021
- 2021When Neural Networks Using Different Sensors Create Similar Features4 Nov 2021
- 2021A Distance-based Anomaly Detection Framework for Deep Reinforcement Learning21 Sep 2021
- 2021Transfer Learning Gaussian Anomaly Detection by Fine-tuning Representations9 Aug 2021
- 2021Out of Distribution Detection and Adversarial Attacks on Deep Neural Networks for Robust Medical Image Analysis10 Jul 2021
- 2021Graceful Degradation and Related Fields21 Jun 2021
- 2021A Simple Fix to Mahalanobis Distance for Improving Near-OOD Detection16 Jun 2021
- 2021Data augmentation and pre-trained networks for extremely low data regimes unsupervised visual inspection2 Jun 2021
- 2021Revisiting Mahalanobis Distance for Transformer-Based Out-of-Domain Detection11 Jan 2021
- 2021A Simple Fix to Mahalanobis Distance for Improving Near-OOD Detectioncited by 206
- 2021Revisiting Mahalanobis Distance for Transformer-Based Out-of-Domain Detectioncited by 67
- 2024Robust AI-Generated Text Detection by Restricted Embeddingscited by 18
- 2023On the use of Mahalanobis distance for out-of-distribution detection with neural networks for medical imagingcited by 15
- 2022Towards Textual Out-of-Domain Detection without In-Domain Labelscited by 14
- 2021Out of Distribution Detection and Adversarial Attacks on Deep Neural Networks for Robust Medical Image Analysiscited by 10
- 2021Transfer Learning Gaussian Anomaly Detection by Fine-tuning Representationscited by 10
- 2023Gaussian Latent Representations for Uncertainty Estimation using Mahalanobis Distance in Deep Classifierscited by 10
- 2023Concurrent Misclassification and Out-of-Distribution Detection for Semantic Segmentation via Energy-Based Normalizing Flowcited by 8
- 2021A Distance-based Anomaly Detection Framework for Deep Reinforcement Learningcited by 5
- 2021Data Invariants to Understand Unsupervised Out-of-Distribution Detectioncited by 5
- 2022Robust Vector Quantized-Variational Autoencodercited by 4
12 most cited of 28 All 28 (JSON)
- 2026Modality-Aware Out-of-Distribution Detection for Multi-Modal Action Recognition23 Jun 2026
- 2026VOLTA: The Surprising Ineffectiveness of Auxiliary Losses for Calibrated Deep Learning9 Apr 2026
- 2025Enhancing Out-of-Distribution Detection with Extended Logit Normalization15 Apr 2025
- 2024Dimensionality-induced information loss of outliers in deep neural networks29 Oct 2024
- 2024Robust AI-Generated Text Detection by Restricted Embeddings10 Oct 2024
- 2024Deciphering the Definition of Adversarial Robustness for post-hoc OOD Detectors21 Jun 2024
- 2024VI-OOD: A Unified Representation Learning Framework for Textual Out-of-distribution Detection9 Apr 2024
- 2023Toward Stronger Textual Attack Detectors21 Oct 2023
- 2023Understanding the limitations of self-supervised learning for tabular anomaly detection15 Sep 2023
- 2023On the use of Mahalanobis distance for out-of-distribution detection with neural networks for medical imaging4 Sep 2023
- 2023Gaussian Latent Representations for Uncertainty Estimation using Mahalanobis Distance in Deep Classifiers23 May 2023
- 2023Concurrent Misclassification and Out-of-Distribution Detection for Semantic Segmentation via Energy-Based Normalizing Flow16 May 2023
12 newest of 28 All 28 (JSON)