arXiv(opens in a new tab)cs.LGJun 2016Cited by 179 papers on PaperVantageClassic Paper

Manuscript Offprint

arXiv:1606.08415

Gaussian Error Linear Units (GELUs)

Dan Hendrycks, Kevin Gimpel

ABSTRACT

We propose the Gaussian Error Linear Unit (GELU), a high-performing neural network activation function. The GELU nonlinearity is the expected transformation of a stochastic regularizer which randomly applies the identity or zero map to a neuron's input. The GELU nonlinearity weights inputs by their magnitude, rather than gates inputs by their sign as in ReLUs. We perform an empirical evaluation of the GELU nonlinearity against the ReLU and ELU activations and find performance improvements across all considered computer vision, natural language processing, and speech tasks.

1 INTRODUCTION

Early artificial neurons utilized binary threshold units (Hopfield, 1982; McCulloch & Pitts, 1943). These hard binary decisions are smoothed with sigmoid activations, enabling a neuron to have a “firing rate” interpretation and to train with backpropagation. But as networks became deeper, training with sigmoid activations proved less effective than the non-smooth, less-probabilistic ReLU (Nair & Hinton, 2010) which makes hard gating decisions based upon an input’s sign. Despite having less of a statistical motivation, the ReLU remains a competitive engineering solution which often enables faster and better convergence than sigmoids. Building on the successes of ReLUs, a recent modification called ELUs (Clevert et al., 2016) allows a ReLU-like nonlinearity to output negative values which sometimes increases training speed. In all, the activation choice has remained a necessary architecture decision for neural networks lest the network be a deep linear classifier.

Deep nonlinear classifiers can fit their data so well that network designers are often faced with the choice of including stochastic regularizer like adding noise to hidden layers or applying dropout (Srivastava et al., 2014), and this choice remains separate from the activation function. Some stochastic regularizers can make the network behave like an ensemble of networks, a pseudoensemble (Bachman et al., 2014), and can lead to marked accuracy increases. For example, the stochastic regularizer dropout creates a pseudoensemble by randomly altering some activation decisions through zero multiplication. Nonlinearities and dropout thus determine a neuron's output together, yet the two innovations have remained distinct. More, neither subsumed the other because popular stochastic regularizers act irrespectively of the input and nonlinearities are aided by such regularizers.

In this work, we introduce a new nonlinearity, the Gaussian Error Linear Unit (GELU). It relates to stochastic regularizers in that it is the expectation of a modification to Adaptive Dropout (Ba & Frey, 2013). This suggests a more probabilistic view of a neuron's output. We find that this novel nonlinearity matches or exceeds models with ReLUs or ELUs across tasks from computer vision, natural language processing, and automatic speech recognition.

References (20)

  • Adaptive dropout for training deep neural networks
  • Learning with pseudo-ensembles
  • Fast and accurate deep network learning by exponential linear units (ELUs)
  • Natural neural networks
  • Part-of-Speech Tagging for Twitter: Annotation, Features, and Experiments
  • Adjusting for dropout variance in batch normalization and weight initialization
  • Adam: A Method for Stochastic Optimization
  • Zoneout: Regularizing RNNs by randomly preserving hidden activations
  • SGDR: Stochastic gradient descent with restarts
  • Rectifier nonlinearities improve neural network acoustic models
  • A logical calculus of the ideas immanent in nervous activity
  • All you need is a good init
  • Acoustic modeling using deep belief networks
  • Rectified linear units improve restricted boltzmann machines
  • Improved part-of-speech tagging for online conversational text with word clusters
  • Weight normalization: A simple reparameterization to accelerate training of deep neural networks
  • Exact solutions to the nonlinear dynamics of learning in deep linear neural networks
  • Deep residual networks with exponential linear unit
  • Dropout: A simple way to prevent neural networks from overfitting
  • Wide residual networks

Cited by (179)