[Paper Review] Adv-BNN: Improved Adversarial Defense through Robust Bayesian Neural Network
Adv-BNN combines adversarial training with Bayesian neural networks by making weights stochastic and optimizing a robust ELBO, achieving improved robustness against strong white-box PGD attacks across CIFAR-10, STL-10, and ImageNet-143 subsets.
We present a new algorithm to train a robust neural network against adversarial attacks. Our algorithm is motivated by the following two ideas. First, although recent work has demonstrated that fusing randomness can improve the robustness of neural networks (Liu 2017), we noticed that adding noise blindly to all the layers is not the optimal way to incorporate randomness. Instead, we model randomness under the framework of Bayesian Neural Network (BNN) to formally learn the posterior distribution of models in a scalable way. Second, we formulate the mini-max problem in BNN to learn the best model distribution under adversarial attacks, leading to an adversarial-trained Bayesian neural net. Experiment results demonstrate that the proposed algorithm achieves state-of-the-art performance under strong attacks. On CIFAR-10 with VGG network, our model leads to 14\% accuracy improvement compared with adversarial training (Madry 2017) and random self-ensemble (Liu 2017) under PGD attack with $0.035$ distortion, and the gap becomes even larger on a subset of ImageNet.
Motivation & Objective
- Motivate robust neural networks by integrating randomness with adversarial training.
- Formulate a mini-max robust optimization within a Bayesian neural network (BNN) framework.
- Develop a scalable training procedure using Bayes by Backprop and a variational posterior over weights.
- Demonstrate improved robustness against strong white-box adversarial attacks on multiple datasets.
Proposed method
- Model all network weights as stochastic with a fully factorized Gaussian posterior q(w|μ, s).
- Use a Gaussian prior p(w) to obtain closed-form KL divergence for regularization.
- Define a robust objective by maximizing over adversarially perturbed inputs within a γ-norm ball: min_adv_x ∥x_adv - x∥≤γ E_{w~q}[log p(y|x_adv, w)].
- Approximate the objective with Bayes by Backprop and reparameterization w = μ + exp(s) ⊙ ε to obtain unbiased gradient estimates.
- Train by alternating between generating adversarial examples via projected gradient descent (PGD) and SGD updates to (μ, s).
- Add a simplifying scale factor α to the KL term to balance regularization for different dataset sizes or model scales.
Experimental results
Research questions
- RQ1Does combining adversarial training with a Bayesian neural network improve robustness beyond adversarial training or stochastic defenses individually?
- RQ2How does Adv-BNN perform under strong white-box PGD attacks across different datasets and model scales?
- RQ3What is the impact of weight-based randomness on robustness and prediction performance in practice?
Key findings
- Adv-BNN achieves improved robustness over adversarial training and Random Self-Ensemble (RSE) across several datasets.
- Under PGD attacks, Adv-BNN shows higher test accuracy than adversarial training on CIFAR-10, STL-10, and ImageNet-143 for comparable distortion levels.
- The robustness gain is substantial (e.g., on CIFAR-10 with PGD at 0.035 distortion, Adv-BNN outperforms standard adversarial training by a meaningful margin).
- Using weight uncertainty provides a larger robustness boost when combined with adversarial training than when used alone (BNN without adversarial training shows no robustness gain).
- The method requires roughly double the parameter storage (mean and variance) with modest training-time overhead, and simple to adapt to existing architectures by replacing layers with their variational equivalents.
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.