mlsanityData to 7 Oct 2026

Why Out-of-distribution Detection in CNNs Does Not Like Mahalanobis -- and What to Use Instead

arXiv 2110.07043 ↗First posted 13 Oct 2021cs.LG cs.CVcited by 1

Not on the map. Why?

Abstract (arXiv)

Convolutional neural networks applied for real-world classification tasks need to recognize inputs that are far or out-of-distribution (OoD) with respect to the known or training data. To achieve this, many methods estimate class-conditional posterior probabilities and use confidence scores obtained from the posterior distributions. Recent works propose to use multivariate Gaussian distributions as models of posterior distributions at different layers of the CNN (i.e., for low- and upper-level features), which leads to the confidence scores based on the Mahalanobis distance. However, this procedure involves estimating probability density in high dimensional data using the insufficient number of observations (e.g. the dimensionality of features at the last two layers in the ResNet-101 model are 2048 and 1024, with ca. 1000 observations per class used to estimate density). In this work, we want to address this problem. We show that in many OoD studies in high-dimensional data, LOF-based (Local Outlierness-Factor) methods outperform the parametric, Mahalanobis distance-based methods. This motivates us to propose the nonparametric, LOF-based method of generating the confidence scores for CNNs. We performed several feasibility studies involving ResNet-101 and EffcientNet-B3, based on CIFAR-10 and ImageNet (as known data), and CIFAR-100, SVHN, ImageNet2010, Places365, or ImageNet-O (as outliers). We demonstrated that nonparametric LOF-based confidence estimation can improve current Mahalanobis-based SOTA or obtain similar performance in a simpler way.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 19 of its 25 references that are in the map. First posted on arXiv 13 Oct 2021.

Builds on

19 of 25 references.

References · 19

  1. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  2. 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,415
  3. 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,362
  4. 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,472
  5. 2019Natural Adversarial Examplescited by 1,401
  6. 2017Enhancing The Reliability of Out-of-distribution Image Detection in Neural Networkscited by 1,325
  7. 2014Deep Neural Networks are Easily Fooled: High Confidence Predictions for Unrecognizable Imagescited by 774
  8. 2017Fine-tuning CNN Image Retrieval with No Human Annotationcited by 497
  9. 2020CSI: Novelty Detection via Contrastive Learning on Distributionally Shifted Instancescited by 441
  10. 2020Meta Pseudo Labelscited by 372
  11. 2018Recent Advances in Open Set Recognition: A Surveycited by 309
  12. 2021SSD: A Unified Framework for Self-Supervised Outlier Detectioncited by 264
7 more
  1. 2016Large-Scale Image Retrieval with Attentive Deep Local Featurescited by 238
  2. 2014Towards Open World Recognitioncited by 226
  3. 2018Towards Safe Autonomous Driving: Capture Uncertainty in the Deep Neural Network For Lidar 3D Vehicle Detectioncited by 82
  4. 2015The Extreme Value Machinecited by 78
  5. 2016Selective Convolutional Descriptor Aggregation for Fine-Grained Image Retrievalcited by 44
  6. 2015Cross-dimensional Weighting for Aggregated Deep Convolutional Featurescited by 41
  7. 2018Humans can decipher adversarial imagescited by 31

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.