Gaussian Error Linear Units (GELUs)

Dan Hendrycks, Kevin Gimpel
6/27/2016
cs.LG

Official code: hendrycks/GELUs (117 stars, MIT, last commit 2020-06-23).

Abstract

We propose the Gaussian Error Linear Unit (GELU), a high-performing neural network activation function. The GELU activation function is $xΦ(x)$, where $Φ(x)$ the standard Gaussian cumulative distribution function. The GELU nonlinearity weights inputs by their value, rather than gates inputs by their sign as in ReLUs ($x\mathbf{1}_{x>0}$). 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.

View on arXivView PDF

Code Implementations(1)

hendrycks/GELUsOfficial100%
MIT

A smoother activation function (undergrad code)

11720PythonJul 6, 20166 years agoMIT

Similar Papers

Cite this paper

@article{hendrycks2016gaussian,
  title  = {Gaussian Error Linear Units (GELUs)},
  author = {Dan Hendrycks and Kevin Gimpel},
  year   = {2016},
  eprint = {1606.08415},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1606.08415}
}

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/1606.08415.svg)](https://codeofpaper.com/paper/1606.08415)

Discussion