Lune

NeurIPS2022Top-tier venue

How Sampling Impacts the Robustness of Stochastic Neural Networks

Sina Däubener, Asja Fischer

Abstract

Stochastic neural networks (SNNs) are random functions whose predictions are gained by averaging over multiple realizations. Consequently, a gradient-based adversarial example is calculated based on one set of samples and its classification on another set. In this paper, we derive a sufficient condition for such a stochastic prediction to be robust against a given sample-based attack. This allows us to identify the factors that lead to an increased robustness of SNNs and gives theoretical explanations for: (i) the well known observation, that increasing the amount of samples drawn for the estimation of adversarial examples increases the attack's strength, (ii) why increasing the number of samples during an attack can not fully reduce the effect of stochasticity, (iii) why the sample size during inference does not influence the robustness, and (iv) why a higher gradient variance and a shorter expected value of the gradient relates to a higher robustness. Our theoretical findings give a unified view on the mechanisms underlying previously proposed approaches for increasing attack strengths or model robustness and are verified by an extensive empirical analysis.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

1 top-tier paper has cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Certified Robustness to Adversarial Examples with Differential Privacy cites Towards Evaluating the Robustness of Neural Networks
  • Certified Robustness to Adversarial Examples with Differential Privacy cites Distillation as a Defense to Adversarial Perturbations Against Deep Neural Networks
  • Towards Evaluating the Robustness of Neural Networks cites Distillation as a Defense to Adversarial Perturbations Against Deep Neural Networks
  • Randomized Smoothing with Masked Inference for Adversarially Robust Text Classifications cites Certified Robustness to Adversarial Examples with Differential Privacy
  • Robustness of Bayesian Neural Networks to Gradient-Based Attacks cites Towards Evaluating the Robustness of Neural Networks
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers1

  1. Randomized Smoothing with Masked Inference for Adversarially Robust Text ClassificationsHan Cheol Moon, Shafiq R. Joty, Ruochen Zhao, Megh Thakkar et al.ACL 2023 · 6 citations

Builds on11

  1. Towards Evaluating the Robustness of Neural NetworksNicholas Carlini, David A. WagnerS&P 2017 · 9,786 citations
  2. Distillation as a Defense to Adversarial Perturbations Against Deep Neural NetworksNicolas Papernot, Patrick D. McDaniel, Xi Wu, Somesh Jha et al.S&P 2016 · 3,275 citations
  3. Certified Robustness to Adversarial Examples with Differential PrivacyMathias Lécuyer, Vaggelis Atlidakis, Roxana Geambasu, Daniel Hsu et al.S&P 2019 · 1,022 citations
  4. Laplace Redux - Effortless Bayesian Deep LearningErik A. Daxberger, Agustinus Kristiadi, Alexander Immer, Runa Eschenhagen et al.NeurIPS 2021 · 508 citations
  5. Robustness of Bayesian Neural Networks to Gradient-Based AttacksGinevra Carbone, Matthew Wicker, Luca Laurenti, Andrea Patané et al.NeurIPS 2020 · 85 citations

Related papers

  1. Maximizing Feature Distribution Variance for Robust Neural NetworksHao Yang, Min Wang, Zhengfei Yu, Zhi Zeng et al.ACM MM 2024
  2. Adversarial Parameter Attack on Deep Neural NetworksLijia Yu, Yihan Wang, Xiao-Shan GaoICML 2023 · 11 citations
  3. On the Limitations of Stochastic Pre-processing DefensesYue Gao, Ilia Shumailov, Kassem Fawaz, Nicolas PapernotNeurIPS 2022 · 35 citations
  4. Enhancing Adversarial Robustness in SNNs with Sparse GradientsYujia Liu, Tong Bu, Jianhao Ding, Zecheng Hao et al.ICML 2024 · 17 citations
  5. Adversarial Defense via Learning to Generate Diverse AttacksYunseok Jang, Tianchen Zhao, Seunghoon Hong, Honglak LeeICCV 2019 · 88 citations
Dusk over the sea between two cliffs drawn in fine vertical lines