arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2312.01260cs.LGcs.CRstat.ML
收藏

重新思考PGD攻击:符号函数是否必要?

Rethinking PGD Attack: Is Sign Function Necessary?

The Ohio State University(俄亥俄州立大学);MIT(麻省理工学院);University of Texas at Austin(德克萨斯大学奥斯汀分校)

Junjie Yang, Tianlong Chen, Xuxi Chen, Zhangyang Wang, Yingbin Liang

AI总结:

该研究针对现有PGD等白盒对抗攻击依赖符号函数、忽略梯度幅值的问题,通过理论分析符号更新的缺陷与原始梯度方案失败的原因,提出引入非截断扰动隐变量的RGD算法,在无额外开销下实现了更优的攻击效果。

摘要:

神经网络已在诸多领域展现出成效,但即便微小的输入扰动也会导致其性能大幅下降。因此,这类被称为对抗攻击的扰动构建方法受到了广泛关注,其中多数属于可完全访问神经网络的“白盒”场景。现有攻击算法,例如投影梯度下降(projected gradient descent, PGD),通常在更新对抗输入前对原始梯度取符号函数,从而忽略了梯度的幅值信息。本文针对这类基于符号的更新算法如何影响逐步攻击性能及其缺陷展开了理论分析,同时阐释了此前直接使用原始梯度的尝试失败的原因。在此基础上,我们进一步提出了一种摒弃符号函数的新型原始梯度下降(raw gradient descent, RGD)算法。具体而言,我们通过引入一个可超出约束范围的非截断扰动隐变量,将有约束优化问题转化为无约束优化问题。大量实验验证了所提RGD算法的有效性:在多种设置下其性能均优于PGD及其他对比算法,且不会产生额外的计算开销。代码可在https://github.com/JunjieYang97/RGD获取。

英文摘要:

Neural networks have demonstrated success in various domains, yet their performance can be significantly degraded by even a small input perturbation. Consequently, the construction of such perturbations, known as adversarial attacks, has gained significant attention, many of which fall within "white-box" scenarios where we have full access to the neural network. Existing attack algorithms, such as the projected gradient descent (PGD), commonly take the sign function on the raw gradient before updating adversarial inputs, thereby neglecting gradient magnitude information. In this paper, we present a theoretical analysis of how such sign-based update algorithm influences step-wise attack performance, as well as its caveat. We also interpret why previous attempts of directly using raw gradients failed. Based on that, we further propose a new raw gradient descent (RGD) algorithm that eliminates the use of sign. Specifically, we convert the constrained optimization problem into an unconstrained one, by introducing a new hidden variable of non-clipped perturbation that can move beyond the constraint. The effectiveness of the proposed RGD algorithm has been demonstrated extensively in experiments, outperforming PGD and other competitors in various settings, without incurring any additional computational overhead. The codes is available in https://github.com/JunjieYang97/RGD.

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

↑