Sharpness-Aware Minimization Scaled by Outlier Normalization for Robust DNNs on In-Memory Computing Accelerators
Many deep neural network (DNN) models consume a significant amount of energy at inference time, in large part due to energy consumed by memory access. In-memory computing addresses this problem by eliminating many memory accesses, but exposes model weights to noise and circuit variations. While several methods have been proposed to train DNNs robust to weight noise they typically require knowledge of the noise distribution, or degrade the DNN performance in noiseless setting. In this work, we first show that applying sharpness-aware training, by optimizing for both the loss value and loss sharpness, significantly improves robustness to noisy weights at inference time. Then, we propose a new adaptive sharpness-aware method that conditions the worst-case perturbation of a given weight not only on its magnitude but also on the range of the weight distribution. This is achieved by performing sharpness-aware minimization scaled by outlier normalization (SAMSON). Results on computer-vision benchmarks show that SAMSON increases model robustness to noisy weights without compromising generalization performance in noiseless regimes.
Authors
- Sébastien Henwood (ORCID: https://orcid.org/0000-0002-4198-8487)
- Yvon Savaria (ORCID: https://orcid.org/0000-0002-3404-9959)
- François Leduc-Primeau (ORCID: https://orcid.org/0000-0002-5528-8510)
- Gonçalo Mordido (ORCID: https://orcid.org/0000-0002-9485-5397)
- Sarath Chandar
Institutions
- Polytechnique Montréal (CA)
Publication Details
- Published
- 2024-10-27
- DOI
- https://doi.org/10.1109/ieeeconf60004.2024.10943038
- Primary Topic
- Advanced Memory and Neural Computing
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Institut de Valorisation des Données
- Natural Sciences and Engineering Research Council of Canada