Abstract: We initiate the study of a new notion of adversarial loss which we call distributional adversarial loss (DAL). In this framework, we assume that for each original example, the allowed adversarial perturbation set is a family of distributions, and the adversarial loss over each example is the maximum loss over all associated distributions. The goal is to minimize the overall adversarial loss. We establish sample complexity bounds in the PAC-learning setting for DAL, contrasting prior work that considers sets of points rather than distributions as the perturbation set. As an application, we unify randomized smoothing and robust learning in the PAC-learning setting. Furthermore, we investigate the role of randomness in achieving robustness, introducing a general derandomization technique that preserves robustness while improving empirical performance.
Introduction
In traditional robust machine learning, an adversary is typically modeled as shifting an input $x$ to a nearby point $x'$ within a small perturbation set, such as an $\ell_p$ ball. While this paradigm has been successful for deterministic models, many modern defenses rely on randomized smoothing, where noise is added to the input to mitigate adversarial influence. However, a theoretical gap has persisted: there has been no unified way to analyze the sample complexity of randomized smoothing within the standard PAC-learning framework. Additionally, the non-deterministic nature of randomized classifiers poses practical challenges in high-stakes environments like healthcare or autonomous driving.
The Distributional Adversarial Loss (DAL) Framework
To address these gaps, we propose the Distributional Adversarial Loss (DAL). Instead of the adversary selecting a single point, they select a distribution $u$ from a predefined set $\mathcal{U}(x)$. The loss is defined as the maximum expected error over these distributions.
Key Methodological Contributions
- Two-Layer Sampling: We developed a learning algorithm that samples clean data and subsequently samples multiple perturbations from the associated distributions to train robust models.
- VC-Dimension Bounds: We prove that if a hypothesis class has a finite VC-dimension, it is PAC-learnable under the DAL framework. This provides the first rigorous sample complexity bounds for randomized smoothing methods.
- General Derandomization: We introduce a technique to transform a randomized classifier into a deterministic one by taking a majority vote over a fixed, pre-sampled set of random "seeds." We prove that this process preserves the original robustness guarantees.
Experimental Evaluation
We evaluated the DAL framework and our derandomization technique using the CIFAR-10 dataset. We applied our method to the "Random Projection Filters" (RPF) framework, comparing our deterministic version against the randomized benchmark established by Dong and Xu (2023).
As shown in the results, our derandomized model consistently outperformed the benchmark across multiple metrics, including Natural Accuracy, PGD Accuracy, FGSM Accuracy, and Auto Attack. Notably, our model achieved these superior results using only 11 fixed models in a majority vote, whereas the benchmark required 30 trials of fresh randomness.
Insights and Future Work
The core insight of this work is that an infinite set of adversarial points can often be "covered" by a small, finite set of representative distributions. This reduction allows for the application of classical learning theory to complex randomized defenses. Furthermore, our results suggest that randomness can be treated as a fixed resource; by fixing random seeds before training, the model learns to utilize specific random features more effectively.
While the derandomized model is more robust and stable, it does increase computational cost at inference time due to the majority vote. Future research will explore the exact mechanisms of how models learn better features from fixed random projections and seek to scale this framework to larger datasets like ImageNet.
Summary updated