Skip to main content
QUICK REVIEW

[Paper Review] Activation Functions in Deep Learning: A Comprehensive Survey and Benchmark

Shiv Ram Dubey, Satish Kumar Singh|arXiv (Cornell University)|Sep 29, 2021
Currency Recognition and DetectionComputer Science17 citations
TL;DR

This paper presents a comprehensive survey and benchmark of 18 state-of-the-art activation functions (AFs) across image, text, and speech tasks. It evaluates AFs based on nonlinearity, gradient flow, and computational efficiency, finding that Swish, Mish, PReLU, GELU, and PAU consistently outperform others across diverse architectures and datasets, especially in speech recognition and residual networks.

ABSTRACT

Neural networks have shown tremendous growth in recent years to solve numerous problems. Various types of neural networks have been introduced to deal with different types of problems. However, the main goal of any neural network is to transform the non-linearly separable input data into more linearly separable abstract features using a hierarchy of layers. These layers are combinations of linear and nonlinear functions. The most popular and common non-linearity layers are activation functions (AFs), such as Logistic Sigmoid, Tanh, ReLU, ELU, Swish and Mish. In this paper, a comprehensive overview and survey is presented for AFs in neural networks for deep learning. Different classes of AFs such as Logistic Sigmoid and Tanh based, ReLU based, ELU based, and Learning based are covered. Several characteristics of AFs such as output range, monotonicity, and smoothness are also pointed out. A performance comparison is also performed among 18 state-of-the-art AFs with different networks on different types of data. The insights of AFs are presented to benefit the researchers for doing further research and practitioners to select among different choices. The code used for experimental comparison is released at: \url{https://github.com/shivram1987/ActivationFunctions}.

Motivation & Objective

  • To provide a systematic classification and analysis of activation functions in deep learning, including traditional, ReLU-based, ELU-based, and learning-based variants.
  • To identify key characteristics of activation functions such as output range, monotonicity, smoothness, and gradient flow properties.
  • To conduct a large-scale empirical benchmark comparing 18 SOTA activation functions across multiple networks (e.g., VGG, GoogleNet, MobileNet) and datasets (ImageNet, LibriSpeech, etc.).
  • To guide researchers and practitioners in selecting optimal activation functions based on data modality, network architecture, and training dynamics.
  • To release code for reproducibility and future benchmarking of activation functions in deep learning.

Proposed method

  • Categorize activation functions into five classes: Logistic Sigmoid/Tanh-based, ReLU-based, ELU-based, exponential-based, and learning-based (adaptive) AFs.
  • Analyze 18 SOTA activation functions using key properties: output range, monotonicity, smoothness, and gradient behavior.
  • Conduct experiments on four benchmark datasets: ImageNet (image classification), CIFAR-10/100, and LibriSpeech (speech recognition).
  • Train models using standard architectures (VGG16, GoogleNet, MobileNet, CNN-RNN hybrids) with fixed hyperparameters across all AFs.
  • Measure performance using accuracy, character error rate (CER), and word error rate (WER) over 5 random trials for robustness.
  • Use PyTorch with specific versions (torch 1.4.0, torchaudio 0.4.0) and standard training protocols (e.g., SGD, batch size 10, 10 epochs) for consistency.

Experimental results

Research questions

  • RQ1Which activation functions consistently outperform ReLU across diverse deep learning architectures and data modalities?
  • RQ2How do different AF classes (e.g., ReLU variants, Swish, Mish, PAU) compare in terms of convergence speed, accuracy, and training stability?
  • RQ3What is the impact of non-zero mean outputs and vanishing gradients on the performance of Logistic Sigmoid and Tanh-based AFs?
  • RQ4How do adaptive or learnable activation functions (e.g., PReLU, PAU) improve generalization compared to fixed non-linearities?
  • RQ5Which activation functions are most suitable for specific tasks such as image classification, language translation, and speech recognition?

Key findings

  • Swish, Mish, PReLU, GELU, and PAU activation functions showed superior performance in speech recognition, achieving the lowest mean CER and WER across 5 trials.
  • ReLU, LReLU, ELU, GELU, CELU, and PDELU outperformed others in residual networks like VGG16 and GoogleNet, especially in image classification.
  • Parametric AFs such as PReLU and PAU demonstrated faster convergence due to learnable parameters that adapt to data distribution.
  • ReLU, SELU, GELU, and Softplus provided the best trade-off between training speed and accuracy, while PDELU and SRS increased training time significantly.
  • Exponential-based AFs (e.g., ELU, SELU) improved non-linearity by better utilizing negative values, enhancing feature representation.
  • Logistic Sigmoid and Tanh AFs were found unsuitable for CNNs due to poor convergence, though still effective as gates in RNNs.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.