[Paper Review] Empirical analysis of non-linear activation functions for Deep Neural Networks in classification tasks
This paper empirically evaluates five non-linear activation functions—Sigmoid, ReLU, Leaky ReLU, ELU, and SELU—in deep neural networks for MNIST image classification. Using fixed hyperparameters and depth variations, it finds that ELU outperforms others, with optimal performance achieved using 3 hidden layers, a learning rate of 0.02, early stopping, and Glorot uniform weight initialization, achieving 97.9% test accuracy.
We provide an overview of several non-linear activation functions in a neural network architecture that have proven successful in many machine learning applications. We conduct an empirical analysis on the effectiveness of using these function on the MNIST classification task, with the aim of clarifying which functions produce the best results overall. Based on this first set of results, we examine the effects of building deeper architectures with an increasing number of hidden layers. We also survey the impact of using, on the same task, different initialisation schemes for the weights of our neural network. Using these sets of experiments as a base, we conclude by providing a optimal neural network architecture that yields impressive results in accuracy on the MNIST classification task.
Motivation & Objective
- To evaluate the empirical performance of major non-linear activation functions in deep neural networks for image classification.
- To determine the optimal activation function for the MNIST dataset under controlled training conditions.
- To investigate the impact of network depth and weight initialization schemes on model accuracy and generalization.
- To identify the best-performing architecture configuration combining activation function, learning rate, depth, and initialization.
Proposed method
- Empirical evaluation of five activation functions: Sigmoid, ReLU, Leaky ReLU, ELU, and SELU on the MNIST dataset with 60,000 training and 10,000 validation images.
- Fixed training setup: 100 epochs, batch size 50, learning rates of 0.02, 0.05, and 0.10, and 2-hidden-layer baseline architecture.
- Systematic ablation study varying depth from 2 to 8 hidden layers and testing three weight initialization schemes: Glorot, fan-in, and fan-out.
- Use of early stopping to mitigate overfitting in deeper models, particularly for deeper architectures.
- Evaluation metrics include validation error, training and validation accuracy, and learning curves across all epochs.
- Comparison of activation functions based on final validation accuracy and convergence behavior.
Experimental results
Research questions
- RQ1Which non-linear activation function yields the highest classification accuracy on the MNIST dataset under identical training conditions?
- RQ2How does increasing the number of hidden layers affect model performance and generalization, particularly in relation to overfitting?
- RQ3How do different weight initialization schemes (Glorot, fan-in, fan-out) impact training stability and final model accuracy?
- RQ4Can early stopping improve validation accuracy in deeper networks, and if so, by how much?
Key findings
- ELU achieved the highest final validation accuracy of 97.9% among all activation functions tested, outperforming ReLU, Leaky ReLU, SELU, and Sigmoid.
- A deeper architecture with 3 hidden layers using ELU activation achieved better performance than the 2-layer baseline, indicating improved representational capacity.
- The Glorot/Xavier uniform weight initialization scheme consistently outperformed both fan-in and fan-out initialization, yielding the lowest validation error and highest accuracy.
- Models with deeper architectures (up to 8 layers) showed higher validation error at epoch 100, indicating increased overfitting, which was mitigated by early stopping.
- Learning rate of 0.02 produced the best balance between convergence and accuracy, while 0.10 led to instability and poor performance across all activation functions.
- The optimal model configuration—ELU activation, learning rate 0.02, 3 hidden layers, Glorot initialization, and early stopping—achieved 97.9% test accuracy, demonstrating superior generalization.
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.