mlsanityData to 14 Oct 2026

DAAIN: Detection of Anomalous and Adversarial Input using Normalizing Flows

arXiv 2105.14638 ↗First posted 30 May 2021cs.CV cs.CR cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Despite much recent work, detecting out-of-distribution (OOD) inputs and adversarial attacks (AA) for computer vision models remains a challenge. In this work, we introduce a novel technique, DAAIN, to detect OOD inputs and AA for image segmentation in a unified setting. Our approach monitors the inner workings of a neural network and learns a density estimator of the activation distribution. We equip the density estimator with a classification head to discriminate between regular and anomalous inputs. To deal with the high-dimensional activation-space of typical segmentation networks, we subsample them to obtain a homogeneous spatial and layer-wise coverage. The subsampling pattern is chosen once per monitored model and kept fixed for all inputs. Since the attacker has access to neither the detection model nor the sampling key, it becomes harder for them to attack the segmentation network, as the attack cannot be backpropagated through the detector. We demonstrate the effectiveness of our approach using an ESPNet trained on the Cityscapes dataset as segmentation model, an affine Normalizing Flow as density estimator and use blue noise to ensure homogeneous sampling. Our model can be trained on a single GPU making it compute efficient and deployable without requiring specialized accelerators.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 47 of its 67 references that are in the map. First posted on arXiv 30 May 2021.

Builds on

47 of 67 references.

References · 47

  1. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  2. 2014Adam: A Method for Stochastic Optimizationcited by 37,240
  3. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
  4. 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,713
  5. 2014Explaining and Harnessing Adversarial Examplescited by 7,364
  6. 2016Feature Pyramid Networks for Object Detectioncited by 5,036
  7. 2015Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learningcited by 4,448
  8. 2016The Cityscapes Dataset for Semantic Urban Scene Understandingcited by 4,444
  9. 2016A Baseline for Detecting Misclassified and Out-of-Distribution Examples in Neural Networkscited by 2,385
  10. 2017Rethinking Atrous Convolution for Semantic Image Segmentationcited by 2,161
  11. 2016Density estimation using Real NVPcited by 2,042
  12. 2016Adversarial examples in the physical worldcited by 1,769
35 more
  1. 2018Glow: Generative Flow with Invertible 1x1 Convolutionscited by 1,545
  2. 2018A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attackscited by 1,485
  3. 2014NICE: Non-linear Independent Components Estimationcited by 1,058
  4. 2015End-to-End Training of Deep Visuomotor Policiescited by 875
  5. 2017Masked Autoregressive Flow for Density Estimationcited by 684
  6. 2018FFJORD: Free-form Continuous Dynamics for Scalable Reversible Generative Modelscited by 594
  7. 2020PaDiM: a Patch Distribution Modeling Framework for Anomaly Detection and Localizationcited by 594
  8. 2019Likelihood Ratios for Out-of-Distribution Detectioncited by 453
  9. 2018Do Deep Generative Models Know What They Don't Know?cited by 443
  10. 2018Invertible Residual Networkscited by 365
  11. 2019On Mutual Information Maximization for Representation Learningcited by 316
  12. 2017Adversarial Examples for Semantic Segmentation and Object Detectioncited by 275
  13. 2019Flow++: Improving Flow-Based Generative Models with Variational Dequantization and Architecture Designcited by 262
  14. 2017Detecting Adversarial Samples from Artifactscited by 245
  15. 2017On Detecting Adversarial Perturbationscited by 232
  16. 2020Why Normalizing Flows Fail to Detect Out-of-Distribution Datacited by 221
  17. 2017LinkNet: Exploiting Encoder Representations for Efficient Semantic Segmentationcited by 214
  18. 2020Same Same But DifferNet: Semi-Supervised Defect Detection with Normalizing Flowscited by 212
  19. 2017On the (Statistical) Detection of Adversarial Examplescited by 180
  20. 2020Stochastic Normalizing Flowscited by 157
  21. 2019Detecting the Unexpected via Image Resynthesiscited by 137
  22. 2018ESPNet: Efficient Spatial Pyramid of Dilated Convolutions for Semantic Segmentationcited by 133
  23. 2020Synthesize then Compare: Detecting Failures and Anomalies for Semantic Segmentationcited by 96
  24. 2019SemanticAdv: Generating Adversarial Examples via Attribute-conditional Image Editingcited by 93
  25. 2020Disentanglement by Nonlinear ICA with General Incompressible-flow Networks (GIN)cited by 92
  26. 2018Generalizable Data-free Objective for Crafting Universal Adversarial Perturbationscited by 88
  27. 2019The Odds are Odd: A Statistical Test for Detecting Adversarial Examplescited by 75
  28. 2017Robust Physical-World Attacks on Deep Learning Modelscited by 72
  29. 2020Augmented Normalizing Flows: Bridging the Gap Between Generative Flows and Latent Variable Modelscited by 66
  30. 2018Prediction Error Meta Classification in Semantic Segmentation: Detection via Aggregated Dispersion Measures of Softmax Probabilitiescited by 54
  31. 2018Characterizing Adversarial Examples Based on Spatial Consistency Information for Semantic Segmentationcited by 40
  32. 2020Perfect density models cannot guarantee anomaly detectioncited by 39
  33. 2019Detecting and Diagnosing Adversarial Images with Class-Conditional Capsule Reconstructionscited by 30
  34. 2019Robust breast cancer detection in mammography and digital breast tomosynthesis using annotation-efficient deep learning approachcited by 27
  35. 2019Indirect Local Attacks for Context-aware Semantic Segmentation Networkscited by 23

Built on by

Not cited yet.