Gaussian error linear unit (GeLU): Difference between revisions
Appearance
Add thumbnail plot (via update-page on MediaWiki MCP Server) |
Plain-text caption (math not rendered in file captions) (via update-page on MediaWiki MCP Server) |
||
| Line 1: | Line 1: | ||
[[Category:Activation function]] | [[Category:Activation function]] | ||
[[File:GELU-activation-function.svg|thumbnail| | [[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)]] | ||
Gaussian error linear unit is an [[activation function]] liked for its smoothness. | Gaussian error linear unit is an [[activation function]] liked for its smoothness. | ||
Revision as of 11:51, 17 November 2026

Image: Rong Martin-Siebler ZHOU and Veramiko AI · CC BY-SA 4.0
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.