NeurIPS 2026Coming to NeurIPS in Sydney?Explore papers, orals & directions

An Analysis of State-of-the-art Activation Functions For Supervised Deep Neural Network

Anh Gia-Tuan Nguyen, Khoa Van Pham, Dat Ngo, Thanh Duc Ngo, Lam Pham

TL;DR

This paper systematically analyzes the performance of several modern activation functions (ReLU, ELU, SELU, GELU, ISRLU) in deep neural networks for supervised classification tasks. By evaluating them on both a standard image classification dataset (MNIST) with a Multilayer Perceptron (MLP) and an acoustic scene classification task (DCASE 2018 Task 1A) with a Convolutional Neural Network (CNN), the authors provide insights into their effectiveness across different architectures and datasets.

What Problem Does This Paper Address?

Deep neural networks rely on activation functions to introduce non-linearity, enabling them to learn complex patterns. While Rectified Linear Units (ReLU) have become a de facto standard due to their computational efficiency and ability to mitigate vanishing gradients, they suffer from the "dying ReLU" problem, where neurons can become inactive. This paper addresses the need to understand how newer, more sophisticated activation functions, designed to overcome ReLU's limitations, perform in real-world applications. Specifically, it investigates whether these advanced functions offer tangible benefits across diverse datasets and network architectures, moving beyond simple benchmarks.

Methods

The authors conduct a comparative analysis of five activation functions: ReLU, Exponential Linear Unit (ELU), Scaled Exponential Linear Unit (SELU), Gaussian Error Linear Unit (GELU), and Inverse Square Root Linear Unit (ISRLU). Their evaluation is split into two main experimental setups:

  1. MLP on MNIST: A Multilayer Perceptron (MLP) architecture is trained on the MNIST handwritten digit dataset. The paper details strategies for determining the optimal number of hidden layers and nodes, ultimately settling on a three-hidden-layer network.
  2. CNN on DCASE 2018 Task 1A: A Convolutional Neural Network (CNN) architecture, inspired by VGGish, is employed for the Acoustic Scene Classification (ASC) task using the DCASE 2018 Task 1A dataset. This involves feature extraction using log-mel spectrograms.

The experiments systematically replace ReLU with the other activation functions in both architectures to assess their impact on accuracy and training time. Further experiments on the CNN explore the interplay between activation functions and regularization techniques like Batch Normalization (BN) and Dropout.

Datasets

  • MNIST: A widely used dataset for handwritten digit recognition, consisting of 28x28 grayscale images.
  • DCASE 2018 Task 1A: A dataset for Acoustic Scene Classification, featuring 10-second audio recordings categorized into 10 different sound scenes.

Key Insights and Ideas

  • Beyond ReLU's Limitations: Newer activation functions like ELU, SELU, GELU, and ISRLU generally outperform ReLU in terms of classification accuracy across both MLP and CNN experiments. This suggests they are more effective at preventing vanishing gradients and the "dying ReLU" problem.
  • Architecture and Dataset Dependence: The performance gains of these advanced activation functions are not uniform. While they show promise, their effectiveness can vary depending on the specific network architecture and the nature of the dataset.
  • The Power of Regularization: The study highlights the critical role of Batch Normalization and Dropout. When these regularization techniques are employed, ReLU can perform competitively, and sometimes even outperform, other activation functions. This indicates that the benefits of advanced activation functions might be amplified or mitigated by the presence of these standard regularization methods.
  • Computational Cost Trade-offs: Some advanced activation functions, like GELU and ISRLU, incur higher computational costs during training compared to ReLU and ELU, which is an important consideration for practical deployment.

Key Results

  • MLP on MNIST: The best-performing MLP configuration achieved an accuracy of 97.5% (Evaluation) and 96.4% (Test). When comparing activation functions, SELU showed the highest accuracy (99.0%/97.0%), followed by ISRLU (97.9%/96.8%), while ReLU achieved 97.5%/96.4%.
  • CNN on DCASE 2018 Task 1A:
    • Without Batch Normalization and Dropout, activation functions like SELU, GELU, and ISRLU showed improved accuracy over ReLU. For instance, SELU achieved 57.1% accuracy, compared to ReLU's 53.2%.
  • With Batch Normalization and Dropout, ReLU performed best (63.9%), outperforming ELU (61.7%), SELU (61.4%), GELU (63.1%), and ISRLU (60.1%). This suggests that regularization is crucial for achieving high performance, especially with ReLU.
  • The proposed CNN model with ReLU, BN, and Dropout achieved a 4.2% improvement over the DCASE 2018 Task 1A baseline.

Limitations and Future Work

  • Limited Scope of Activation Functions: The paper focuses on a specific set of five activation functions. Future work could explore other emerging activation functions.
  • Interplay with Regularization: While the paper investigates the interaction with BN and Dropout, a more exhaustive study on how different activation functions behave with various regularization strategies and hyperparameter settings could be beneficial.
  • Computational Efficiency: The paper notes that some functions are more computationally expensive. Further research could focus on developing more efficient approximations or hardware-aware implementations of these advanced activation functions.
  • Dataset and Task Specificity: The findings are based on two specific datasets and tasks. Generalizing these results to a wider range of applications and data modalities would be valuable.

Summary updated

Abstract

This paper provides an analysis of state-of-the-art activation functions with respect to supervised classification of deep neural network. These activation functions comprise of Rectified Linear Units (ReLU), Exponential Linear Unit (ELU), Scaled Exponential Linear Unit (SELU), Gaussian Error Linear Unit (GELU), and the Inverse Square Root Linear Unit (ISRLU). To evaluate, experiments over two deep learning network architectures integrating these activation functions are conducted. The first model, basing on Multilayer Perceptron (MLP), is evaluated with MNIST dataset to perform these activation functions.Meanwhile, the second model, likely VGGish-based architecture, is applied for Acoustic Scene Classification (ASC) Task 1A in DCASE 2018 challenge, thus evaluate whether these activation functions work well in different datasets as well as different network architectures.
BibTeX
@misc{nguyen2021analysis,
  author = {Anh Gia-Tuan Nguyen and Khoa Van Pham and Dat Ngo and Thanh Duc Ngo and Lam Pham},
  title = {{An Analysis of State-of-the-art Activation Functions For Supervised Deep Neural Network}},
  year = {2021},
  doi = {10.31219/osf.io/2zk6a},
}
Figure