The vulnerability of machine learning models to adversarial attacks remains a critical societal security challenge. Yet the defense of Bayesian predictive models has received little attention, even though their attack surface is wider: an adversary may corrupt not only their predictions but also the uncertainty they quantify. Moreover, traditional defenses, such as adversarial training, typically robustify models by minimizing a worst-case loss. These deterministic approaches do not account for uncertainty in the adversary's attack. While stochastic defenses placing a probability distribution on the adversary exist, they often lack statistical rigor and fail to make explicit their underlying assumptions. Our aim is thus twofold: to protect Bayesian predictive models, and to do it in a Bayesian way, explicitly modeling uncertainty about the attacker. To this end, we introduce a formal Bayesian framework for adversarial robustness that captures adversarial uncertainty through a stochastic channel and makes every probabilistic assumption explicit. This yields two robustification strategies that protect the entire posterior predictive distribution: a proactive defense enacted during training, aligned with adversarial training, and a reactive defense enacted during operations, aligned with adversarial purification. Several state-of-the-art defenses can be recovered as limiting cases of the proposed framework. Consistent with this wider attack surface, our experiments assess both accuracy and the quality of predictive uncertainty under attack, and showcase the benefits of explicitly modeling adversarial uncertainty.
翻译:暂无翻译