[Paper Review] Effect of Activation Functions on the Training of Overparametrized Neural Nets
This paper investigates how different activation functions—ReLU, ELU, Swish, and tanh—affect the training dynamics of overparametrized two-layer neural networks on synthetic data. Using mean squared loss and fixed output weights, it finds that ReLU converges fastest to zero training error, followed by ELU, Swish, and tanh, with convergence speed strongly correlated to the eigenvalues of the Gram matrix at initialization.
It is well-known that overparametrized neural networks trained using gradient-based methods quickly achieve small training error with appropriate hyperparameter settings. Recent papers have proved this statement theoretically for highly overparametrized networks under reasonable assumptions. These results either assume that the activation function is ReLU or they crucially depend on the minimum eigenvalue of a certain Gram matrix depending on the data, random initialization and the activation function. In the later case, existing works only prove that this minimum eigenvalue is non-zero and do not provide quantitative bounds. On the empirical side, a contemporary line of investigations has proposed a number of alternative activation functions which tend to perform better than ReLU at least in some settings but no clear understanding has emerged. This state of affairs underscores the importance of theoretically understanding the impact of activation functions on training. In the present paper, we provide theoretical results about the effect of activation function on the training of highly overparametrized 2-layer neural networks. A crucial property that governs the performance of an activation is whether or not it is smooth. For non-smooth activations such as ReLU, SELU and ELU, all eigenvalues of the associated Gram matrix are large under minimal assumptions on the data. For smooth activations such as tanh, swish and polynomials, the situation is more complex. If the subspace spanned by the data has small dimension then the minimum eigenvalue of the Gram matrix can be small leading to slow training. But if the dimension is large and the data satisfies another mild condition, then the eigenvalues are large. If we allow deep networks, then the small data dimension is not a limitation provided that the depth is sufficient. We discuss a number of extensions and applications of these results.
Motivation & Objective
- Understand the impact of activation function choice on training dynamics in overparametrized neural networks.
- Investigate whether activation functions influence convergence speed in the overparametrized regime.
- Analyze the role of the Gram matrix's eigenvalues at initialization in determining training speed.
- Compare ReLU, ELU, Swish, and tanh across multiple runs on synthetic data with controlled labeling.
- Validate theoretical expectations regarding eigenvalue magnitude and convergence behavior in overparametrized settings.
Proposed method
- Train a two-layer neural network with 10^6 neurons in the first layer using mean squared loss.
- Fix the output layer weights during training to isolate the effect of the first-layer activations.
- Use synthetic data: n equally spaced points on S^1, lifted to S^9 and randomly labeled ±1.
- Evaluate convergence using squared loss over epochs, averaged over 5 random runs.
- Analyze the Gram matrix G at initialization to study eigenvalue distributions across activation functions.
- Compare eigenvalue magnitudes and their evolution during training to explain convergence speed differences.
Experimental results
Research questions
- RQ1How does the choice of activation function affect convergence speed in overparametrized two-layer networks?
- RQ2Do larger eigenvalues in the Gram matrix at initialization correlate with faster convergence?
- RQ3How do ReLU, ELU, Swish, and tanh compare in terms of training loss reduction over time?
- RQ4Is the overparametrized regime characterized by stable eigenvalues and eigenvectors during training?
- RQ5Can initial Gram matrix properties predict relative training performance across activation functions?
Key findings
- ReLU achieves zero training error significantly faster than ELU, Swish, and tanh.
- ELU converges faster than Swish and tanh, but slower than ReLU.
- The eigenvalues of the Gram matrix at initialization are largest for ReLU and ELU, and smallest for tanh and Swish.
- Eigenvalues and eigenvectors remain nearly constant throughout training, confirming the overparametrized regime.
- The convergence speed ranking (ReLU > ELU > Swish > tanh) directly correlates with the magnitude of initial Gram matrix eigenvalues.
- The observed training dynamics are consistent with theoretical expectations linking initial Gram matrix structure to optimization speed.
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.