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