mlsanityData to 7 Oct 2026

Why is the Mahalanobis Distance Effective for Anomaly Detection?

arXiv 2003.00402 ↗First posted 1 Mar 2020stat.ML cs.CV cs.LGcited by 28

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

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 11; 2022: 4; 2023: 6; 2024: 4; 2025: 1; 2026: 2.

28 papers.

Sort:

  1. 2021A Simple Fix to Mahalanobis Distance for Improving Near-OOD Detectioncited by 206
  2. 2021Revisiting Mahalanobis Distance for Transformer-Based Out-of-Domain Detectioncited by 67
  3. 2024Robust AI-Generated Text Detection by Restricted Embeddingscited by 18
  4. 2023On the use of Mahalanobis distance for out-of-distribution detection with neural networks for medical imagingcited by 15
  5. 2022Towards Textual Out-of-Domain Detection without In-Domain Labelscited by 14
  6. 2021Out of Distribution Detection and Adversarial Attacks on Deep Neural Networks for Robust Medical Image Analysiscited by 10
  7. 2021Transfer Learning Gaussian Anomaly Detection by Fine-tuning Representationscited by 10
  8. 2023Gaussian Latent Representations for Uncertainty Estimation using Mahalanobis Distance in Deep Classifierscited by 10
  9. 2023Concurrent Misclassification and Out-of-Distribution Detection for Semantic Segmentation via Energy-Based Normalizing Flowcited by 8
  10. 2021A Distance-based Anomaly Detection Framework for Deep Reinforcement Learningcited by 5
  11. 2021Data Invariants to Understand Unsupervised Out-of-Distribution Detectioncited by 5
  12. 2022Robust Vector Quantized-Variational Autoencodercited by 4
16 more
  1. 2023Robustness to Spurious Correlations Improves Semantic Out-of-Distribution Detectioncited by 4
  2. 2021Data augmentation and pre-trained networks for extremely low data regimes unsupervised visual inspectioncited by 3
  3. 2021Unity is strength: Improving the Detection of Adversarial Examples with Ensemble Approachescited by 3
  4. 2023Understanding the limitations of self-supervised learning for tabular anomaly detectioncited by 3
  5. 2023Toward Stronger Textual Attack Detectorscited by 3
  6. 2025Enhancing Out-of-Distribution Detection with Extended Logit Normalizationcited by 3
  7. 2022A Benchmark for Out of Distribution Detection in Point Cloud 3D Semantic Segmentationcited by 2
  8. 2024Deciphering the Definition of Adversarial Robustness for post-hoc OOD Detectorscited by 2
  9. 2021Decomposing Representations for Deterministic Uncertainty Estimationcited by 1
  10. 2022A Novel Explainable Out-of-Distribution Detection Approach for Spiking Neural Networkscited by 1
  11. 2021Graceful Degradation and Related Fieldscited by 0
  12. 2021When Neural Networks Using Different Sensors Create Similar Featurescited by 0
  13. 2024VI-OOD: A Unified Representation Learning Framework for Textual Out-of-distribution Detectioncited by 0
  14. 2024Dimensionality-induced information loss of outliers in deep neural networkscited by 0
  15. 2026VOLTA: The Surprising Ineffectiveness of Auxiliary Losses for Calibrated Deep Learningcited by 0
  16. 2026Modality-Aware Out-of-Distribution Detection for Multi-Modal Action Recognitioncited by 0