Is it Time to Swish? Comparing Deep Learning Activation Functions Across NLP tasks

Steffen Eger, Paul Youssef, Iryna Gurevych
1/9/2019
cs.CLcs.LGcs.NE

Official code: UKPLab/emnlp2018-activation-functions (26 stars, Shell, Apache-2.0, last commit 2019-12-29).

Abstract

Activation functions play a crucial role in neural networks because they are the nonlinearities which have been attributed to the success story of deep learning. One of the currently most popular activation functions is ReLU, but several competitors have recently been proposed or 'discovered', including LReLU functions and swish.

Show full abstract

While most works compare newly proposed activation functions on few tasks (usually from image classification) and against few competitors (usually ReLU), we perform the first large-scale comparison of 21 activation functions across eight different NLP tasks. We find that a largely unknown activation function performs most stably across all tasks, the so-called penalized tanh function. We also show that it can successfully replace the sigmoid and tanh gates in LSTM cells, leading to a 2 percentage point (pp) improvement over the standard choices on a challenging NLP task.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
266Shell, PythonAug 31, 20186 years agoApache-2.0

Similar Papers

Cite this paper

@article{eger2019time,
  title  = {Is it Time to Swish? Comparing Deep Learning Activation Functions Across NLP tasks},
  author = {Steffen Eger and Paul Youssef and Iryna Gurevych},
  year   = {2019},
  eprint = {1901.02671},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1901.02671}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1901.02671.svg)](https://codeofpaper.com/paper/1901.02671)

Discussion