mlsanityData to 7 Oct 2026

Adversarial vulnerability of powerful near out-of-distribution detection

arXiv 2201.07012 ↗First posted 18 Jan 2022cs.LGcited by 16

Not on the map. Why?

Abstract (arXiv)

There has been a significant progress in detecting out-of-distribution (OOD) inputs in neural networks recently, primarily due to the use of large models pretrained on large datasets, and an emerging use of multi-modality. We show a severe adversarial vulnerability of even the strongest current OOD detection techniques. With a small, targeted perturbation to the input pixels, we can change the image assignment from an in-distribution to an out-distribution, and vice versa, easily. In particular, we demonstrate severe adversarial vulnerability on the challenging near OOD CIFAR-100 vs CIFAR-10 task, as well as on the far OOD CIFAR-100 vs SVHN. We study the adversarial robustness of several post-processing techniques, including the simple baseline of Maximum of Softmax Probabilities (MSP), the Mahalanobis distance, and the newly proposed textitRelative Mahalanobis distance. By comparing the loss of OOD detection performance at various perturbation strengths, we demonstrate the beneficial effect of using ensembles of OOD detectors, and the use of the textitRelative Mahalanobis distance over other post-processing methods. In addition, we show that even strong zero-shot OOD detection using CLIP and multi-modality suffers from a severe lack of adversarial robustness as well. Our code is available at https://github.com/stanislavfort/adversariestoOODdetection

Key facts. Cited by 16 papers in the map (data through 7 Oct 2026). Builds on 22 of its 24 references that are in the map. First posted on arXiv 18 Jan 2022.

Builds on

22 of 24 references.

References · 22

  1. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  3. 2014Explaining and Harnessing Adversarial Examplescited by 7,287
  4. 2013Intriguing properties of neural networkscited by 5,114
  5. 2017On Calibration of Modern Neural Networkscited by 4,860
  6. 2016Simple and Scalable Predictive Uncertainty Estimation using Deep Ensemblescited by 3,888
  7. 2016Concrete Problems in AI Safetycited by 1,582
  8. 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,472
  9. 2019Normalizing Flows for Probabilistic Modeling and Inferencecited by 1,315
  10. 2018Deep Anomaly Detection with Outlier Exposurecited by 939
  11. 2017Masked Autoregressive Flow for Density Estimationcited by 680
  12. 2021ImageNet-21K Pretraining for the Massescited by 607
10 more
  1. 2019Likelihood Ratios for Out-of-Distribution Detectioncited by 451
  2. 2019Deep Ensembles: A Loss Landscape Perspectivecited by 438
  3. 2021Exploring the Limits of Out-of-Distribution Detectioncited by 283
  4. 2021A Simple Fix to Mahalanobis Distance for Improving Near-OOD Detectioncited by 206
  5. 2020ATOM: Robustifying Out-of-distribution Detection Using Outlier Miningcited by 116
  6. 2020Hybrid Models for Open Set Recognitioncited by 109
  7. 2013Multi-digit Number Recognition from Street View Imagery using Deep Convolutional Neural Networkscited by 84
  8. 2020Density of States Estimation for Out-of-Distribution Detectioncited by 74
  9. 2021Does Your Dermatology Classifier Know What It Doesn't Know? Detecting the Long-Tail of Unseen Conditionscited by 68
  10. 2020Robust Out-of-distribution Detection for Neural Networkscited by 57

Built on by

Cited by year

Citing papers per year: 2022: 5; 2023: 4; 2024: 4; 2025: 3.

16 papers.

Sort:

By area:

  1. 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,634
  2. 2022Your Out-of-Distribution Detection Method is Not Robust!cited by 16
  3. 2023Adversarial Attacks on Foundational Vision Modelscited by 13
  4. 2023Dual Conditioned Diffusion Models for Out-Of-Distribution Detection: Application to Fetal Ultrasound Videoscited by 12
  5. 2024Ensemble everything everywhere: Multi-scale aggregation for adversarial robustnesscited by 12
  6. 2023CLAP: Isolating Content from Style through Contrastive Learning with Augmented Promptscited by 10
  7. 2024Out-of-Distribution Data: An Acquaintance of Adversarial Examples -- A Surveycited by 6
  8. 2024Adversarially Robust Out-of-Distribution Detection Using Lyapunov-Stabilized Embeddingscited by 6
  9. 2022On Transfer of Adversarial Robustness from Pretraining to Downstream Taskscited by 5
  10. 2022Improving Adversarial Robustness via Joint Classification and Multiple Explicit Detection Classescited by 4
  11. 2023Multi-attacks: Many images + the same adversarial attack → many target labelscited by 3
  12. 2025Scanning Trojaned Models Using Out-of-Distribution Samplescited by 3
4 more
  1. 2022Evaluating Out-of-Distribution Detectors Through Adversarial Generation of Outlierscited by 1
  2. 2024Unsupervised Detection of Fetal Brain Anomalies using Denoising Diffusion Modelscited by 1
  3. 2025Provably Safeguarding a Classifier from OOD and Adversarial Samples: an Extreme Value Theory Approachcited by 1
  4. 2025HALO: Robust Out-of-Distribution Detection via Joint Optimisationcited by 0