SwiGLU
What is SwiGLU?
In one sentence: SwiGLU is an activation design used in many modern LLMs that adds a "gate" so the network can control how much information passes.
It splits the signal into two paths: one is the information, the other is a gate that decides how much of it to let through. This extra control usually makes models learn better for the same cost.
What does SwiGLU look like?
Llama, Mistral and many other modern models use SwiGLU in their feed-forward layers.
Why does SwiGLU matter?
SwiGLU is part of why newer models get more ability out of the same number of parameters.
Last updated · Fact-checked by The AI Math
Linking to this page from a lesson or article? <a href="https://getaimath.com/dictionary/swiglu/">SwiGLU, explained simply</a> (The AI Math Dictionary)