[Paper Review] Adversarial Attack on Attackers: Post-Process to Mitigate Black-Box Score-Based Query Attacks
This paper proposes AAA, a post-processing defense that confounds score-based query attacks (SQAs) by adversarially manipulating model logits to mislead attackers into incorrect attack directions. By designing loss curves that deceive the greedy optimization of SQAs—such as oscillating or sharply dropping losses—AAA achieves 81.36% robust accuracy under Square attack (2500 queries) on CIFAR-10, outperforming adversarial training (67.44%) while improving calibration and preserving clean accuracy with minimal inference overhead.
The score-based query attacks (SQAs) pose practical threats to deep neural networks by crafting adversarial perturbations within dozens of queries, only using the model's output scores. Nonetheless, we note that if the loss trend of the outputs is slightly perturbed, SQAs could be easily misled and thereby become much less effective. Following this idea, we propose a novel defense, namely Adversarial Attack on Attackers (AAA), to confound SQAs towards incorrect attack directions by slightly modifying the output logits. In this way, (1) SQAs are prevented regardless of the model's worst-case robustness; (2) the original model predictions are hardly changed, i.e., no degradation on clean accuracy; (3) the calibration of confidence scores can be improved simultaneously. Extensive experiments are provided to verify the above advantages. For example, by setting $\ell_\infty=8/255$ on CIFAR-10, our proposed AAA helps WideResNet-28 secure 80.59% accuracy under Square attack (2500 queries), while the best prior defense (i.e., adversarial training) only attains 67.44%. Since AAA attacks SQA's general greedy strategy, such advantages of AAA over 8 defenses can be consistently observed on 8 CIFAR-10/ImageNet models under 6 SQAs, using different attack targets, bounds, norms, losses, and strategies. Moreover, AAA calibrates better without hurting the accuracy. Our code is available at https://github.com/Sizhe-Chen/AAA.
Motivation & Objective
- To address the growing threat of practical, query-efficient score-based query attacks (SQAs) that exploit only model output scores.
- To develop a defense that does not degrade clean accuracy or require model retraining, while being deployable as a plug-in for pre-trained models.
- To simultaneously improve model calibration and mislead attackers by manipulating the loss trend observed in output scores.
- To provide a user-friendly, test-time defense that is effective against both non-adaptive and adaptive SQAs without relying on input preprocessing or dynamic inference.
Proposed method
- Post-process model logits via optimization to shape the loss curve such that SQAs, which rely on observing loss decrease, are misled into incorrect attack directions.
- Design target loss curves using sinusoidal or stepwise functions to create deceptive loss trends—e.g., sharp drops or oscillations—around the true adversarial direction.
- Optimize logits to approximate a target loss curve defined by a sine function or piecewise linear function, ensuring minimal impact on clean predictions.
- Use a differentiable optimization process over logits with a small number of iterations (e.g., 60–80) to balance defense effectiveness and inference cost.
- Integrate model calibration into the post-processing step, reducing Expected Calibration Error (ECE) without sacrificing clean accuracy.
- Apply the defense in a plug-and-play manner at test time, requiring no changes to the model architecture or training process.
Experimental results
Research questions
- RQ1Can a post-processing defense effectively mislead score-based query attacks by manipulating the observed loss trend in model outputs?
- RQ2Can such a defense simultaneously improve model calibration and maintain clean accuracy without retraining?
- RQ3How effective is the defense against both non-adaptive and adaptive SQAs, including bidirectional and opposite-direction search strategies?
- RQ4Does the defense generalize across different models, datasets, attack types, and hyperparameters (e.g., norms, loss functions)?
- RQ5Can the defense be implemented efficiently with minimal runtime overhead in real-world applications?
Key findings
- On CIFAR-10 with ℓ∞ = 8/255, AAA achieves 81.36% robust accuracy under Square attack (2500 queries), significantly outperforming adversarial training (67.44%).
- The defense maintains or improves calibration, reducing Expected Calibration Error (ECE) from 3.52% (baseline) to 2.53% with 80 optimization iterations.
- Even under adaptive attacks like bi-Square and op-Square, AAA-sine maintains robust accuracy at 76.69% and 76.41%, respectively, demonstrating resilience to strategy reverse-engineering.
- The defense is effective across 8 models (CIFAR-10/ImageNet), 6 SQAs, and various attack settings, showing strong generalization.
- Optimizing logits for 60–80 iterations achieves near-optimal robustness (81.37% accuracy) with only a 0.15ms increase in inference time per sample.
- AAA-sine, which uses a sinusoidal loss curve, successfully misleads both non-adaptive and adaptive attackers by eliminating clear directional cues in loss changes.
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.