Enregistré dans:
Détails bibliographiques
Auteurs principaux: Peiwen, Yuan, Liu, Henan, Changsheng, Zhu, Wang, Yuyi
Format: Preprint
Publié: 2022
Sujets:
Accès en ligne:https://arxiv.org/abs/2208.13315
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866913222551928832
author Peiwen, Yuan
Liu, Henan
Changsheng, Zhu
Wang, Yuyi
author_facet Peiwen, Yuan
Liu, Henan
Changsheng, Zhu
Wang, Yuyi
contents In this paper, we investigate the negative effect of activation functions on forward and backward propagation and how to counteract this effect. First, We examine how activation functions affect the forward and backward propagation of neural networks and derive a general form for gradient variance that extends the previous work in this area. We try to use mini-batch statistics to dynamically update the normalization factor to ensure the normalization property throughout the training process, rather than only accounting for the state of the neural network after weight initialization. Second, we propose ANAct, a method that normalizes activation functions to maintain consistent gradient variance across layers and demonstrate its effectiveness through experiments. We observe that the convergence rate is roughly related to the normalization property. We compare ANAct with several common activation functions on CNNs and residual networks and show that ANAct consistently improves their performance. For instance, normalized Swish achieves 1.4\% higher top-1 accuracy than vanilla Swish on ResNet50 with the Tiny ImageNet dataset and more than 1.2\% higher with CIFAR-100.
format Preprint
id arxiv_https___arxiv_org_abs_2208_13315
institution arXiv
publishDate 2022
record_format arxiv
spellingShingle ANAct: Adaptive Normalization for Activation Functions
Peiwen, Yuan
Liu, Henan
Changsheng, Zhu
Wang, Yuyi
Machine Learning
Artificial Intelligence
In this paper, we investigate the negative effect of activation functions on forward and backward propagation and how to counteract this effect. First, We examine how activation functions affect the forward and backward propagation of neural networks and derive a general form for gradient variance that extends the previous work in this area. We try to use mini-batch statistics to dynamically update the normalization factor to ensure the normalization property throughout the training process, rather than only accounting for the state of the neural network after weight initialization. Second, we propose ANAct, a method that normalizes activation functions to maintain consistent gradient variance across layers and demonstrate its effectiveness through experiments. We observe that the convergence rate is roughly related to the normalization property. We compare ANAct with several common activation functions on CNNs and residual networks and show that ANAct consistently improves their performance. For instance, normalized Swish achieves 1.4\% higher top-1 accuracy than vanilla Swish on ResNet50 with the Tiny ImageNet dataset and more than 1.2\% higher with CIFAR-100.
title ANAct: Adaptive Normalization for Activation Functions
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2208.13315