[Paper Review] Local Reweighting for Adversarial Training
This paper proposes Local Reweighting for Adversarial Training (LRAT), a method that performs instance-specific reweighting within adversarial pairs rather than global reweighting across the dataset. By locally adjusting loss weights based on attack-specific vulnerability, LRAT maintains robustness against unseen attacks, outperforming both standard adversarial training and instance-reweighted methods like GAIRAT on PGD, CW, and AutoAttack benchmarks.
Instances-reweighted adversarial training (IRAT) can significantly boost the robustness of trained models, where data being less/more vulnerable to the given attack are assigned smaller/larger weights during training. However, when tested on attacks different from the given attack simulated in training, the robustness may drop significantly (e.g., even worse than no reweighting). In this paper, we study this problem and propose our solution--locally reweighted adversarial training (LRAT). The rationale behind IRAT is that we do not need to pay much attention to an instance that is already safe under the attack. We argue that the safeness should be attack-dependent, so that for the same instance, its weight can change given different attacks based on the same model. Thus, if the attack simulated in training is mis-specified, the weights of IRAT are misleading. To this end, LRAT pairs each instance with its adversarial variants and performs local reweighting inside each pair, while performing no global reweighting--the rationale is to fit the instance itself if it is immune to the attack, but not to skip the pair, in order to passively defend different attacks in future. Experiments show that LRAT works better than both IRAT (i.e., global reweighting) and the standard AT (i.e., no reweighting) when trained with an attack and tested on different attacks.
Motivation & Objective
- To address the drop in robustness of instance-reweighted adversarial training (IRAT) when tested on attacks different from the one used during training.
- To investigate why global reweighting strategies like GAIRAT fail under unseen attacks, despite improving robustness under the training attack.
- To propose a new reweighting strategy that is attack-dependent and locally adaptive to improve generalization across diverse adversarial attacks.
- To demonstrate that local reweighting within adversarial pairs preserves model robustness even when the attack is mis-specified during training.
Proposed method
- LRAT pairs each natural input with its adversarial variants under multiple attacks (e.g., PGD and CW), forming local groups for reweighting.
- It applies vulnerability-based reweighting within each pair using a learnable weight function that depends on the model's confidence and adversarial distance.
- The method avoids global reweighting by not assigning a single global weight to each instance, instead focusing on relative importance within each adversarial pair.
- It introduces a gentle lower bound on instance weights (via [N] and [P] terms) to prevent discarding potentially useful examples during training.
- The loss function combines weighted losses for natural and adversarial examples, with weights derived from attack-specific vulnerability scores.
- The framework is general and can be applied with any attack type or vulnerability metric, enabling flexible and robust defense design.
Experimental results
Research questions
- RQ1Why does instance-reweighted adversarial training (IRAT) fail to generalize to unseen attacks despite improving robustness under the training attack?
- RQ2Is the vulnerability of a data instance consistent across different adversarial attacks, or is it attack-dependent?
- RQ3Can local reweighting within adversarial pairs improve robustness against unseen attacks compared to global reweighting strategies?
- RQ4Does maintaining a lower bound on instance weights help defend against potentially adaptive or unknown attacks?
Key findings
- LRAT achieves 53.52% robust accuracy under PGD attack and 50.71% under CW attack on CIFAR-10 using ResNet-18, significantly outperforming GAIRAT and standard AT.
- On AutoAttack (AA), LRAT achieves 48.60% robust accuracy with the ([N]+P+C) variant, showing consistent improvement over baseline methods despite AA not being simulated during training.
- The ablation study confirms that local reweighting (P+C) outperforms global reweighting (P or C alone), with the latter showing significant performance drops on unseen attacks.
- The inclusion of a gentle lower bound on weights (via [N] and [P]) improves robustness on AutoAttack, indicating its value in defending against adaptive, unknown attacks.
- LRAT reduces the risk of model failure under diverse attacks, demonstrating a more balanced and generalizable defense compared to global reweighting strategies.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.