Manuscript Offprint

arXiv:2609.39798

Probabilistic Adversarial Training

Andi Zhang, Xingyu Zhao, Siddartha Khastgir

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Building on a probabilistic perspective in which adversarial examples arise from the overlap between a distance-based distribution pdisp_{dis} and a victim-classifier-induced distribution pvicp_{vic}, we start from a simple intuition: adversarial examples become harder to generate when these two distributions are pushed apart, as their overlap becomes smaller, thereby increasing robustness. This intuition naturally motivates a KL-based robustness objective. We then prove that KL(pdis∥pvic)−log⁡Zvic\text{KL}(p_{\text{dis}} \| p_{\text{vic}}) - \log Z_{\text{vic}} is a lower bound on probabilistic robustness (PR), where ZvicZ_{\text{vic}} denotes the normalizing constant of pvicp_{\text{vic}}. Since PR is generally intractable to compute directly, maximizing this KL-based lower bound provides a tractable surrogate objective for improving PR. We further show that this objective recovers a scaled form of adversarial training, offering a probabilistic interpretation of adversarial training and a principled route to robustness improvement. We call the resulting method probabilistic adversarial training. Experiments show that it consistently improves PR, and ablation studies demonstrate that the induced scaling factor can even enhance the PR of non-probabilistic adversarial training methods.

1 INTRODUCTION

Adversarial robustness refers to a model's ability to maintain correct predictions when its inputs are subjected to small perturbations. This property is important in the era of deep learning, as a substantial body of work (Goodfellow et al., 2015; Kurakin et al., 2017; Madry et al., 2018; Moosavi-Dezfooli et al., 2016; 2017; Papernot et al., 2016; Szegedy et al., 2014) has shown that deep neural networks can be highly vulnerable to adversarial perturbations.

To better understand and evaluate this vulnerability, Zhang et al. (2024a) proposed probabilistic adversarial attack. By applying Langevin Dynamics, they demonstrated that adversarial examples can be viewed as samples drawn from an adversarial distribution. This distribution is essentially the product of a “victim” distribution pvicp_{vic} that encourages misclassification, and a “distance” distribution pdisp_{dis} that constrains the perturbation magnitude.

However, their framework is strictly confined to targeted attacks and focuses exclusively on the generation of adversarial examples, leaving a systematic approach to model defense unexplored. On the other side, to formally quantify model security, Webb et al. (2018) introduced the concept of probabilistic robustness (PR), defined as the probability that a classifier successfully resists perturbations sampled from a specific distribution.

In this work, we unify the probabilistic attack perspective (Zhang et al., 2024a) with the probabilistic robustness framework (Webb et al., 2018). We theoretically prove that KL(pdis∥pvic)−log⁡Zvic\text{KL}(p_{\text{dis}} \| p_{\text{vic}}) - \log Z_{\text{vic}} is a lower bound on probabilistic robustness, where ZvicZ_{\text{vic}} denotes the normalizing constant of pvicp_{\text{vic}}. Since computing and optimizing PR directly is generally intractable, maximizing this KL-based lower bound provides a tractable surrogate objective to effectively enhance PR.

This theoretical result aligns with a simple yet profound intuition. In essence, adversarial examples naturally arise from the overlap between the distance distribution pdisp_{\text{dis}} (which confines the perturbation to be close to the original image) and the victim distribution pvicp_{\text{vic}} (which actively drives the model toward misclassification). By maximizing the KL divergence KL(pdis∥pvic)\text{KL}(p_{\text{dis}} \| p_{\text{vic}}), we are pushing

∗^{*}Corresponding Author.

these two distributions apart. As their overlap shrinks, it becomes inherently more difficult for an attacker to sample an adversarial example that simultaneously satisfies the distance constraint and triggers a misclassification.

We further show that maximizing this lower bound essentially recovers a scaled form of adversarial training. This provides a probabilistic interpretation of adversarial training itself, and provides a principled route to robustness improvement, which we term Probabilistic Adversarial Training (PAT). Empirically, PAT consistently improves probabilistic robustness. Moreover, our ablation studies reveal an intriguing byproduct: the theoretical scaling factor derived from our framework can plug into and enhance traditional, non-probabilistic defense methods, such as PGD-based adversarial training.

To summarize, our main contributions are as follows:

• We formalize the untargeted version of probabilistic adversarial attacks. (Section 3)

• We prove that KL(pdis∥pvic)−log⁡Zvic\mathrm{KL}(p_{\mathrm{dis}}\|p_{\mathrm{vic}}) - \log Z_{\mathrm{vic}} is a lower bound on probabilistic robustness (PR). (Section 4)

• By maximizing this KL-based lower bound, we propose Probabilistic Adversarial Training (PAT), which is theoretically guaranteed to improve PR. Moreover, its importance sampling formulation makes the estimation of the bound tractable (Section 5).

• We empirically demonstrate that PAT consistently improves PR, and its derived scaling factor can even enhance non-probabilistic methods like PGD-based adversarial training. (Section 6)

References (42)