[Paper Review] On the Impact of the Activation Function on Deep Neural Networks Training
The paper analyzes how activation function choice and weight initialization, especially initialization on the Edge of Chaos (EOC), affect signal propagation and training speed in deep networks, showing smooth activations and EOC-tuned parameters accelerate training.
The weight initialization and the activation function of deep neural networks have a crucial impact on the performance of the training procedure. An inappropriate selection can lead to the loss of information of the input during forward propagation and the exponential vanishing/exploding of gradients during back-propagation. Understanding the theoretical properties of untrained random networks is key to identifying which deep networks may be trained successfully as recently demonstrated by Samuel et al (2017) who showed that for deep feedforward neural networks only a specific choice of hyperparameters known as the `Edge of Chaos' can lead to good performance. While the work by Samuel et al (2017) discuss trainability issues, we focus here on training acceleration and overall performance. We give a comprehensive theoretical analysis of the Edge of Chaos and show that we can indeed tune the initialization parameters and the activation function in order to accelerate the training and improve the performance.
Motivation & Objective
- Assess how activation functions and initializations affect forward signal propagation in deep networks.
- Characterize the Edge of Chaos (EOC) for various activations and its impact on training dynamics.
- Propose procedures to locate and utilize optimal points on the EOC to accelerate training.
- Demonstrate through theory and experiments that smooth activations outperform ReLU-like functions in deep regimes.
- Provide practical guidelines for initialization and activation choice to improve training efficiency.
Proposed method
- Model neural networks as Gaussian processes in the infinite-width/finite-variance regime to derive kernel/variance recursions.
- Define and analyze the variance function F and the correlation function c through layerwise recursion with activation-dependent transforms.
- Characterize the Edge of Chaos via the condition chi1 = sigma_w^2 E[phi'(sqrt(q)Z)^2] = 1 and study its implications for information propagation.
- Develop analytic results for ReLU-like and smooth activation functions, detailing convergence rates of correlations (e.g., O(1/l^2) vs O(1/l)) on the EOC.
- Prove that smooth activations in class A yield slower decay of correlations (O(1/l)) and better gradient propagation, with a residual-like behavior on the EOC for ReLU.
- Provide an algorithm (Algorithm 1) to compute EOC curves for given phi, and derive practical EOC-based initialization rules (e.g., aligning beta_q with depth).
- Conduct experiments on MNIST and CIFAR-10 to compare EOC, EOC+BN, and ordered-phase initializations across activations (ReLU, ELU, Tanh).
Experimental results
Research questions
- RQ1How does the activation function shape (ReLU-like vs smooth) affect forward signal propagation and gradient flow in deep networks under random initialization?
- RQ2What is the Edge of Chaos for various activation functions, and how can it be computed and utilized to accelerate training?
- RQ3Do smooth activations enable deeper signal propagation than ReLU-like activations, and what are the corresponding convergence rates of correlations through layers?
- RQ4Can we derive practical guidelines to select initialization parameters (sigma_b, sigma_w) on the EOC to optimize training depth and speed?
- RQ5What empirical gains in training speed and accuracy arise from EOC initialization versus ordered-phase initialization or BatchNorm?
Key findings
- Initializing deep networks on the Edge of Chaos (EOC) enhances information propagation and accelerates training across several activations.
- ReLU-like activations on the EOC exhibit residual-like behavior in correlation propagation and slower polynomial decay (1/l^2) of correlation to 1, compared to exponential decay in ordered phase.
- Smooth activation functions (e.g., Tanh, ELU, SiLU) support deeper signal propagation with correlation convergence at rate O(1/l) on the EOC, outperforming ReLU in deep settings.
- The EOC for smooth activations forms a curve in the (sigma_b, sigma_w) plane, whereas ReLU collapses to a single point, enabling algorithmic computation of optimal EOC points (Algorithm 1).
- Choosing sigma_b so that the depth scale beta_q roughly matches the network depth L yields improved training performance, balancing forward propagation and gradient stability.
- Empirical results on MNIST and CIFAR-10 show EOC initialization (without BatchNorm) often yields the best test accuracies at 100 epochs across depth 200 and width 300, with smooth activations outperforming ReLU.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.