paper-with-me

홈 › Papers

On the Duality Between Sharpness-Aware Minimization and Adversarial Training

2024-02-23 · Yihao Zhang, Hangzhou He, Jingyu Zhu, Huanran Chen, Yifei Wang, Zeming Wei

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.

📄 PDF Abstract BibTeX arXiv:2402.15152

Code (1)

weizeming/sam_at 공식 구현 pytorch

Tasks

Adversarial Robustness

Methods 이 논문이 사용한 방법론

Sharpness-Aware Minimization Sharpness-Aware Minimization, or SAM, is a procedure that improves model generalization by simultaneously minimizing loss value and loss sharpness. SAM functions by…
SAM 설명 없음

Similar Papers 제목 키워드 기반

Sharpness-Aware Minimization Alone can Improve Adversarial Robustness

2023-05-09 · Zeming Wei, Jingyu Zhu, Yihao Zhang

Sharpness-Aware Minimization (SAM) is an effective method for improving generalization ability by regularizing loss sharpness. In this paper, we explore SAM in the context of adversarial robustness. We find that using on…

Adversarial RobustnessMathematical Proofs

δ-SAM: Sharpness-Aware Minimization with Dynamic Reweighting

2022-01-16 · ACL ARR January 2022 1 · Anonymous

Deep neural networks are often overparameterized and may not easily achieve model generalization. Adversarial training has shown effectiveness in improving generalization by regularizing the change of loss on top of adve…

LSAM: Asynchronous Distributed Training with Landscape-Smoothed Sharpness-Aware Minimization

2025-09-03 · Yunfei Teng, Sixin Zhang arxiv

While Sharpness-Aware Minimization (SAM) improves generalization in deep neural networks by minimizing both loss and sharpness, it suffers from inefficiency in distributed large-batch training. We present Landscape-Smoot…

Sharpness-Aware Minimization with Dynamic Reweighting

2021-12-16 · Wenxuan Zhou, Fangyu Liu, huan zhang, Muhao Chen

Deep neural networks are often overparameterized and may not easily achieve model generalization. Adversarial training has shown effectiveness in improving generalization by regularizing the change of loss on top of adve…

Natural Language Understanding

TRAM: Bridging Trust Regions and Sharpness Aware Minimization

2023-10-05 · Tom Sherborne, Naomi Saphra, Pradeep Dasigi, Hao Peng

Sharpness-aware minimization (SAM) reports improving domain generalization by reducing the loss surface curvature in the parameter space. However, generalization during fine-tuning is often more dependent on the transfer…

Cross-Lingual TransferDomain GeneralizationLanguage ModelingLanguage Modelling+1