Vulnerability-Aware Instance Reweighting For Adversarial Training

Olukorede Fakorede, Ashutosh Kumar Nirala, Modeste Atsague, Jin Tian · DOI

TL;DR

This paper introduces a novel "Vulnerability-Aware Instance Reweighting" (VIR) method for adversarial training (AT) of deep learning models. By dynamically assigning weights to training examples based on their inherent vulnerability and the impact of adversarial attacks, VIR significantly boosts model robustness against strong white-box and black-box attacks, outperforming existing reweighting techniques.

What Problem Does This Paper Address?

Deep learning models are notoriously brittle, easily fooled by adversarial examples – subtly modified inputs that cause misclassification. Adversarial Training (AT) is a leading defense, making models more robust by including these adversarial examples during training. However, standard AT treats all training examples equally. Recent research shows this is suboptimal, as AT can disproportionately harm examples from classes that are inherently harder to classify, leading to unfairness and reduced overall robustness. Existing reweighting methods attempt to address this by assigning different importance to training examples, but they often struggle against stronger, more sophisticated adversarial attacks. This paper tackles the challenge of creating a more effective and fair reweighting strategy that specifically targets the vulnerability of individual examples and the information lost due to adversarial perturbations.

Methods

The core contribution is a new Vulnerability-Aware Instance Reweighting (VIR) function. VIR combines two key ideas:

  1. Vulnerability of Natural Examples ($S_v$): This component measures how "vulnerable" a natural example is by looking at the model's confidence in predicting its true label. Lower confidence (i.e., the model is less sure about the correct class) indicates higher vulnerability.
  2. Discrepancy between Natural and Adversarial Examples ($S_d$): This component quantifies the information loss or change in the model's prediction when an adversarial perturbation is applied. It's measured using the KL-divergence between the model's output for the natural example and its adversarial counterpart.

The final weight for an example is a combination of these two scores ($w = S_v \cdot S_d + \beta$), where $\beta$ is a hyperparameter to balance the weights. This approach aims to give more importance to examples that are both intrinsically vulnerable and significantly affected by adversarial attacks. The VIR function is then integrated into existing AT frameworks like vanilla AT and TRADES, modifying their loss functions. A "burn-in" period is also employed, where the reweighting is only applied after the initial training epochs to allow the model to learn basic features.

Datasets

The paper uses standard image classification datasets for training and evaluation:

  • CIFAR-10
  • CIFAR-100
  • SVHN (Street View House Numbers)
  • TinyImageNet

Key Insights and Ideas

  • Vulnerability is not uniform: AT's effectiveness and fairness are heavily influenced by the inherent difficulty of classifying certain natural examples.
  • Information loss matters: The degree to which an adversarial attack alters a model's prediction for an example is a crucial indicator of its vulnerability.
  • Combining vulnerability and impact: The most effective reweighting strategy considers both the intrinsic "easiness" of classifying an example naturally and how much an adversarial attack disrupts its classification.
  • Limitations of existing methods: Prior reweighting schemes like GAIRAT and MAIL, while improving on basic AT, falter against stronger attacks because they might over-diminish the influence of less vulnerable examples or are path-dependent.

Key Results

  • Significant Robustness Improvement: VIR-AT and VIR-TRADES consistently outperform baseline AT methods (vanilla AT, TRADES, MART) and existing reweighting methods (GAIRAT, MAIL-AT) across various white-box and black-box attacks.
  • Stronger Attack Performance: The proposed method shows particular strength against more challenging attacks like CW, FMN, Autoattack, Square, and SPSA, where other methods tend to degrade. For instance, on CIFAR-10 with WRN-34-10, VIR-AT significantly outperforms MAIL-AT and GAIRAT against FMN-100, CW, and Autoattack.
  • Improved Class-wise Accuracy: Confusion matrices show that VIR-AT and VIR-TRADES lead to better class-wise accuracies, especially for harder-to-classify classes, indicating improved fairness.
  • Ablation Studies: The results confirm that combining both vulnerability and discrepancy measures ($S_v$ and $S_d$) is crucial for achieving the best robustness, outperforming methods that use only one component.

Limitations and Future Work

  • Hyperparameter Tuning: The performance of VIR is sensitive to hyperparameters ($\alpha, \gamma, \beta$), which are determined heuristically. The paper provides ablation studies showing their impact but suggests further investigation into optimal tuning strategies.
  • Computational Cost: While not explicitly detailed as a limitation, adversarial training itself is computationally expensive. The reweighting mechanism adds a slight overhead, though the paper doesn't quantify it.
  • Future Work: The authors suggest exploring the impact of their method on other domains and architectures, as well as investigating more advanced reweighting strategies. The paper also hints at the potential for VIR to improve robustness without sacrificing accuracy on clean data, which could be a direction for future research.

Summary updated

BibTeX
@article{fakorede2023vulnerability,
  author = {Olukorede Fakorede and Ashutosh Kumar Nirala and Modeste Atsague and Jin Tian},
  title = {{Vulnerability-Aware Instance Reweighting For Adversarial Training}},
  journal = {Accepted by TMLR},
  year = {2023},
  doi = {10.48550/arxiv.2307.07167},
}
Figure