Are Adversarial Examples Created Equal? A Learnable Weighted Minimax Risk for Robustness under Non-uniform Attacks

Huimin Zeng, Chen Zhu, Tom Goldstein, Furong Huang

Abstract

Standard adversarial training (AT) typically assumes that attackers target all data points with equal frequency. However, real-world attackers are often strategic, focusing their efforts on the most vulnerable examples—the "low-hanging fruit." This paper introduces a learnable weighted minimax risk framework that adaptively prioritizes training on these high-risk points. By employing an exponential weight kernel based on the classification margin, the proposed method significantly enhances model robustness against sophisticated, non-uniform attacks while maintaining or improving performance on standard uniform benchmarks.

Introduction

Deep neural networks (DNNs) are notoriously fragile when faced with adversarial examples—inputs specifically crafted to trick a model into making a mistake. The gold standard for defense is Adversarial Training (AT), which involves generating adversarial examples during training and including them in the dataset.

However, traditional AT operates under a uniform attack assumption, treating every sample as equally likely to be targeted. This paper argues that this assumption is flawed; strategic attackers will naturally concentrate their "attack budget" on samples near the decision boundary. We address this gap by proposing a weighted minimax risk that accounts for non-uniform attack distributions likely to occur in real-world scenarios.

Methodology

The core of our approach is the transition from unweighted empirical risk to a Weighted Minimax Risk. We define the vulnerability of a data point through its "margin"—the difference between the probability assigned to the correct label and the maximum probability assigned to any incorrect label.

Illustration of classification margins: points closer to the decision boundary have smaller positive margins, while misclassified points have negative margins.

We introduce an adaptive re-weighting mechanism using an exponential kernel: $c_i = e^{-\alpha \cdot \text{margin}}$. This ensures that:

  • If the margin is large (the point is robust), the weight $c_i$ is small.
  • If the margin is small or negative (the point is vulnerable), the weight $c_i$ is large.

This forces the neural network to "pay more attention" to the examples that an intelligent attacker is most likely to exploit. To evaluate this approach, we introduce two new metrics: Accuracy under Sampled Attack ($A_{sa}$) and Accuracy under Transferred/Weighted Attack ($A_{tr}$), which better reflect performance against non-uniform adversaries.

Key Results

We evaluated our method on MNIST, CIFAR-10, and Tiny ImageNet. Our results indicate that standard defenses like TRADES are significantly more fragile under non-uniform attacks than previously recognized. For instance, on CIFAR-10, the robust accuracy of a TRADES-trained ResNet18 drops from 53.38% under uniform attack to just 19.78% under a sampled non-uniform attack ($A_{sa}$ at $\alpha_{test}=2.0$).

Experimental results on CIFAR-10 comparing standard PGD and TRADES defenses against our proposed weighted approach across various attack strengths.

As shown in the table above, our weighted training consistently improves robustness across all metrics. Notably, it boosts $A_{sa}$ from 19.78% to 23.62% for TRADES on CIFAR-10. Furthermore, our method maintains or slightly improves standard robust accuracy ($A_{rob}$), achieving 54.10% compared to the baseline's 53.38%. This proves that focusing on "hard" examples does not compromise general performance.

Conclusion

By recognizing that adversarial examples are not created equal, we can develop more effective defenses. Our learnable weighted minimax risk provides a principled way to simulate and defend against strategic, non-uniform attackers. This approach offers a significant step toward building truly robust deep learning systems for real-world deployment where attackers are likely to adapt to a model's specific weaknesses.

Summary updated

BibTeX
@inproceedings{zeng2021are,
  author = {Huimin Zeng and Chen Zhu and Tom Goldstein and Furong Huang},
  title = {{Are Adversarial Examples Created Equal? A Learnable Weighted Minimax Risk for Robustness under Non-uniform Attacks}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i12.17292},
}
Figure