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

基于 Token 梯度正则化的 Vision Transformer 可迁移对抗攻击

Transferable Adversarial Attacks on Vision Transformers with Token Gradient Regularization

The Chinese University of Hong Kong(香港中文大学);Sun Yat-sen University(中山大学)

Jianping Zhang, Yizhan Huang, Weibin Wu, Michael R. Lyu

AI总结:

针对 ViT 迁移攻击中中间块梯度方差大、易过拟合模型特有特征的问题,提出逐 token 正则化内部反向传播梯度的 TGR,在 ViT 与 CNN 上平均提升攻击性能 8.8%。

摘要:

Vision Transformer(ViT)已成功部署于多种计算机视觉任务,但它们仍易受对抗样本影响。基于迁移的攻击利用本地模型生成对抗样本,并将其直接迁移以攻击目标黑盒模型。基于迁移的攻击具有高效率,这使其成为对基于 ViT 的应用的严重安全威胁。因此,在安全敏感场景中,设计有效的基于迁移的攻击以提前识别 ViT 的缺陷至关重要。现有研究通常关注正则化输入梯度,以稳定对抗样本的更新方向。然而,ViT 中间块中反向传播梯度的方差可能仍然很大,这会使生成的对抗样本关注某些模型特有的特征,并陷入较差的局部最优。为克服现有方法的不足,我们提出 Token Gradient Regularization(TGR,Token 梯度正则化)方法。根据 ViT 的结构特点,TGR 以逐 token 的方式降低 ViT 每个内部块中反向传播梯度的方差,并利用正则化后的梯度生成对抗样本。针对 ViT 和 CNN 的大量攻击实验证实了本方法的优越性。值得注意的是,与最先进的基于迁移的攻击相比,我们的 TGR 平均带来 8.8% 的性能提升。

英文摘要:

Vision transformers (ViTs) have been successfully deployed in a variety of computer vision tasks, but they are still vulnerable to adversarial samples. Transfer-based attacks use a local model to generate adversarial samples and directly transfer them to attack a target black-box model. The high efficiency of transfer-based attacks makes it a severe security threat to ViT-based applications. Therefore, it is vital to design effective transfer-based attacks to identify the deficiencies of ViTs beforehand in security-sensitive scenarios. Existing efforts generally focus on regularizing the input gradients to stabilize the updated direction of adversarial samples. However, the variance of the back-propagated gradients in intermediate blocks of ViTs may still be large, which may make the generated adversarial samples focus on some model-specific features and get stuck in poor local optima. To overcome the shortcomings of existing approaches, we propose the Token Gradient Regularization (TGR) method. According to the structural characteristics of ViTs, TGR reduces the variance of the back-propagated gradient in each internal block of ViTs in a token-wise manner and utilizes the regularized gradient to generate adversarial samples. Extensive experiments on attacking both ViTs and CNNs confirm the superiority of our approach. Notably, compared to the state-of-the-art transfer-based attacks, our TGR offers a performance improvement of 8.8% on average.

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

↑