ffn-original-relu-modern-geglu-swiglu
IN premise — summaries/2026-08-24/wiki-Transformer_deep_learning_architecture-chunk-2-chunk-1.md
Created 2026-08-24T17:11:24+00:00
The original 2017 Transformer paper used ReLU as the FFN activation function; modern variants (GPT-3, LLaMA) have replaced it with GeGLU/SwiGLU.
Summary
The 2017 Transformer paper used a basic ReLU activation in its feed-forward layers, but every major model since, including GPT-3 and LLaMA, has swapped that for more sophisticated gating functions like GeGLU or SwiGLU. This matters because it means the gap between the original architecture and modern ones is not just a matter of scale; the core math of how each layer processes information has fundamentally changed, so results from the 2017 paper should not be extrapolated directly to state-of-the-art systems.