[Paper Review] Effects of the Nonlinearity in Activation Functions on the Performance of Deep Learning Models
This study investigates how the nonlinearity in ReLU and Leaky-ReLU (L-ReLU) activation functions affects deep learning model performance across different architectures and data types. Using MNIST, continuous, and FOOD-11 datasets, it finds that L-ReLU outperforms ReLU only when model parameters are limited, and that ReLU is superior in high-parameter settings and for non-transfer learning tasks, while L-ReLU improves accuracy in transfer learning scenarios with image data.
The nonlinearity of activation functions used in deep learning models are crucial for the success of predictive models. There are several commonly used simple nonlinear functions, including Rectified Linear Unit (ReLU) and Leaky-ReLU (L-ReLU). In practice, these functions remarkably enhance the model accuracy. However, there is limited insight into the functionality of these nonlinear activation functions in terms of why certain models perform better than others. Here, we investigate the model performance when using ReLU or L-ReLU as activation functions in different model architectures and data domains. Interestingly, we found that the application of L-ReLU is mostly effective when the number of trainable parameters in a model is relatively small. Furthermore, we found that the image classification models seem to perform well with L-ReLU in fully connected layers, especially when pre-trained models such as the VGG-16 are used for the transfer learning.
Motivation & Objective
- To understand how the nonlinearity of activation functions like ReLU and L-ReLU affects deep learning model performance.
- To investigate the impact of model architecture shape and parameter count on validation accuracy with different activation functions.
- To evaluate the role of data domain (continuous, categorical, image) in determining optimal activation function choice.
- To explore the conditions under which L-ReLU provides advantages over ReLU in terms of generalization and information flow.
- To provide empirical insights into the selection of nonlinearity factor α in L-ReLU for improved model performance.
Proposed method
- Used five distinct model architectures (A–E) with varying hidden layer node configurations to assess architectural impact on performance.
- Applied ReLU and L-ReLU with varying α (from 0 to 1) across all architectures and datasets.
- Trained models on MNIST (handwritten digits), simulated continuous data, and FOOD-11 (image classification) using cross-entropy and MSE loss functions.
- For transfer learning, extracted bottleneck features from pre-trained VGG-16 and used them as input to fully connected networks with different activation functions.
- Measured performance using validation accuracy and validation loss across different α values and data types.
- Analyzed information flow by observing loss behavior and model sensitivity to α, particularly at extreme values like α=1.
Experimental results
Research questions
- RQ1How does the choice between ReLU and L-ReLU affect model accuracy across different model architectures?
- RQ2Does the number of trainable parameters influence whether L-ReLU provides a performance advantage over ReLU?
- RQ3How does the data domain (e.g., continuous, image, categorical) affect the optimal activation function choice?
- RQ4What is the impact of using L-ReLU in transfer learning settings, particularly with pre-extracted features from models like VGG-16?
- RQ5Why does validation loss behave differently across data types when α varies, especially at α=1?
Key findings
- ReLU consistently outperformed L-ReLU in high-parameter models, achieving up to ~90% validation accuracy on MNIST across all architectures.
- L-ReLU showed a performance advantage over ReLU only when the number of trainable parameters was relatively small, particularly in shallow or narrow networks.
- For the FOOD-11 image classification task using VGG-16 bottleneck features, validation loss decreased as α increased, indicating L-ReLU outperformed ReLU in this transfer learning context.
- On continuous data, validation loss increased dramatically at α=1 (reaching ~10^4), showing that strong nonlinearity from ReLU is detrimental when features are nonlinearly related to targets.
- The MNIST model showed weaker dependence on α, with ReLU (α=0) yielding the best validation loss, suggesting that ReLU's strong nonlinearity enhances feature learning in this domain.
- The results suggest that information flow through the network is significantly affected by activation function nonlinearity, and that entropy-based quantification of information flow may improve future understanding.
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.