[Paper Review] Bayesian Inference with Certifiable Adversarial Robustness
This paper introduces a Bayesian framework for training deep neural networks with certifiable adversarial robustness by modifying the likelihood function to account for worst-case perturbations within epsilon-balls around inputs. Using interval bound propagation (IBP), it computes certified lower bounds on robust likelihood, enabling the first training of certifiably robust Bayesian neural networks on MNIST, FashionMNIST, and CIFAR-10, with up to 75% certified robust accuracy on MNIST and improved uncertainty calibration.
We consider adversarial training of deep neural networks through the lens of Bayesian learning, and present a principled framework for adversarial training of Bayesian Neural Networks (BNNs) with certifiable guarantees. We rely on techniques from constraint relaxation of non-convex optimisation problems and modify the standard cross-entropy error model to enforce posterior robustness to worst-case perturbations in $ε$-balls around input points. We illustrate how the resulting framework can be combined with methods commonly employed for approximate inference of BNNs. In an empirical investigation, we demonstrate that the presented approach enables training of certifiably robust models on MNIST, FashionMNIST and CIFAR-10 and can also be beneficial for uncertainty calibration. Our method is the first to directly train certifiable BNNs, thus facilitating their deployment in safety-critical applications.
Motivation & Objective
- To address the lack of principled Bayesian methods for training BNNs with certifiable robustness against adversarial attacks.
- To develop a robust likelihood model that enforces posterior robustness to worst-case perturbations in epsilon-balls around inputs.
- To integrate this robust likelihood with existing approximate inference techniques for BNNs, such as Bayes-by-Backprop and SWAG.
- To empirically validate that the method enables non-trivial certified robustness and improves uncertainty calibration on standard benchmarks.
- To demonstrate that robust training pushes the BNN posterior toward more robust regions of the parameter space.
Proposed method
- Propose a robust likelihood function by marginalizing network outputs over a user-defined probability density over epsilon-balls, generalizing standard cross-entropy to adversarial robustness.
- Use constraint relaxation and interval bound propagation (IBP) to compute certified lower bounds on the robust likelihood for any epsilon > 0.
- Modify the likelihood model in a differentiable way to allow integration with standard approximate inference methods like HMC, BBB, SWAG, NoisyAdam, and VOGN.
- Train BNNs using the robust likelihood, enabling posterior inference that is inherently robust to adversarial perturbations.
- Apply IBP to compute certified robustness bounds during training and evaluation, ensuring formal guarantees on robust accuracy.
- Evaluate the method on MNIST, FashionMNIST, and CIFAR-10 using standard metrics including certified robust accuracy and predictive entropy for uncertainty calibration.
Experimental results
Research questions
- RQ1Can a principled Bayesian framework be developed to train BNNs with certifiable adversarial robustness?
- RQ2How can the standard cross-entropy likelihood be extended to enforce robustness to worst-case perturbations in epsilon-balls?
- RQ3Can interval bound propagation (IBP) be used to compute certified lower bounds on the robust likelihood for approximate inference in BNNs?
- RQ4Does training BNNs with the robust likelihood improve uncertainty calibration on out-of-distribution data?
- RQ5What is the impact of robust training on the maximum safe radius (i.e., robustness) across different epsilon values?
Key findings
- The proposed method achieves up to 75% certified robust accuracy on MNIST for ε=0.1, demonstrating the first non-trivial certified robustness in BNNs.
- On FashionMNIST, the method achieves up to 73% certified robust accuracy for ε=0.1, showing strong generalization across datasets.
- On CIFAR-10, the method achieves up to 50% certified robust accuracy for ε=1/255, comparable to state-of-the-art deterministic models.
- The maximum certified safe radius for BNNs trained with the robust likelihood is approximately double that of models trained with the standard likelihood.
- Robust training significantly improves uncertainty calibration, increasing entropy on out-of-distribution samples like FashionMNIST (for MNIST-trained models) and SVHN (for CIFAR-10-trained models).
- On CIFAR-10, standard BNNs are more confident on out-of-distribution data than on in-distribution data, but robust training reverses this trend, indicating better-calibrated uncertainty.
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.