Jump to content

Gaussian error linear unit (GeLU): Difference between revisions

From Wikibase
Plain-text caption (math not rendered in file captions) (via update-page on MediaWiki MCP Server)
Restore TeX in caption (client-side math) (via update-page on MediaWiki MCP Server)
 
Line 1: Line 1:
[[Category:Activation function]]
[[Category:Activation function]]
[[File:GELU-activation-function.svg|thumbnail|GELU(z) = z·Φ(z) for z ∈ [−4.2, 4.2] against ReLU (dashed); smooth and non-monotonic, with a minimum near (−0.751, −0.170)]]
[[File:GELU-activation-function.svg|thumbnail|$\mathrm{GELU}(z)=z\,\Phi(z)$ for $z\in[-4.2,4.2]$ against ReLU (dashed); smooth and non-monotonic, with a minimum near $(-0.751,-0.170)$]]
Gaussian error linear unit is an [[activation function]] liked for its smoothness.
Gaussian error linear unit is an [[activation function]] liked for its smoothness.



Latest revision as of 11:52, 17 November 2026

$\mathrm{GELU}(z)=z\,\Phi(z)$ for $z\in[-4.2,4.2]$ against ReLU (dashed); smooth and non-monotonic, with a minimum near $(-0.751,-0.170)$
Image: Rong Martin-Siebler ZHOU and Veramiko AI · CC BY-SA 4.0
· Open in a new tab

Gaussian error linear unit is an activation function liked for its smoothness.

Definition

$$ \operatorname{GELU}(z)=z\,\Phi(z) $$

where

$$ \Phi(z)=\frac{1}{\sqrt{2\pi}}\int_{-\infty}^{z} e^{-t^2/2}\,dt $$

is the standard normal cumulative distribution function.

Application

GELU is commonly used in Transformer feed-forward sub-layers.