mlsanityData to 7 Oct 2026

What You See is Not What the Network Infers: Detecting Adversarial Examples Based on Semantic Contradiction

arXiv 2201.09650 ↗First posted 24 Jan 2022cs.CR cs.AIcited by 10

Not on the map. Why?

Abstract (arXiv)

Adversarial examples (AEs) pose severe threats to the applications of deep neural networks (DNNs) to safety-critical domains, e.g., autonomous driving. While there has been a vast body of AE defense solutions, to the best of our knowledge, they all suffer from some weaknesses, e.g., defending against only a subset of AEs or causing a relatively high accuracy loss for legitimate inputs. Moreover, most existing solutions cannot defend against adaptive attacks, wherein attackers are knowledgeable about the defense mechanisms and craft AEs accordingly. In this paper, we propose a novel AE detection framework based on the very nature of AEs, i.e., their semantic information is inconsistent with the discriminative features extracted by the target DNN model. To be specific, the proposed solution, namely ContraNet, models such contradiction by first taking both the input and the inference result to a generator to obtain a synthetic output and then comparing it against the original input. For legitimate inputs that are correctly inferred, the synthetic output tries to reconstruct the input. On the contrary, for AEs, instead of reconstructing the input, the synthetic output would be created to conform to the wrong label whenever possible. Consequently, by measuring the distance between the input and the synthetic output with metric learning, we can differentiate AEs from legitimate inputs. We perform comprehensive evaluations under various AE attack scenarios, and experimental results show that ContraNet outperforms existing solutions by a large margin, especially under adaptive attacks. Moreover, our analysis shows that successful AEs that can bypass ContraNet tend to have much-weakened adversarial semantics. We have also shown that ContraNet can be easily combined with adversarial training techniques to achieve further improved AE defense capabilities.

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

Builds on

52 of 84 references.

References · 52

  1. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  2. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  3. 2014Explaining and Harnessing Adversarial Examplescited by 7,287
  4. 2016Densely Connected Convolutional Networkscited by 6,691
  5. 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
  6. 2013Intriguing properties of neural networkscited by 5,114
  7. 2016Wide Residual Networkscited by 3,057
  8. 2016Towards Evaluating the Robustness of Neural Networkscited by 2,976
  9. 2015FaceNet: A Unified Embedding for Face Recognition and Clusteringcited by 2,833
  10. 2018Large Scale GAN Training for High Fidelity Natural Image Synthesiscited by 2,609
  11. 2016Adversarial examples in the physical worldcited by 1,762
  12. 2019Theoretically Principled Trade-off between Robustness and Accuracycited by 1,510
38 more
  1. 2020Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attackscited by 1,442
  2. 2018Obfuscated Gradients Give a False Sense of Security: Circumventing Defenses to Adversarial Examplescited by 1,259
  3. 2017Sigmoid-Weighted Linear Units for Neural Network Function Approximation in Reinforcement Learningcited by 935
  4. 2016Practical Black-Box Attacks against Machine Learningcited by 893
  5. 2015The Limitations of Deep Learning in Adversarial Settingscited by 784
  6. 2017Evasion Attacks against Machine Learning at Test Timecited by 686
  7. 2020RobustBench: a standardized adversarial robustness benchmarkcited by 659
  8. 2017ZOO: Zeroth Order Optimization based Black-box Attacks to Deep Neural Networks without Training Substitute Modelscited by 656
  9. 2019Adversarial Training for Free!cited by 638
  10. 2017Adversarial Examples Are Not Easily Detected: Bypassing Ten Detection Methodscited by 542
  11. 2018Certified Robustness to Adversarial Examples with Differential Privacycited by 462
  12. 2019On Evaluating Adversarial Robustnesscited by 442
  13. 2014Deep metric learning using Triplet networkcited by 421
  14. 2016Tutorial on Variational Autoencoderscited by 404
  15. 2018Defense-GAN: Protecting Classifiers Against Adversarial Attacks Using Generative Modelscited by 362
  16. 2020Differentiable Augmentation for Data-Efficient GAN Trainingcited by 361
  17. 2016A Learned Representation For Artistic Stylecited by 340
  18. 2017Certified Defenses for Data Poisoning Attackscited by 288
  19. 2020Uncovering the Limits of Adversarial Training against Norm-Bounded Adversarial Examplescited by 275
  20. 2017MagNet: a Two-Pronged Defense against Adversarial Examplescited by 268
  21. 2018cGANs with Projection Discriminatorcited by 253
  22. 2019Improving Adversarial Robustness via Promoting Ensemble Diversitycited by 213
  23. 2021Fixing Data Augmentation to Improve Adversarial Robustnesscited by 201
  24. 2020Geometry-aware Instance-reweighted Adversarial Trainingcited by 198
  25. 2014Learning Fine-grained Image Similarity with Deep Rankingcited by 189
  26. 2017Modulating early visual processing by languagecited by 167
  27. 2017EAD: Elastic-Net Attacks to Deep Neural Networks via Adversarial Examplescited by 154
  28. 2020Adversarial Robustness: From Self-Supervised Pre-Training to Fine-Tuningcited by 152
  29. 2018Is feature selection secure against training data poisoning?cited by 88
  30. 2018The Unusual Effectiveness of Averaging in GAN Trainingcited by 73
  31. 2020DeepHammer: Depleting the Intelligence of Deep Neural Networks through Targeted Chain of Bit Flipscited by 53
  32. 2017MagNet and "Efficient Defenses Against Adversarial Attacks" are Not Robust to Adversarial Examplescited by 46
  33. 2019Gotta Catch 'Em All: Using Honeypots to Catch Adversarial Attacks on Neural Networkscited by 40
  34. 2021Evading Adversarial Example Detection Defenses with Orthogonal Projected Gradient Descentcited by 34
  35. 2017Adversarial Example Defenses: Ensembles of Weak Defenses are not Strongcited by 32
  36. 2018Detection based Defense against Adversarial Examples from the Steganalysis Point of Viewcited by 32
  37. 2021Detecting Adversarial Examples from Sensitivity Inconsistency of Spatial-Transform Domaincited by 29
  38. 2020NeuroAttack: Undermining Spiking Neural Networks Security through Externally Triggered Bit-Flipscited by 21

50 most cited of 52 All 52 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2022: 2; 2023: 2; 2024: 2; 2025: 3; 2026: 1.

10 papers.