Evaluating the Robustness of Geometry-Aware Instance-Reweighted Adversarial Training

Dorjan Hitaj, Giulio Pagnotta, Iacopo Masi, Luigi V. ManciniarXiv 2021

Abstract

This technical report investigates the robustness of Geometry-Aware Instance-Reweighted Adversarial Training (GAIRAT), a state-of-the-art defense mechanism. While GAIRAT reports record-breaking robust accuracy, this evaluation demonstrates that these gains are partially an illusion caused by "gradient masking." By applying a simple logit scaling attack, the authors reduce GAIRAT’s robust accuracy on CIFAR-10 from approximately 54% to 43%, showing it is actually less resilient than standard adversarial training when faced with sophisticated attackers.

Introduction

Adversarial training (AT) remains the primary defense against adversarial perturbations. A recent advancement, Geometry-Aware Instance-Reweighted Adversarial Training (GAIRAT), posits that training samples closer to the decision boundary are more critical and should be weighted more heavily. Although GAIRAT reported superior results, its weighting scheme potentially induces gradient masking—a phenomenon where the loss landscape becomes too jagged or flat for optimization-based attacks like Projected Gradient Descent (PGD) to function correctly, despite the existence of adversarial examples. This report rigorously re-evaluates GAIRAT to determine if its reported robustness is genuine.

Methodology: The Logit Scaling Attack

To bypass GAIRAT's defenses, the authors employ a Logit Scaling Attack. The standard Cross-Entropy loss used in many attacks is not scale-invariant. Because GAIRAT re-scales the loss during training, it can lead to vanishing gradients during the evaluation phase.

The attack modifies the standard PGD by multiplying the model's raw scores (logits) by a positive scalar $\alpha$ before the softmax operation. By tuning $\alpha$ (finding $\alpha=10$ to be effective), the attack "sharpens" the loss landscape. This restoration of gradient flow allows the PGD attack to identify vulnerabilities that were previously obscured by the model's training dynamics.

Experimental Setup

Evaluations were conducted on the CIFAR-10 benchmark. To isolate the effects of the GAIRAT algorithm, models were re-trained using only the standard CIFAR-10 training set, excluding additional pseudo-labeled data often used in original reports to inflate scores. GAIRAT was compared against standard Adversarial Training (AT) and Friendly Adversarial Training (FAT) using a WideResNet-32-10 architecture.

Analysis of Gradient Masking

A key indicator of gradient masking is how a model responds to changes in the logit scale. In standard AT, increasing the logit scale ($\alpha > 1$) typically increases the model's apparent accuracy because it makes gradients harder to follow. However, for GAIRAT, the effect is inverted: as $\alpha$ increases, the model's accuracy drops significantly. This inverse relationship proves that GAIRAT's original "robustness" was dependent on poor gradient flow rather than fundamentally hardened decision boundaries.

Robust accuracy of AT, FAT, and GAIRAT under PGD-20 and PGD+ attacks across varying logit scales (alpha).

Key Results

The evaluation reveals a significant discrepancy between reported and actual robustness for GAIRAT. While AT and FAT show improved or stable performance under this evaluation, GAIRAT's performance collapses when the logit scaling factor is optimized for the attacker.

Comparison of reported robust accuracy versus our evaluation using logit scaling (alpha=10).

As shown in the results, the "PGD+" attack—a more rigorous version of PGD—further reduces GAIRAT's accuracy to 43.27%. This confirms that GAIRAT is less robust than standard AT (52.61% under the same evaluation) when the gradient masking effect is neutralized.

Conclusion and Future Work

This study serves as a cautionary tale: high robust accuracy scores can be misleading if the defense relies on masking gradients. Future work will involve integrating GAIRAT evaluation into the "AutoAttack" ensemble, specifically testing against the Difference of Logits Ratio (DLR) loss. Additionally, it remains to be seen if this logit-scaling vulnerability persists in larger datasets like ImageNet.

Summary updated

BibTeX
@misc{hitaj2021evaluating,
  author = {Dorjan Hitaj and Giulio Pagnotta and Iacopo Masi and Luigi V. Mancini},
  title = {{Evaluating the Robustness of Geometry-Aware Instance-Reweighted Adversarial Training}},
  year = {2021},
  eprint = {2103.01914},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2103.01914},
}
Figure