Saved in:
Bibliographic Details
Main Authors: Becker, Marlon, Altrock, Frederick, Risse, Benjamin
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2401.12033
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909819156299776
author Becker, Marlon
Altrock, Frederick
Risse, Benjamin
author_facet Becker, Marlon
Altrock, Frederick
Risse, Benjamin
contents The recently proposed optimization algorithm for deep neural networks Sharpness Aware Minimization (SAM) suggests perturbing parameters before gradient calculation by a gradient ascent step to guide the optimization into parameter space regions of flat loss. While significant generalization improvements and thus reduction of overfitting could be demonstrated, the computational costs are doubled due to the additionally needed gradient calculation, making SAM unfeasible in case of limited computationally capacities. Motivated by Nesterov Accelerated Gradient (NAG) we propose Momentum-SAM (MSAM), which perturbs parameters in the direction of the accumulated momentum vector to achieve low sharpness without significant computational overhead or memory demands over SGD or Adam. We evaluate MSAM in detail and reveal insights on separable mechanisms of NAG, SAM and MSAM regarding training optimization and generalization. Code is available at https://github.com/MarlonBecker/MSAM.
format Preprint
id arxiv_https___arxiv_org_abs_2401_12033
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Momentum-SAM: Sharpness Aware Minimization without Computational Overhead
Becker, Marlon
Altrock, Frederick
Risse, Benjamin
Machine Learning
Computer Vision and Pattern Recognition
The recently proposed optimization algorithm for deep neural networks Sharpness Aware Minimization (SAM) suggests perturbing parameters before gradient calculation by a gradient ascent step to guide the optimization into parameter space regions of flat loss. While significant generalization improvements and thus reduction of overfitting could be demonstrated, the computational costs are doubled due to the additionally needed gradient calculation, making SAM unfeasible in case of limited computationally capacities. Motivated by Nesterov Accelerated Gradient (NAG) we propose Momentum-SAM (MSAM), which perturbs parameters in the direction of the accumulated momentum vector to achieve low sharpness without significant computational overhead or memory demands over SGD or Adam. We evaluate MSAM in detail and reveal insights on separable mechanisms of NAG, SAM and MSAM regarding training optimization and generalization. Code is available at https://github.com/MarlonBecker/MSAM.
title Momentum-SAM: Sharpness Aware Minimization without Computational Overhead
topic Machine Learning
Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2401.12033