Skip to content

    GELU

    AI fundamentals & modelsGaussian Error Linear UnitGELU activation
    Reading time: 2 min.Editorially reviewed on:

    Definition

    GELU weights inputs smoothly based on their size instead of cutting them hard from zero.

    GELU is defined exactly by GELU(x) = x · Φ(x); Φ is the distribution function of the standard normal distribution. The function weights inputs softly based on their value. Implementations can use numerical approximations.

    Simply explained

    Small or negative signals are softly attenuated instead of abruptly cut off.

    Why it matters in practice

    GELU is a proven model building block, but not automatically better for every architecture.

    Example from business

    Hypothetical example: A transformer uses GELU in the feedforward block and is compared against ReLU-based variants.

    Limits and pitfalls

    • Confuse names with Gauss noise; make activation in isolation responsible for quality; ignore numerical approximations.

    Origin & history

    Dan Hendrycks and Kevin Gimpel published the GELU preprint in June 2016.

    Use in mid-sized companies

    • In the case of own training or model export, check the activation function and its numerical implementation.

    Frequently asked questions

    Is GELU probabilistic?

    The formula uses the Gaussian CDF, the activation itself is deterministic. Is it ReLU? No.

    Sources

    Source verification: 10.10.2026. Definition and documented classification checked; examples describe possible applications.

    Editorially reviewed on:

    On this page

    Next step

    Put knowledge into practice