SwiGLU's Superior Perplexity at Matched Compute

SwiGLU consistently achieves lower loss and improved perplexity in large language models compared to GELU, critically maintaining nearly identical computational cost (FLOPs) by optimizing its Feed-Forward Network width to approximately 2/3 of a GELU FFN.

Sources

Open the full topic