arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.15152cs.LGcs.AIcs.CRmath.OC
收藏

论锐度感知最小化与对抗训练之间的对偶性

On the Duality Between Sharpness-Aware Minimization and Adversarial Training

Peking University(北京大学);University of California, Berkeley(加州大学伯克利分校);Beijing Institute of Technology(北京理工大学);MIT(麻省理工学院)

Yihao Zhang, Hangzhou He, Jingyu Zhu, Huanran Chen, Yifei Wang, Zeming Wei

AI总结:

本文研究SAM与AT之间的对偶性,发现仅使用SAM即可在不牺牲干净准确率的前提下显著提升对抗鲁棒性,并通过实验与理论分析揭示其隐式学习鲁棒特征的机制,表明SAM在准确率优先场景下可替代AT。

摘要:

对抗训练(AT)在训练过程中对输入样本进行对抗性扰动,已被公认为对抗攻击最有效的防御手段之一,但不可避免地会导致干净准确率下降。与扰动样本不同,锐度感知最小化(SAM)在训练过程中扰动模型权重,以寻找更平坦的损失景观并提升泛化能力。然而,由于SAM是为获得更好的干净准确率而设计的,其在增强对抗鲁棒性方面的有效性尚未被探索。在本工作中,考虑到SAM与AT之间的对偶性,我们研究了SAM所带来的对抗鲁棒性。有趣的是,我们发现仅使用SAM就能提升对抗鲁棒性。为理解SAM这一出人意料的性质,我们首先从实验和理论角度深入分析了SAM如何隐式地学习更鲁棒的特征,并进行了全面的实验,表明SAM能够在不牺牲任何干净准确率的情况下显著提升对抗鲁棒性,揭示了当准确率具有更高优先级时SAM作为AT替代方案的潜力。代码可在 https://github.com/weizeming/SAM_AT 获取。

英文摘要:

Adversarial Training (AT), which adversarially perturb the input samples during training, has been acknowledged as one of the most effective defenses against adversarial attacks, yet suffers from inevitably decreased clean accuracy. Instead of perturbing the samples, Sharpness-Aware Minimization (SAM) perturbs the model weights during training to find a more flat loss landscape and improve generalization. However, as SAM is designed for better clean accuracy, its effectiveness in enhancing adversarial robustness remains unexplored. In this work, considering the duality between SAM and AT, we investigate the adversarial robustness derived from SAM. Intriguingly, we find that using SAM alone can improve adversarial robustness. To understand this unexpected property of SAM, we first provide empirical and theoretical insights into how SAM can implicitly learn more robust features, and conduct comprehensive experiments to show that SAM can improve adversarial robustness notably without sacrificing any clean accuracy, shedding light on the potential of SAM to be a substitute for AT when accuracy comes at a higher priority. Code is available at https://github.com/weizeming/SAM_AT.

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

↑