Abstract
Adversarial Training (AT) is a cornerstone for improving the robustness of Deep Neural Networks (DNNs) against adversarial attacks. Traditionally, AT utilizes a fixed perturbation bound ($\epsilon$) for all training instances. However, individual natural examples exhibit varying degrees of intrinsic vulnerability. This paper argues that a uniform perturbation radius fails to fully exploit the potential of AT. We propose two computationally efficient, vulnerability-aware reweighting functions—Margin-Weighted Perturbation Budget (MWPB) and Standard-Deviation-Weighted Perturbation Budget (SDWPB)—to adaptively assign perturbation bounds. By tailoring the attack budget to the robustness of individual samples, these methods significantly enhance the defensive capabilities of DNNs. Experimental results across multiple benchmarks demonstrate that our approach yields genuine improvements in robustness against sophisticated attacks without increasing computational overhead.
Introduction
Deep Neural Networks (DNNs) have achieved remarkable success in various domains but remain susceptible to adversarial examples—inputs intentionally perturbed to deceive the model. Adversarial Training (AT) addresses this by incorporating these examples into the training process. The standard approach involves crafting adversarial examples within a pre-defined, fixed perturbation budget $\epsilon$.
This "one-size-fits-all" strategy ignores the inherent diversity in data. Some samples are naturally robust, residing far from the decision boundary, while others are highly vulnerable. Applying a small, fixed $\epsilon$ to robust samples may fail to provide sufficient challenge for the model to learn complex features. Conversely, applying a large $\epsilon$ to vulnerable samples can lead to training instability. This paper introduces a dynamic approach to perturbation budgeting that respects the unique vulnerability profile of each data point.
Methodology
Vulnerability-Aware Budgeting
We propose two primary functions to calculate a custom perturbation budget $\epsilon_i$ for each sample $x_i$:
- Margin-Weighted Perturbation Budget (MWPB): This method utilizes the logit margin, defined as the difference between the model's confidence in the ground-truth label and its confidence in the most likely incorrect class. A larger margin indicates a more robust sample, which is then assigned a larger perturbation budget to further challenge the model.
- Standard-Deviation-Weighted Perturbation Budget (SDWPB): This function employs a modified standard deviation of the model's output probabilities. It measures the dispersion of predictions relative to the true class. A high standard deviation suggests model confusion and high sample vulnerability, resulting in a reduced perturbation budget to maintain training stability.
Two-Phase Training Strategy
To ensure stable convergence, we implement a two-phase training schedule. The model undergoes a "warm-up" phase (typically the first 80 epochs) using a standard fixed perturbation budget. This allows the model to establish a baseline understanding of the data distribution. Following the warm-up, the training transitions to the adaptive phase, where MWPB or SDWPB dynamically adjusts the budgets.
Experimental Evaluation
Setup
We evaluated the proposed methods on three benchmark datasets: CIFAR-10, SVHN, and Tiny ImageNet. We utilized standard architectures, including ResNet-18 and WideResNet-34-10, to ensure the findings are broadly applicable. Robustness was tested against a suite of attacks, including Projected Gradient Descent (PGD), Carlini & Wagner (CW), and the AutoAttack ensemble.
Key Results
The experimental results demonstrate that vulnerability-aware budgeting consistently outperforms standard AT across all benchmarks:
- CIFAR-10 Performance: On WideResNet-34-10, MWPB-AT achieved a robust accuracy of 54.16% against AutoAttack, compared to 51.92% for standard AT. When combined with Adversarial Weight Perturbation (AWP), the robust accuracy reached 56.22%.
- Tiny ImageNet Improvements: SDWPB-AT provided a gain of approximately 2.5% in robust accuracy over the baseline, demonstrating scalability to more complex datasets.
- Black-Box Robustness: The models showed enhanced resistance to black-box attacks like Square and SPSA, suggesting that the learned features are fundamentally more resilient rather than just overfitted to specific gradient-based attacks.
Discussion and Insights
The "Push" Hypothesis
A central insight of this work is that robust samples benefit from a stronger "push." By increasing the perturbation budget for samples the model already classifies correctly with high confidence, we force the network to rely on more stable, invariant features. This improves the overall decision boundary geometry.
Computational Efficiency
Unlike previous adaptive methods that require iterative optimization to find the optimal radius for each point (e.g., MMA), MWPB and SDWPB are simple mathematical functions. They add negligible computational cost to the training pipeline, making them highly practical for large-scale applications.
Limitations
Despite the improvements, two challenges remain. First, the methods introduce a hyperparameter $\alpha$ to control the scaling of the budget, which currently requires manual tuning. Second, like most AT variants, there is a slight trade-off between robust accuracy and natural (clean) accuracy. While the warm-up phase mitigates this, the "robustness tax" is still present.
Conclusion
Tailoring the adversarial perturbation budget to the vulnerability of individual samples is a powerful and efficient way to improve DNN robustness. By moving away from fixed budgets, MWPB and SDWPB allow for a more nuanced training process that challenges the model where it is strongest and protects it where it is weakest. Future work will explore automated hyperparameter tuning and the application of these principles to non-vision domains such as Natural Language Processing.
Summary updated