Low-Pass Filtering SGD for Recovering Flat Optima in the Deep Learning Optimization Landscape

Devansh Bisla, Jing Wang, Anna Choromanska
1/20/2022
cs.LG

Official code: davda54/sam (1,984 stars, Python, MIT, PyTorch, last commit 2024-02-21).

Abstract

In this paper, we study the sharpness of a deep learning (DL) loss landscape around local minima in order to reveal systematic mechanisms underlying the generalization abilities of DL models. Our analysis is performed across varying network and optimizer hyper-parameters, and involves a rich family of different sharpness measures.

Show full abstract

We compare these measures and show that the low-pass filter-based measure exhibits the highest correlation with the generalization abilities of DL models, has high robustness to both data and label noise, and furthermore can track the double descent behavior for neural networks. We next derive the optimization algorithm, relying on the low-pass filter (LPF), that actively searches the flat regions in the DL optimization landscape using SGD-like procedure. The update of the proposed algorithm, that we call LPF-SGD, is determined by the gradient of the convolution of the filter kernel with the loss function and can be efficiently computed using MC sampling. We empirically show that our algorithm achieves superior generalization performance compared to the common DL training strategies. On the theoretical front, we prove that LPF-SGD converges to a better optimal point with smaller generalization error than SGD.

View on arXivView PDF

Code Implementations(1)

davda54/samOfficial100%
PyTorchMIT

SAM: Sharpness-Aware Minimization (PyTorch)

1,984209PythonOct 25, 20202 years agoMIT
optimizerpytorchsamsharpness-aware

Similar Papers

Cite this paper

@article{bisla2022lowpass,
  title  = {Low-Pass Filtering SGD for Recovering Flat Optima in the Deep Learning Optimization Landscape},
  author = {Devansh Bisla and Jing Wang and Anna Choromanska},
  year   = {2022},
  eprint = {2201.08025},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2201.08025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2201.08025.svg)](https://codeofpaper.com/paper/2201.08025)

Discussion