arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2305.05875cs.CR
收藏

量化感知攻击:通过模型量化增强可迁移对抗攻击

Quantization Aware Attack: Enhancing Transferable Adversarial Attacks by Model Quantization

Yulong Yang, Chenhao Lin, Qian Li, Zhengyu Zhao, Haoran Fan, Dawei Zhou, Nannan Wang, Tongliang Liu, Chao Shen

AI总结:

本文提出量化感知攻击(QAA),通过使用多位宽训练目标微调极低位宽量化的QNN替代模型,解决量化偏移和梯度错位问题,显著提升了跨不同架构和位宽模型的黑盒对抗攻击迁移性。

摘要:

量化神经网络(QNNs)因其出色的泛化能力在资源受限场景中受到越来越多的关注。然而,它们针对现实黑盒对抗攻击的鲁棒性尚未得到广泛研究。在这种场景下,对抗迁移性是在具有不同量化位宽的QNN之间追求的,这些QNN尤其涉及未知的架构和防御方法。先前的研究声称,在共享相同架构的条件下,很难在不同位宽的QNN之间实现迁移性。然而,我们发现,在不同架构下,通过使用以极低位宽量化的QNN作为替代模型,迁移性可以得到大幅提升。我们通过提出量化感知攻击(QAA)进一步提高了攻击迁移性,该方法使用多位宽训练目标微调QNN替代模型。具体而言,我们证明QAA解决了通常已知阻碍迁移性的两个问题:1)量化偏移和2)梯度错位。大量实验结果验证了QAA对各种目标模型的高迁移性。例如,当在ImageNet上采用ResNet-34替代模型时,QAA在攻击标准训练的DNN、对抗训练的DNN以及具有不同位宽的QNN方面,分别比当前最佳攻击高出4.3% ~ 20.9%、8.7% ~ 15.5%和2.6% ~ 31.1%(绝对值)。此外,QAA非常高效,因为它只需要一个epoch进行微调。最后,我们从损失景观的角度实证解释了QAA的有效性。我们的代码可在https://github.com/yyl-github-1896/QAA/获取。

英文摘要:

Quantized neural networks (QNNs) have received increasing attention in resource-constrained scenarios due to their exceptional generalizability. However, their robustness against realistic black-box adversarial attacks has not been extensively studied. In this scenario, adversarial transferability is pursued across QNNs with different quantization bitwidths, which particularly involve unknown architectures and defense methods. Previous studies claim that transferability is difficult to achieve across QNNs with different bitwidths on the condition that they share the same architecture. However, we discover that under different architectures, transferability can be largely improved by using a QNN quantized with an extremely low bitwidth as the substitute model. We further improve the attack transferability by proposing \textit{quantization aware attack} (QAA), which fine-tunes a QNN substitute model with a multiple-bitwidth training objective. In particular, we demonstrate that QAA addresses the two issues that are commonly known to hinder transferability: 1) quantization shifts and 2) gradient misalignments. Extensive experimental results validate the high transferability of the QAA to diverse target models. For instance, when adopting the ResNet-34 substitute model on ImageNet, QAA outperforms the current best attack in attacking standardly trained DNNs, adversarially trained DNNs, and QNNs with varied bitwidths by 4.3\% $\sim$ 20.9\%, 8.7\% $\sim$ 15.5\%, and 2.6\% $\sim$ 31.1\% (absolute), respectively. In addition, QAA is efficient since it only takes one epoch for fine-tuning. In the end, we empirically explain the effectiveness of QAA from the view of the loss landscape. Our code is available at https://github.com/yyl-github-1896/QAA/

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