Jump to content

Gated linear unit (GLU)

From Wikibase
Revision as of 10:17, 17 November 2026 by Rongzhou (talk | contribs) (Created page with "Category:Activation function A gated linear unit (GLU) is a trainable activation function. $$ \operatorname{GLU}(\mathbf{X}) =\left(\mathbf{X}\mathbf{W}_1+\mathbf{1}\vec b_1^{\top}\right) \odot f\left(\mathbf{X}\mathbf{W}_2+\mathbf{1}\vec b_2^{\top}\right). $$ The '''gating function''' $f$ is commonly any of * Gaussian error linear unit (GeLU) * sigmoid function * (leaky) rectified/exponential linear units (ReLU, LeakyReLU, ELU) GLUs are found t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Languages: English · français · Esperanto

A gated linear unit (GLU) is a trainable activation function.

$$ \operatorname{GLU}(\mathbf{X}) =\left(\mathbf{X}\mathbf{W}_1+\mathbf{1}\vec b_1^{\top}\right) \odot f\left(\mathbf{X}\mathbf{W}_2+\mathbf{1}\vec b_2^{\top}\right). $$

The gating function $f$ is commonly any of


GLUs are found to improve feed-forward sub-layers in Transformers at matched parameter count.[1]