arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2303.03680cs.CV
收藏

Logit裕度问题:通过Logit校准提高可转移的有针对性对抗攻击

Logit Margin Matters: Improving Transferable Targeted Adversarial Attack by Logit Calibration

Xiamen University(厦门大学);University of Trento(特伦托大学)

Juanjuan Weng, Zhiming Luo, Zhun Zhong, Shaozi Li, Nicu Sebe

摘要:

以前的工作已经广泛研究了非目标黑盒场景中对抗样本的可转移性。然而,它仍然是具有挑战性的工艺有针对性的对抗性的例子比非目标的更高的可转移性。最近的研究表明,由于梯度消失的问题,传统的交叉熵(CE)损失函数不足以学习可转移的目标对抗样本。在这项工作中,我们提供了一个全面的调查CE损失函数,并发现目标和非目标类之间的logit利润率将迅速获得饱和CE,这在很大程度上限制了可转移性。因此,在本文中,我们致力于不断增加的logit裕度沿优化的目标,以处理饱和问题,并提出了两个简单而有效的logit校准方法,这是通过降尺度的logits与温度因子和自适应裕度,分别实现。这两种方法都能有效地鼓励优化,以产生更大的logit裕度,并导致更高的可转移性。此外,我们还证明了最小化对抗性样本与目标类的分类器权重之间的余弦距离可以进一步提高可转移性,这得益于通过L2归一化进行的降尺度logits。在ImageNet数据集上进行的实验验证了所提出方法的有效性,在黑盒攻击中优于最先进的方法。源代码可从\href{https://github.com/WJJLL/Target-Attack/}{Link}获得

英文摘要:

Previous works have extensively studied the transferability of adversarial samples in untargeted black-box scenarios. However, it still remains challenging to craft targeted adversarial examples with higher transferability than non-targeted ones. Recent studies reveal that the traditional Cross-Entropy (CE) loss function is insufficient to learn transferable targeted adversarial examples due to the issue of vanishing gradient. In this work, we provide a comprehensive investigation of the CE loss function and find that the logit margin between the targeted and untargeted classes will quickly obtain saturation in CE, which largely limits the transferability. Therefore, in this paper, we devote to the goal of continually increasing the logit margin along the optimization to deal with the saturation issue and propose two simple and effective logit calibration methods, which are achieved by downscaling the logits with a temperature factor and an adaptive margin, respectively. Both of them can effectively encourage optimization to produce a larger logit margin and lead to higher transferability. Besides, we show that minimizing the cosine distance between the adversarial examples and the classifier weights of the target class can further improve the transferability, which is benefited from downscaling logits via L2-normalization. Experiments conducted on the ImageNet dataset validate the effectiveness of the proposed methods, which outperform the state-of-the-art methods in black-box targeted attacks. The source code is available at \href{https://github.com/WJJLL/Target-Attack/}{Link}

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

↑