Answers are grounded in this paper and cite their sources.
Activation functions play a crucial role in neural networks because they are nonlinearities which have been attributed to the success story of deep. One of the currently most popular activation functions is ReLU, but competitors have recently been proposed or 'discovered', including functions and swish. While most works compare newly proposed activation on few tasks (usually from image classification) and against few (usually ReLU), we perform the first large-scale comparison of 21 functions across eight different NLP tasks. We find that a largely activation function performs most stably across all tasks, the-called penalized tanh function. We also show that it can successfully the sigmoid and tanh gates in LSTM cells, leading to a 2 percentage (pp) improvement over the standard choices on a challenging NLP task.
No takes yet. Share an insight, caveat, or question.
Eger et al. (2019) studied this question.