SOTAVerified

Averaging Weights Leads to Wider Optima and Better Generalization

2018-03-14Code Available1· sign in to hype

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

Code Available — Be the first to reproduce this paper.

Reproduce

Code

Abstract

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.

Tasks

Benchmark Results

DatasetModelMetricClaimedVerifiedStatus
CIFAR-10ShakeShake-2x64d + SWAPercentage correct97.12Unverified
CIFAR-10WRN-28-10 + SWAPercentage correct96.79Unverified
CIFAR-100PyramidNet-272 + SWAPercentage correct84.16Unverified
CIFAR-100WRN+SWAPercentage correct82.15Unverified
ImageNetResNet-152 + SWATop 1 Accuracy78.94Unverified
ImageNetDenseNet-161 + SWATop 1 Accuracy78.44Unverified

Reproductions