BN-invariant sharpness regularizes the training model to better generalization
arXiv:2101.02944
Abstract
It is arguably believed that flatter minima can generalize better. However, it has been pointed out that the usual definitions of sharpness, which consider either the maxima or the integral of loss over a ball of parameters around minima, cannot give consistent measurement for scale invariant neural networks, e.g., networks with batch normalization layer. In this paper, we first propose a measure of sharpness, BN-Sharpness, which gives consistent value for equivalent networks under BN. It achieves the property of scale invariance by connecting the integral diameter with the scale of parameter. Then we present a computation-efficient way to calculate the BN-sharpness approximately i.e., one dimensional integral along the "sharpest" direction. Furthermore, we use the BN-sharpness to regularize the training and design an algorithm to minimize the new regularized objective. Our algorithm achieves considerably better performance than vanilla SGD over various experiment settings.
References in corpus (12)
- Very Deep Convolutional Networks for Large-Scale Image Recognition
- Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift
- The Loss Surfaces of Multilayer Networks
- A Convergence Theory for Deep Learning via Over-Parameterization
- Exploring Generalization in Deep Learning
- Global rates of convergence for nonconvex optimization on manifolds
- Three Factors Influencing Minima in SGD
- Sharp Minima Can Generalize For Deep Nets
- Identifying Generalization Properties in Neural Networks
- SmoothOut: Smoothing Out Sharp Minima to Improve Generalization in Deep Learning
- Riemannian approach to batch normalization
- Generalized Batch Normalization: Towards Accelerating Deep Neural Networks