Out-of-Distribution Detection using Counterfactual Distance
Not on the map. Why?
Abstract (arXiv)
Accurate and explainable out-of-distribution (OOD) detection is required to use machine learning systems safely. Previous work has shown that feature distance to decision boundaries can be used to identify OOD data effectively. In this paper, we build on this intuition and propose a post-hoc OOD detection method that, given an input, calculates the distance to decision boundaries by leveraging counterfactual explanations. Since computing explanations can be expensive for large architectures, we also propose strategies to improve scalability by computing counterfactuals directly in embedding space. Crucially, as the method employs counterfactual explanations, we can seamlessly use them to help interpret the results of our detector. We show that our method is in line with the state of the art on CIFAR-10, achieving 93.50% AUROC and 25.80% FPR95. Our method outperforms these methods on CIFAR-100 with 97.05% AUROC and 13.79% FPR95 and on ImageNet-200 with 92.55% AUROC and 33.55% FPR95 across four OOD datasets
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 28 of its 40 references that are in the map. First posted on arXiv 13 Aug 2025.
Builds on
28 of 40 references.
References · 28
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,385
- 2013Describing Textures in the Wildcited by 2,125
- 2016Concrete Problems in AI Safetycited by 1,642
- 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,485
- 2017Enhancing The Reliability of Out-of-distribution Image Detection in Neural Networkscited by 1,328
- 2020Energy-based Out-of-distribution Detectioncited by 1,299
- 2017Counterfactual Explanations without Opening the Black Box: Automated Decisions and the GDPRcited by 1,089
- 2021Generalized Out-of-Distribution Detection: A Surveycited by 802
- 2014Deep Neural Networks are Easily Fooled: High Confidence Predictions for Unrecognizable Imagescited by 776
- 2022Out-of-Distribution Detection with Deep Nearest Neighborscited by 600
- 2021ReAct: Out-of-distribution Detection With Rectified Activationscited by 486
16 more
- 2020A Unifying Review of Deep and Shallow Anomaly Detectioncited by 425
- 2022ViM: Out-Of-Distribution with Virtual-logit Matchingcited by 405
- 2021Open-Set Recognition: a Good Closed-Set Classifier is All You Need?cited by 353
- 2022OpenOOD: Benchmarking Generalized Out-of-Distribution Detectioncited by 268
- 2019Algorithms for Verifying Deep Neural Networkscited by 221
- 2023OpenOOD v1.5: Enhanced Benchmark for Out-of-Distribution Detectioncited by 179
- 2015TurkerGaze: Crowdsourcing Saliency with Webcam based Eye Trackingcited by 165
- 2020Explainable Deep One-Class Classificationcited by 127
- 2021NICE: An Algorithm for Nearest Instance Counterfactual Explanationscited by 62
- 2023Fast Decision Boundary based Out-of-Distribution Detectorcited by 49
- 2019Outside the Box: Abstraction-Based Monitoring of Neural Networkscited by 36
- 2023LINe: Out-of-Distribution Detection by Leveraging Important Neuronscited by 34
- 2022On the Privacy Risks of Algorithmic Recoursecited by 32
- 2020Scaling Guarantees for Nearest Counterfactual Explanationscited by 22
- 2023Promoting Counterfactual Robustness through Diversitycited by 17
- 2024Reimagining Anomalies: What If Anomalies Were Normal?cited by 2
Built on by
Citing papers per year: 2026: 1.
1 paper.