Understanding the Disharmony between Weight Normalization Family and Weight Decay: ε-shifted L_2 Regularizer

11/14/2019
by   Li Xiang, et al.
0

The merits of fast convergence and potentially better performance of the weight normalization family have drawn increasing attention in recent years. These methods use standardization or normalization that changes the weight W to W', which makes W' independent to the magnitude of W. Surprisingly, W must be decayed during gradient descent, otherwise we will observe a severe under-fitting problem, which is very counter-intuitive since weight decay is widely known to prevent deep networks from over-fitting. In this paper, we theoretically prove that the weight decay term 1/2λ||W||^2 merely modulates the effective learning rate for improving objective optimization, and has no influence on generalization when the weight normalization family is compositely employed. Furthermore, we also expose several critical problems when introducing weight decay term to weight normalization family, including the missing of global minimum and training instability. To address these problems, we propose an ϵ-shifted L_2 regularizer, which shifts the L_2 objective by a positive constant ϵ. Such a simple operation can theoretically guarantee the existence of global minimum, while preventing the network weights from being too small and thus avoiding gradient float overflow. It significantly improves the training stability and can achieve slightly better performance in our practice. The effectiveness of ϵ-shifted L_2 regularizer is comprehensively validated on the ImageNet, CIFAR-100, and COCO datasets. Our codes and pretrained models will be released in https://github.com/implus/PytorchInsight.

READ FULL TEXT

Please sign up or login with your details

Forgot password? Click here to reset