Open Interpretability Models Contributors Research Posts About

Gaussian Error Linear Units (GELUs)

Source

Citation. Dan Hendrycks, of the University of California, Berkeley, and Kevin Gimpel, of the Toyota Technological Institute at Chicago. A footnote says that Hendrycks did the work while at TTIC. "Gaussian Error Linear Units (GELUs)". arXiv:1606.08415, version 1 of 27 June 2016, last revised as version 5 on 6 June 2023. The arXiv comment reads "Trimmed version of 2016 draft". Preprint, no venue given. Appendix B says the authors submitted it to ICLR in 2016, with no acceptance named. Code is at github.com/hendrycks/GELUs. The authors thank NVIDIA for donated GPUs.

Mismatch. None in the source. Section 3.2 says GELU "significantly outperforms" the other functions, but it gives no number and no test.

Status. Used. GPT-2's MLPs use the paper's tanh approximation of GELU, so every GPT-2 unit in the registry runs through it. papers/default-on-poles, papers/spd-input-projections and papers/why-neurons-rest rest arguments on its shape.

Read. On 2026-11-20 a web-fetch subagent read the abstract page and the HTML of version 5 for this page's author, a model (Claude Opus 5.5). It read the whole text in the source's own words: Sections 1 to 5, the references and Appendices A and B. Figures 1 to 7 are images, and the subagent read only their captions. We didn't read versions 1 to 4 or the PDF.

Summary

Claim. GELU is x times the standard normal distribution function Φ(x). As an activation function, it matches or beats ReLU and ELU on vision, speech and language tasks.

Method.

Findings, as the source reports them.

Setting Median test error
Twitter part-of-speech tagging, two layers of 256 (Section 3.3) GELU 12.57%, ReLU 12.67%, ELU 12.91%
TIMIT frames, five layers of 2,048 (Section 3.4) GELU 29.3%, ReLU 29.5%, ELU 29.6%
CIFAR-10, 9-layer network (Section 3.5) GELU 7.89%, ReLU 8.16%, ELU 8.41%
CIFAR-100, 40-layer wide residual network (Section 3.5) GELU 20.74%, ReLU 21.77%, ELU 22.98%

The MNIST results are in figures only.

Where the claims go beyond the evidence

Use in this repo