Term
SwiGLU
Meaning
A gated linear unit variant in which one linear projection is multiplied by a Swish-activated second projection. It is used as a feed-forward activation in transformer blocks.
Source Qwen2.5-VL Technical Report
How papers use it 11 papers
Qwen2.5-VL Technical Report
Use Used as the feed-forward activation in the redesigned Vision Transformer of Qwen2.5-VL, so that the vision encoder follows the design choices of the LLM.
Qwen3 Technical Report
Use Used as the feed-forward activation in the Qwen3 dense models.
Meaning A gated feed-forward activation that multiplies a Swish-activated branch by a linear branch elementwise. It is used in transformer feed-forward layers.
Qwen2 Technical Report
Use Adopted as the activation of the feed-forward networks in the Qwen2 dense models, following the Qwen design. The paper attributes this choice to Dauphin et al. (2017).
Meaning A gated activation function for feed-forward layers that multiplies a Swish-activated branch elementwise with a linear branch, so one projection controls how much of the other passes through.
OLMo: Accelerating the Science of Language Models
Use The activation in the feed-forward block, with hidden size approximately 8/3 d.
Meaning A gated linear unit activation that uses a Swish-type gate.
ChatGLM: A Family of Large Language Models from GLM-130B to GLM-4 All Tools
Use GLM-4 uses SwiGLU in place of ReLU in its feed-forward networks.
Meaning A gated linear unit for feed-forward layers that uses the Swish activation as its gate.
PaLM: Scaling Language Modeling with Pathways
Use Used for the MLP intermediate activations in PaLM. The authors cite Shazeer (2020) for quality gains over ReLU, GeLU and Swish in compute-matched comparisons, where the baseline variant uses proportionally larger dimensions.
Meaning A gated MLP activation that multiplies a Swish-activated linear projection of the input by a second linear projection of the input, so the MLP needs three matrix multiplications instead of two.
Qwen2.5 Technical Report
Use It is the activation used in the feed-forward layers of the dense Qwen2.5 models.
Meaning A gated non-linear activation used in feed-forward layers, computed from a gating projection and a linear projection.
Qwen Technical Report
Use Selected as the activation function of QWEN's feed-forward network. The authors report that GLU-based activations outperformed GeLU in their initial experiments. Because of this gated design, the feed-forward width is reduced relative to the usual four times the hidden size.
Meaning A gated feed-forward activation that combines the Swish function with a gated linear unit, so one branch is passed through Swish and multiplies a linear branch. It is used as the non-linearity in the feed-forward network of a Transformer block.
Llama 2: Open Foundation and Fine-Tuned Chat Models
Use Used as the activation function in the feed-forward layers of the Llama 2 architecture, adopted from Llama 1 and attributed to Shazeer (2020).
Meaning A gated feed-forward activation that multiplies a Swish-activated linear projection by a second linear projection, forming a gated linear unit variant used inside transformer feed-forward blocks.
Mixtral of Experts
Use Each Mixtral expert is a SwiGLU sub-block.
Meaning A gated feedforward architecture that uses a swish-gated linear unit.
LLaMA: Open and Efficient Foundation Language Models
Use Replaces the ReLU non-linearity in the feed-forward blocks of LLaMA. The paper uses a hidden dimension of 2/3 · 4d in place of the standard 4d, following PaLM. The activation is cited as introduced by Shazeer (2020).
Meaning A gated activation function for feed-forward layers that combines a Swish-activated linear projection with a second linear projection through element-wise multiplication.