SiLU(x) = x·σ(x), a smooth ReLU; SwiGLU is the gated feed-forward layer built from it.
In ML papers
SiLU(x)=xσ(x) multiplies the input by its own sigmoid. Like ReLU it is near 0 for very negative inputs and near x for large ones, but it is smooth and dips slightly below zero. It was proposed in the GELU paper (Hendrycks & Gimpel 2016) and later popularized as Swish (Ramachandran et al. 2017), whose version xσ(βx) has a scale β; with β=1 they are the same.
SwiGLU (Shazeer 2020, "GLU Variants Improve Transformer") is a feed-forward layer, not a single function: SwiGLU(x)=(SiLU(xW)⊙xV)W2. One projection is passed through SiLU and gates the other elementwise. LLaMA and many later language models use it in place of the ReLU Feed-forward network (FFN, MLP).
How to type it
LaTeX
Shows
\operatorname{SiLU}(x)
SiLU(x)
\operatorname{Swish}(x)
Swish(x)
\operatorname{SwiGLU}(\mathbf{x})
SwiGLU(x)
A worked example
SiLU(1)=1×0.731=0.731,SiLU(−1)=−0.269
Its minimum is about −0.278, near x=−1.28.
Common confusions
σ here is the sigmoid, not a standard deviation (Sigma (lowercase)).
SwiGLU has three weight matrices where a plain FFN has two, so papers shrink the hidden width to keep the parameter count equal.