Learn AI Math

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?

Like this explanation? Get one every week.

The AI Math newsletter turns confusing AI news into plain English. No hype, no jargon walls.