[Paper Review] Evaluating the Robustness of Bayesian Neural Networks Against Different Types of Attacks
This paper evaluates the robustness of Bayesian neural networks (BNNs) against diverse adversarial attacks and input perturbations on safety-critical image classification tasks. It demonstrates that BNNs achieve significantly higher accuracy than deterministic CNNs under constrained white-box adversarial attacks—especially PGD—without adversarial training, and that stochasticity in the classifier alone provides strong robustness gains, suggesting a lightweight yet effective defense strategy for real-world deployment.
To evaluate the robustness gain of Bayesian neural networks on image classification tasks, we perform input perturbations, and adversarial attacks to the state-of-the-art Bayesian neural networks, with a benchmark CNN model as reference. The attacks are selected to simulate signal interference and cyberattacks towards CNN-based machine learning systems. The result shows that a Bayesian neural network achieves significantly higher robustness against adversarial attacks generated against a deterministic neural network model, without adversarial training. The Bayesian posterior can act as the safety precursor of ongoing malicious activities. Furthermore, we show that the stochastic classifier after the deterministic CNN extractor has sufficient robustness enhancement rather than a stochastic feature extractor before the stochastic classifier. This advises on utilizing stochastic layers in building decision-making pipelines within a safety-critical domain.
Motivation & Objective
- To assess the robustness of Bayesian neural networks (BNNs) against various input perturbations and adversarial attacks in safety-critical applications.
- To compare the performance of different Bayesian inference methods—Bayes By Backprop (BBB), Variational Inference (VI), Flipout—on image classification tasks.
- To determine whether stochasticity in the classifier layer alone is sufficient for robustness enhancement, as opposed to stochasticity in feature extractors.
- To evaluate the effectiveness of BNNs under both white-box and black-box adversarial attacks without adversarial training.
- To investigate the potential of BNN posterior distributions as early indicators of malicious activity in deployed systems.
Proposed method
- Employs Bayesian neural networks with weight distributions using variational inference and reparameterization techniques (e.g., Flipout, local reparameterization).
- Applies multiple Bayesian inference methods: Bayes By Backprop (BBB), Variational Inference (VI), and Flipout approximation for posterior estimation.
- Evaluates robustness using 6 input perturbation types (Gaussian, Poisson, S&P, RE, RE Colorful, Speckle) and 5 white-box attacks (e.g., PGD, MIM, SPSA) with $L_\infty$ threat models.
- Conducts black-box attacks using transfer-based methods (e.g., SPSA, MIM) to assess generalization of robustness across models.
- Uses two real-world safety-critical datasets: GTSRB (German Traffic Sign Recognition) and PlanesNet (satellite imagery of aircraft).
- Measures robustness via test accuracy under perturbations and adversarial attacks, and compares training time across BNN variants.
Experimental results
Research questions
- RQ1How do different Bayesian inference methods (BBB, VI, Flipout) compare in robustness against input perturbations and adversarial attacks?
- RQ2Does stochasticity in the classifier layer alone provide sufficient robustness enhancement compared to stochasticity in the feature extractor?
- RQ3Can Bayesian neural networks achieve significant robustness gains against constrained white-box adversarial attacks without adversarial training?
- RQ4How do black-box adversarial attacks perform against BNNs, and does robustness vary across different attack types (e.g., SPSA vs. MIM)?
- RQ5Can the Bayesian posterior distribution serve as a safety precursor to detect ongoing adversarial activities in deployed systems?
Key findings
- F-BNN with Flipout inference achieved 97.17% test accuracy on clean GTSRB inputs, outperforming the deterministic CNN baseline (96.28%) and other BNN variants.
- Under PGD attacks with $\varepsilon = 0.10$, F-BNN maintained 80.0% accuracy on GTSRB, significantly higher than the deterministic CNN’s drop to ~60% under similar conditions.
- Stochasticity in the classifier layer alone (BNN) achieved comparable robustness to full-network stochasticity (F-BNN), with minimal increase in training time.
- BNNs showed limited robustness gains against common input perturbations (e.g., Gaussian, Poisson noise), as deterministic CNNs already demonstrated strong denoising capabilities.
- SPSA attacks with $\varepsilon = 0.10$ on GTSRB generated large, human-visible perturbations and failed on all models, indicating that unconstrained attacks overwhelm even BNNs.
- The Bayesian posterior distribution in BNNs showed potential as a safety precursor for detecting adversarial samples, suggesting utility in cybersecurity monitoring of ML systems.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.