Gaussian error linear unit (GeLU): Difference between revisions
Appearance
Add thumbnail plot (via update-page on MediaWiki MCP Server) |
Restore TeX in caption (client-side math) (via update-page on MediaWiki MCP Server) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
[[Category:Activation function]] | [[Category:Activation function]] | ||
[[File:GELU-activation-function.svg|thumbnail|$\mathrm{GELU}(z)=z\,\Phi(z)$ for $z\in[-4.2,4.2]$ against ReLU (dashed); | [[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

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.