Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Averaging Weights Leads to Wider Optima and Better Generalization

About

Deep neural networks are typically trained by optimizing a loss function with an SGD variant, in conjunction with a decaying learning rate, until convergence. We show that simple averaging of multiple points along the trajectory of SGD, with a cyclical or constant learning rate, leads to better generalization than conventional training. We also show that this Stochastic Weight Averaging (SWA) procedure finds much flatter solutions than SGD, and approximates the recent Fast Geometric Ensembling (FGE) approach with a single model. Using SWA we achieve notable improvement in test accuracy over conventional SGD training on a range of state-of-the-art residual networks, PyramidNets, DenseNets, and Shake-Shake networks on CIFAR-10, CIFAR-100, and ImageNet. In short, SWA is extremely easy to implement, improves generalization, and has almost no computational overhead.

Pavel Izmailov, Dmitrii Podoprikhin, Timur Garipov, Dmitry Vetrov, Andrew Gordon Wilson• 2018

Related benchmarks

TaskDatasetResultRank
Image ClassificationCIFAR-100 (test)--
3518
Image ClassificationCIFAR-10 (test)--
3381
Image ClassificationCIFAR-10 (test)
Accuracy97.16
906
Image ClassificationImageNet 1k (test)
Top-1 Accuracy78.94
798
Image ClassificationImageNet-R
Top-1 Acc37.5
474
Image ClassificationImageNet--
429
Image ClassificationSTL-10 (test)
Accuracy77.5
357
Image ClassificationStanford Cars (test)--
306
Mathematical ReasoningAIME
AIME Accuracy20
283
Image ClassificationCIFAR-100 (test)
Top-1 Acc82.4
275
Showing 10 of 83 rows
...

Other info

Code

Follow for update