# Activation Functions: Comparison of trends in Practice and Research for Deep Learning

Survey compares activation functions in deep learning practice and research

Chigozie Nwankpa, Winifred Ijomah, Anthony Gachagan, Stephen Marshall · arXiv · 2018-11-8

- **Problem** Deep networks suffer vanishing or exploding gradients during training, so the choice of activation function matters. Earlier comparisons of activation functions were written only in Turkish, limiting who could read them.
- **Method** This survey compiles the main activation functions used in deep learning, from Sigmoid and tanh to ReLU and Swish. The authors check them against trends in ImageNet-winning architectures such as AlexNet and SeNet.
- **Results** ReLU appears in the hidden layers of every listed architecture except NiN, which has no hidden activation. Softmax is the output activation for most of them.

## Why activation choice is hard

Deep networks stack many layers, and training gets harder when gradients shrink or blow up as they travel backward. The authors trace this to derivative terms: when they sit below one, repeated multiplication drives the gradient toward zero. When they sit above one, the same multiplication can push the gradient toward infinity instead. The activation function is one of the few levers that keeps these gradients within limits, which is why its choice matters.

The choice is also getting harder, since architectures now serve object classification, translation, speech, weather forecasting and self-driving cars.

The authors note that the only earlier comparison of this kind was written in Turkish, which limits who can read it. That gap is what motivates a survey of activation functions in deep learning, covering both the functions themselves and how practitioners use them.

## What an activation function does in a layer

An activation function is the non-linear step placed after each neuron's weighted sum, so that stacked layers don't collapse into one linear map. A layer first computes the weighted sum of its inputs plus a bias, which is linear in the inputs. The activation α is then applied to that sum, giving y = α(w1 x1 + w2 x2 + ... + wn xn + b). Without this step, the output of each layer would be linear by default, however many layers are stacked.

The authors also require the activation to be differentiable, because backpropagation has to pass through it.

Where the function sits depends on the layer: after the hidden layers it makes the mapping non-linear, and at the output it produces the prediction. The output layer's activation is therefore the one that turns the network's scores into class probabilities or other predictions.

## The functions by family

The authors start with the Sigmoid family, which is bounded, differentiable and used for probability-style outputs. Sigmoid saturates and converges slowly, and its outputs aren't centred on zero, so gradient updates can point in different directions. Tanh is zero-centred with a range of -1 to 1, and it became the preferred choice over Sigmoid for multi-layer networks.

However, tanh doesn't solve vanishing gradients, and it has a gradient of 1 only at an input of zero, which can produce dead neurons.

ReLU sets negative inputs to zero and passes positive inputs unchanged, which makes it cheap to compute. Its weakness is that a unit can die during training, and that the function overfits more easily than Sigmoid, a risk the authors say dropout reduces. The leaky ReLU answers the dead-unit problem with a small negative slope, such as 0.01, so the gradient never becomes exactly zero.

PReLU makes that negative slope a learnable parameter, and RReLU samples it at random during training. The ELU family is the identity for positive inputs and saturates on the negative side, which pushes mean activation toward zero. The ELU does not centre its values at zero, and this is the gap the parametric ELU was introduced to address.

SELU adds fixed constants, with alpha near 1.6733 and a scale near 1.0507, to aim for self-normalising behaviour across layers.

Maxout is the maximum of two affine functions, so it generalises ReLU and leaky ReLU, but it doubles the parameters in every neuron. Swish multiplies the input by its sigmoid, and the authors report that it outperforms ReLU on deep learning classification tasks.

## Which functions the listed architectures use

The authors take winners of the ImageNet competition and related architectures, from AlexNet and ZFNet to ResNeXt and SeNet, and record where each activation sits. Table I shows ReLU in the hidden layers of every listed architecture except NiN, which has no hidden activation. Softmax is the output activation for most of them, and SeNet is the exception, with a Sigmoid output and ReLU in its hidden layers.

The authors read this as ReLU and Softmax being the functions that practical deep learning relies on. The newer functions seemed to outperform the older ones in the cited studies, yet even the latest architectures still rely on ReLU. The authors attribute this to practitioners preferring functions that have been tested and proven over newly developed ones.

## Limits of the comparison

The comparison is a review of published architectures and cited results, and the authors ran no new benchmark of the functions. The authors left the comparison of the state-of-the-art functions on award-winning architectures, using standard datasets, as future work. The performance claims for newer functions come from the original papers, each with its own dataset and setup.

Pedamonti's MNIST comparison supports the claim that ELU variants learn faster than ReLU, which is a single cited study. Some ReLU variants lack theoretical justification for their results, according to the authors, so their advantage rests on experiments.

## Paper info

