Abstract
This paper proposes an attack-independent (non-adversarial training) technique for improving adversarial robustness of neural network models, with minimal loss of standard accuracy. We suggest creating a neighborhood around each training example, such that the label is kept constant for all inputs within that neighborhood. Unlike previous work that follows a similar principle, we apply this idea by extending the training set with multiple perturbations for each training example, drawn from within the neighborhood. These perturbations are model independent, and remain constant throughout the entire training process. We analyzed our method empirically on MNIST, SVHN, and CIFAR-10, under different attacks and conditions. Results suggest that the proposed approach improves standard accuracy over other defenses while having increased robustness compared to vanilla adversarial training.
Introduction
Deep neural networks are notoriously brittle. A tiny, human-imperceptible change to an image—an adversarial perturbation—can trick a world-class model into misclassifying a "stop sign" as a "speed limit" sign. To mitigate this, the current gold standard is adversarial training, where a model is trained on custom-made "worst-case" attacks generated at every training step. However, this approach suffers from high computational costs and a significant "accuracy tax," where robustness comes at the expense of performance on clean images.
This research explores whether robustness can be achieved without the massive compute bill or the heavy accuracy trade-off by using a simpler, attack-independent augmentation strategy.
Methodology: Constant Random Perturbations
The proposed technique, Constant Random Perturbations, treats each training example as the center of a small "neighborhood" (an $\epsilon$-ball) where the label remains invariant. The method follows a specific four-step recipe:
- Sample Once: At the start of training, $K$ random perturbations are sampled for each training image from a defined distribution (e.g., uniform within an $\epsilon$-bound).
- Freeze Perturbations: These perturbations remain constant throughout the entire training process.
- Augment: The training set is expanded by adding these $K$ perturbed versions of every original image.
- Standard Training: The model is trained using standard optimization on this larger, static dataset.
Crucially, this method is attack-independent; the model never encounters a generated adversarial attack during its training phase. The authors hypothesize that keeping perturbations constant, rather than re-sampling them every epoch, allows the model to more effectively "flatten" the loss landscape around each data point.
Experimental Results
The method was evaluated on standard benchmarks: MNIST, SVHN, and CIFAR-10, against various attacks including FGSM and iterative PGD attacks.
Performance Comparison
On CIFAR-10, the proposed method achieved a clean accuracy of 91.77%, significantly outperforming the ~87.3% clean accuracy typically seen with standard adversarial training (Madry et al.). Despite the lack of adversarial examples during training, the model maintained a robustness of 51.92% against a 100-iteration PGD attack.
Robustness Trends
A key finding is that robustness scales with the number of perturbations ($K$). For instance, on the SVHN dataset, increasing the number of perturbations per image from 1 to 20 improved PGD robustness from approximately 21% to over 80%. Furthermore, the models demonstrated consistent performance across varying perturbation magnitudes (epsilons), often maintaining higher accuracy at larger epsilons compared to traditional adversarial training methods.
Key Insights
- Static vs. Dynamic Noise: Keeping perturbations constant works better than dynamic re-sampling. Variable noise can introduce excessive variance in the loss function, hindering convergence. Constant noise allows the model to learn the "volume" around an image more effectively.
- Efficiency: Because perturbations are pre-calculated, the per-epoch computational cost is equivalent to standard training on an enlarged dataset, avoiding the expensive backpropagation required for online adversarial example generation.
- Black-Box Transferability: The models showed consistent performance even when subjected to black-box attacks (adversarial examples generated from other models), indicating they do not merely overfit to specific noise patterns.
Limitations and Future Work
While effective, the method increases the total training time and memory requirements proportionally to the factor $K$. Additionally, the authors noted that performance can vary based on the specific random set of perturbations drawn, necessitating multiple training runs to find the optimal model. Future research could investigate more principled ways to select these constant perturbations and evaluate the method's scalability to larger datasets like ImageNet.
Summary updated