mlsanityData to 14 Oct 2026

Detecting Out-of-Distribution Examples with In-distribution Examples and Gram Matrices

arXiv 1912.12510 ↗First posted 28 Dec 2019cs.LG cs.CV stat.MLcited by 32

Not on the map. Why?

Abstract (arXiv)

When presented with Out-of-Distribution (OOD) examples, deep neural networks yield confident, incorrect predictions. Detecting OOD examples is challenging, and the potential risks are high. In this paper, we propose to detect OOD examples by identifying inconsistencies between activity patterns and class predicted. We find that characterizing activity patterns by Gram matrices and identifying anomalies in gram matrix values can yield high OOD detection rates. We identify anomalies in the gram matrices by simply comparing each value with its respective range observed over the training data. Unlike many approaches, this can be used with any pre-trained softmax classifier and does not require access to OOD data for fine-tuning hyperparameters, nor does it require OOD access for inferring parameters. The method is applicable across a variety of architectures and vision datasets and, for the important and surprisingly hard task of detecting far-from-distribution out-of-distribution examples, it generally performs better than or equal to state-of-the-art OOD detection methods (including those that do assume access to OOD examples).

Key facts. Cited by 32 papers in the map (data through 14 Oct 2026). First posted on arXiv 28 Dec 2019.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 14 Oct)

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

32 papers.

Sort:

By area:

  1. 2021Generalized Out-of-Distribution Detection: A Surveycited by 802
  2. 2021SSD: A Unified Framework for Self-Supervised Outlier Detectioncited by 264
  3. 2021On the Impact of Spurious Correlation for Out-of-distribution Detectioncited by 68
  4. 2023Rethinking Out-of-distribution (OOD) Detection: Masked Image Modeling is All You Needcited by 46
  5. 2021Triggering Failures: Out-Of-Distribution detection by learning from local adversarial attacks in Semantic Segmentationcited by 40
  6. 2024Generalized Out-of-Distribution Detection and Beyond in Vision Language Model Era: A Surveycited by 36
  7. 2021On the Out-of-distribution Generalization of Probabilistic Image Modellingcited by 33
  8. 2021Taxonomy of Machine Learning Safety: A Survey and Primercited by 25
  9. 2021Temperature as Uncertainty in Contrastive Learningcited by 25
  10. 2021Robust Representation Learning via Perceptual Similarity Metricscited by 23
  11. 2023GradOrth: A Simple yet Efficient Out-of-Distribution Detection with Orthogonal Projection of Gradientscited by 21
  12. 2021Out-of-Distribution Detection in Dermatology using Input Perturbation and Subset Scanningcited by 11
20 more
  1. 2021Out-of-distribution Detection with Boundary Aware Learningcited by 11
  2. 2021SoK: Machine Learning Governancecited by 10
  3. 2021Statistical Perspectives on Reliability of Artificial Intelligence Systemscited by 10
  4. 2021Shifting Transformation Learning for Out-of-Distribution Detectioncited by 6
  5. 2022Out-of-Distribution Detection with Class Ratio Estimationcited by 4
  6. 2023Robustness to Spurious Correlations Improves Semantic Out-of-Distribution Detectioncited by 4
  7. 2024Hierarchical Visual Categories Modeling: A Joint Representation Learning and Density Estimation Framework for Out-of-Distribution Detectioncited by 4
  8. 2023Towards Effective Semantic OOD Detection in Unseen Domains: A Domain Generalization Perspectivecited by 3
  9. 2025Learning to See Through a Baby's Eyes: Early Visual Diets Enable Robust Visual Intelligence in Humans and Machinescited by 3
  10. 2021Improving Compositionality of Neural Networks by Decoding Representations to Inputscited by 2
  11. 2022Improving generalization by mimicking the human visual dietcited by 2
  12. 2024TagOOD: A Novel Approach to Out-of-Distribution Detection via Vision-Language Representations and Class Center Learningcited by 2
  13. 2025Spurious-Aware Prototype Refinement for Reliable Out-of-Distribution Detectioncited by 2
  14. 2026Deep Learning-Based Anomaly Detection in Spacecraft Telemetry on Edge Devicescited by 1
  15. 2021Out of distribution detection for skin and malaria imagescited by 0
  16. 2022Towards Robust Deep Learning using Entropic Lossescited by 0
  17. 2023A Multi-Scale Framework for Out-of-Distribution Detection in Dermoscopic Imagescited by 0
  18. 2023SupEuclid: Extremely Simple, High Quality OoD Detection with Supervised Contrastive Learning and Euclidean Distancecited by 0
  19. 2024Dimensionality-induced information loss of outliers in deep neural networkscited by 0
  20. 2025Enhancing Abnormality Identification: Robust Out-of-Distribution Strategies for Deepfake Detectioncited by 0