Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FR: Sharpness-Aware Minimization Revisited: Weighted Sharpness as a Regularization Term (WSAM) #213

Closed
LiutongZhou opened this issue Nov 6, 2023 · 2 comments
Assignees
Labels
feature request Request features

Comments

@LiutongZhou
Copy link

Paper: https://arxiv.org/pdf/2305.15817.pdf
Code: https://github.com/intelligent-machine-learning/dlrover/blob/master/atorch/atorch/optimizers/wsam.py

Benefits over SAM: lower loss, higher accuracy, and better generalization (lower sharpness) at the same time.

Insensitive to the additional hyperparameter $\rho$. Optimal value between 0.8 ~ 0.95

@LiutongZhou LiutongZhou added the feature request Request features label Nov 6, 2023
@kozistr
Copy link
Owner

kozistr commented Nov 10, 2023

thanks! I'll check it too.

@kozistr
Copy link
Owner

kozistr commented Dec 10, 2023

I just merged into the main branch. (not released a new version yet)

thanks for the suggestion!

@kozistr kozistr closed this as completed Dec 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Request features
Projects
None yet
Development

No branches or pull requests

2 participants