English

Gaussian Error Linear Units (GELUs)

Machine Learning 2023-06-07 v5

Abstract

We propose the Gaussian Error Linear Unit (GELU), a high-performing neural network activation function. The GELU activation function is xΦ(x)x\Phi(x), where Φ(x)\Phi(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 (x1x>0x\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.

Keywords

Cite

@article{arxiv.1606.08415,
  title  = {Gaussian Error Linear Units (GELUs)},
  author = {Dan Hendrycks and Kevin Gimpel},
  journal= {arXiv preprint arXiv:1606.08415},
  year   = {2023}
}

Comments

Trimmed version of 2016 draft

R2 v1 2026-06-22T14:35:33.950Z