GELU
What is GELU?
In one sentence: GELU is a smooth activation function that works like a softer ReLU, letting small negative values through a little.
GELU stands for Gaussian Error Linear Unit. Instead of a sharp cut at zero, it curves gently, which often helps language models train a bit better. It was used in BERT and GPT-2 and GPT-3.
What does GELU look like?
GELU turns −1 into about −0.16 instead of 0, and 2 into about 1.95.
Why does GELU matter?
Small choices like GELU vs ReLU can noticeably improve how well big models learn.
Last updated · Fact-checked by The AI Math
Linking to this page from a lesson or article? <a href="https://getaimath.com/dictionary/gelu/">GELU, explained simply</a> (The AI Math Dictionary)