Attention Is Not All You Need: The Importance of Feedforward Networks in Transformer Models
Not on the map. Why?
Abstract (arXiv)
Decoder-only transformer networks have become incredibly popular for language modeling tasks. State-of-the-art models can have over a hundred transformer blocks, containing billions of trainable parameters, and are trained on trillions of tokens of text. Each transformer block typically consists of a multi-head attention (MHA) mechanism and a two-layer fully connected feedforward network (FFN). In this paper, we examine the importance of the FFN during the model pre-training process through a series of experiments, confirming that the FFN is important to model performance. Furthermore, we show that models using a transformer block configuration with three-layer FFNs with fewer such blocks outperform the standard two-layer configuration delivering lower training loss with fewer total parameters in less time.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 13 of its 20 references that are in the map. First posted on arXiv 10 May 2025.
Builds on
13 of 20 references.
References · 13
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2016Gaussian Error Linear Units (GELUs)cited by 3,502
- 2016Pointer Sentinel Mixture Modelscited by 3,096
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
- 2022What Language Model Architecture and Pretraining Objective Work Best for Zero-Shot Generalization?cited by 150
- 2019Augmenting Self-attention with Persistent Memorycited by 93
- 2024Understanding the Expressive Power and Mechanisms of Transformer for Sequence Modelingcited by 25
- 2024Star Attention: Efficient LLM Inference over Long Sequencescited by 25
- 2023One Wide Feedforward is All You Needcited by 15
1 more
Built on by
Citing papers per year: 2025: 2; 2026: 2.
4 papers.
- 2025Simple Projection Variants Improve ColBERT Performancecited by 2
- 2025Flash Multi-Head Feed-Forward Networkcited by 1
- 2026Automated Gradient-Driven Parameter Sharing for Low-Resource Multilingual Speech-to-Text Translationcited by 0
- 2026CRAMER: Control via Request-Aware Masking for Editing Recommenderscited by 0
- 2026CRAMER: Control via Request-Aware Masking for Editing Recommenders26 Aug 2026
- 2026Automated Gradient-Driven Parameter Sharing for Low-Resource Multilingual Speech-to-Text Translation26 Mar 2026
- 2025Flash Multi-Head Feed-Forward Network7 Dec 2025
- 2025Simple Projection Variants Improve ColBERT Performance14 Oct 2025