- **Authors**: Chigozie Nwankpa, Winifred Ijomah, Anthony Gachagan, Stephen Marshall
- **Venue**: arXiv · Preprint
- **First published**: 2018-11-8
- **Added**: 2026-11-12
- **Updated**: 2018-11-8
- **Version**: v1
- **arXiv**: 1811.03378
- **Category**: cs.LG · cs.CV
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1811.03378v1) · [PDF ↗](https://arxiv.org/pdf/1811.03378v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Chigozie Nwankpa, Winifred Ijomah, Anthony Gachagan, Stephen Marshall (2018). Activation Functions: Comparison of trends in Practice and Research for Deep Learning. arXiv:1811.03378v1. https://arxiv.org/abs/1811.03378v1

**BibTeX**

```
@misc{nwankpa2018activation,
  title = {{Activation Functions: Comparison of trends in Practice and Research for Deep Learning}},
  author = {Chigozie Nwankpa and Winifred Ijomah and Anthony Gachagan and Stephen Marshall},
  year = {2018},
  eprint = {1811.03378},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1811.03378v1}
}
```

## Related papers

- [A Survey of Convolutional Neural Networks: Analysis, Applications, and Prospects](https://refivu.com/en/papers/070c8ac2-628a-4354-98cb-c9aeae701850-a-survey-of-convolutional-neural-networks-analysis.md)
- [Advanced Steel Microstructural Classification by Deep Learning Methods](https://refivu.com/en/papers/40557ea6-2c03-4d59-8884-5b126f8414d1-advanced-steel-microstructural-classification-by-deep.md)
- [Going Deeper with Convolutions](https://refivu.com/en/papers/9243f6b7-9c9f-427b-90e0-5a182c02c4b4-going-deeper-with-convolutions.md)
- [Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classification](https://refivu.com/en/papers/83083238-3fc6-4f4e-a3b1-6db4f84268de-delving-deep-into-rectifiers-surpassing-human-level.md)
- [Progressive Neural Networks](https://refivu.com/en/papers/312c9749-ed9b-42c3-9bf3-bb139310d4dd-progressive-neural-networks.md)
- [Gaussian Error Linear Units (GELUs)](https://refivu.com/en/papers/264fd129-ba49-4e4c-ac1f-59466a4e43ea-gaussian-error-linear-units-gelus.md)

## Other paper commentary

- [Deep Learning for Sensor-based Activity Recognition: A Survey](https://refivu.com/en/papers/2047ba14-2bcc-42f2-a0fe-57280553acee-deep-learning-for-sensor-based-activity-recognition-a.md)
- [Deep Learning for Image Super-resolution: A Survey](https://refivu.com/en/papers/32a6ff3a-537c-439a-86c3-7db381a355bd-deep-learning-for-image-super-resolution-a-survey.md)
- [Structure-measure: A New Way to Evaluate Foreground Maps](https://refivu.com/en/papers/66f23442-e0d8-4496-ab4e-14cc3ce84c90-structure-measure-a-new-way-to-evaluate-foreground.md)
- [Deep Learning for Anomaly Detection: A Survey](https://refivu.com/en/papers/f19cac5f-c77b-441b-b92c-d53cb0d82935-deep-learning-for-anomaly-detection-a-survey.md)
- [Grounding DINO: Marrying DINO with Grounded Pre-Training for Open-Set Object Detection](https://refivu.com/en/papers/d71e5f0f-1f56-4ab0-b2a4-41156c563837-grounding-dino-marrying-dino-with-grounded-pre-training.md)
- [Threat of Adversarial Attacks on Deep Learning in Computer Vision: A Survey](https://refivu.com/en/papers/80491a86-47c1-436a-bec9-4dead5cabb78-threat-of-adversarial-attacks-on-deep-learning-in.md)
- [Explainable Artificial Intelligence: Understanding, Visualizing and Interpreting Deep Learning Models](https://refivu.com/en/papers/6bd22a78-4fb3-465f-b297-2113b18ee3f2-explainable-artificial-intelligence-understanding.md)
- [Learning Hand-Eye Coordination for Robotic Grasping with Deep Learning and Large-Scale Data Collection](https://refivu.com/en/papers/7027eeb7-fc1d-48f5-a7af-9efbaa9ad813-learning-hand-eye-coordination-for-robotic-grasping-with.md)
- [SCA-CNN: Spatial and Channel-wise Attention in Convolutional Networks for Image Captioning](https://refivu.com/en/papers/51e17bf0-d47d-4aca-8ce3-e07e4204a821-sca-cnn-spatial-and-channel-wise-attention-in.md)
- [Conditional Prompt Learning for Vision-Language Models](https://refivu.com/en/papers/aafdc9ad-313a-44a6-bed9-42556a8097ea-conditional-prompt-learning-for-vision-language-models.md)
- [Imagen Video: High Definition Video Generation with Diffusion Models](https://refivu.com/en/papers/79ba3745-980d-44fe-a5b0-70a6fbd0bc66-imagen-video-high-definition-video-generation-with-diffusion.md)
- [Unsupervised Data Augmentation for Consistency Training](https://refivu.com/en/papers/7940975d-f8e6-4178-9d29-c4dc7f994398-unsupervised-data-augmentation-for-consistency-training.md)

## Terms in this paper

- [ImageNet](https://refivu.com/en/terms/5eadad128667-imagenet)
- [ReLU](https://refivu.com/en/terms/7b22f5612f6c-relu)
- [AlexNet](https://refivu.com/en/terms/e5142ede4de4-alexnet)
- [softmax](https://refivu.com/en/terms/4a7673b6518d-softmax)
- [neural networks](https://refivu.com/en/terms/88c79be50288-neural-networks)
- [Leaky ReLU](https://refivu.com/en/terms/b905994d0407-leaky-relu)
- [Vanishing Gradients](https://refivu.com/en/terms/737f93ab3c9d-vanishing-gradients)
- [SoftMax function](https://refivu.com/en/terms/ce0db7dbb3f0-softmax-function)
- [Swish](https://refivu.com/en/terms/74b3cc4b1961-swish)
- [SENet](https://refivu.com/en/terms/dbc736b76740-senet)
- [Sigmoid Function](https://refivu.com/en/terms/13c26407c004-sigmoid-function)
- [Softplus](https://refivu.com/en/terms/30693204ffa1-softplus)
- [activation function](https://refivu.com/en/terms/24a6d238abcb-activation-function)
- [Parametric ReLU](https://refivu.com/en/terms/4b41b37b6d83-parametric-relu)
- [scaled exponential linear units](https://refivu.com/en/terms/422bf88fdacd-scaled-exponential-linear-units)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/b7691c32-6640-47d3-9dda-c4586bd48272-activation-functions-comparison-of-trends-in-practice-and)
